/* ============================================
   ORAVIO — PREMIUM DESIGN SYSTEM
   ============================================ */

:root {
    /* Colors */
    --primary: #1a1f3d;
    --primary-light: #2d3561;
    --primary-dark: #0f1229;
    --accent: #d4a853;
    --accent-light: #e8c878;
    --accent-dark: #b8903a;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --info: #3b82f6;
    --info-light: #dbeafe;

    --bg: #ffffff;
    --bg-secondary: #f8f9fc;
    --bg-tertiary: #f1f3f8;
    --surface: #ffffff;
    --border: #e5e7eb;
    --border-light: #f3f4f6;

    --text: #1a1f3d;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Borders & Shadows */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --shadow-sm: 0 1px 2px rgba(26,31,61,0.06);
    --shadow: 0 2px 8px rgba(26,31,61,0.08);
    --shadow-md: 0 4px 16px rgba(26,31,61,0.1);
    --shadow-lg: 0 8px 32px rgba(26,31,61,0.12);
    --shadow-xl: 0 16px 48px rgba(26,31,61,0.16);

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration: 250ms;
    --duration-slow: 400ms;
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

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

input, select, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   LAYOUT
   ============================================ */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow var(--duration) var(--ease);
}

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

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

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

.logo-link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: var(--bg-secondary);
    color: var(--primary);
    transition: all var(--duration) var(--ease);
}

.header-icon:hover {
    background: var(--primary);
    color: var(--text-inverse);
    transform: scale(1.05);
}

/* ============================================
   FOOTER
   ============================================ */

.site-footer {
    background: linear-gradient(180deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--text-inverse);
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
}

.footer-inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.footer-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    letter-spacing: 0.02em;
}

.footer-tagline {
    font-size: var(--text-sm);
    opacity: 0.7;
    margin-bottom: var(--space-6);
}

.footer-divider {
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 0 auto var(--space-6);
    border-radius: var(--radius-full);
    opacity: 0.6;
}

.footer-info {
    margin-bottom: var(--space-5);
    opacity: 0.8;
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-info p {
    margin-bottom: 0;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: var(--text-inverse);
    transition: all var(--duration) var(--ease);
    border: 1px solid rgba(255,255,255,0.08);
}

.footer-social a:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(212,168,83,0.3);
}

.footer-copy {
    font-size: var(--text-xs);
    opacity: 0.4;
    padding-top: var(--space-5);
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================
   HOME PAGE
   ============================================ */

.home-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    padding: var(--space-16) 0;
    text-align: center;
}

.home-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-3);
}

.home-subtitle {
    font-size: var(--text-lg);
    opacity: 0.8;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .home-hero {
        padding: var(--space-16) 0 var(--space-12);
    }
    .home-title {
        font-size: 3.5rem;
    }
    .home-subtitle {
        font-size: var(--text-xl);
        max-width: 600px;
    }
}

.products-section {
    padding: var(--space-10) 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

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

.product-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration) var(--ease);
    display: block;
}

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

.product-card-image {
    position: relative;
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-3);
    transition: transform var(--duration-slow) var(--ease);
}

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

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

.product-card-badge {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    background: var(--danger);
    color: white;
    font-size: var(--text-xs);
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    z-index: 2;
}

.product-card-info {
    padding: var(--space-3) var(--space-4) var(--space-4);
}

.product-card-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-1);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-price {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.price-current {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
}

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

.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-4);
    color: var(--text-muted);
}

.empty-state svg {
    margin-bottom: var(--space-4);
    opacity: 0.3;
}

.empty-state h2 {
    color: var(--text);
    margin-bottom: var(--space-2);
}

/* ============================================
   PRODUCT PAGE
   ============================================ */

.product-hero {
    padding: var(--space-6) 0 var(--space-4);
}

.product-hero .container {
    max-width: 1100px;
}

@media (min-width: 768px) {
    .product-hero .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: var(--space-8);
        align-items: start;
    }
}

.product-gallery {
    margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
    .product-gallery {
        margin-bottom: 0;
        position: sticky;
        top: 80px;
    }
}

.gallery-main {
    background: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: var(--space-4);
}

.gallery-placeholder {
    color: var(--text-muted);
    opacity: 0.3;
}

.gallery-main {
    position: relative;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    opacity: 0.7;
    transition: opacity 0.2s;
    z-index: 2;
}

