/* X Mart - E-Commerce Styles */

:root {
    --primary: #0F766E;
    --primary-dark: #0D6460;
    --primary-light: #14B8A6;
    --secondary: #0E7490;
    --accent: #F59E0B;
    --accent-dark: #D97706;
    --surface: #F8FAFC;
    --surface-alt: #F1F5F9;
    --dark: #0F172A;
    --muted: #64748B;
    --border: #E2E8F0;
    --white: #FFFFFF;
    --danger: #EF4444;
    --success: #10B981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius: 12px;
    --radius-lg: 16px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--surface);
    color: var(--dark);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 60px;
}

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
}

main { flex: 1; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 8px 16px;
}

@media (min-width: 640px) {
    .top-bar { font-size: 14px; }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--white);
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s;
}

.header.scrolled {
    box-shadow: var(--shadow-lg);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

@media (min-width: 640px) {
    .header-inner { height: 64px; }
}

.menu-toggle {
    background: none;
    border: none;
    padding: 8px;
    margin-left: -8px;
    cursor: pointer;
    color: var(--dark);
}

@media (min-width: 1024px) {
    .menu-toggle { display: none; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--primary);
}

.logo-icon { font-size: 28px; }

@media (min-width: 640px) {
    .logo { font-size: 24px; }
    .logo-icon { font-size: 32px; }
}

/* Desktop Nav */
.nav-desktop {
    display: none;
    gap: 4px;
}

@media (min-width: 1024px) {
    .nav-desktop { display: flex; }
}

.nav-desktop a {
    padding: 8px 12px;
    text-decoration: none;
    color: var(--dark);
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-desktop a:hover,
.nav-desktop a.active {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.05);
}

/* Mobile Nav */
.nav-mobile {
    display: none;
    flex-direction: column;
    border-top: 1px solid var(--border);
    background: var(--white);
    padding: 8px 0;
}

.nav-mobile.open { display: flex; }

@media (min-width: 1024px) {
    .nav-mobile { display: none !important; }
}

.nav-mobile a {
    padding: 12px 24px;
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: all 0.2s;
}

.nav-mobile a:hover,
.nav-mobile a.active {
    color: var(--primary);
    background: rgba(15, 118, 110, 0.05);
}

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

.header-icon {
    position: relative;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s;
}

.header-icon:hover { color: var(--primary); }

.search-icon { display: none; }

@media (min-width: 640px) {
    .search-icon { display: block; }
}

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

/* Cart Drawer */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 100%;
    max-width: 400px;
    background: var(--white);
    z-index: 70;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-drawer.open { transform: translateX(0); }

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

.cart-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.cart-header span {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

.cart-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--muted);
    border-radius: 50%;
    transition: background 0.2s;
}

.cart-close:hover { background: var(--surface-alt); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    color: var(--muted);
}

.cart-empty span { font-size: 48px; margin-bottom: 12px; }
.cart-empty p { margin-bottom: 16px; }

.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--surface-alt);
    border-radius: var(--radius);
    margin-bottom: 12px;
}

.cart-item img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.cart-item-info { flex: 1; min-width: 0; }

.cart-item-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .variant {
    font-size: 12px;
    color: var(--muted);
}

.cart-item-info .price {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-controls button {
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.qty-controls button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.qty-controls span {
    font-size: 14px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
}

.remove-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--muted);
    transition: color 0.2s;
}

.remove-btn:hover { color: var(--danger); }

.item-total {
    font-size: 14px;
    font-weight: 700;
}

.cart-footer {
    border-top: 1px solid var(--border);
    padding: 16px;
    background: var(--surface-alt);
}

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

.cart-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
}

.cart-row span:first-child { color: var(--muted); }

.cart-row .free { color: var(--success); font-weight: 600; }

.cart-total {
    border-top: 1px solid var(--border);
    padding-top: 8px;
    font-size: 16px;
    font-weight: 700;
}

