:root {
    --primary-color: #00AA13;
    --primary-dark: #00800F;
    --primary-light: #E5F7EE;
    --secondary-color: #FFC107;
    --danger-color: #F44336;
    --text-color: #333333;
    --text-light: #757575;
    --border-color: #E0E0E0;
    --background-color: #F5F5F5;
    --white: #FFFFFF;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --radius: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 14px;
    padding-bottom: 60px;
}

.container {
    max-width: 100%;
    padding: 0 16px;
    margin: 0 auto;
}

/* Header Styles */
.app-header {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.app-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.app-back-btn {
    display: flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 8px;
}

.app-back-btn i {
    margin-right: 8px;
}

/* Card Styles */
.app-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
}

.app-card-body {
    padding: 16px;
}

/* Alert Styles */
.app-alert {
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    display: flex;
    align-items: flex-start;
}

.app-alert i {
    font-size: 24px;
    margin-right: 12px;
    margin-top: 2px;
}

.app-alert-content h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
}

.app-alert-content p {
    font-size: 14px;
    margin: 0;
}

.app-alert-warning {
    background-color: #FFF8E1;
    color: #FF8F00;
}

.app-alert-info {
    background-color: #E3F2FD;
    color: #0277BD;
}

.app-alert-danger {
    background-color: #FFEBEE;
    color: #C62828;
}

.app-alert-success {
    background-color: #E8F5E9;
    color: #2E7D32;
}

/* Button Styles */
.app-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.app-btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.app-btn-primary:hover {
    background-color: var(--primary-dark);
}

.app-btn-danger {
    background-color: var(--background-color);
    color: var(--text-light);
}

.app-btn-danger:disabled {
    opacity: 1;
}

/* Category Card Styles */
.app-category-card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-category-card:active {
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.app-category-header {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.app-category-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.app-category-body {
    padding: 16px;
}

.app-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.app-original-price {
    font-size: 16px;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 8px;
}

.app-discount-badge {
    display: inline-block;
    background-color: var(--secondary-color);
    color: var(--text-color);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 8px;
}

/* Info Item Styles */
.app-info-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.app-info-item i {
    font-size: 18px;
    margin-right: 8px;
    color: var(--primary-color);
}

.app-info-item strong {
    font-weight: 600;
    margin-right: 4px;
}

/* Empty State Styles */
.app-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.app-empty-state i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.app-empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.app-empty-state p {
    font-size: 14px;
    color: var(--text-light);
}

/* Photos Section */
.app-photos-section {
    margin-top: 24px;
}

.app-section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.app-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.app-photo-item {
    position: relative;
    padding-bottom: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.app-photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    padding: 8px;
    font-size: 12px;
    text-align: center;
}

/* Form Styles */
.app-form-group {
    margin-bottom: 16px;
}

.app-form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.app-form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.app-form-control:focus {
    color: var(--text-color);
    background-color: var(--white);
    border-color: var(--primary-color);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 170, 19, 0.25);
}

.app-input-group {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
}

.app-input-group-text {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-color);
    text-align: center;
    white-space: nowrap;
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 8px 0 0 8px;
}

.app-input-group .app-form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
    border-radius: 0 8px 8px 0;
}

/* Success Page Styles */
.success-container {
    text-align: center;
    padding: 20px;
}

.success-container .icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.success-container h1 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--primary-color);
}

/* Responsive */
@media (min-width: 768px) {
    .container {
        max-width: 768px;
    }
    
    .app-photos-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}