.gallery-nav:hover {
    opacity: 1;
}

.gallery-prev {
    left: 8px;
}

.gallery-next {
    right: 8px;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    padding: 4px 0;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--bg-tertiary);
    opacity: 0.6;
    transition: opacity 0.2s, border-color 0.2s;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: var(--primary);
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 767px) {
    .gallery-thumb {
        width: 52px;
        height: 52px;
    }
    .gallery-nav {
        width: 30px;
        height: 30px;
    }
}

/* Admin: current images grid */
.current-images-grid {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.current-img-item {
    position: relative;
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.current-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-img-item .img-badge-main {
    position: absolute;
    top: 4px;
    left: 4px;
    background: var(--primary);
    color: white;
    font-size: 9px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

.img-remove-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(220,38,38,0.9);
    color: white;
    border: none;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-remove-btn:hover {
    background: #dc2626;
}

.image-preview-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.image-preview-grid img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.product-info {
    text-align: center;
}

@media (min-width: 768px) {
    .product-info {
        text-align: left;
    }
    .product-pricing {
        justify-content: flex-start;
    }
    .product-trust-badges {
        justify-content: flex-start;
    }
    .stock-warning {
        display: inline-flex;
    }
}

.product-title {
    font-size: var(--text-2xl);
    font-weight: 800;
    margin-bottom: var(--space-3);
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .product-title { font-size: var(--text-3xl); }
}

.product-pricing {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    flex-wrap: wrap;
}

.product-price-current {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--primary);
}

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

.product-discount-badge {
    background: var(--danger);
    color: white;
    font-size: var(--text-sm);
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
}

.stock-warning {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    background: var(--warning-light);
    color: var(--warning);
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.product-trust-badges {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
}

.trust-badge svg {
    color: var(--accent);
    flex-shrink: 0;
}

/* Sticky Order Button */
.sticky-order-btn {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    padding: var(--space-3) var(--space-4);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -4px 16px rgba(26,31,61,0.08);
}

@media (min-width: 768px) {
    .sticky-order-btn {
        left: auto;
        right: var(--space-8);
        bottom: var(--space-6);
        width: auto;
        max-width: 380px;
        border-radius: var(--radius-lg);
        border: 1px solid var(--border-light);
        box-shadow: 0 8px 32px rgba(26,31,61,0.15);
    }
}

.btn-order {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    box-shadow: 0 4px 16px rgba(212,168,83,0.3);
    letter-spacing: 0.01em;
}

.btn-order:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(212,168,83,0.4);
}

.btn-order:active {
    transform: translateY(0);
}

/* Features Section */
.product-features-section {
    padding: var(--space-10) 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: var(--text-2xl);
    text-align: center;
    margin-bottom: var(--space-8);
    color: var(--primary);
}

.features-grid {
    display: grid;
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.feature-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: var(--radius-sm);
}

.feature-item p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Description */
.product-description-section {
    padding: var(--space-10) 0;
}

.description-content {
    max-width: 900px;
    margin: 0 auto;
    color: var(--text-secondary);
    line-height: 1.8;
}

.description-content p {
    margin-bottom: var(--space-4);
}

/* Why Choose */
.why-choose-section {
    padding: var(--space-10) 0;
    background: var(--bg-secondary);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto;
}

.why-card {
    text-align: center;
    padding: var(--space-6);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.why-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent) 100%);
    color: var(--primary-dark);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.why-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.why-card p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Reviews */
.reviews-section {
    padding: var(--space-10) 0;
}

.reviews-list {
    display: grid;
    gap: var(--space-4);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .reviews-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.review-card {
    padding: var(--space-5);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: var(--text-inverse);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    text-transform: uppercase;
}

.review-name {
    font-size: var(--text-sm);
    font-weight: 600;
}

.review-stars {
    display: flex;
    gap: 1px;
    color: var(--accent);
}

.review-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact */
.contact-section {
    padding: var(--space-10) 0;
    background: var(--bg-secondary);
}

.contact-card {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-info {
    margin: var(--space-6) 0;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    font-size: var(--text-sm);
}

.contact-item svg {
    color: var(--accent);
    flex-shrink: 0;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-weight: 600;
    font-size: var(--text-sm);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
    text-decoration: none;
    line-height: 1.4;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
}
.btn-primary:hover { background: var(--primary-light); }

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border-light); }

.btn-whatsapp {
    background: #25d366;
    color: white;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
}
.btn-whatsapp:hover { background: #1da851; }

.btn-messenger {
    background: #0084ff;
    color: white;
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
}
.btn-messenger:hover { background: #006fdb; }

.btn-full { width: 100%; }

.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #dc2626; }

.btn-warning { background: var(--warning); color: var(--primary-dark); }
.btn-warning:hover { background: #d97706; }

.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #16a34a; }

/* ============================================
   CHECKOUT DRAWER
   ============================================ */

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration) var(--ease);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.checkout-drawer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 201;
    background: var(--surface);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 92vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform var(--duration-slow) var(--ease-out);
    box-shadow: var(--shadow-xl);
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .checkout-drawer {
        max-width: 560px;
        left: 50%;
        right: auto;
        bottom: 50%;
        transform: translate(-50%, 50%) scale(0.95);
        border-radius: var(--radius-xl);
        max-height: 85vh;
        opacity: 0;
        transition: all var(--duration-slow) var(--ease-out);
    }
}

.checkout-drawer.active {
    transform: translateY(0);
}

@media (min-width: 768px) {
    .checkout-drawer.active {
        transform: translate(-50%, 50%) scale(1);
        opacity: 1;
    }
}

.drawer-handle {
    display: flex;
    justify-content: center;
    padding: var(--space-3) 0 var(--space-1);
    cursor: grab;
}

.drawer-handle span {
    width: 40px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-full);
}

.drawer-content {
    padding: 0 var(--space-5) var(--space-8);
}

@media (min-width: 768px) {
    .drawer-content {
        padding: 0 var(--space-8) var(--space-8);
    }
}

.drawer-title {
    font-size: var(--text-xl);
    text-align: center;
    margin-bottom: var(--space-5);
    color: var(--primary);
}

.order-summary-mini {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius);
    margin-bottom: var(--space-4);
}