.cart-total span:last-child { color: var(--primary); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

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

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--dark);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-block { width: 100%; }

.btn-lg { padding: 14px 28px; font-size: 16px; }

/* Hero Section */
.hero {
    position: relative;
    height: 55vh;
    min-height: 400px;
    overflow: hidden;
}

@media (min-width: 640px) { .hero { height: 60vh; } }
@media (min-width: 1024px) { .hero { height: 70vh; } }

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.hero-text { max-width: 600px; }

.hero-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 12px;
    white-space: pre-line;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (min-width: 640px) { .hero-title { font-size: 40px; } }
@media (min-width: 1024px) { .hero-title { font-size: 52px; } }

.hero-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    max-width: 400px;
}

@media (min-width: 640px) { .hero-subtitle { font-size: 18px; } }

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.hero-dot.active {
    width: 32px;
    background: white;
}

/* Trust Badges */
.trust-badges {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    text-align: center;
}

@media (min-width: 640px) {
    .badges-grid { grid-template-columns: repeat(4, 1fr); }
}

.badge-item span { font-size: 28px; display: block; margin-bottom: 4px; }
.badge-title { font-size: 13px; font-weight: 600; color: var(--dark); }
.badge-desc { font-size: 11px; color: var(--muted); }

/* Section Headers */
.section {
    padding: 40px 0;
}

@media (min-width: 640px) { .section { padding: 56px 0; } }

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 8px;
}

@media (min-width: 640px) { .section-title { font-size: 32px; } }

.section-subtitle {
    font-size: 14px;
    color: var(--muted);
}

@media (min-width: 640px) { .section-subtitle { font-size: 16px; } }

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) { .categories-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .categories-grid { grid-template-columns: repeat(5, 1fr); } }

.category-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.category-card:hover img { transform: scale(1.1); }

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
}

.category-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    color: white;
}

.category-info h3 { font-size: 14px; font-weight: 700; }
.category-info p { font-size: 11px; opacity: 0.7; margin-top: 2px; }

@media (min-width: 640px) {
    .category-info h3 { font-size: 16px; }
    .category-info p { font-size: 12px; }
}

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

@media (min-width: 640px) { 
    .products-grid { 
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    } 
}

@media (min-width: 1024px) { 
    .products-grid { grid-template-columns: repeat(4, 1fr); } 
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
}

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

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--surface-alt);
}

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

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

.product-badge {
    position: absolute;
    top: 8px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 20px;
}

.badge-sale {
    left: 8px;
    background: var(--danger);
    color: white;
}

.badge-featured {
    right: 8px;
    background: var(--accent);
    color: white;
}

.product-info {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

@media (min-width: 640px) { .product-info { padding: 16px; } }

.product-info h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-info h3 a {
    color: inherit;
    text-decoration: none;
}

.product-info h3 a:hover { color: var(--primary); }

@media (min-width: 640px) { .product-info h3 { font-size: 15px; } }

.product-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}

.stars { color: var(--accent); font-size: 12px; }
.rating-count { font-size: 11px; color: var(--muted); }

.product-price {
    margin-top: auto;
    margin-bottom: 12px;
}

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

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

.price-unit {
    font-size: 12px;
    color: var(--muted);
    font-weight: 400;
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.add-to-cart:hover { background: var(--primary-dark); }
.add-to-cart:active { transform: scale(0.98); }

/* How It Works */
.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }

