/* ==========================================================================
   Ecobio Panier - Premium Styling (V2.0 with Admin & Visual Enhancements)
   ========================================================================== */

/* Design System & Variables */
:root {
    /* Fonts */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-ui: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Theme Colors (Light Theme Default) */
    --bg-primary: #fcfbf7;
    --bg-secondary: #f4f2ea;
    --bg-card: #ffffff;
    --bg-card-rgb: 255, 255, 255;
    --text-primary: #2d312e;
    --text-secondary: #58605a;
    --text-muted: #8b958e;
    
    --primary: #2c723d;
    --primary-light: #eff7f2;
    --primary-hover: #1e522a;
    --primary-rgb: 44, 114, 61;
    
    --accent: #d89838;
    --accent-light: #fdf5e7;
    --accent-hover: #b47c2b;
    
    --danger: #d14242;
    --danger-light: #fdeaea;
    
    --success: #2ec4b6;
    
    --border-color: #e5e3db;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(44, 114, 61, 0.06);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
    
    --navbar-height: 80px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    
    --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-quick: all 0.15s ease;
}

/* Dark Theme Variables */
body.dark-mode {
    --bg-primary: #121513;
    --bg-secondary: #1a1e1b;
    --bg-card: #202622;
    --bg-card-rgb: 32, 38, 34;
    --text-primary: #f2f5f3;
    --text-secondary: #cad1cb;
    --text-muted: #79837c;
    
    --primary: #4ab36a;
    --primary-light: #192b1f;
    --primary-hover: #67cf85;
    --primary-rgb: 74, 179, 106;
    
    --accent: #ebb155;
    --accent-light: #342a1b;
    --accent-hover: #ffd187;
    
    --border-color: #2b332e;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: var(--font-ui);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    max-width: 100%;
}

body.menu-open {
    overflow: hidden !important;
}

/* Typographie */
h1, h2, h3, h4 {
    font-family: var(--font-ui);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-quick);
}

/* Helper Elements */
.text-primary { color: var(--primary) !important; }
.font-bold { font-weight: 700 !important; }
.margin-top-md { margin-top: 1.5rem !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-ui);
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: 1px solid transparent;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.25);
}

