/* CSS Variables - Theme */
:root {
    --primary: #D9232E;
    --primary-dark: #B51D26;
    --primary-light: #FFE5E7;
    --secondary: #1A1A1A;
    --accent: #00A676;
    --accent-light: #E6F7F1;
    --background: #FFFFFF;
    --surface: #F8F9FA;
    --surface-dark: #EAEEF2;
    --text-primary: #1A1A1A;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --nav-height: 60px;
    --header-height: 56px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input {
    font-family: inherit;
    border: none;
    outline: none;
}

a {
    color: var(--primary);
    text-decoration: none;
}

/* App Container */
#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--background);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}

.header-content {
    max-width: 480px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.location-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.location-selector:hover {
    background: var(--surface);
}

.location-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
    flex-shrink: 0;
}

.location-text {
    display: flex;
    flex-direction: column;
}

.location-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.location-address {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chevron-icon {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--surface);
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--surface-dark);
}

.search-btn svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-top: var(--header-height);
    margin-bottom: calc(var(--nav-height) + 20px);
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Pages */
.page {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    cursor: pointer;
}

.hero-slide.active {
    opacity: 1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    width: fit-content;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 4px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 8px;
}

.hero-price {
    font-size: 16px;
    font-weight: 700;
    color: #FFD700;
}

.hero-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    width: 20px;
    border-radius: 10px;
    background: white;
}

/* Delivery Banner */
.delivery-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--accent-light);
    border-bottom: 1px solid #C6F0E2;
}

.delivery-banner svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.delivery-banner span {
    font-size: 13px;
    color: var(--accent);
}

.delivery-banner strong {
    font-weight: 700;
}

/* Section */
.section {
    padding: 20px 16px;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.see-all-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    transition: background 0.2s;
}

.see-all-btn:hover {
    background: var(--primary-light);
}

/* Category Grid */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    transition: transform 0.2s;
}

.category-card:active {
    transform: scale(0.95);
}

.category-image {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    margin-bottom: 8px;
    transition: border-color 0.2s;
}

.category-card:hover .category-image {
    border-color: var(--primary);
}

.category-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Products Scroll */
.products-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.products-scroll::-webkit-scrollbar {
    display: none;
}

/* Product Card */
.product-card {
    flex-shrink: 0;
    width: 160px;
    background: var(--background);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    scroll-snap-align: start;
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card.out-of-stock {
    opacity: 0.6;
    pointer-events: none;
}

.product-card.out-of-stock .product-image-wrapper::after {
    content: 'Out of Stock';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
}

.product-image-wrapper {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
}

.product-badge.bestseller {
    background: #FFB800;
    color: var(--text-primary);
}

.product-badge.new {
    background: var(--accent);
}

.product-info {
    padding: 12px;
}

.product-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 34px;
}

.product-weight {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.product-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.product-price {
    display: flex;
    flex-direction: column;
}

.current-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.original-price {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.discount-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
}

.add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--primary);
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.add-btn:hover {
    background: var(--primary-dark);
}

.add-btn svg {
    width: 14px;
    height: 14px;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--primary);
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    font-weight: 600;
    transition: background 0.2s;
}

.qty-btn:hover {
    background: rgba(217, 35, 46, 0.15);
}

.qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* Offers Banner */
.offers-banner {
    margin: 0 16px 20px;
    padding: 16px;
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE5E7 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid #FFC7CB;
}

.offers-banner:hover {
    transform: scale(1.01);
}

.offer-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 3px 8px;
    border-radius: var(--radius-full);
    margin-bottom: 6px;
    display: inline-block;
}