.step-card {
    text-align: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    background: rgba(15, 118, 110, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.step-number {
    display: inline-flex;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.step-card p { font-size: 14px; color: var(--muted); }

/* CTA Section */
.cta-section {
    background: var(--primary);
    padding: 48px 0;
    text-align: center;
}

@media (min-width: 640px) { .cta-section { padding: 64px 0; } }

.cta-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: white;
    margin-bottom: 8px;
}

@media (min-width: 640px) { .cta-section h2 { font-size: 32px; } }

.cta-section p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

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

.cta-buttons .btn-ghost {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
    background: var(--dark);
    color: #CBD5E1;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 48px 0;
}

@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-brand {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-brand span { margin-right: 8px; }

.footer-desc {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-links a {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.social-links a:hover { background: var(--primary); }

.footer-col h3 {
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: 8px; }

.footer-col a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--primary-light); }

.contact-list li {
    display: flex;
    gap: 8px;
    font-size: 13px;
}

.footer-bottom {
    border-top: 1px solid #1E293B;
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #64748B;
}

@media (min-width: 640px) {
    .footer-bottom-inner { flex-direction: row; justify-content: space-between; }
}

.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #64748B; text-decoration: none; }
.footer-links a:hover { color: #94A3B8; }

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    z-index: 50;
    display: flex;
    justify-content: space-around;
    height: 56px;
    padding-bottom: env(safe-area-inset-bottom);
}

@media (min-width: 1024px) { .mobile-nav { display: none; } }

.mobile-nav a,
.mobile-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}

.mobile-nav a.active,
.mobile-nav button.active { color: var(--primary); }

.mobile-nav span:first-child { font-size: 18px; }

.mobile-cart-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 20px);
    background: var(--accent);
    color: white;
    font-size: 9px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Shop Page */
.shop-header {
    padding: 24px 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .current { color: var(--dark); font-weight: 500; }

.page-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

@media (min-width: 640px) { .page-title { font-size: 32px; } }

.shop-filters {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

@media (min-width: 640px) { .shop-filters { flex-direction: row; } }

.search-box {
    position: relative;
    flex: 1;
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

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

.sort-select {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--white);
    outline: none;
    min-width: 160px;
}

.category-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.category-pill {
    flex-shrink: 0;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: all 0.2s;
}

.category-pill:hover { border-color: var(--primary); color: var(--primary); }
.category-pill.active { background: var(--primary); color: white; border-color: var(--primary); }

.results-count {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Product Detail Page */
.product-detail {
    padding: 24px 0;
}

.product-gallery {
    margin-bottom: 24px;
}

@media (min-width: 1024px) {
    .product-detail-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
    }
    .product-gallery { margin-bottom: 0; }
}

.main-image {
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--surface-alt);
    margin-bottom: 12px;
}

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

.thumbnail-list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
}

.thumbnail {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.2s;
}

.thumbnail.active { border-color: var(--primary); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.product-detail-info { animation: fadeIn 0.5s; }

.product-category {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
    text-decoration: none;
}

.product-category:hover { text-decoration: underline; }

.product-detail-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    margin: 8px 0;
}

@media (min-width: 640px) { .product-detail-title { font-size: 32px; } }

.product-detail-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

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

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

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

.detail-unit {
    font-size: 14px;
    color: var(--muted);
}

.save-badge {
    display: inline-block;
    background: #FEF2F2;
    color: var(--danger);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
}

.product-description {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.variations {
    margin-bottom: 24px;
}

.variations-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

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

.variation-btn {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.variation-btn:hover { border-color: var(--primary); }
.variation-btn.active {
    border-color: var(--primary);
    background: rgba(15, 118, 110, 0.05);
    color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.add-to-cart-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.quantity-selector {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.quantity-selector button {
    width: 40px;
    height: 44px;
    border: none;
    background: var(--white);
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
}

.quantity-selector button:hover { background: var(--surface-alt); }

.quantity-selector span {
    min-width: 48px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.add-to-cart-lg {
    flex: 1;
    padding: 12px 24px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.3);
}

.add-to-cart-lg:hover { background: var(--primary-dark); }
.add-to-cart-lg:active { transform: scale(0.98); }

.delivery-info {
    background: #ECFDF5;
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.delivery-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #065F46;
    margin-bottom: 8px;
}

.delivery-info-row:last-child { margin-bottom: 0; }
.delivery-info-row strong { font-weight: 600; }

.product-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.product-tag {
    font-size: 12px;
    background: var(--surface-alt);
    color: var(--muted);
    padding: 4px 10px;
    border-radius: 20px;
}

.product-detail-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-top: 32px;
    box-shadow: var(--shadow);
}

.product-detail-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.reviews-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.review-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.review-item:last-child { border-bottom: none; margin-bottom: 0; }

.review-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.review-title { font-size: 14px; font-weight: 600; }
.review-comment { font-size: 14px; color: var(--muted); line-height: 1.6; }

.review-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--muted);
}

.verified-badge { color: var(--success); }

/* Checkout Page */
.checkout-page { padding: 24px 0; }

@media (min-width: 1024px) {
    .checkout-grid {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 32px;
        align-items: start;
    }
}

.checkout-form { }

.checkout-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.checkout-section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-badge {
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .form-row.two-col { grid-template-columns: 1fr 1fr; }
}

.form-group { }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    font-family: inherit;
}

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

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

.payment-options { display: flex; flex-direction: column; gap: 8px; }

.payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
}