.summary-name {
    font-weight: 600;
    font-size: var(--text-sm);
}

.quantity-control {
    margin-bottom: var(--space-4);
}

.quantity-control label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.quantity-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    width: fit-content;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.qty-btn {
    width: 44px;
    height: 44px;
    border: none;
    background: var(--bg-secondary);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    color: var(--text);
    transition: background var(--duration-fast) var(--ease);
}

.qty-btn:hover { background: var(--border-light); }

.quantity-stepper input {
    width: 56px;
    height: 44px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
    font-weight: 600;
    font-size: var(--text-base);
    background: var(--surface);
}

/* Form fields */
.form-group {
    margin-bottom: var(--space-4);
}

.form-group label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: var(--space-2);
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text);
    transition: all var(--duration-fast) var(--ease);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1);
}

.field-error {
    display: block;
    font-size: var(--text-xs);
    color: var(--danger);
    margin-top: var(--space-1);
    min-height: 0;
}

.field-hint {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* Order Summary */
.order-summary-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.summary-row + .summary-row {
    border-top: 1px solid var(--border-light);
}

.summary-total {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text);
}

.btn-submit {
    margin-top: var(--space-2);
}

/* Confirm Step */
.confirm-step {
    text-align: center;
}

.confirm-card {
    padding: var(--space-6) var(--space-4);
}

.confirm-card h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--primary);
}

.confirm-details {
    text-align: left;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.8;
}

.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

/* Success State */
.success-state {
    text-align: center;
    padding: var(--space-8) var(--space-4);
}

.success-animation {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
}

.success-checkmark svg {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke: var(--success);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark-circle 0.6s ease-in-out forwards;
}

.checkmark-check {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-check 0.3s 0.4s ease-in-out forwards;
}

@keyframes checkmark-circle {
    to { stroke-dashoffset: 0; }
}

@keyframes checkmark-check {
    to { stroke-dashoffset: 0; }
}

.confetti-container {
    position: absolute;
    inset: -40px;
    pointer-events: none;
    overflow: visible;
}

.confetti-piece {
    position: absolute;
    border-radius: 2px;
    opacity: 0;
    animation: confetti-fall 1.4s ease-out forwards;
}

@keyframes confetti-fall {
    0% { opacity: 1; transform: translateY(0) rotate(0deg) scale(1); }
    70% { opacity: 1; }
    100% { opacity: 0; transform: translateY(80px) rotate(720deg) scale(0.2); }
}