.offer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.offer-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.offer-code {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.offer-image svg {
    width: 48px;
    height: 48px;
    color: #FFB800;
}

/* Why Us Section */
.why-us-section {
    padding: 24px 16px;
    background: var(--surface);
}

.why-us-section .section-title {
    text-align: center;
    margin-bottom: 20px;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.why-us-card {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
}

.why-us-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
}

.why-us-icon svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

.why-us-card h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.why-us-card p {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Categories Page */
.page-header {
    padding: 16px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
}

.page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.categories-list {
    padding: 16px;
}

.category-item {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.category-header:hover {
    background: var(--surface);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.category-info {
    flex: 1;
}

.category-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.category-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.category-expand {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
    transition: transform 0.3s;
}

.category-expand svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.category-item.expanded .category-expand {
    transform: rotate(180deg);
}

.subcategories {
    display: none;
    padding: 0 16px 16px;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.category-item.expanded .subcategories {
    display: block;
}

.subcategory-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 16px;
}

.subcategory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    padding: 12px 8px;
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.subcategory-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.subcategory-image {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
}

.subcategory-name {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

/* Products Page */
.category-hero {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.category-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.category-hero-title {
    font-size: 24px;
    font-weight: 800;
}

.category-hero-subtitle {
    font-size: 14px;
    opacity: 0.9;
}

.products-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.filter-count {
    font-size: 13px;
    color: var(--text-secondary);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: var(--radius-md);
    background: white;
    border: 1px solid var(--border);
}

.filter-btn svg {
    width: 16px;
    height: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 16px;
}

.products-grid .product-card {
    width: 100%;
}

/* Product Detail Page */
.product-detail {
    padding-bottom: 100px;
}

.product-detail-images {
    position: relative;
    height: 300px;
    background: var(--surface);
}

.product-detail-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
}

.product-detail-info {
    padding: 20px 16px;
}

.product-detail-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.product-detail-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.product-detail-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.meta-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.product-detail-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-current-price {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
}

.detail-original-price {
    font-size: 18px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.detail-discount {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    background: var(--accent-light);
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.delivery-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px;
    background: var(--accent-light);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}

.delivery-info svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.delivery-info span {
    font-size: 14px;
    color: var(--accent);
    font-weight: 600;
}

.product-highlights {
    margin-bottom: 20px;
}

.product-highlights h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.highlight-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.highlight-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent);
    flex-shrink: 0;
}

.product-detail-actions {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 0;
    right: 0;
    padding: 16px;
    background: white;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.detail-add-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.detail-add-btn:hover {
    background: var(--primary-dark);
}

.detail-qty-control {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    border: 2px solid var(--primary);
    padding: 4px;
}

.detail-qty-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.detail-qty-btn:hover {
    background: rgba(217, 35, 46, 0.15);
}

.detail-qty-value {
    min-width: 32px;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
}

/* Cart Page */
.cart-content {
    padding: 16px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.cart-empty svg {
    width: 80px;
    height: 80px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cart-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.cart-empty p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.cart-delivery-slot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.slot-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.slot-info svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.slot-info span {
    font-size: 14px;
    color: var(--text-primary);
}

.slot-info strong {
    font-weight: 600;
}

.change-slot-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.change-slot-btn svg {
    width: 14px;
    height: 14px;
}

.cart-items {
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.cart-item-weight {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cart-item-price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-item-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-current {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.cart-item-original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
}

.cart-qty-control {
    display: flex;
    align-items: center;
    gap: 2px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary);
}

.cart-qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 16px;
    font-weight: 600;
}

.cart-qty-value {
    min-width: 24px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* Cart Offers Section */
.cart-offers {
    margin-bottom: 16px;
}

.cart-offers h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.apply-coupon-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
}

.apply-coupon-btn .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.apply-coupon-btn svg {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.apply-coupon-btn span {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.apply-coupon-btn .chevron {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.wallet-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
}

.wallet-option .left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.wallet-option svg {
    width: 20px;
    height: 20px;
    color: var(--text-secondary);
}

.wallet-option span {
    font-size: 14px;
    color: var(--text-primary);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle-switch.active {
    background: var(--accent);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: var(--shadow-sm);
}

.toggle-switch.active::after {
    transform: translateX(20px);
}

/* Bill Summary */
.bill-summary {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
}

.bill-summary h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.bill-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.bill-row .label {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.bill-row .label svg {
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.bill-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

.bill-row .value.strike {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 6px;
}

.bill-row .value.savings {
    color: var(--accent);
    font-weight: 600;
}

.bill-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    margin-top: 12px;
}

.bill-total .label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.bill-total .value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

/* Policies */
.cart-policies {
    margin-bottom: 100px;
}

.cart-policies h4 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.cart-policies ul {
    list-style: none;
}

.cart-policies li {
    position: relative;
    padding-left: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    line-height: 1.5;
}

.cart-policies li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

/* Cart Footer */
.cart-footer {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 12px 16px;
    max-width: 480px;
    margin: 0 auto;
}

.cart-address {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.cart-address svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.cart-address span {
    font-size: 12px;
    color: var(--text-secondary);
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.checkout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: var(--primary-dark);
}

/* Checkout Page */
.checkout-content {
    padding: 16px;
    padding-bottom: 120px;
}

.checkout-section {
    margin-bottom: 20px;
}

.checkout-section h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.delivery-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.delivery-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: white;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
}

.delivery-option.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.delivery-option .radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.delivery-option.selected .radio {
    border-color: var(--primary);
}

.delivery-option.selected .radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.delivery-option-info {
    flex: 1;
}

.delivery-option-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.delivery-option-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

.delivery-option-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.checkout-summary {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 16px;
}

.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.checkout-summary-row .label {
    color: var(--text-secondary);
}

.checkout-summary-row .value {
    color: var(--text-primary);
    font-weight: 500;
}

.checkout-summary-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
    margin-top: 10px;
}

.checkout-summary-total .label {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.checkout-summary-total .value {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
}

.checkout-footer {
    position: fixed;
    bottom: calc(var(--nav-height) + 20px);
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border);
    padding: 16px;
    max-width: 480px;
    margin: 0 auto;
}

.place-order-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary);
    color: white;
    font-size: 16px;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.place-order-btn:hover {
    background: var(--primary-dark);
}

/* Account Page */
.account-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
}

.account-avatar {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.account-avatar svg {
    width: 36px;
    height: 36px;
}

.account-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.account-phone {
    font-size: 14px;
    opacity: 0.9;
}

.account-menu {
    padding: 16px;
}

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 16px;
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 10px;
    transition: background 0.2s;
}

.account-menu-item:hover {
    background: var(--surface);
}

.account-menu-item svg {
    width: 22px;
    height: 22px;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.account-menu-item span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
}

.account-menu-item .wallet-balance {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.account-menu-item .chevron {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.account-orders {
    padding: 16px;
}

.orders-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.order-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 12px;
}

.order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.order-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.order-date {
    font-size: 12px;
    color: var(--text-muted);
}

.order-status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.order-status.pending {
    background: #FEF3C7;
    color: #D97706;
}

.order-status.confirmed {
    background: #DBEAFE;
    color: #2563EB;
}

.order-status.delivered {
    background: var(--accent-light);
    color: var(--accent);
}

.order-status.cancelled {
    background: #FEE2E2;
    color: #DC2626;
}

.order-items {
    margin-bottom: 12px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.order-item-image {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.order-item-info {
    flex: 1;
}

.order-item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.order-item-qty {
    font-size: 12px;
    color: var(--text-muted);
}

.order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.order-total span:first-child {
    font-size: 14px;
    color: var(--text-secondary);
}

.order-total span:last-child {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Search Page */
.search-header {
    padding: 16px;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: var(--header-height);
    z-index: 50;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface);
    border-radius: var(--radius-full);
    padding: 12px 16px;
    border: 1px solid var(--border);
}

.search-input-wrapper svg {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    font-size: 15px;
    background: transparent;
}

.search-input-wrapper input::placeholder {
    color: var(--text-muted);
}

.clear-search {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--border);
}

.clear-search svg {
    width: 14px;
    height: 14px;
    color: var(--text-secondary);
}

.search-results {
    padding: 16px;
}

.recent-searches h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.recent-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.recent-item {
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.recent-item:hover {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.search-products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--background);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.nav-item svg {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s;
}

.nav-item.active svg,
.nav-item.active span {
    color: var(--primary);
}

.nav-item:hover svg,
.nav-item:hover span {
    color: var(--primary);
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: calc(var(--nav-height) + 16px);
    left: 16px;
    right: 16px;
    max-width: calc(480px - 32px);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--secondary);
    color: white;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 90;
    transition: transform 0.3s, opacity 0.3s;
}

.floating-cart:hover {
    transform: translateY(-2px);
}

.cart-icon-wrapper {
    position: relative;
}

.cart-icon-wrapper svg {
    width: 24px;
    height: 24px;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    background: var(--primary);
    border-radius: 50%;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-items {
    font-size: 13px;
    font-weight: 500;
}

.cart-total {
    font-size: 16px;
    font-weight: 700;
}

/* Modals */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: flex-end;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: white;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.close-modal {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--surface);
}

.close-modal svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.modal-body {
    padding: 20px;
}

.location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--radius-md);
    transition: background 0.2s;
}

.location-option:hover {
    background: var(--surface-dark);
}

.location-option svg {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.location-option span {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
}

.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 13px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Welcome Banner */
.welcome-banner {
    background: linear-gradient(135deg, #FFF5F5 0%, #FFE5E7 100%);
    padding: 16px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    text-align: center;
}

.welcome-tag {
    font-size: 10px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.welcome-banner h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.welcome-banner h4 .highlight {
    color: var(--primary);
}

.welcome-banner p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.promo-code {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: white;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

/* Phone Input */
.phone-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.country-code {
    padding: 12px 14px;
    background: var(--surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    border-right: 1px solid var(--border);
}

.phone-input input {
    flex: 1;
    padding: 12px 14px;
    font-size: 14px;
}

.terms-text {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 16px;
}

.terms-text a {
    color: var(--primary);
    text-decoration: underline;
}

/* OTP Inputs */
.otp-sent-text {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.otp-sent-text span {
    font-weight: 600;
    color: var(--text-primary);
}

.otp-inputs {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
}

.otp-input {
    width: 48px;
    height: 56px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    color: var(--text-primary);
    transition: border-color 0.2s;
}

.otp-input:focus {
    border-color: var(--primary);
}

.resend-text {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 20px;
}

.resend-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.resend-btn:disabled {
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--surface-dark);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    left: 16px;
    right: 16px;
    max-width: calc(480px - 32px);
    margin: 0 auto;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: var(--secondary);
    color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { transform: translateY(-20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.toast.success {
    background: var(--accent);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
}

.toast svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.toast span {
    font-size: 14px;
    font-weight: 500;
}

/* Admin Panel */
.admin-panel {
    position: fixed;
    inset: 0;
    background: var(--surface);
    z-index: 500;
    display: flex;
}

.admin-sidebar {
    width: 260px;
    background: var(--secondary);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.admin-logo {
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.admin-logo h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.admin-logo span {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
}

.admin-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.admin-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-nav-item.active {
    background: var(--primary);
    color: white;
}

.admin-nav-item svg {
    width: 20px;
    height: 20px;
}

.admin-close-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.admin-close-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.admin-close-btn svg {
    width: 20px;
    height: 20px;
}

.admin-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid var(--border);
}

.admin-page-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-date {
    font-size: 14px;
    color: var(--text-secondary);
}

.admin-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Admin Dashboard */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.stat-card .label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.stat-card .value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.stat-card .change {
    font-size: 12px;
    font-weight: 600;
}

.stat-card .change.positive {
    color: var(--accent);
}

.stat-card .change.negative {
    color: var(--error);
}

.admin-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.admin-card {
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    overflow: hidden;
}

.admin-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.admin-card-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-card-body {
    padding: 20px;
}

/* Admin Tables */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--surface);
}

.admin-table td {
    font-size: 14px;
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table .product-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-table .product-image {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.admin-table .status {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
}

.admin-table .status.in-stock {
    background: var(--accent-light);
    color: var(--accent);
}

.admin-table .status.low-stock {
    background: #FEF3C7;
    color: #D97706;
}

.admin-table .status.out-of-stock {
    background: #FEE2E2;
    color: #DC2626;
}

.admin-actions {
    display: flex;
    gap: 8px;
}

.admin-action-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--surface);
    transition: all 0.2s;
}

.admin-action-btn:hover {
    background: var(--surface-dark);
}

.admin-action-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

.admin-action-btn.edit:hover {
    background: var(--primary-light);
}

.admin-action-btn.edit:hover svg {
    color: var(--primary);
}

.admin-action-btn.delete:hover {
    background: #FEE2E2;
}

.admin-action-btn.delete:hover svg {
    color: var(--error);
}

/* Chart Placeholder */
.chart-placeholder {
    height: 250px;
    background: linear-gradient(135deg, var(--surface) 0%, var(--surface-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* Recent Orders List */
.recent-orders-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--surface);
    border-radius: var(--radius-md);
}

.recent-order-item .order-info {
    flex: 1;
}

.recent-order-item .order-id {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.recent-order-item .order-customer {
    font-size: 12px;
    color: var(--text-secondary);
}

.recent-order-item .order-amount {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Admin Form */
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.admin-form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.admin-form .btn-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.admin-form .btn {
    flex: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 510;
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .admin-form-row {
        grid-template-columns: 1fr;
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Print Styles */
@media print {
    .bottom-nav,
    .floating-cart,
    .header {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
    }
}