.btn-primary:disabled {
    background-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background-color: var(--accent);
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 152, 56, 0.25);
}

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

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* Alert bar */
.top-bar {
    background: linear-gradient(90deg, var(--primary), #1a5127);
    color: #ffffff !important;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    z-index: 1010;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.top-bar p, .top-bar p *, .top-bar i {
    color: #ffffff !important;
    margin: 0;
    display: inline-block;
}

/* Navbar */
.navbar {
    background-color: rgba(var(--bg-card-rgb), 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--navbar-height);
    transition: background-color 0.3s ease;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.brand-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.brand-sub {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition-quick);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.admin-badge-link {
    color: var(--accent) !important;
}

.admin-badge-link:hover {
    color: var(--accent-hover) !important;
}

.admin-badge-link::after {
    background-color: var(--accent) !important;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.25rem 0.5rem 0.25rem 1rem;
    width: 200px;
    transition: var(--transition-smooth);
}

.search-box:focus-within {
    width: 280px;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.9rem;
}

.search-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
}

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

.theme-toggle, .cart-trigger {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    height: 44px;
    width: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

.theme-toggle:hover, .cart-trigger:hover {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.burger span {
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

.burger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}


/* ==========================================================================
   WAOUH HERO CAROUSEL
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    height: 580px;
    width: 100%;
    background-color: #0b0d0c;
}

.carousel-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    opacity: 0;
    z-index: 1;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-content {
    max-width: 700px;
    margin-left: calc((100vw - 1200px) / 2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #ffffff;
}

@media (max-width: 1250px) {
    .slide-content {
        margin-left: 2rem;
    }
}

/* Animations for text in slides when active */
.hero-badge {
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(25px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.hero-title .highlight {
    color: var(--success);
    position: relative;
    display: inline-block;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    max-width: 600px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1) 0.6s;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1) 0.8s;
}

/* Trigger animations on active slide */
.carousel-slide.active .hero-badge,
.carousel-slide.active .hero-title,
.carousel-slide.active .hero-description,
.carousel-slide.active .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Controls */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    height: 54px;
    width: 54px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.carousel-control:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev { left: 2rem; }
.carousel-control.next { right: 2rem; }

/* Dots */
.carousel-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.75rem;
}

.carousel-dots .dot {
    height: 10px;
    width: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.carousel-dots .dot:hover {
    background-color: rgba(255, 255, 255, 0.7);
}

.carousel-dots .dot.active {
    background-color: var(--success);
    width: 30px;
    border-radius: 50px;
}


/* Values Section */
.values-section {
    padding: 4rem 1.5rem;
    background-color: var(--bg-secondary);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    text-align: center;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.value-icon {
    height: 70px;
    width: 70px;
    border-radius: 50%;
    background-color: var(--primary-light);
    color: var(--primary);
    font-size: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: var(--transition-smooth);
}

.value-card:hover .value-icon {
    background-color: var(--primary);
    color: #ffffff;
    transform: rotateY(360deg);
}

.value-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Section Common Header */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header .sub-title {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-family: var(--font-heading);
    margin-bottom: 1rem;
}

/* Basket Configurator Section */
.basket-configurator-section {
    padding: 6rem 1.5rem;
}

.configurator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: stretch;
}

.config-controls {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.control-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.budget-value {
    color: var(--primary);
    font-size: 1.35rem;
}

/* Custom Range Slider Styling */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--bg-secondary);
    outline: none;
    margin: 1rem 0;
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: var(--transition-quick);
}

.custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: var(--primary-hover);
}

.slider-ticks {
    display: flex;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.preferences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.pref-btn {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: var(--transition-smooth);
}

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

.pref-btn.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

/* Health indicators */
.health-indicators {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.indicator-title {
    font-size: 1.05rem;
    margin-bottom: 1.25rem;
}

.indicator-item {
    margin-bottom: 1rem;
}

.indicator-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.35rem;
}

.progress-bar-container {
    height: 8px;
    background-color: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--success);
    border-radius: 4px;
    transition: width 0.5s ease-out;
}

#vitamins-progress { background-color: #2ec4b6; }
#fibers-progress { background-color: #d89838; }
#antiox-progress { background-color: #e76f51; }


/* ==========================================================================
   PREMIUM STRAW WICKER BASKET (CORBEILLE EN PAILLE)
   ========================================================================== */
.config-visual {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.basket-container-3d {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 1.5rem auto;
    background-image: url('assets/images/panier-2.jpg');
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 3px solid var(--primary);
    overflow: hidden;
}

/* Hide CSS wicker elements */
.basket-straw-handle {
    display: none;
}
.basket-straw-rim {
    display: none;
}
.basket-straw-front-cover {
    display: none;
}

/* Straw Body container made transparent overlay */
.basket-straw-body {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    box-shadow: none;
    z-index: 3;
    overflow: hidden;
}

.basket-empty-msg {
    padding: 2.5rem 2rem;
    text-align: center;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 4;
    position: relative;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.basket-empty-msg i {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--accent-light);
}

.basket-items-layer {
    position: absolute;
    top: -5px; /* Offset to float near top rim of the basket */
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4; /* Behind the front cover (z-index 6) but in front of background body */
    pointer-events: none;
}

/* Mini items placed inside the basket */
.basket-mini-item {
    position: absolute;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    animation: drop-bounce 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes drop-bounce {
    0% {
        transform: translateY(-110px) scale(0.4);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.basket-shadow {
    position: absolute;
    bottom: -15px;
    left: 30px;
    width: 260px;
    height: 20px;
    background-color: rgba(0,0,0,0.18);
    border-radius: 50%;
    filter: blur(6px);
    z-index: 1;
}

.basket-summary-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.summary-status {
    background-color: var(--primary-light);
    color: var(--primary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.summary-status.over-budget {
    background-color: var(--danger-light);
    color: var(--danger);
}


/* Shop Section & Toolbar */
.shop-section {
    padding: 6rem 1.5rem;
    background-color: var(--bg-secondary);
}

.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.category-tabs {
    display: flex;
    gap: 0.75rem;
}

.tab-btn {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-ui);
    transition: var(--transition-smooth);
}

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

.tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.custom-select {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-ui);
    font-weight: 500;
    outline: none;
    cursor: pointer;
    transition: var(--transition-quick);
}

.custom-select:focus {
    border-color: var(--primary);
}

.shop-right-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.shop-search-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 0 0.5rem 0 1.5rem;
    height: 44px; /* match custom-select height */
    width: 260px;
    box-sizing: border-box;
    transition: var(--transition-smooth);
}

.shop-search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
    width: 320px;
}

.shop-search-box input {
    border: none;
    background: transparent;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    height: 100%;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0;
}

.shop-search-box .search-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.shop-search-box .search-btn:hover {
    color: var(--primary);
}

/* Mobile Menu Overlay Backdrop */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999; /* Above page content, below navbar (1000) to respect stacking context */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Product Grid & Cards */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

.product-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent);
    color: #ffffff;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.product-image-wrapper {
    position: relative;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    background-color: var(--bg-secondary);
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.product-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.35rem;
}

.product-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.btn-icon {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.loading-placeholder {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-secondary);
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Nutrition and Tips Section */
.nutrition-tips-section {
    padding: 6rem 1.5rem;
}

.nutrition-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.nutrition-card-main {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border-left: 6px solid var(--primary);
}

.card-icon-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.card-icon-header i {
    font-size: 2rem;
    color: var(--primary);
}

.card-icon-header h3 {
    font-size: 1.5rem;
}

.nutrition-content {
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.nutrition-content p {
    margin-bottom: 1rem;
}

.nutrition-content strong {
    color: var(--primary);
}

.nutrition-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.nutrition-footer {
    display: flex;
    justify-content: flex-start;
}

/* Accordion */
.benefits-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.accordion-item {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.accordion-trigger {
    width: 100%;
    background: transparent;
    border: none;
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition-quick);
}

.accordion-trigger:hover {
    color: var(--primary);
    background-color: var(--primary-light);
}

.accordion-trigger i {
    transition: transform 0.3s ease;
}

.accordion-trigger[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 1.5rem;
}

.accordion-trigger[aria-expanded="true"] + .accordion-content {
    max-height: 200px;
    padding: 0 1.5rem 1.25rem;
}

/* Footer Styles */
.footer {
    background-color: #1b201c;
    color: #ffffff;
    padding-top: 5rem;
}

body.dark-mode .footer {
    background-color: #0b0d0c;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.footer-brand span {
    color: #ffffff;
}

.footer-desc {
    color: #a9b5ab;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    height: 38px;
    width: 38px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #ffffff;
    transition: var(--transition-quick);
}

.social-links a:hover {
    background-color: var(--primary);
    transform: translateY(-2px);
}

.footer-links h4, .footer-contact h4, .footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    color: #ffffff;
}

.footer-links h4::after, .footer-contact h4::after, .footer-newsletter h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: #a9b5ab;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #a9b5ab;
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--primary);
}