.success-title {
    font-size: var(--text-xl);
    color: var(--success);
    margin-bottom: var(--space-2);
}

.success-message {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-bottom: var(--space-4);
}

.success-order-id {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Success Page */
.success-page {
    padding: var(--space-10) 0;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.success-page-card {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-8);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
}

.success-animation-page {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-5);
}

.success-page-title {
    font-size: var(--text-2xl);
    color: var(--success);
    margin-bottom: var(--space-2);
}

.success-page-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
}

.order-details-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-6);
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
}

.detail-row + .detail-row {
    border-top: 1px solid var(--border-light);
}

.detail-row span { color: var(--text-muted); }
.detail-row strong { color: var(--text); }

.success-note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

/* ============================================
   ANIMATIONS
   ============================================ */

.reveal-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   ADMIN PANEL
   ============================================ */

.admin-login-page {
    background: var(--primary-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.admin-login-container {
    width: 100%;
    max-width: 400px;
}

.admin-login-card {
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl);
}

.admin-login-logo {
    text-align: center;
    margin-bottom: var(--space-6);
}

.admin-login-logo img {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-3);
    border-radius: var(--radius);
    object-fit: contain;
}

.admin-login-logo h1 {
    font-size: var(--text-xl);
    color: var(--primary);
}

/* Admin Layout */
.admin-body {
    display: flex;
    min-height: 100vh;
    background: var(--bg-secondary);
}

.admin-sidebar {
    width: 240px;
    background: var(--primary-dark);
    color: var(--text-inverse);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    transition: transform var(--duration) var(--ease);
}

@media (max-width: 768px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-sidebar.open {
        transform: translateX(0);
    }
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-5);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-brand img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.sidebar-brand span {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: var(--space-3) 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    color: rgba(255,255,255,0.7);
    font-size: var(--text-sm);
    font-weight: 500;
    transition: all var(--duration-fast) var(--ease);
}

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

.nav-item.active {
    color: white;
    background: rgba(255,255,255,0.12);
    border-right: 3px solid var(--accent);
}

.nav-item svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.nav-item.active svg, .nav-item:hover svg {
    opacity: 1;
}

.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: var(--space-2) 0;
}

.nav-logout:hover {
    color: var(--danger);
}

/* Admin Main */
.admin-main {
    flex: 1;
    margin-left: 240px;
    min-height: 100vh;
}

@media (max-width: 768px) {
    .admin-main { margin-left: 0; }
}

.admin-header {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4) var(--space-6);
    background: var(--surface);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 40;
}

.admin-header h1 {
    font-size: var(--text-xl);
    font-weight: 700;
    flex: 1;
}

.admin-header-actions {
    display: flex;
    gap: var(--space-2);
}

.sidebar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    padding: var(--space-1);
}

@media (max-width: 768px) {
    .sidebar-toggle { display: block; }
}

.admin-content {
    padding: var(--space-6);
}

@media (max-width: 768px) {
    .admin-content { padding: var(--space-4); }
}

.admin-alerts {
    padding: var(--space-3) var(--space-6);
}

/* Alerts */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.alert-error { background: var(--danger-light); color: var(--danger); }
.alert-success { background: var(--success-light); color: #166534; }

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: var(--space-4);
}

.stat-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--border);
}

.stat-card.stat-pending { border-left-color: var(--info); }
.stat-card.stat-confirmed { border-left-color: var(--accent); }
.stat-card.stat-delivered { border-left-color: var(--success); }
.stat-card.stat-cancelled { border-left-color: var(--danger); }
.stat-card.stat-returned { border-left-color: #8b5cf6; }
.stat-card.stat-duplicate { border-left-color: var(--warning); }
.stat-card.stat-revenue { border-left-color: var(--accent); }
.stat-card.stat-profit { border-left-color: var(--success); }

.stat-value {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-1);
}

/* Date Filter */
.date-filter {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    background: var(--surface);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease);
    color: var(--text-secondary);
}

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

.filter-btn.active {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

.custom-range {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-left: var(--space-2);
}

.custom-range input {
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--text-sm);
}