.payment-option:hover { border-color: var(--primary); }
.payment-option.selected {
    border-color: var(--primary);
    background: rgba(15, 118, 110, 0.05);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
}

.payment-option input { accent-color: var(--primary); }

.payment-label { font-size: 14px; font-weight: 500; }
.payment-desc { font-size: 12px; color: var(--muted); margin-left: 4px; }

.order-summary {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 80px;
}

.order-summary h2 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

.order-items {
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.order-item {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.order-item img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.order-item-info { flex: 1; min-width: 0; }

.order-item-name {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.order-item-variant { font-size: 12px; color: var(--muted); }
.order-item-qty { font-size: 12px; color: var(--muted); }
.order-item-total { font-size: 14px; font-weight: 600; }

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

.summary-row span:first-child { color: var(--muted); }
.summary-row .free { color: var(--success); font-weight: 600; }

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 700;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: 8px;
}

.summary-total span:last-child { color: var(--primary); }

.checkout-submit {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    transition: all 0.2s;
}

.checkout-submit:hover { background: var(--primary-dark); }
.checkout-submit:disabled { opacity: 0.6; cursor: not-allowed; }

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

/* Success Page */
.success-page {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px 16px;
    text-align: center;
}

.success-icon { font-size: 64px; margin-bottom: 16px; }
.success-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.success-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 24px; }

.success-details {
    background: #ECFDF5;
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: left;
    margin-bottom: 32px;
}

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

.success-row:last-child { margin-bottom: 0; }
.success-row span:first-child { color: var(--muted); }
.success-row span:last-child { font-weight: 600; }
.success-row .order-number { color: var(--primary); font-weight: 700; }

.success-buttons { display: flex; flex-direction: column; gap: 12px; }

/* CMS Page */
.cms-page { padding: 32px 0; }

.cms-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
}

.cms-content h2 { font-size: 24px; margin-bottom: 16px; color: var(--dark); }
.cms-content h3 { font-size: 18px; margin: 24px 0 12px; color: var(--dark); }
.cms-content p { margin-bottom: 16px; color: var(--muted); line-height: 1.7; }
.cms-content ul { margin: 0 0 16px 24px; color: var(--muted); }
.cms-content li { margin-bottom: 8px; }

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 16px;
    color: var(--muted);
}

.empty-state span { font-size: 64px; display: block; margin-bottom: 16px; }
.empty-state h2 { font-size: 20px; font-weight: 600; color: var(--dark); margin-bottom: 8px; }
.empty-state p { font-size: 14px; margin-bottom: 24px; }

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

.animate-fadeIn { animation: fadeIn 0.5s ease-out; }

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200px 0; }
    100% { background-position: calc(200px + 100%) 0; }
}

/* Utilities */
.text-center { text-align: center; }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }

/* Hide scrollbar but allow scroll */
.category-pills::-webkit-scrollbar { display: none; }
.category-pills { -ms-overflow-style: none; scrollbar-width: none; }