.footer-newsletter p {
    color: #a9b5ab;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}

.newsletter-form {
    display: flex;
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.newsletter-form input {
    border: none;
    background: transparent;
    outline: none;
    color: #ffffff;
    padding: 0.5rem 1rem;
    width: 100%;
    font-family: var(--font-ui);
    font-size: 0.85rem;
}

.newsletter-form button {
    padding: 0.5rem 1.25rem;
}

.newsletter-feedback {
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 2rem 1.5rem;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: #7d8b80;
}

.payment-methods-logos {
    display: flex;
    gap: 0.5rem;
}

.badge {
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}

.badge-om { background-color: #ff6b00; }
.badge-moov { background-color: #0056b3; }


/* ==========================================================================
   MODAL & DIALOG SYSTEMS
   ========================================================================== */

/* Native Modal Base - Centered Dialog */
dialog {
    border: none;
    border-radius: var(--radius-lg);
    background-color: var(--bg-card);
    box-shadow: var(--shadow-lg);
    max-width: 580px;
    width: calc(100% - 2rem);
    padding: 0;
    margin: auto;
    outline: none;
}

/* Responsive constraints */
dialog.scrollable {
    max-height: 85vh;
}

/* Modal Content Card */
.dialog-card {
    position: relative;
    padding: 2.5rem;
}

.dialog-card.scrollable {
    max-height: 85vh;
    overflow-y: auto;
}

.dialog-close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--bg-secondary);
    border: none;
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: var(--transition-quick);
}

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

/* Backdrop styling */
dialog::backdrop {
    background-color: rgba(18, 21, 19, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition:
        display 0.4s allow-discrete,
        overlay 0.4s allow-discrete,
        background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

dialog[open]::backdrop {
    background-color: rgba(18, 21, 19, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    
    @starting-style {
        background-color: rgba(18, 21, 19, 0);
        backdrop-filter: blur(0px);
        -webkit-backdrop-filter: blur(0px);
    }
}

/* Exit/Closed Base State for Animation */
dialog {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition:
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        display 0.4s allow-discrete,
        overlay 0.4s allow-discrete;
}

/* Open State Animation */
dialog[open] {
    opacity: 1;
    transform: scale(1) translateY(0);
    
    @starting-style {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
}

/* Reduced Motion Settings */
@media (prefers-reduced-motion: reduce) {
    dialog, dialog::backdrop {
        transition-duration: 0.1s;
        transform: none;
    }
    dialog[open], dialog[open]::backdrop {
        @starting-style {
            transform: none;
        }
    }
}

/* Sidebar Dialog drawer (Left/Right slider drawer) */
dialog.sidebar-dialog {
    height: 100vh;
    max-height: 100vh;
    max-width: 420px;
    width: 100%;
    margin-right: 0;
    margin-left: auto;
    border-radius: 0;
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

dialog.sidebar-dialog {
    transform: translateX(100%);
    opacity: 1; /* Keep opacity static, just slide */
}

dialog.sidebar-dialog[open] {
    transform: translateX(0);
    
    @starting-style {
        transform: translateX(100%);
    }
}

.sidebar-card {
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-card);
}

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

.sidebar-header h2 {
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sidebar-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.sidebar-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
}

/* Cart Item Cards */
.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-muted);
    text-align: center;
    gap: 1rem;
}

.cart-empty-state i {
    font-size: 3rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
}

.cart-item-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--bg-secondary);
}

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

.cart-item-details {
    flex-grow: 1;
}

.cart-item-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background-color: var(--bg-card);
}

.quantity-btn {
    border: none;
    background: transparent;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-val {
    font-size: 0.9rem;
    font-weight: 700;
    width: 24px;
    text-align: center;
}

.cart-item-remove-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    transition: var(--transition-quick);
}

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

/* Delivery choices & totals */
.delivery-options-card {
    margin-bottom: 1.25rem;
}

.delivery-options-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cart-totals {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.total-row.grand-total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
    font-size: 1.2rem;
}

/* Checkout Form Layout */
.checkout-heading {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.payment-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.form-row {
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    outline: none;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    transition: var(--transition-quick);
}

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

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

/* Mobile Money options cards */
.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-option-card {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    cursor: pointer;
    align-items: flex-start;
    gap: 0.75rem;
    transition: var(--transition-smooth);
    background-color: var(--bg-card);
}

.payment-option-card input[type="radio"] {
    margin-top: 0.25rem;
    accent-color: var(--primary);
}

.option-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

/* Custom placeholder labels for MoMo */
.option-content::before {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 800;
    color: #ffffff;
    padding: 2px 6px;
    border-radius: 3px;
    margin-bottom: 5px;
    display: inline-block;
    width: max-content;
}

.payment-option-card[for="pay-orange"] .option-content::before {
    content: 'ORANGE';
    background-color: #ff6b00;
}

.payment-option-card[for="pay-moov"] .option-content::before {
    content: 'MOOV';
    background-color: #0056b3;
}

.payment-option-card:hover {
    border-color: var(--primary);
}

.payment-option-card:has(input:checked) {
    border-color: var(--primary);
    background-color: var(--primary-light);
}

.input-with-prefix {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.phone-prefix {
    padding: 0.75rem 1rem;
    background-color: var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-with-prefix input {
    border: none;
    flex-grow: 1;
    background: transparent;
    padding: 0.75rem 1rem;
    box-shadow: none;
}

.phone-help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.checkout-summary-box {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
}

.summary-line strong {
    font-size: 1.35rem;
    color: var(--primary);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}


/* ==========================================================================
   SMARTPHONE SIMULATOR (MOBILE MONEY DEMO)
   ========================================================================== */

/* Outer Shell */
.smartphone-shell {
    width: 320px;
    height: 640px;
    background-color: #1e1e1e;
    border: 8px solid #333333;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    padding: 10px;
    margin: auto;
}

/* Notch / Speaker */
.smartphone-shell::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 18px;
    background-color: #000000;
    border-radius: 10px;
    z-index: 10;
}

/* Screen */
.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #000000;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Phone Status Bar */
.phone-status-bar {
    height: 32px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 0.8rem;
    z-index: 5;
    background-color: rgba(0,0,0,0.2);
}

.phone-icons {
    display: flex;
    gap: 0.35rem;
}

/* Indicator Bar at bottom of screen */
.phone-home-indicator {
    height: 5px;
    width: 100px;
    background-color: #ffffff;
    border-radius: 10px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

/* Phone Screen States */
.phone-body-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 1rem;
    padding-bottom: 2rem;
    overflow-y: auto;
    background-color: #121212;
}

/* Push Notification Banner */
.push-notification-banner {
    background-color: rgba(25, 25, 25, 0.95);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 1rem;
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    animation: slide-down-push 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    margin-top: 1.5rem;
}

@keyframes slide-down-push {
    0% { transform: translateY(-100px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.push-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #999999;
    margin-bottom: 0.35rem;
}

.push-body h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
}

.push-body p {
    font-size: 0.8rem;
    color: #cccccc;
    margin-top: 0.25rem;
}

.push-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.btn-push {
    background-color: #ff6b00;
    color: #ffffff;
    border: none;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.btn-push.decline {
    background-color: transparent;
    color: #999999;
}

/* USSD Menu Box */
.ussd-box {
    background-color: #ffffff;
    color: #000000;
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: auto;
    margin-bottom: auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    width: 100%;
}

.ussd-text {
    font-family: monospace;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    white-space: pre-line;
    line-height: 1.4;
}

.ussd-input-group {
    border-top: 1px solid #eeeeee;
    padding-top: 0.75rem;
}

.ussd-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #ff6b00;
    font-family: monospace;
    font-size: 0.95rem;
    outline: none;
    padding: 0.35rem 0;
    margin-bottom: 1rem;
}

.ussd-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.ussd-btn {
    background: transparent;
    border: none;
    font-weight: bold;
    color: #0076ff;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Loader Screen on Phone */
.phone-loader-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    text-align: center;
    gap: 1.5rem;
}

.phone-success-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #ffffff;
    text-align: center;
    animation: fade-in-phone 0.5s ease-out forwards;
}

@keyframes fade-in-phone {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

.checkmark-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: #2ec4b6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(46, 196, 182, 0.4);
    animation: pop-check 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes pop-check {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

/* E-Receipt Invoice */
.e-receipt-card {
    background-color: #ffffff;
    color: #333333;
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-top: 1rem;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    font-size: 0.8rem;
    text-align: left;
}

.receipt-header {
    text-align: center;
    border-bottom: 1px dashed #cccccc;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.receipt-header h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.receipt-row.divider {
    border-top: 1px dashed #cccccc;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

.receipt-row.total-line {
    font-size: 0.9rem;
    font-weight: 800;
    color: #000000;
}

.receipt-footer {
    text-align: center;
    font-size: 0.7rem;
    color: #666666;
    margin-top: 0.75rem;
    border-top: 1px dashed #cccccc;
    padding-top: 0.5rem;
}


/* ==========================================================================
   PRODUCT DETAIL MODAL INTERIOR
   ========================================================================== */
.detail-modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.detail-img-container {
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
    padding-top: 100%;
}

.detail-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info {
    display: flex;
    flex-direction: column;
}

.detail-cat {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.detail-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-ui);
}

.detail-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.detail-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.detail-benefit-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary);
    padding: 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

.detail-benefit-box h5 {
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.detail-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.detail-qty-select {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    height: 48px;
}

.detail-qty-btn {
    border: none;
    background: transparent;
    width: 36px;
    height: 100%;
    cursor: pointer;
    font-weight: bold;
}

.detail-qty-val {
    width: 32px;
    text-align: center;
    font-weight: 700;
}


/* ==========================================================================
   ADMIN PANEL STYLES
   ========================================================================== */
.admin-navbar {
    background-color: #1b201c;
    color: #ffffff;
    height: 70px;
    border-bottom: 2px solid var(--accent);
    position: sticky;
    top: 0;
    z-index: 100;
}

.admin-navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 2rem;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.25rem;
}

.admin-brand .brand-logo {
    height: 36px;
    width: 36px;
    border-radius: 4px;
}

.badge-role {
    background-color: var(--accent);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 700;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-user-info {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}

.admin-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - 70px);
}

.admin-sidebar {
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    padding: 2rem 0;
}

.admin-sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.admin-menu-btn {
    width: 100%;
    background: transparent;
    border: none;
    border-left: 4px solid transparent;
    padding: 1rem 1.5rem;
    text-align: left;
    font-family: var(--font-ui);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition-quick);
}

.admin-menu-btn i {
    width: 24px;
    font-size: 1.1rem;
}

.admin-menu-btn:hover {
    background-color: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
}

.admin-menu-btn.active {
    background-color: var(--primary-light);
    color: var(--primary);
    border-left-color: var(--primary);
}

.count-badge {
    background-color: var(--accent);
    color: white;
    font-size: 0.75rem;
    padding: 1px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* Workspace main content */
.admin-workspace {
    padding: 2.5rem;
    background-color: var(--bg-primary);
    overflow-y: auto;
}

.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
    animation: fade-in-admin 0.4s ease-out;
}

@keyframes fade-in-admin {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.admin-section-header {
    margin-bottom: 2.5rem;
}

.admin-section-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

/* Dashboard Stats Grid */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    height: 54px;
    width: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.stat-number {
    font-size: 1.4rem;
    font-weight: 800;
}

/* Responsive Table Styles */
.table-container {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-weight: 700;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    vertical-align: middle;
}

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

.admin-table tr:hover td {
    background-color: rgba(var(--primary-rgb), 0.01);
}

/* Admin badges status */
.status-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending {
    background-color: var(--accent-light);
    color: var(--accent-hover);
}

.status-badge.confirmed {
    background-color: #e0f2fe;
    color: #0369a1;
}

.status-badge.delivered {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* Products CRUD layout */
.admin-products-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    align-items: start;
}

.products-list-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.product-form-panel {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 95px;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-form label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.admin-form input, .admin-form textarea {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    font-family: var(--font-ui);
    outline: none;
    font-size: 0.9rem;
    transition: var(--transition-quick);
}

.admin-form input:focus, .admin-form textarea:focus {
    border-color: var(--primary);
    background-color: var(--bg-card);
}

.admin-form textarea {
    min-height: 70px;
    resize: vertical;
}

.admin-panel-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Message cards received style */
.admin-message-card {
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1rem;
    position: relative;
}

.admin-message-card .msg-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-bottom: 0.5rem;
}

.admin-message-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.admin-message-card .msg-email {
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 500;
    display: block;
    margin-bottom: 0.75rem;
}

.admin-message-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.admin-message-card .delete-msg-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.admin-message-card .delete-msg-btn:hover {
    color: var(--danger);
}


/* ==========================================================================
   INVENTORY STOCK STYLING
   ========================================================================== */
.badge-stock {
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    display: inline-block;
    text-align: center;
}
.badge-stock.in-stock {
    background-color: var(--success-light);
    color: var(--success);
}
.badge-stock.low-stock {
    background-color: #fef3c7;
    color: #d97706;
}
.badge-stock.out-of-stock {
    background-color: #fee2e2;
    color: var(--danger);
}

.product-badge-outofstock {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--danger);
    color: white;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.product-card.out-of-stock {
    opacity: 0.85;
}

.product-card.out-of-stock .product-img {
    filter: grayscale(40%);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES) - SEUIL UNIQUE 1024PX POUR TABLETTES & MOBILES
   ========================================================================== */

@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .burger {
        display: flex;
    }

    .navbar {
        background-color: rgba(var(--bg-card-rgb), 0.98) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
    }
    
    body.menu-open .navbar {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* Mobile/Tablet Drawer Slide-in from right (Opaque for max readability) */
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background-color: var(--bg-card) !important; /* solid background */
        border-left: 1px solid var(--border-color);
        z-index: 1005;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start; /* start from top to prevent clipping */
        padding: 6rem 2rem 2rem 2rem; /* spacing for top navigation items */
        gap: 1.25rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 25px rgba(0,0,0,0.15);
        overflow-y: auto; /* allow scrolling if menu items overflow */
        max-height: 100vh;
    }
    
    .nav-links.mobile-open {
        transform: translateX(0);
    }

    .nav-links a {
        color: var(--text-primary) !important;
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        width: 100%;
        padding: 0.85rem 0.5rem !important;
        border-bottom: 1px solid var(--border-color);
        display: flex;
        align-items: center;
        justify-content: center; /* Centering text and icons inside flex */
        gap: 10px;
    }

    /* Center carousel slide text and layouts on mobile/tablet viewports */
    .slide-content {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 1.5rem !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .hero-title, .hero-description {
        text-align: center !important;
    }

    .hero-actions {
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        gap: 0.75rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        max-width: 280px !important;
        text-align: center !important;
        justify-content: center !important;
    }
    
    .nav-links a:hover, .nav-links a.active {
        color: var(--primary) !important;
        background-color: rgba(var(--primary-rgb), 0.08);
        border-radius: var(--radius-sm);
        padding-left: 0.5rem !important; /* Keep centering aligned */
    }
    
    .nav-links a::after {
        display: none !important;
    }
    
    .search-box {
        display: none; /* Hide large search box in mobile/tablet view */
    }
    
    .hero-section {
        height: 480px;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .configurator-wrapper, .nutrition-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .config-visual {
        order: -1;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-info, .footer-links, .footer-contact, .footer-newsletter {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-brand {
        justify-content: center;
        margin: 0 auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-links ul, .footer-contact ul {
        padding: 0;
        list-style: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .newsletter-form {
        margin: 0 auto;
        justify-content: center;
        width: 100%;
        max-width: 320px;
    }
    
    .shop-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-tabs {
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .shop-right-actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 1rem;
    }
    
    .sort-selector-wrapper,
    .shop-search-box {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .shop-search-box:focus-within {
        width: 100% !important;
    }
    
    .custom-select {
        width: 100% !important;
    }
    
    .detail-modal-body {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Admin responsive */
    .admin-layout {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }
    
    .admin-sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .admin-menu-btn {
        padding: 0.6rem 1rem;
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
    }
    
    .admin-menu-btn.active {
        border-left-color: transparent;
        border-bottom-color: var(--primary);
    }
    
    .admin-workspace {
        padding: 1.5rem;
    }
    
    .admin-products-layout {
        grid-template-columns: 1fr;
    }
    
    .product-form-panel {
        position: static;
        margin-top: 2rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* ==========================================================================
   ADMIN LOGIN CARD STYLES (V4.0)
   ========================================================================== */
.admin-login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    padding: 1.5rem;
}

.admin-login-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 2.5rem;
    width: 100%;
    max-width: 450px;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-login-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header img {
    height: 70px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.login-error-msg {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* User status and info in admin layout */
.admin-user-info {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 15px;
    background-color: var(--bg-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.badge-role {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    background-color: var(--accent);
    color: white;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    margin-left: 5px;
}