.custom-range span {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Cards */
.card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

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

.card-header h2 {
    font-size: var(--text-base);
    font-weight: 600;
}

.card-body {
    padding: var(--space-5);
}

/* Tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}

.admin-table th {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    font-weight: 600;
    color: var(--text-muted);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.admin-table td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background: var(--bg-secondary);
}

.nowrap { white-space: nowrap; }

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

/* Order Status Colors */
.order-row.status-duplicate { border-left: 3px solid var(--warning); }
.order-row.status-incomplete { border-left: 3px solid var(--danger); }
.order-row.status-cancelled { border-left: 3px solid var(--danger); }
.order-row.status-returned { border-left: 3px solid #8b5cf6; }
.order-row.status-delivered { border-left: 3px solid var(--success); }
.order-row.status-pending { border-left: 3px solid var(--info); }
.order-row.status-confirmed { border-left: 3px solid var(--accent); }

.status-select {
    padding: var(--space-1) var(--space-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 500;
    cursor: pointer;
    background: var(--surface);
}

.status-select.status-delivered { color: var(--success); }
.status-select.status-cancelled, .status-select.status-incomplete { color: var(--danger); }
.status-select.status-returned { color: #8b5cf6; }
.status-select.status-duplicate { color: var(--warning); }
.status-select.status-pending { color: var(--info); }
.status-select.status-confirmed { color: var(--accent-dark); }

/* Copy Button */
.copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    margin-left: var(--space-1);
    transition: all var(--duration-fast) var(--ease);
    vertical-align: middle;
}

.copy-btn:hover { background: var(--primary); color: white; }
.copy-btn.copied { background: var(--success); color: white; }

/* Edit Button */
.edit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    margin-left: 2px;
    transition: all var(--duration-fast) var(--ease);
    vertical-align: middle;
    opacity: 0.5;
}

.edit-btn:hover { background: var(--bg-tertiary); color: var(--primary); opacity: 1; }

.delete-row-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--text-muted);
    margin-left: 4px;
    transition: all var(--duration-fast) var(--ease);
    vertical-align: middle;
    opacity: 0.4;
}

.delete-row-btn:hover { background: #fef2f2; color: #dc2626; opacity: 1; }

/* Inline Edit Input */
.inline-edit-input {
    width: 100%;
    min-width: 60px;
    max-width: 200px;
    padding: var(--space-1) var(--space-2);
    border: 1.5px solid var(--accent);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    outline: none;
    box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}

/* Notes Input */
.notes-input {
    padding: var(--space-1) var(--space-2);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    width: 120px;
    background: transparent;
    transition: all var(--duration-fast) var(--ease);
}

.notes-input:hover { border-color: var(--border); }
.notes-input:focus {
    border-color: var(--accent);
    background: var(--surface);
    outline: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
}

.badge-success { background: var(--success-light); color: #166534; }
.badge-warning { background: var(--warning-light); color: #92400e; }
.badge-danger { background: var(--danger-light); color: #991b1b; }
.badge-returned { background: #ede9fe; color: #5b21b6; }
.badge-secondary { background: var(--bg-tertiary); color: var(--text-muted); }

/* Thumb */
.table-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
}

.table-thumb-placeholder {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--text-muted);
}

/* Row highlights */
.row-low-stock { background: rgba(245,158,11,0.04); }
.row-out-of-stock { background: rgba(239,68,68,0.04); }

/* Form layouts */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--space-4);
}

.inline-form .form-row {
    align-items: end;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Filters card */
.orders-filters {
    padding: var(--space-4) var(--space-5);
}

.filters-form .form-row {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 480px) {
    .home-title { font-size: var(--text-3xl); }
    .home-hero { padding: var(--space-10) 0; }
    .product-trust-badges { gap: var(--space-2); }
    .trust-badge { font-size: var(--text-xs); padding: var(--space-1) var(--space-3); }
    .contact-buttons { flex-direction: column; }
    .contact-buttons .btn { width: 100%; }
    .drawer-content { padding: 0 var(--space-4) var(--space-6); }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
    .stat-card { padding: var(--space-3); }
    .stat-value { font-size: var(--text-xl); }

    .admin-header { padding: var(--space-3) var(--space-4); }
    .admin-content { padding: var(--space-3); }
}

/* Ensure product page has bottom padding for sticky button */
body:has(.sticky-order-btn) .site-footer { padding-bottom: 80px; }

/* Fallback for browsers without :has */
.product-page-footer-spacer { height: 80px; }

/* ============================================
   PROFESSIONAL EXTRAS
   ============================================ */

/* Image skeleton loading pulse */
.product-card-image,
.gallery-main {
    position: relative;
    background: linear-gradient(110deg, var(--bg-tertiary) 0%, #eef1f7 18%, var(--bg-tertiary) 33%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
}

.product-card-image img,
.gallery-main img,
.gallery-main .gallery-placeholder {
    position: relative;
    z-index: 1;
}

.product-card-image:has(img[complete]),
.gallery-main:has(img[complete]) {
    animation: none;
    background: var(--bg-tertiary);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth order button pulse on product page */
@keyframes btn-pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(212,168,83,0.3); }
    50% { box-shadow: 0 4px 24px rgba(212,168,83,0.5); }
}

.sticky-order-btn .btn-order {
    animation: btn-pulse 2.5s ease-in-out infinite;
}

.sticky-order-btn .btn-order:hover {
    animation: none;
}

/* Product card lift on tap (mobile) */
.product-card:active {
    transform: scale(0.97);
}

/* Nicer scrollbar for drawer */
.checkout-drawer::-webkit-scrollbar {
    width: 4px;
}

.checkout-drawer::-webkit-scrollbar-track {
    background: transparent;
}

.checkout-drawer::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: var(--radius-full);
}

/* Drawer close button (X) for desktop */
.drawer-close-btn {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--duration-fast) var(--ease);
    z-index: 10;
}

.drawer-close-btn:hover {
    background: var(--danger-light);
    color: var(--danger);
}

/* Selection color brand */
::selection {
    background: rgba(212,168,83,0.2);
    color: var(--primary);
}

/* Focus visible for accessibility */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* Order button disabled state */
.btn-order:disabled,
.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    animation: none;
    transform: none;
}

/* Admin table hover animation */
.admin-table tbody tr {
    transition: background var(--duration-fast) var(--ease);
}

/* Mobile admin improvements */
@media (max-width: 768px) {
    .orders-table { font-size: var(--text-xs); }
    .orders-table td,
    .orders-table th { padding: var(--space-2) var(--space-2); }
}

/* Print styles for order management */
@media print {
    .admin-sidebar, .admin-header, .sidebar-toggle { display: none !important; }
    .admin-main { margin-left: 0 !important; }
}

/* ============================================
   CONFIRM DELETE MODAL
   ============================================ */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9990;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.confirm-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    z-index: 9991;
    background: var(--bg-primary, #fff);
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 380px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}

.confirm-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.confirm-modal-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.confirm-modal-icon svg {
    color: #dc2626;
}

.confirm-modal h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary, #1a1f3d);
}

.confirm-modal p {
    font-size: 0.875rem;
    color: var(--text-secondary, #64748b);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 0.75rem;
}

.confirm-modal-actions .btn {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
}

.btn-cancel-modal {
    background: var(--bg-tertiary, #f1f5f9);
    color: var(--text-primary, #1a1f3d);
}

.btn-cancel-modal:hover {
    background: #e2e8f0;
}

.btn-delete-confirm {
    background: #dc2626;
    color: #fff;
}

.btn-delete-confirm:hover {
    background: #b91c1c;
}

/* ============================================
   TOAST NOTIFICATIONS
   ============================================ */

.toast-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toast {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #fff;
    background: #1a1f3d;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 320px;
}

.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-success { background: #059669; }
.toast-error { background: #dc2626; }

/* ============================================
   NAV BADGE (Pending order count)
   ============================================ */

.nav-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 6px;
    margin-left: auto;
    min-width: 18px;
    text-align: center;
    line-height: 1.4;
}

/* ============================================
   BULK ACTIONS BAR
   ============================================ */

.bulk-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.bulk-actions select {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 6px;
}

/* ============================================
   CARD HEADER (extra flex-wrap for responsive)
   ============================================ */

.card-header {
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ============================================
   STAGGERED PRODUCT CARD ANIMATION
   ============================================ */

.product-card.reveal-up {
    animation: fadeSlideUp 0.5s ease both;
}

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

/* ============================================
   ADMIN SIDEBAR HOVER POLISH
   ============================================ */

.nav-item:hover {
    transform: translateX(3px);
}

/* ============================================
   STAT CARD HOVER
   ============================================ */

.stat-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ============================================
   SELECT ALL CHECKBOX
   ============================================ */

.order-check,
#selectAll {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--accent);
}

/* ============================================
   CART BADGE (Header)
   ============================================ */

.header-cart {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger);
    color: white;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ============================================
   CART TOAST
   ============================================ */

.cart-toast-container {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.cart-toast {
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-toast-show {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   PRODUCT SEARCH (Home page)
   ============================================ */

.product-search-wrap {
    max-width: 400px;
    margin: 0 auto var(--space-6);
}

.product-search-box {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease);
}

.product-search-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212,168,83,0.15);
}

.product-search-box svg {
    color: var(--text-muted);
    flex-shrink: 0;
}

.product-search-box input {
    border: none;
    outline: none;
    background: transparent;
    width: 100%;
    font-size: var(--text-base);
    color: var(--text);
}

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

/* ============================================
   PRODUCT CARD BUTTONS (Home page)
   ============================================ */

.product-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-card-actions {
    display: flex;
    gap: 0.5rem;
    padding: 0 var(--space-3) var(--space-3);
}

.btn-card-order {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
    color: var(--primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius);
    text-decoration: none;
    text-align: center;
    transition: all var(--duration-fast) var(--ease);
}

.btn-card-order:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212,168,83,0.3);
}

.btn-card-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-card-cart {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.5rem;
    background: var(--bg-secondary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    text-align: center;
    transition: all var(--duration-fast) var(--ease);
}

.btn-card-cart:hover {
    background: var(--primary);
    color: var(--text-inverse);
    border-color: var(--primary);
}

/* ============================================
   ADD TO CART BUTTON (Product page)
   ============================================ */

.btn-add-to-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 480px;
    margin: 0.5rem auto 0;
    padding: var(--space-3) var(--space-4);
    background: var(--surface);
    color: var(--primary);
    font-size: var(--text-base);
    font-weight: 600;
    border: 2px solid var(--primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-add-to-cart:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

/* ============================================
   CART PAGE
   ============================================ */

.cart-section {
    padding: var(--space-8) 0 var(--space-16);
}

.cart-title {
    font-size: var(--text-2xl);
    text-align: center;
    margin-bottom: var(--space-6);
    color: var(--primary);
}

.cart-empty {
    text-align: center;
    padding: var(--space-12) 0;
    color: var(--text-muted);
}

.cart-empty h2 {
    margin-top: var(--space-4);
    color: var(--text);
}

.cart-empty p {
    margin-top: var(--space-2);
}

.cart-items {
    max-width: 700px;
    margin: 0 auto var(--space-6);
}

.cart-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-3);
}

.cart-item-img {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-tertiary);
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.cart-item-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

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

.cart-item-name {
    font-size: var(--text-sm);
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-price {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    width: fit-content;
}

.cart-item-qty .qty-btn {
    width: 28px;
    height: 28px;
    border: none;
    background: var(--bg-secondary);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-qty .qty-btn:hover {
    background: var(--primary);
    color: white;
}

.cart-item-qty span {
    width: 32px;
    text-align: center;
    font-size: var(--text-sm);
    font-weight: 600;
}

.cart-item-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
}

.cart-item-total {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--primary);
}

.cart-item-remove {
    border: none;
    background: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 4px;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast) var(--ease);
}

.cart-item-remove:hover {
    color: var(--danger);
    background: rgba(239,68,68,0.1);
}

/* Cart Summary */
.cart-summary {
    max-width: 700px;
    margin: 0 auto var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.cart-summary-total {
    border-top: 1px solid var(--border);
    margin-top: var(--space-2);
    padding-top: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--primary);
}

/* Cart Checkout Form */
.cart-checkout {
    max-width: 700px;
    margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-6) var(--space-5);
}

.cart-checkout-title {
    font-size: var(--text-xl);
    text-align: center;
    margin-bottom: var(--space-5);
    color: var(--primary);
}

.cart-checkout .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

@media (max-width: 480px) {
    .cart-checkout .form-row {
        grid-template-columns: 1fr;
    }
}

/* Cart Success */
.cart-success {
    text-align: center;
    padding: var(--space-12) 0;
}

@media (min-width: 768px) {
    .cart-item-img {
        width: 80px;
        height: 80px;
    }
    .cart-item-name {
        font-size: var(--text-base);
    }
}
