/* ================================================================
   TarimApp — Doğa Temalı Premium Tarım Platformu Tasarım Sistemi
   ================================================================ */

/* Fonts are loaded once from _Layout.cshtml. */

/* ================================================================
   CSS Custom Properties (Design Tokens)
   ================================================================ */
:root {
    /* Primary Colors */
    --primary: #43aa5b;
    --primary-light: #63bf75;
    --primary-dark: #2f7d43;
    --primary-rgb: 67, 170, 91;

    /* Secondary Colors */
    --secondary: #EA811B;
    --secondary-light: #f4a14e;
    --secondary-dark: #c56511;

    /* Accent */
    --accent: #EA811B;
    --accent-light: #fff2e5;
    --accent-dark: #c56511;
    --accent-rgb: 234, 129, 27;

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-light: #f7f8f7;
    --bg-beige: #f2f5f1;
    --bg-card: #FFFFFF;
    --bg-dark: #2d2d2d;
    --bg-section-alt: #f7f8f7;

    /* Text */
    --text-dark: #2d2d2d;
    --text-body: #444444;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;
    --text-on-dark: #ffffff;
    --text-on-primary: #FFFFFF;

    /* Borders */
    --border-light: #e6ece6;
    --border-medium: #d6ded6;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.16);
    --shadow-card: 0 4px 20px rgba(45, 45, 45, 0.08);
    --shadow-card-hover: 0 8px 32px rgba(67, 170, 91, 0.16);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-base: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-slow: 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* Typography */
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --container-max: 1320px;
    --navbar-height: 80px;

    /* Status Colors */
    --success: #43aa5b;
    --warning: #EA811B;
    --danger: #EF4444;
    --info: #3B82F6;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-body);
    background-color: var(--bg-body);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    line-height: 1.3;
    font-weight: 600;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.375rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

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

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

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

/* ================================================================
   Utility Classes
   ================================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-alt {
    background-color: var(--bg-section-alt);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: var(--space-md);
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: var(--space-md) auto 0;
}

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--text-muted) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-light { background-color: var(--bg-light) !important; }
.bg-dark { background-color: var(--bg-dark) !important; }

/* ================================================================
   Buttons
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    white-space: nowrap;
    min-height: 48px; /* Touch target size */
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--text-on-primary);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
    transform: translateY(-2px);
    color: var(--text-on-primary);
}

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

.btn-secondary:hover {
    background: var(--primary);
    color: var(--text-on-primary);
    transform: translateY(-2px);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--text-dark);
    border-color: var(--accent);
}

.btn-accent:hover {
    background: linear-gradient(135deg, var(--accent-dark), var(--accent));
    transform: translateY(-2px);
    color: var(--text-dark);
}

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

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

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

/* ================================================================
   Navbar
   ================================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--navbar-height);
    z-index: 1000;
    transition: all var(--transition-base);
    background: rgba(249, 246, 240, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
}

.navbar.scrolled {
    background: rgba(249, 246, 240, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    flex: 1;
}

.navbar-logo img {
    height: 48px;
    width: auto;
}

.navbar-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.navbar-logo-text small {
    display: block;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.navbar-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    list-style: none;
    flex: 2;
}

.navbar-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-body);
    padding: 0.5rem 0;
    position: relative;
    transition: color var(--transition-fast);
}

.navbar-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.navbar-menu a:hover,
.navbar-menu a.active {
    color: var(--primary);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
    width: 100%;
}

.navbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--space-sm);
    flex: 1;
}

/* Account Dropdown */
.navbar-account {
    position: relative;
}

.navbar-account-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--primary);
    font-size: 1.35rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.navbar-account-btn:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.navbar-account-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--space-sm) 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
    z-index: 1001;
}

.navbar-account-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-user-info {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--border-light);
    margin: var(--space-xs) 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.9rem;
    color: var(--text-body);
    transition: all var(--transition-fast);
    border: none;
    background: none;
    width: 100%;
    cursor: pointer;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.05);
    color: var(--primary);
}

.dropdown-item-danger:hover {
    background: rgba(239, 68, 68, 0.08);
    color: var(--danger);
}

.navbar-cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--bg-light);
    color: var(--primary);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    border: none;
    cursor: pointer;
}

.navbar-cart:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

.navbar-cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid var(--bg-body);
}

.language-switcher {
    position: relative;
}

.language-switcher summary {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 38px;
    padding: 0 9px;
    cursor: pointer;
    list-style: none;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--primary-dark);
    font-size: .74rem;
    font-weight: 800;
}

.language-switcher summary::-webkit-details-marker { display: none; }

.language-switcher-menu {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    z-index: 1100;
    display: grid;
    min-width: 72px;
    padding: 5px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.language-switcher-menu a {
    padding: 6px 8px;
    border-radius: 5px;
    color: var(--text-dark);
    font-size: .74rem;
    font-weight: 750;
}

.language-switcher-menu a:hover,
.language-switcher-menu a.active { background: var(--bg-light); color: var(--primary); }

html[dir="rtl"] .navbar-inner,
html[dir="rtl"] .navbar-actions,
html[dir="rtl"] .product-detail,
html[dir="rtl"] .cart-item,
html[dir="rtl"] .footer-contact li { direction: rtl; }

html[dir="rtl"] .language-switcher-menu { right: auto; left: 0; }

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.navbar-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.navbar-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ================================================================
   Hero Slider (Glassmorphism Centered)
   ================================================================ */
.hero-slider {
    margin-top: 0; /* Remove margin to go behind navbar */
    position: relative;
    overflow: hidden;
}

.hero-slide {
    position: relative;
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--navbar-height); /* Prevent content from hiding behind navbar */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.15); /* Soft overlay to ensure text contrast */
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    
    /* Glassmorphism */
    background: rgba(249, 246, 240, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.25rem;
    background: var(--accent);
    color: var(--text-dark);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 3.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.hero-title span {
    color: var(--secondary);
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-body);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.hero-buttons .btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.6);
    border-color: var(--primary);
    color: var(--primary);
    backdrop-filter: blur(4px);
}

.hero-buttons .btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Slider Navigation */
.hero-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all var(--transition-base);
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--accent);
    width: 36px;
    border-radius: var(--radius-full);
}

/* ================================================================
   Product Cards
   ================================================================ */
.product-card {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    transition: all var(--transition-base);
    border: none;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/5;
    background: var(--bg-light);
    border-radius: var(--radius-xl);
}

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

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

.product-card-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(8px);
}

.badge-new {
    background: rgba(20, 54, 28, 0.85); /* Deep Green */
    color: white;
}

.badge-featured {
    background: rgba(165, 214, 167, 0.85); /* Mint Accent */
    color: var(--text-dark);
}

.badge-organic {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid var(--border-light);
}

.product-card-body {
    padding: var(--space-md) 0;
}

.product-card-category {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-xs);
}

.product-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
    line-height: 1.4;
}

.product-card-stock {
    font-size: 0.8rem;
    color: var(--text-body);
    margin-bottom: var(--space-md);
}

.product-card-stock code {
    background: transparent;
    padding: 0;
    font-weight: 400;
    color: var(--text-muted);
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: none;
}

.product-card-price {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
}

.product-card-price small {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.product-card-action {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-card-action:hover {
    background: var(--primary);
    color: white;
}

/* ================================================================
   Product Grid
   ================================================================ */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

/* ================================================================
   Advantage / Features Section
   ================================================================ */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}

.mobile-advantages-swiper {
    display: block;
}

.mobile-advantages-swiper .swiper-wrapper {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-xl);
}

.mobile-advantages-swiper .swiper-slide {
    width: auto;
}

.advantage-card {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

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

.advantage-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--primary-rgb), 0.05));
    border-radius: var(--radius-md);
    font-size: 1.4rem;
    color: var(--primary);
    transition: all var(--transition-base);
}

.advantage-card:hover .advantage-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    transform: scale(1.1);
}

.advantage-card h4 {
    font-size: 1.1rem;
    margin-bottom: var(--space-sm);
}

.advantage-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 767px) {
    .advantages-section {
        padding: 22px 0;
    }

    .mobile-advantages-swiper .swiper-wrapper {
        display: flex;
        gap: 0;
    }

    .mobile-advantages-swiper .swiper-slide {
        width: auto;
        height: auto;
    }

    .mobile-advantages-swiper .advantage-card {
        min-height: 174px;
        padding: 14px 10px;
    }

    .mobile-advantages-swiper .advantage-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 9px;
        font-size: 1.08rem;
    }

    .mobile-advantages-swiper .advantage-card h3 {
        margin-bottom: 5px;
        font-size: .88rem;
        line-height: 1.2;
    }

    .mobile-advantages-swiper .advantage-card p {
        margin: 0;
        font-size: .73rem;
        line-height: 1.35;
    }
}

/* ================================================================
   Product Detail / Modal
   ================================================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-xl));
}

.product-gallery-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-md);
    background: var(--bg-light);
    aspect-ratio: 1;
}

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

.product-gallery-thumbs {
    display: flex;
    gap: var(--space-sm);
}

.product-gallery-thumb {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-light);
    transition: border-color var(--transition-fast);
}

.product-gallery-thumb.active,
.product-gallery-thumb:hover {
    border-color: var(--primary);
}

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

.product-info h1 {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.product-stock-code {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.product-stock-code span {
    background: var(--bg-light);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--secondary);
}

.product-description {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: var(--space-2xl);
}

/* Package Selection Table */
.package-table {
    width: 100%;
    margin-bottom: var(--space-2xl);
}

.package-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    background: #FFFFFF; /* High contrast over cream background */
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
}

.package-row:hover {
    border-color: var(--primary-light);
    background: rgba(var(--primary-rgb), 0.03);
}

.package-row.selected {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.package-name {
    font-weight: 600;
    color: var(--text-dark);
    min-width: 100px;
}

.package-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Quantity Stepper */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.qty-stepper button {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: none;
    color: var(--text-dark);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.qty-stepper button:hover {
    background: var(--primary);
    color: white;
}

.qty-stepper input {
    width: 44px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: white;
    -moz-appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ================================================================
   Cart / Pre-Order
   ================================================================ */
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.btn-clear-cart {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    color: var(--danger);
    border: 1px solid var(--danger);
    background: transparent;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.btn-clear-cart:hover {
    background: rgba(239, 68, 68, 0.1);
}

.cart-item {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--space-md);
    transition: all var(--transition-fast);
}

.cart-item:hover {
    box-shadow: var(--shadow-sm);
}

.cart-item-image {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
}

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

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

.cart-item-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-xs);
}

.cart-item-package {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cart-item-price {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    font-size: 1.1rem;
}

.cart-item-remove {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border: 1px solid var(--border-medium);
    color: var(--danger);
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

.cart-summary {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    padding: var(--space-2xl);
    position: sticky;
    top: calc(var(--navbar-height) + var(--space-xl));
}

.cart-summary h3 {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.cart-total-row.total {
    padding-top: var(--space-md);
    margin-top: var(--space-md);
    border-top: 2px solid var(--border-light);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.cart-total-row.total .price {
    color: var(--primary);
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

/* ================================================================
   Forms
   ================================================================ */
.form-group {
    margin-bottom: var(--space-lg);
}

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

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-dark);
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    min-height: 48px; /* Touch target size */
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.form-control::placeholder {
    color: var(--text-light);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    cursor: pointer;
}

.form-check input[type="radio"],
.form-check input[type="checkbox"] {
    width: 24px;
    height: 24px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* Account Type Toggle */
.account-type-toggle {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.account-type-option {
    flex: 1;
    padding: var(--space-lg);
    border: 2px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-base);
}

.account-type-option:hover {
    border-color: var(--primary-light);
}

.account-type-option.active {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.account-type-option .icon {
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.account-type-option h5 {
    margin-bottom: var(--space-xs);
}

.account-type-option p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding-top: var(--space-4xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: var(--space-3xl);
    padding-bottom: var(--space-3xl);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-about .navbar-logo-text {
    color: var(--accent-light);
    margin-bottom: var(--space-md);
}

.footer-logo {
    width: 180px;
    height: 80px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: var(--space-md);
    border-radius: 8px;
}

.footer-logo img {
    width: 180px;
    height: 80px;
    object-fit: contain;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: var(--space-lg);
}

.footer-social {
    display: flex;
    gap: var(--space-sm);
}

.footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-links h5 {
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
    border-radius: var(--radius-full);
}

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

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-contact li i {
    color: var(--accent);
    font-size: 1.1rem;
    margin-top: 2px;
}

.footer-bottom {
    padding: var(--space-lg) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-bottom-links a {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom-links a:hover {
    color: var(--accent-light);
}

/* ================================================================
   Page Header / Banner
   ================================================================ */
.page-header {
    margin-top: var(--navbar-height);
    padding: var(--space-4xl) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 163, 23, 0.15) 0%, transparent 70%);
}

.page-header h1 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
    position: relative;
}

.page-header .breadcrumb {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    position: relative;
}

.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.6);
}

.page-header .breadcrumb a:hover {
    color: var(--accent-light);
}

.page-header .breadcrumb .separator {
    color: rgba(255, 255, 255, 0.3);
}

/* ================================================================
   Filters Bar
   ================================================================ */
.filters-bar {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--border-light);
    flex-wrap: wrap;
}

.filters-bar .form-control,
.filters-bar .form-select,
.filters-bar .btn {
    height: 48px;
    border-radius: var(--radius-md);
}

.filters-bar .form-control,
.filters-bar .form-select {
    max-width: 250px;
    border: 1px solid var(--border-light);
    background: white;
    padding: 0 var(--space-md);
}

.filters-bar .search-input {
    flex: 1;
    min-width: 200px;
    max-width: none;
}

/* ================================================================
   Pagination
   ================================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-sm);
    margin-top: var(--space-3xl);
    list-style: none;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 var(--space-md);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-body);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(var(--primary-rgb), 0.05);
}

.pagination .active span {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination .disabled span {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ================================================================
   Toast Notifications
   ================================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--navbar-height) + var(--space-md));
    right: var(--space-lg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.toast {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--success);
    min-width: 320px;
    animation: slideInRight 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
}

.toast-error {
    border-left-color: var(--danger);
}

.toast-warning {
    border-left-color: var(--warning);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(100px);
    }
}

/* ================================================================
   Admin Panel Styles
   ================================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: var(--bg-dark);
    padding: var(--space-xl) 0;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    overflow-y: auto;
    z-index: 100;
    transition: transform var(--transition-base);
}

.admin-sidebar-logo {
    padding: 0 var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.admin-sidebar-logo .navbar-logo-text {
    color: var(--accent-light);
}

.admin-sidebar-menu {
    list-style: none;
}

.admin-sidebar-menu .menu-header {
    padding: var(--space-md) var(--space-xl) var(--space-sm);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.3);
}

.admin-sidebar-menu a {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 0.7rem var(--space-xl);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    border-left: 3px solid transparent;
}

.admin-sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--accent);
}

.admin-sidebar-menu a.active {
    background: rgba(var(--primary-rgb), 0.2);
    color: var(--accent-light);
    border-left-color: var(--accent);
}

.admin-sidebar-menu a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.admin-main {
    margin-left: 280px;
    flex: 1;
    padding: var(--space-2xl);
    background: var(--bg-section-alt);
    min-height: 100vh;
}

.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
}

.admin-topbar h1 {
    font-size: 1.75rem;
}

/* Dashboard Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    border: 1px solid var(--border-light);
    transition: all var(--transition-base);
}

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

.stat-card-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.stat-card h3 {
    font-size: 2rem;
    margin-bottom: var(--space-xs);
}

.stat-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Admin Tables */
.admin-table {
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-light);
}

.admin-table th {
    background: var(--bg-light);
    padding: var(--space-md) var(--space-lg);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

.admin-table td {
    padding: var(--space-md) var(--space-lg);
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

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

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

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.status-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
}

.status-approved {
    background: rgba(34, 197, 94, 0.1);
    color: #15803D;
}

.status-preparing {
    background: rgba(59, 130, 246, 0.1);
    color: #1D4ED8;
}

.status-completed {
    background: rgba(34, 197, 94, 0.15);
    color: #166534;
}

.status-cancelled {
    background: rgba(239, 68, 68, 0.1);
    color: #B91C1C;
}

/* ================================================================
   Floating Cart Button (Mobile)
   ================================================================ */
.floating-cart {
    display: none;
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 6px 25px rgba(var(--primary-rgb), 0.4);
    z-index: 999;
    transition: all var(--transition-base);
    align-items: center;
    justify-content: center;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.5);
}

.floating-cart .badge-count {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 50%;
    border: 2px solid white;
}

/* ================================================================
   Loading / Skeleton
   ================================================================ */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, var(--bg-beige) 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

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

/* ================================================================
   Cookie Banner
   ================================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-dark);
    color: var(--text-on-dark);
    padding: var(--space-lg) var(--space-2xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.cookie-banner a {
    color: var(--accent-light);
}

/* ================================================================
   Responsive Breakpoints
   ================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.875rem; }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-detail {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-2xl);
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-sidebar {
        transform: translateX(-100%);
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --navbar-height: 64px;
    }

    h1 { font-size: 1.875rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

    .container {
        padding: 0 var(--space-md);
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    /* Navbar Mobile */
    .navbar-menu {
        position: fixed;
        top: var(--navbar-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(253, 250, 243, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-2xl) var(--space-lg);
        gap: var(--space-lg);
        transform: translateX(100%);
        transition: transform var(--transition-base);
        overflow-y: auto;
    }

    .navbar-menu.open {
        transform: translateX(0);
    }

    .navbar-menu a {
        font-size: 1.1rem;
        padding: var(--space-md) 0;
        border-bottom: 1px solid var(--border-light);
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-actions .btn {
        display: none;
    }

    /* Hero Mobile */
    .hero-slide {
        height: 500px;
    }

    .hero-content {
        padding: var(--space-xl);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    /* Products Grid Mobile */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

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

    .product-card-title {
        font-size: 1rem;
    }

    /* Product Detail Mobile */
    .product-detail {
        grid-template-columns: 1fr;
    }

    .product-gallery {
        position: static;
    }

    /* Advantages Mobile */
    .advantages-grid {
        grid-template-columns: 1fr;
    }

    /* Cart Mobile */
    .cart-item {
        flex-direction: row;
        flex-wrap: wrap;
        padding: var(--space-md);
        gap: var(--space-md);
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }
    
    .cart-item-info {
        flex: 1;
        min-width: 120px;
    }

    /* Footer Mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
    }

    /* Floating Cart */
    .floating-cart {
        display: flex;
    }

    /* Filters Mobile */
    .filters-bar {
        flex-direction: column;
    }

    .filters-bar .form-control,
    .filters-bar .form-select {
        max-width: 100%;
    }

    /* Page Header Mobile */
    .page-header {
        padding: var(--space-2xl) 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    /* Account Type Toggle */
    .account-type-toggle {
        flex-direction: column;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    /* Cookie Banner */
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-slide {
        height: 400px;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .product-grid {
        grid-template-columns: 1fr; /* Full width on small screens */
        gap: var(--space-lg);
    }

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

    .product-card-footer {
        flex-direction: row;
        gap: var(--space-sm);
        align-items: center;
        justify-content: space-between;
    }

    .pagination a,
    .pagination span {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .qty-stepper {
        width: 100%;
        justify-content: space-between;
    }

    .qty-stepper input {
        flex: 1;
    }
}

/* ================================================================
   Print Styles
   ================================================================ */
@media print {
    .navbar, .footer, .floating-cart, .cookie-banner {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .product-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}

/* ================================================================
   Soft White Storefront Refresh
   ================================================================ */
:root {
    --primary: #43aa5b;
    --primary-light: #63bf75;
    --primary-dark: #2f7d43;
    --primary-rgb: 67, 170, 91;
    --secondary: #EA811B;
    --secondary-light: #f4a14e;
    --secondary-dark: #c56511;
    --accent: #EA811B;
    --accent-light: #fff2e5;
    --accent-dark: #c56511;
    --accent-rgb: 234, 129, 27;
    --bg-body: #ffffff;
    --bg-light: #f7f8f7;
    --bg-card: #ffffff;
    --bg-section-alt: #f7f8f7;
    --bg-dark: #2d2d2d;
    --text-dark: #2d2d2d;
    --text-body: #444444;
    --text-muted: #6b7280;
    --border-light: #e6ece6;
    --border-medium: #d6ded6;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 12px;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --navbar-height: 76px;
    --category-height: 48px;
    --shadow-sm: 0 1px 2px rgba(23, 33, 27, 0.04);
    --shadow-md: 0 10px 28px rgba(45, 45, 45, 0.08);
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-body);
    color: var(--text-body);
}

.container {
    max-width: 1240px;
    padding-inline: 20px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--border-light);
    backdrop-filter: blur(14px);
}

/* The storefront header is fixed globally; admin content must opt into its offset. */
.admin-page {
    padding-top: var(--navbar-height);
}

@media (max-width: 860px) {
    .admin-page {
        padding-top: var(--navbar-height);
    }
}

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

.navbar-inner {
    min-height: var(--navbar-height);
    height: auto;
    gap: 18px;
}

.navbar-logo {
    flex: 0 0 auto;
    min-width: 210px;
}

.site-logo-img {
    width: 210px;
    height: 80px;
    max-width: 210px;
    object-fit: contain;
    display: block;
}

.navbar-logo .site-logo-img {
    width: 210px;
    height: 80px;
    object-fit: contain;
}

.site-logo-img,
.footer-logo img {
    image-rendering: auto;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
}

.navbar-logo-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-dark);
}

.navbar-logo-text small {
    font-size: 0.68rem;
    letter-spacing: 0;
    text-transform: none;
}

.header-search {
    flex: 1 1 320px;
    max-width: 460px;
    height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
}

.header-search input,
.catalog-search input,
.filter-panel input,
.filter-panel select,
.preorder-form input,
.preorder-form textarea,
.admin-form-card input {
    width: 100%;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    font: inherit;
    outline: none;
}

.header-search input,
.catalog-search input {
    border: 0;
    background: transparent;
    min-width: 0;
}

.navbar-menu {
    flex: 0 0 auto;
    gap: 18px;
    margin: 0;
}

.navbar-menu a {
    font-size: 0.92rem;
    font-weight: 650;
}

.navbar-actions {
    flex: 0 0 auto;
}

.icon-button,
.navbar-cart {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.icon-button:hover,
.navbar-cart:hover {
    background: var(--primary);
    color: #fff;
}

.category-bar {
    border-top: 1px solid var(--border-light);
    background: #fff;
}

.category-bar-inner {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.category-chip {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
    color: var(--text-body);
    font-size: 0.88rem;
    font-weight: 650;
}

.category-chip:hover {
    background: var(--accent-light);
    color: var(--primary);
}

main {
    min-width: 0;
}

.section {
    padding: 56px 0;
}

.section-alt {
    background: var(--bg-section-alt);
}

.section-header.compact {
    margin-bottom: 16px;
}

.section-header h2::after {
    display: none;
}

.soft-hero {
    margin-top: 0;
    padding: 18px 20px 0;
    background: #fff;
}

.soft-hero .swiper {
    max-width: 1240px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    background: var(--bg-light);
}

.hero-slide {
    height: clamp(340px, 43vw, 520px);
    padding: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    background: var(--bg-light);
    text-align: left;
}

.hero-slide::before {
    display: none;
}

.hero-slide picture,
.hero-slide picture img {
    width: 100%;
    height: 100%;
    grid-area: 1 / 1;
}

.hero-slide picture img {
    object-fit: cover;
}

.hero-copy {
    grid-area: 1 / 1;
    align-self: center;
    width: min(520px, calc(100% - 40px));
    margin-left: 40px;
    padding: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow-md);
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.04;
    margin-bottom: 14px;
    color: var(--text-dark);
    letter-spacing: 0;
}

.hero-copy h1 span {
    color: var(--primary);
}

.hero-copy p {
    color: var(--text-body);
    font-size: 1rem;
    margin-bottom: 22px;
}

.hero-slider .swiper-pagination-bullet-active {
    background: var(--primary);
}

.catalog-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.catalog-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + var(--category-height) + 18px);
}

.filter-panel,
.preorder-summary,
.admin-form-card,
.admin-table-card {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.filter-panel {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.filter-heading,
.catalog-toolbar,
.cart-header,
.summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.filter-heading h2,
.catalog-toolbar strong,
.preorder-summary h2,
.cart-header h2 {
    margin: 0;
    font-size: 1.05rem;
    font-family: var(--font-body);
}

.filter-panel label,
.preorder-form label,
.admin-form-card label {
    display: grid;
    gap: 7px;
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--text-dark);
}

.filter-panel input,
.filter-panel select,
.preorder-form input,
.preorder-form textarea,
.admin-form-card input,
.admin-form-card select,
.admin-form-card textarea {
    min-height: 44px;
    padding: 10px 12px;
}

.catalog-content {
    min-width: 0;
}

.catalog-toolbar {
    margin-bottom: 18px;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
}

.catalog-toolbar span {
    display: block;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.catalog-search {
    width: min(320px, 50%);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 6px 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
}

.product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-card {
    min-width: 0;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

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

.product-card-image {
    border-radius: 0;
    aspect-ratio: 1 / 1;
    background: var(--bg-light);
}

.product-card-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-img-hover {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

/* Catalog toolbar: persistent compact filter/sort controls on mobile. */
.catalog-sort-toggle {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--text-heading);
    font-size: .84rem;
    font-weight: 800;
}

@media (min-width: 861px) {
    .catalog-toolbar.filter-panel {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .catalog-toolbar-fields {
        grid-template-columns: minmax(260px, 1.1fr) minmax(190px, .75fr) auto;
    }
}

@media (max-width: 860px) {
    .catalog-toolbar.filter-panel {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 8px;
    }

    .catalog-filter-toggle,
    .catalog-sort-toggle {
        width: 100%;
        min-height: 42px;
        justify-content: center;
    }

    .catalog-toolbar-sort {
        grid-column: 2;
        grid-row: 1;
    }

    .catalog-toolbar-fields {
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr) auto;
        margin-top: 2px;
        padding-top: 10px;
    }

    .catalog-toolbar-fields .catalog-search-field,
    .catalog-toolbar-fields .catalog-category-field {
        grid-column: 1 / -1;
    }

    .catalog-toolbar-fields .catalog-clear-button {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
    }

    .catalog-toolbar-fields .catalog-category-field {
        padding-right: 46px;
    }

    .catalog-sort-popover {
        right: 0;
        left: auto;
    }
}

/* Mobile header: centered logo, unframed utility icons, left-side navigation drawer. */
@media (max-width: 860px) {
    .site-header .navbar-inner {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        min-height: 64px;
        padding: 0 14px;
    }

    .navbar-toggle {
        display: inline-flex;
        z-index: 2;
        margin-right: 0;
        padding: 8px 2px;
    }

    .site-header .navbar-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        z-index: 1;
        transform: translate(-50%, -50%);
        margin: 0;
    }

    .site-header .navbar-logo .site-logo-img {
        width: min(142px, 42vw);
        height: 54px;
    }

    .navbar-actions {
        z-index: 2;
        margin-left: auto;
        gap: 8px;
    }

    .navbar-actions .icon-button,
    .navbar-actions .navbar-cart,
    .navbar-actions .language-switcher summary {
        width: auto;
        min-width: 0;
        height: 38px;
        min-height: 38px;
        padding: 0 3px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .navbar-actions .icon-button:hover,
    .navbar-actions .navbar-cart:hover,
    .navbar-actions .language-switcher summary:hover {
        background: transparent;
        color: var(--primary);
        transform: none;
    }

    .navbar-actions .language-switcher summary {
        gap: 3px;
    }

    .site-drawer-panel {
        right: auto;
        left: 0;
        box-shadow: 24px 0 60px rgba(18, 38, 25, 0.18);
    }
}

/* Compact, keyboard-accessible sorting and order-detail controls. */
.table-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-decoration: none;
    cursor: pointer;
}

.table-sort-button:hover,
.table-sort-button:focus-visible,
.table-sort-button.is-active {
    color: var(--primary);
}

.table-sort-button:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.table-sort-button i {
    font-size: .74rem;
}

.price-action-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
}

.price-action-icon[aria-busy="true"] i {
    animation: price-save-pulse .8s ease-in-out infinite alternate;
}

@keyframes price-save-pulse {
    to { opacity: .35; }
}

.order-detail-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
    padding: 18px;
}

.order-detail-summary div,
.order-detail-product {
    display: grid;
    gap: 4px;
}

.order-detail-summary span,
.order-detail-note strong {
    color: var(--text-muted);
    font-size: .78rem;
}

.order-detail-product {
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
}

.order-detail-product .admin-product-thumb {
    width: 38px;
    height: 38px;
}

.order-detail-total,
.order-detail-note {
    margin: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    text-align: right;
}

.order-detail-note {
    text-align: left;
}

.order-detail-note p {
    margin: 6px 0 0;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .order-detail-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Technical catalog and WhatsApp request refinements */
.admin-product-thumb {
    width: 42px;
    height: 42px;
    margin-right: 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    object-fit: cover;
    vertical-align: middle;
}

.catalog-admin-table td:first-child {
    min-width: 215px;
}

.catalog-admin-table code {
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 750;
}

.detail-request-note {
    display: grid;
    gap: 6px;
    margin-top: 14px;
    color: var(--text-dark);
    font-size: 0.84rem;
    font-weight: 750;
}

.detail-request-note input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    padding: 9px 10px;
    font: inherit;
}

.detail-request-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.btn-whatsapp {
    background: #1a9b4a;
    border-color: #1a9b4a;
    color: #fff;
    box-shadow: 0 8px 20px rgba(26, 155, 74, 0.24);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: #13823d;
    border-color: #13823d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(26, 155, 74, 0.4);
}

.error-alert {
    border-color: #f1b9b4;
    background: #fff5f4;
    color: #9e231a;
}

@media (max-width: 700px) {
    .detail-request-actions {
        grid-template-columns: 1fr;
    }
}

/* Keep the main image visible on products that do not have a second hover image. */
.product-card:hover .product-img-main {
    opacity: 1;
}

.product-card:has(.product-img-hover):hover .product-img-main {
    opacity: 0;
}

.product-card:hover .product-img-main {
    opacity: 1;
}

.product-card:has(.product-img-hover):hover .product-img-main {
    opacity: 0;
}

/* ================================================================
   Final cascade lock: Chateau Green / Sweet Honey
   ================================================================ */
body,
input,
select,
textarea,
button {
    font-family: var(--font-body);
}

body {
    color: var(--text-body);
    background: #fff;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.admin-hero h1,
.page-header h1,
.section-header h2 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

.site-header,
.site-header.scrolled,
.catalog-toolbar,
.filter-panel,
.admin-form-card,
.admin-table-card,
.cart-modal-panel,
.admin-confirm-panel,
.navbar-dropdown,
.site-drawer,
.catalog-sort-popover {
    border-color: var(--border-light);
    background: #fff;
}

.btn,
button,
.product-card-action,
.product-card-secondary,
.catalog-search-submit,
.catalog-icon-button,
.icon-button,
.admin-nav-item {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0;
}

.btn-primary,
.product-card-action,
.drawer-whatsapp,
.mobile-whatsapp-fab,
.cart-modal-submit {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover,
.product-card-action:hover,
.drawer-whatsapp:hover,
.mobile-whatsapp-fab:hover,
.cart-modal-submit:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary,
.product-card-secondary,
.catalog-icon-button,
.icon-button {
    border-color: var(--border-light);
    background: #fff;
    color: var(--text-dark);
}

.btn-secondary:hover,
.product-card-secondary:hover,
.catalog-icon-button:hover,
.icon-button:hover,
.navbar-dropdown a:hover,
.site-drawer-nav a:hover,
.catalog-sort-popover button:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--text-dark);
}

.btn-accent,
.catalog-search-submit,
.mobile-scroll-top {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.catalog-search-submit:hover,
.mobile-scroll-top:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.badge-featured,
.badge-new,
.status-pending,
.status-draft {
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent-dark);
}

.badge-organic,
.status-completed,
.admin-nav-item.active,
.catalog-sort-popover button.active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
}

.product-card-price,
.cart-line-total,
.package-price,
.modal-total-value,
.admin-table th,
.admin-table td,
.responsive-table table th,
.responsive-table table td {
    color: var(--text-dark);
}

.price-request,
.product-card-price.price-request,
.package-price.price-request,
.cart-line-total.price-request {
    color: var(--accent-dark);
}

input,
select,
textarea,
.form-control,
.form-select,
.catalog-category-field select,
.catalog-search-field input {
    color: var(--text-dark);
    border-color: var(--border-light);
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.header-search:focus-within,
.catalog-category-field select:focus,
.catalog-search-field input:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.catalog-category-field select:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
}

.catalog-category-field select option {
    background: #fff;
    color: var(--text-dark);
}

.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.82);
}

.footer a,
.footer-links a,
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer a:hover,
.footer-links a:hover,
.footer-bottom-links a:hover,
.footer-contact li i {
    color: var(--accent);
}

.footer-links h5,
.footer-bottom p,
.footer-about p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links h5::after {
    background: var(--accent);
}

.footer-social a {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
}

.admin-hero,
.compact-page-header,
.section-alt,
.admin-shell > .admin-sidebar {
    background: var(--bg-light);
}

.admin-nav-item:hover,
.admin-nav-item.active {
    border-color: rgba(var(--primary-rgb), 0.2);
}

/* ================================================================
   Chateau Green / Sweet Honey final visual system
   ================================================================ */
body,
input,
select,
textarea,
button {
    font-family: var(--font-body);
}

body {
    color: var(--text-body);
    background: #fff;
    font-weight: 400;
}

h1,
h2,
h3,
h4,
h5,
h6,
.admin-hero h1,
.page-header h1,
.section-header h2 {
    color: var(--text-dark);
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 0;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

.text-primary {
    color: var(--primary) !important;
}

.text-accent {
    color: var(--accent) !important;
}

.site-header,
.site-header.scrolled,
.catalog-toolbar,
.filter-panel,
.admin-form-card,
.admin-table-card,
.cart-modal-panel,
.admin-confirm-panel {
    border-color: var(--border-light);
    background: #fff;
}

.btn,
button,
.product-card-action,
.product-card-secondary,
.catalog-search-submit,
.catalog-icon-button,
.icon-button,
.admin-nav-item {
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0;
}

.btn-primary,
.product-card-action,
.drawer-whatsapp,
.mobile-whatsapp-fab,
.cart-modal-submit {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 22px rgba(var(--primary-rgb), 0.2);
}

.btn-primary:hover,
.product-card-action:hover,
.drawer-whatsapp:hover,
.mobile-whatsapp-fab:hover,
.cart-modal-submit:hover {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
}

.btn-secondary,
.product-card-secondary,
.catalog-icon-button,
.icon-button {
    border-color: var(--border-light);
    background: #fff;
    color: var(--text-dark);
}

.btn-secondary:hover,
.product-card-secondary:hover,
.catalog-icon-button:hover,
.icon-button:hover {
    border-color: var(--accent);
    background: var(--accent-light);
    color: var(--text-dark);
}

.btn-accent,
.catalog-search-submit,
.mobile-scroll-top {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
}

.btn-accent:hover,
.catalog-search-submit:hover,
.mobile-scroll-top:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.badge-featured,
.badge-new,
.status-pending,
.status-draft {
    background: rgba(var(--accent-rgb), 0.14);
    color: var(--accent-dark);
}

.badge-organic,
.status-completed,
.admin-nav-item.active,
.catalog-sort-popover button.active {
    background: rgba(var(--primary-rgb), 0.12);
    color: var(--primary-dark);
}

.product-card-price,
.cart-line-total,
.package-price,
.modal-total-value {
    color: var(--text-dark);
}

.price-request,
.product-card-price.price-request,
.package-price.price-request,
.cart-line-total.price-request {
    color: var(--accent-dark);
}

input,
select,
textarea,
.form-control,
.form-select,
.catalog-category-field select,
.catalog-search-field input {
    color: var(--text-dark);
    border-color: var(--border-light);
    background-color: #fff;
}

input:focus,
select:focus,
textarea:focus,
.form-control:focus,
.form-select:focus,
.catalog-category-field select:focus,
.catalog-search-field input:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.navbar-dropdown,
.site-drawer,
.catalog-sort-popover {
    border-color: var(--border-light);
    background: #fff;
    box-shadow: 0 18px 45px rgba(45, 45, 45, 0.12);
}

.navbar-dropdown a:hover,
.site-drawer-nav a:hover,
.catalog-sort-popover button:hover {
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--primary-dark);
}

.footer {
    background: var(--text-dark);
    color: rgba(255, 255, 255, 0.82);
}

.footer a,
.footer-links a,
.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.78);
}

.footer a:hover,
.footer-links a:hover,
.footer-bottom-links a:hover,
.footer-contact li i,
.footer-links h5::after {
    color: var(--accent);
}

.footer-links h5,
.footer-bottom p,
.footer-about p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-social a {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
}

.footer-links h5::after {
    background: var(--accent);
}

.admin-hero,
.compact-page-header,
.section-alt,
.admin-shell > .admin-sidebar {
    background: var(--bg-light);
}

.admin-nav-item:hover,
.admin-nav-item.active {
    border-color: rgba(var(--primary-rgb), 0.2);
}

.admin-table th,
.admin-table td,
.responsive-table table th,
.responsive-table table td {
    color: var(--text-dark);
}

.filter-panel input:focus,
.filter-panel select:focus,
.header-search:focus-within,
.catalog-category-field select:focus {
    border-color: rgba(var(--primary-rgb), 0.45);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.12);
}

.catalog-category-field select:hover {
    border-color: rgba(var(--primary-rgb), 0.35);
}

.catalog-category-field select option {
    background: #fff;
    color: var(--text-dark);
}

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

.product-card-body {
    padding: 14px;
}

.product-card-category {
    letter-spacing: 0;
    text-transform: none;
    font-size: 0.78rem;
}

.product-card-title {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    margin: 4px 0 6px;
}

.product-card-stock {
    margin-bottom: 10px;
}

.product-card-price {
    font-family: var(--font-body);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 10px;
}

.price-request {
    color: var(--primary-dark);
    font-weight: 700;
}

.product-card-price.price-request,
.package-price.price-request,
.cart-line-total.price-request {
    color: var(--primary-dark);
}

.package-picker {
    display: grid;
    gap: 8px;
}

.package-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 58px;
    gap: 8px;
    align-items: center;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
}

.package-line span,
.package-line strong {
    display: block;
    font-size: 0.78rem;
    line-height: 1.25;
}

.package-line strong {
    color: var(--primary);
}

.package-line input {
    width: 58px;
    height: 36px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
}

.product-card-action {
    height: 42px;
    border-radius: 8px;
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    text-transform: none;
    letter-spacing: 0;
}

.product-card-action:hover {
    background: var(--primary-dark);
}

.soft-alert {
    padding: 10px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--text-body);
    font-size: 0.88rem;
}

.success-alert {
    margin-bottom: 16px;
    border-color: #b8dcc3;
}

.empty-state {
    padding: 48px 20px;
    text-align: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
}

.empty-state i {
    font-size: 2.6rem;
    color: var(--primary);
}

.grid-empty {
    grid-column: 1 / -1;
}

.section-action {
    margin-top: 26px;
    text-align: center;
}

.preorder-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.preorder-items {
    display: grid;
    gap: 12px;
}

.cart-header {
    padding: 14px 0;
}

.btn-link-danger {
    border: 0;
    background: transparent;
    color: var(--danger);
    font-weight: 700;
}

.cart-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 116px 110px 42px;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
}

.cart-item-image {
    width: 86px;
    height: 86px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg-light);
}

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

.cart-item-info h3 {
    font-size: 1rem;
    margin: 0 0 4px;
}

.cart-item-info p,
.cart-item-info strong {
    display: block;
    margin: 0;
    font-size: 0.86rem;
}

.cart-qty-form {
    display: flex;
    gap: 6px;
}

.cart-qty-form input {
    width: 62px;
    height: 42px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    text-align: center;
}

.cart-line-total {
    font-weight: 800;
    color: var(--primary);
}

.icon-button.danger {
    color: var(--danger);
}

.preorder-summary {
    padding: 18px;
    position: sticky;
    top: calc(var(--navbar-height) + var(--category-height) + 18px);
}

.summary-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-light);
}

.summary-row.total {
    font-size: 1.08rem;
    color: var(--primary);
    border-bottom: 0;
}

.preorder-form {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.footer {
    background: #1f2d25;
}

.footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
}

.compact-page-header {
    margin-top: 0;
    padding: 54px 0 36px;
    background: var(--bg-light);
}

.compact-page-header h1 {
    color: var(--text-dark);
}

.compact-page-header .breadcrumb,
.compact-page-header .breadcrumb a {
    color: var(--text-muted);
}

.admin-page-heading {
    margin-bottom: 18px;
}

.admin-page-heading h2 {
    font-family: var(--font-body);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.admin-form-card,
.admin-table-card {
    padding: 18px;
}

.admin-form-card {
    max-width: 680px;
    display: grid;
    gap: 14px;
}

.admin-form-card label span {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.responsive-table {
    width: 100%;
    overflow-x: auto;
}

.orders-table td strong,
.orders-table td small {
    display: block;
}

.orders-table td small {
    color: var(--text-muted);
    margin-top: 3px;
}

.order-items-list {
    display: grid;
    gap: 4px;
    min-width: 260px;
}

.status-draft {
    background: rgba(59, 130, 246, 0.1);
    color: #1D4ED8;
}

@media (max-width: 1100px) {
    .header-search {
        max-width: 320px;
    }

    .product-grid,
    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    :root {
        --navbar-height: 64px;
        --category-height: 44px;
    }

    .navbar-inner {
        min-height: var(--navbar-height);
        padding-inline: 14px;
        gap: 10px;
    }

    .navbar-logo {
        min-width: auto;
    }

    .navbar-logo .site-logo-img {
        width: 156px;
        height: 62px;
    }

    .drawer-logo-img {
        width: 178px !important;
        height: 70px !important;
    }

    .brand-mark {
        width: 36px;
        height: 36px;
        font-size: 0.82rem;
    }

    .navbar-logo-text {
        font-size: 0.92rem;
    }

    .navbar-logo-text small {
        display: none;
    }

    .header-search {
        order: 3;
        flex: 1 0 100%;
        max-width: none;
        height: 40px;
    }

    .site-header .navbar-inner {
        flex-wrap: wrap;
        padding-block: 8px;
    }

    .navbar-menu {
        top: calc(var(--navbar-height) + 56px);
        background: #fff;
        width: 100%;
        max-width: 100vw;
        transform: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .navbar-menu.open {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .category-bar-inner {
        padding-inline: 14px;
    }

    .soft-hero {
        padding: 12px 12px 0;
    }

    .hero-slide {
        height: auto;
        min-height: 360px;
    }

    .hero-copy {
        align-self: end;
        width: calc(100% - 24px);
        margin: 12px;
        padding: 18px;
    }

    .catalog-layout,
    .preorder-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .catalog-sidebar,
    .preorder-summary {
        position: static;
    }

    .catalog-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .catalog-search {
        width: 100%;
    }

    .cart-item {
        grid-template-columns: 74px minmax(0, 1fr) 96px;
        grid-template-areas:
            "img info remove"
            "img qty total";
    }

    .cart-item-image { grid-area: img; width: 74px; height: 74px; }
    .cart-item-info { grid-area: info; }
    .cart-qty-form { grid-area: qty; }
    .cart-line-total { grid-area: total; text-align: right; }
    .cart-item form:last-child { grid-area: remove; justify-self: end; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }
}

@media (max-width: 560px) {
    .container {
        padding-inline: 14px;
    }

    .section {
        padding: 34px 0;
    }

    .product-grid,
    .featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .filter-panel,
    .preorder-summary,
    .admin-form-card,
    .admin-table-card {
        padding: 14px;
    }

    .hero-copy h1 {
        font-size: 1.75rem;
    }

    .hero-copy p {
        font-size: 0.92rem;
    }

    .package-line {
        grid-template-columns: minmax(0, 1fr) 54px;
    }

    .cart-item {
        grid-template-columns: 64px minmax(0, 1fr);
        grid-template-areas:
            "img info"
            "qty qty"
            "total remove";
    }

    .cart-line-total {
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom,
    .footer-bottom-links {
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }
}

/* ================================================================
   Catalog/Admin v2 Overrides
   ================================================================ */

.mobile-search-button {
    display: none;
}

.site-drawer[hidden],
.mobile-search-panel[hidden] {
    display: none !important;
}

.site-drawer {
    position: fixed;
    inset: 0;
    z-index: 1200;
}

.site-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 24, 16, 0.42);
}

.site-drawer-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100%;
    padding: 18px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -24px 0 60px rgba(18, 38, 25, 0.18);
}

.site-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.site-drawer-nav {
    display: grid;
    gap: 8px;
    padding: 18px 0;
}

.site-drawer-nav a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--text-heading);
    font-weight: 750;
    text-decoration: none;
}

.site-drawer-nav a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.site-drawer-contact {
    display: grid;
    gap: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    color: var(--text-body);
    font-size: 0.9rem;
}

.site-drawer-contact span {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mobile-search-panel {
    width: min(100% - 24px, 720px);
    margin: 0 auto 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
}

.mobile-search-panel input {
    min-width: 0;
    border: 0;
    outline: 0;
}

.mobile-search-panel button {
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    padding: 8px 12px;
    font-weight: 800;
}

.hero-slide {
    min-height: clamp(330px, 48vw, 620px);
}

.hero-slide picture,
.hero-slide picture img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slide picture img {
    object-fit: cover;
}

.hero-slide::before,
.hero-copy {
    display: none !important;
}

.catalog-layout-wide {
    display: block;
}

.catalog-layout-wide .catalog-content {
    width: 100%;
}

.catalog-toolbar.filter-panel {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 18px;
}

.catalog-toolbar-summary {
    min-width: 160px;
}

.catalog-toolbar-fields {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto auto;
    gap: 10px;
    align-items: end;
}

.catalog-filter-toggle {
    display: none;
}

.catalog-content .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-grid {
    grid-template-columns: 1fr 2fr 1fr;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.admin-form-grid.two,
.admin-image-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.admin-form-section {
    display: grid;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
}

.admin-form-section h3 {
    margin: 0;
    font-size: 1rem;
}

.admin-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-check-grid label,
.inline-check {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    font-weight: 750;
}

.package-admin-list {
    display: grid;
    gap: 10px;
}

.package-admin-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr 0.8fr 0.8fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
}

.admin-image-box {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
}

.admin-image-box img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg-light);
}

.admin-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.inline-form {
    display: inline;
    margin: 0;
}

.admin-thumb-cell {
    display: grid;
    gap: 6px;
}

.admin-thumb-cell img {
    width: 126px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

@media (max-width: 1180px) {
    .catalog-content .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .header-search {
        display: none;
    }

    .mobile-search-button {
        display: inline-flex;
    }

    .navbar-menu {
        display: none !important;
    }

    .catalog-toolbar.filter-panel {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .catalog-filter-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        gap: 6px;
        padding: 0 12px;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        background: #fff;
        color: var(--text-heading);
        font-weight: 800;
    }

    .catalog-toolbar-fields {
        grid-column: 1 / -1;
        display: none;
        grid-template-columns: 1fr;
        padding-top: 12px;
        border-top: 1px solid var(--border-light);
    }

    .catalog-toolbar-fields.open {
        display: grid;
    }

    .footer-grid,
    .footer-links-group,
    .admin-form-grid.two,
    .admin-image-grid,
    .package-admin-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .hero-slide {
        min-height: 260px;
    }

    .catalog-content .product-grid {
        grid-template-columns: 1fr;
    }

    .catalog-toolbar.filter-panel {
        padding: 12px;
    }

    .site-drawer-panel {
        width: min(90vw, 340px);
    }
}

/* ================================================================
   Product Modal + Navigation Refinement
   ================================================================ */

:root {
    --category-height: 0px;
}

body {
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    letter-spacing: 0;
    line-height: 1.18;
}

h1 { font-size: 2.35rem; font-weight: 800; }
h2 { font-size: 1.75rem; font-weight: 780; }
h3 { font-size: 1.25rem; font-weight: 750; }
h4 { font-size: 1.08rem; font-weight: 720; }
h5 { font-size: 1rem; font-weight: 700; }
h6 { font-size: 0.92rem; font-weight: 700; }

.btn,
button,
input,
select,
textarea {
    letter-spacing: 0;
}

.btn,
.product-card-action,
.product-card-secondary,
.icon-button,
.navbar-cart {
    font-size: 0.9rem;
    font-weight: 700;
}

.site-header {
    border-bottom: 1px solid var(--border-light);
}

.navbar-menu > li {
    position: relative;
}

.navbar-dropdown-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
}

.navbar-dropdown-trigger i {
    font-size: 0.72rem;
    transition: transform 0.2s ease;
}

.navbar-dropdown:hover .navbar-dropdown-trigger i,
.navbar-dropdown:focus-within .navbar-dropdown-trigger i {
    transform: rotate(180deg);
}

.navbar-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    width: min(260px, calc(100vw - 28px));
    max-height: min(430px, calc(100vh - 120px));
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(-50%, -4px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    z-index: 1005;
}

.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown:focus-within .navbar-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.navbar-dropdown-menu a {
    display: flex;
    align-items: center;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 7px;
    color: var(--text-body);
    font-size: 0.88rem;
    font-weight: 650;
    white-space: normal;
}

.navbar-dropdown-menu a::after {
    display: none;
}

.navbar-dropdown-menu a:hover {
    background: var(--accent-light);
    color: var(--primary);
}

.catalog-sidebar {
    top: calc(var(--navbar-height) + 18px);
}

.filter-panel {
    gap: 14px;
    padding: 16px;
}

.filter-heading {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.filter-heading h2 {
    font-size: 1rem;
    font-weight: 800;
}

.filter-heading a {
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.filter-panel label {
    gap: 8px;
    font-size: 0.84rem;
    font-weight: 750;
}

.filter-panel input,
.filter-panel select {
    min-height: 42px;
    padding: 9px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: none;
}

.filter-panel select {
    appearance: none;
    padding-right: 36px;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 13px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.filter-panel input:focus,
.filter-panel select:focus,
.header-search:focus-within {
    border-color: rgba(43, 125, 74, 0.45);
    box-shadow: 0 0 0 3px rgba(43, 125, 74, 0.1);
}

.catalog-toolbar {
    align-items: center;
    min-height: 62px;
}

.catalog-toolbar strong {
    font-size: 1rem;
    font-weight: 800;
}

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

.product-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
}

.product-card-title {
    min-height: 2.45em;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.22;
}

.product-card-category {
    color: var(--primary);
    font-weight: 750;
}

.product-card-stock {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.product-card-stock code {
    color: var(--text-body);
    font-size: 0.78rem;
}

.product-card-price {
    margin: 0;
    font-size: 0.95rem;
}

.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    margin-top: auto;
    padding-top: 8px;
}

.product-card-secondary,
.product-card-action {
    min-width: 0;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border-radius: 8px;
    text-align: center;
    white-space: nowrap;
}

.product-card-secondary {
    border: 1px solid var(--border-light);
    background: #fff;
    color: var(--text-body);
}

.product-card-secondary:hover {
    border-color: rgba(43, 125, 74, 0.35);
    background: var(--accent-light);
    color: var(--primary);
}

.product-card-action {
    border: 1px solid var(--primary);
    cursor: pointer;
}

.cart-modal[hidden] {
    display: none !important;
}

.cart-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cart-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 34, 26, 0.42);
    backdrop-filter: blur(5px);
}

.cart-modal-panel {
    position: relative;
    width: min(680px, 100%);
    max-height: min(760px, calc(100vh - 28px));
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(26, 38, 31, 0.22);
}

.cart-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cart-modal-product {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 58px 16px 18px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-light);
}

.cart-modal-image {
    width: 128px;
    aspect-ratio: 1;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

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

.cart-modal-copy {
    min-width: 0;
}

.cart-modal-copy span {
    display: block;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.cart-modal-copy h2 {
    margin: 0 0 7px;
    color: var(--text-dark);
    font-size: 1.25rem;
    font-weight: 800;
}

.cart-modal-copy p {
    margin: 0 0 8px;
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.45;
}

.cart-modal-copy a {
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 750;
}

.cart-modal-form {
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
}

.cart-modal-packages {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 10px;
    padding: 16px 18px;
}

.cart-modal-package {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
}

.cart-modal-package.is-selected {
    border-color: rgba(43, 125, 74, 0.45);
    background: var(--accent-light);
}

.cart-modal-package h3 {
    margin: 0 0 3px;
    color: var(--text-dark);
    font-size: 0.95rem;
    font-weight: 800;
}

.cart-modal-package span {
    color: var(--primary);
    font-size: 0.86rem;
    font-weight: 800;
}

.modal-qty {
    display: grid;
    grid-template-columns: 36px 42px 36px;
    align-items: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}

.modal-qty button {
    width: 36px;
    height: 36px;
    border: 0;
    background: #fff;
    color: var(--primary);
    font-size: 1.05rem;
    font-weight: 800;
}

.modal-qty button:hover {
    background: var(--accent-light);
}

.modal-qty input {
    width: 42px;
    height: 36px;
    border: 0;
    border-inline: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 800;
}

.cart-modal-empty,
.cart-modal-error {
    margin: 0 18px 14px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 650;
}

.cart-modal-empty {
    border: 1px solid var(--border-light);
    background: var(--bg-light);
    color: var(--text-body);
}

.cart-modal-error {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
}

.cart-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-top: 1px solid var(--border-light);
    background: #fff;
}

.cart-modal-footer span {
    display: block;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.cart-modal-footer strong {
    color: var(--primary);
    font-size: 1.14rem;
    font-weight: 850;
}

.cart-modal-submit {
    min-width: 170px;
}

body.modal-open {
    overflow: hidden;
}

.detail-cart-form {
    margin-top: 28px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.detail-cart-form h4 {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 800;
}

.detail-cart-form .package-table {
    display: grid;
    gap: 10px;
}

.detail-cart-form .package-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-light);
}

.detail-cart-form .package-row.selected {
    border-color: rgba(43, 125, 74, 0.45);
    background: var(--accent-light);
}

.detail-cart-form .package-name {
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 800;
}

.detail-cart-form .package-price {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 800;
}

.detail-cart-form .text-muted {
    font-size: 0.86rem;
    line-height: 1.45;
}

@media (max-width: 860px) {
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.14rem; }

    .navbar-menu {
        gap: 6px;
        padding: 16px;
        overflow-y: auto;
    }

    .navbar-menu > li {
        width: 100%;
    }

    .navbar-dropdown-menu {
        position: static;
        width: 100%;
        max-height: 260px;
        margin-top: 6px;
        padding: 6px;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        display: none;
    }

    .navbar-dropdown:hover .navbar-dropdown-menu,
    .navbar-dropdown:focus-within .navbar-dropdown-menu,
    .navbar-dropdown.open .navbar-dropdown-menu {
        display: grid;
    }

    .navbar-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
    }

    .catalog-toolbar {
        min-height: auto;
        flex-direction: row;
    }

    .catalog-sidebar {
        position: static;
    }

    .floating-cart {
        display: none !important;
    }

    .product-detail {
        gap: 24px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14px;
    }

    h1 { font-size: 1.62rem; }
    h2 { font-size: 1.32rem; }

    .product-card-title {
        min-height: 0;
    }

    .product-card-actions {
        grid-template-columns: 1fr;
    }

    .product-card-secondary,
    .product-card-action {
        height: 40px;
    }

    .cart-modal {
        align-items: flex-end;
        padding: 0;
    }

    .cart-modal-panel {
        width: 100%;
        max-height: calc(100vh - 18px);
        border-radius: 10px 10px 0 0;
    }

    .cart-modal-product {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 12px;
        padding: 14px 54px 14px 14px;
    }

    .cart-modal-image {
        width: 82px;
    }

    .cart-modal-copy h2 {
        font-size: 1.02rem;
    }

    .cart-modal-copy p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 0.84rem;
    }

    .cart-modal-package {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px;
    }

    .modal-qty {
        width: auto;
        grid-template-columns: 34px 40px 34px;
    }

    .modal-qty button {
        width: 34px;
        height: 36px;
    }

    .modal-qty input {
        width: 40px;
        height: 36px;
        min-width: 0;
    }

    .cart-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-modal-submit {
        width: 100%;
        min-width: 0;
    }

    .detail-cart-form {
        padding: 14px;
    }

    .detail-cart-form .package-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .detail-cart-form .qty-stepper {
        width: 100%;
        grid-template-columns: 42px 1fr 42px;
    }

    .detail-cart-form .qty-stepper button {
        width: 42px;
    }

    .detail-cart-form .qty-stepper input {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .featured-grid {
        gap: 12px;
    }

    .featured-grid .product-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: stretch;
        min-height: 154px;
    }

    .featured-grid .product-image-link {
        height: 100%;
        min-height: 154px;
    }

    .featured-grid .product-card-image {
        height: 100%;
        min-height: 154px;
        aspect-ratio: auto;
        background: #f6faf6;
    }

    .featured-grid .product-card-body {
        min-width: 0;
        padding: 10px;
        gap: 4px;
    }

    .featured-grid .product-card-category,
    .featured-grid .product-card-stock {
        font-size: 0.7rem;
    }

    .featured-grid .product-card-title {
        min-height: 0;
        font-size: 0.84rem;
        line-height: 1.2;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .featured-grid .product-card-price {
        font-size: 0.82rem;
    }

    .featured-grid .product-card-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        margin-top: auto;
        padding-top: 5px;
    }

    .featured-grid .product-card-secondary,
    .featured-grid .product-card-action {
        height: 34px;
        gap: 4px;
        padding: 0 6px;
        font-size: 0.72rem;
    }

    .catalog-content .product-card {
        display: grid;
        grid-template-columns: 116px minmax(0, 1fr);
        align-items: stretch;
    }

    .catalog-content .product-image-link {
        height: 100%;
        min-height: 158px;
    }

    .catalog-content .product-card-image {
        height: 100%;
        min-height: 158px;
        aspect-ratio: auto;
    }

    .catalog-content .product-card-body {
        padding: 10px;
        gap: 4px;
    }

    .catalog-content .product-card-category {
        font-size: 0.7rem;
    }

    .catalog-content .product-card-title {
        font-size: 0.84rem;
        line-height: 1.2;
    }

    .catalog-content .product-card-stock {
        font-size: 0.72rem;
    }

    .catalog-content .product-card-price {
        font-size: 0.82rem;
    }

    .catalog-content .product-card-actions {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
        padding-top: 5px;
    }

    .catalog-content .product-card-secondary,
    .catalog-content .product-card-action {
        height: 34px;
        gap: 4px;
        padding: 0 6px;
        font-size: 0.72rem;
    }
}

@media (max-width: 360px) {
    .featured-grid .product-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .featured-grid .product-card-actions {
        grid-template-columns: 1fr;
    }

    .catalog-content .product-card {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .catalog-content .product-card-actions {
        grid-template-columns: 1fr;
    }
}

/* ================================================================
   Minimal Catalog Toolbar, Drawer Navigation, Floating Actions
   ================================================================ */

.catalog-toolbar.filter-panel {
    grid-template-columns: 1fr;
    align-items: center;
    padding: 10px;
    border-color: rgba(219, 229, 221, 0.95);
    background: rgba(255, 255, 255, 0.92);
}

.catalog-toolbar-fields {
    display: grid;
    grid-template-columns: minmax(260px, 1.1fr) minmax(190px, 0.75fr) auto auto;
    gap: 8px;
    align-items: center;
}

.catalog-toolbar-fields label {
    margin: 0;
}

.catalog-search-field {
    position: relative;
    display: block !important;
}

.catalog-search-field input {
    width: 100%;
    min-height: 42px;
    padding-right: 46px;
    border-radius: 8px;
}

.catalog-search-submit,
.catalog-icon-button {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    transition: all var(--transition-fast);
}

.catalog-search-submit {
    position: absolute;
    top: 3px;
    right: 3px;
}

.catalog-search-submit:hover,
.catalog-icon-button:hover {
    border-color: rgba(43, 125, 74, 0.35);
    background: var(--accent-light);
}

.catalog-sort-menu {
    position: relative;
}

.catalog-sort-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 40;
    min-width: 190px;
    padding: 6px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(20, 43, 31, 0.14);
}

.catalog-sort-popover button {
    width: 100%;
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-body);
    font-size: 0.84rem;
    font-weight: 750;
    text-align: left;
}

.catalog-sort-popover button:hover,
.catalog-sort-popover button.active {
    background: var(--accent-light);
    color: var(--primary);
}

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

.site-drawer-nav a {
    gap: 10px;
}

.site-drawer-group {
    display: grid;
    gap: 6px;
}

.site-drawer-group-toggle {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-dark);
    font-weight: 800;
    text-align: left;
}

.site-drawer-group-toggle span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-drawer-group-toggle:hover,
.site-drawer-group.open .site-drawer-group-toggle {
    border-color: var(--border-light);
    background: var(--bg-light);
    color: var(--primary);
}

.site-drawer-group-toggle .bi-chevron-down {
    transition: transform var(--transition-fast);
}

.site-drawer-group.open .site-drawer-group-toggle .bi-chevron-down {
    transform: rotate(180deg);
}

.site-drawer-subnav {
    display: grid;
    gap: 4px;
    padding: 4px 0 4px 12px;
    border-left: 2px solid var(--accent-light);
}

.site-drawer-subnav a {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 0.86rem;
}

.drawer-whatsapp {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    font-weight: 800;
}

.drawer-whatsapp:hover {
    color: #fff;
    background: #1fb65a;
}

.mobile-whatsapp-fab,
.scroll-top-fab {
    position: fixed;
    right: 18px;
    z-index: 1100;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(20, 43, 31, 0.22);
}

.mobile-whatsapp-fab {
    bottom: 18px;
    background: #25d366;
    color: #fff;
    font-size: 1.35rem;
}

.scroll-top-fab {
    bottom: 76px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--border-light);
}

.scroll-top-fab:not([hidden]) {
    display: inline-flex;
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.55fr) minmax(150px, 0.45fr) auto auto;
    gap: 10px;
    align-items: end;
    margin: 0 0 16px;
    padding: 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.admin-filter-bar label {
    display: grid;
    gap: 6px;
    margin: 0;
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-inline-status select {
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--text-body);
}

.admin-inline-status {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.admin-inline-status select {
    min-width: 150px;
}

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

.admin-health-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

/* Admin price management */
.price-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.price-search-field {
    width: min(100%, 480px);
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.price-search-field i {
    color: var(--text-muted);
}

.price-search-field input {
    min-width: 0;
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-dark);
}

.price-sort-field select {
    min-height: 42px;
    min-width: 162px;
    padding: 8px 34px 8px 11px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    color: var(--text-dark);
    box-shadow: var(--shadow-sm);
}

.price-columns-control {
    position: relative;
}

.price-columns-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    width: 210px;
    display: grid;
    gap: 10px;
    padding: 13px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-md);
}

.price-columns-menu label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text-dark);
    font-size: 0.86rem;
    font-weight: 700;
}

.price-columns-menu input {
    accent-color: var(--primary);
}

.price-columns-menu p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.4;
}

.price-feedback {
    display: flex;
    align-items: center;
    min-height: 40px;
    margin-bottom: 14px;
    padding: 9px 13px;
    border: 1px solid #f4b15d;
    border-radius: 8px;
    background: #fff8ee;
    color: #995310;
    font-size: 0.88rem;
    font-weight: 750;
}

.price-feedback::before {
    content: "✓";
    width: 21px;
    height: 21px;
    display: inline-grid;
    place-items: center;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
}

.price-feedback.is-error {
    border-color: #f2a2a2;
    background: #fff3f3;
    color: #a12828;
}

.price-feedback.is-error::before {
    content: "!";
    background: #c63d3d;
}

.price-table-card {
    overflow: visible;
}

.price-admin-table {
    min-width: 980px;
}

.price-admin-table th,
.price-admin-table td {
    vertical-align: middle;
}

.price-admin-table td:nth-child(3) {
    min-width: 210px;
}

.price-admin-table td:nth-child(5) {
    min-width: 118px;
}

.price-admin-table td:nth-child(7) {
    min-width: 142px;
}

.price-product-thumb {
    flex: none;
}

.price-image-placeholder {
    width: 46px;
    height: 46px;
    display: inline-grid;
    place-items: center;
    border: 1px dashed var(--border-light);
    border-radius: 7px;
    color: var(--text-muted);
}

.price-product-passive {
    display: block;
    margin-top: 4px;
    color: #a15e13;
    font-size: 0.72rem;
    font-weight: 700;
}

.price-package-label {
    color: var(--text-body);
    font-weight: 700;
}

.price-display {
    color: var(--primary-dark);
    white-space: nowrap;
}

.price-row-actions {
    display: flex;
    justify-content: flex-start;
}

.price-edit-form {
    display: grid;
    grid-template-columns: minmax(128px, 1fr) auto auto auto;
    align-items: center;
    gap: 7px;
    min-width: 410px;
}

.price-edit-form input[type="number"] {
    min-height: 36px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    color: var(--text-dark);
}

.price-status-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    color: var(--text-body);
    font-size: 0.8rem;
    font-weight: 750;
}

.price-status-toggle input {
    accent-color: var(--primary);
}

@media (max-width: 860px) {
    .catalog-toolbar.filter-panel {
        grid-template-columns: auto 1fr;
        gap: 8px;
    }

    .catalog-toolbar-fields {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto auto;
        gap: 8px;
        padding-top: 10px;
    }

    .catalog-category-field {
        grid-column: 1 / -1;
    }

    .catalog-filter-toggle {
        width: 40px;
        padding: 0;
    }

    .mobile-whatsapp-fab {
        display: inline-flex;
    }

    .admin-filter-bar {
        grid-template-columns: 1fr;
    }

    .price-toolbar {
        flex-wrap: wrap;
    }

    .price-search-field {
        flex: 1 1 280px;
    }

    .admin-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-inline-status {
        align-items: stretch;
    }

    .admin-inline-status select {
        flex: 1;
        min-width: 0;
    }

    .price-edit-form {
        grid-template-columns: minmax(120px, 1fr) auto auto;
        min-width: 340px;
    }

    .price-status-toggle {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .catalog-toolbar-fields {
        grid-template-columns: 1fr auto;
    }

    .catalog-search-field {
        grid-column: 1 / -1;
    }

    .catalog-category-field {
        grid-column: 1 / -1;
    }

    .catalog-sort-popover {
        right: auto;
        left: 0;
    }
}

/* ================================================================
   Admin Panel Shell
   ================================================================ */

.admin-hero {
    padding: 34px 0;
    background: linear-gradient(135deg, #163425 0%, #245f3d 100%);
    color: #fff;
}

.admin-hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.admin-hero span {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
    font-weight: 750;
}

.admin-hero h1 {
    margin: 0;
    color: #fff;
    font-size: 2rem;
}

.admin-shell {
    width: min(1400px, calc(100% - 40px));
    margin: 28px auto 56px;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.admin-shell > .admin-sidebar {
    position: sticky;
    top: calc(var(--navbar-height) + 18px);
    left: auto;
    bottom: auto;
    width: auto;
    transform: none;
    z-index: auto;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    padding: 10px;
}

.admin-nav {
    display: grid;
    gap: 6px;
}

.admin-nav-item {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text-body);
    font-size: 0.9rem;
    font-weight: 750;
}

.admin-nav-item i {
    width: 18px;
    text-align: center;
    color: var(--primary);
}

.admin-nav-item:hover {
    background: var(--accent-light);
    color: var(--primary);
}

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

.admin-nav-item.active i {
    color: #fff;
}

.admin-shell > .admin-main {
    min-width: 0;
    margin-left: 0;
}

.admin-page-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.stats-grid.compact-stats {
    margin-bottom: 18px;
}

.stat-card,
.admin-panel-card,
.admin-table-card,
.admin-form-card {
    border-radius: 8px;
}

.admin-panel-card {
    padding: 18px;
    border: 1px solid var(--border-light);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.admin-panel-card h3 {
    margin: 0 0 6px;
    font-size: 1.05rem;
}

.admin-panel-card p {
    margin: 0;
    color: var(--text-body);
}

.admin-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    text-align: left;
    vertical-align: top;
    font-size: 0.88rem;
}

.admin-table th {
    color: var(--text-muted);
    background: var(--bg-light);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.admin-table td strong,
.admin-table td small {
    display: block;
}

.admin-table td small,
.muted-cell {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.status-pending,
.status-draft {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.status-approved,
.status-preparing,
.status-waitingsupply {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.status-completed {
    background: rgba(43, 125, 74, 0.14);
    color: var(--primary);
}

.status-cancelled {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
}

@media (max-width: 960px) {
    .admin-shell {
        width: min(100% - 28px, 760px);
        grid-template-columns: 1fr;
        gap: 14px;
        margin-top: 18px;
    }

    .admin-shell > .admin-sidebar {
        position: static;
        width: 100%;
        transform: none !important;
        overflow-x: auto;
        padding: 8px;
    }

    .admin-nav {
        display: flex;
        gap: 8px;
        min-width: max-content;
    }

    .admin-nav-item {
        white-space: nowrap;
    }

    .admin-page-heading-row {
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .admin-hero {
        padding: 28px 0;
    }

    .admin-hero .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-hero h1 {
        font-size: 1.55rem;
    }

    .admin-shell {
        width: calc(100% - 20px);
        margin-bottom: 36px;
    }

    .admin-nav-item {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 0.82rem;
    }

    .admin-table-card {
        padding: 10px;
    }

    .admin-table-card .responsive-table {
        overflow: visible;
    }

    .admin-table-card .admin-table {
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0 10px;
    }

    .admin-table-card .admin-table thead {
        display: none;
    }

    .admin-table-card .admin-table,
    .admin-table-card .admin-table tbody,
    .admin-table-card .admin-table tr,
    .admin-table-card .admin-table td {
        display: block;
        width: 100%;
    }

    .admin-table-card .admin-table tr {
        padding: 8px;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 10px 22px rgba(20, 43, 31, 0.06);
    }

    .admin-table-card .admin-table td {
        display: grid;
        grid-template-columns: minmax(94px, 34%) minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 7px 8px;
        border-bottom: 1px solid rgba(219, 229, 221, 0.7);
        font-size: 0.83rem;
    }

    .admin-table-card .admin-table td:last-child {
        border-bottom: 0;
    }

    .admin-table-card .admin-table td::before {
        content: attr(data-label);
        color: var(--text-muted);
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0;
        text-transform: uppercase;
    }

    .admin-table-card .admin-table td strong,
    .admin-table-card .admin-table td small,
    .admin-table-card .admin-table td code,
    .admin-table-card .admin-table .order-items-list {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .admin-form-card {
        max-width: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-card {
        padding: 13px;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 1.15rem;
    }

    .stat-info h3 {
        font-size: 1.2rem;
    }

    .footer {
        padding: 34px 0 18px;
    }

    .footer-grid {
        gap: 18px;
    }

    .footer-links h5 {
        margin-bottom: 10px;
    }

    .footer-links ul {
        gap: 8px;
    }

    .footer-bottom {
        margin-top: 20px;
        padding-top: 16px;
    }
}

.about-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
    background: var(--soft-white);
}

.about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-title {
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    font-weight: 800;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-list {
    list-style: none;
    padding: 0;
}

.about-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.about-list i {
    font-size: 1.45rem;
}

.admin-switch-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.admin-switch-grid > input[type="hidden"] {
    display: none;
}

.admin-switch-grid .admin-toggle {
    position: relative;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    border: 1px solid var(--border-light);
    border-radius: 10px;
    background: var(--soft-white);
    padding: 0.7rem 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.admin-switch-grid .admin-toggle input[type="checkbox"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-toggle-track {
    order: 2;
    width: 38px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    padding: 3px;
    border-radius: 999px;
    background: #a8b1ab;
    transition: background .18s ease;
}

.admin-toggle-track span {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .26);
    transition: transform .18s ease;
}

.admin-toggle:has(input[type="checkbox"]:checked) {
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border-light));
    background: color-mix(in srgb, var(--primary) 8%, var(--soft-white));
}

.admin-toggle input[type="checkbox"]:checked + .admin-toggle-track {
    background: var(--primary);
}

.admin-toggle input[type="checkbox"]:checked + .admin-toggle-track span {
    transform: translateX(16px);
}

.admin-toggle:has(input[type="checkbox"]:focus-visible) {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (max-width: 560px) {
    .admin-switch-grid {
        grid-template-columns: 1fr;
    }
}

.package-admin-row small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.78rem;
}

/* Focused product/detail polish */
.page-header {
    margin-top: 0;
    padding: 34px 0 24px;
}

.compact-page-header {
    padding: 36px 0 24px;
}

.advantages-section {
    padding: 18px 0 28px;
}

.soft-advantages {
    gap: 10px;
}

.soft-advantages .advantage-card {
    padding: 14px;
    border-radius: 8px;
    box-shadow: none;
}

.soft-advantages .advantage-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.soft-advantages h3 {
    margin-bottom: 4px;
    font-size: 0.92rem;
}

.soft-advantages p {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
}

.footer-logo img {
    width: 210px;
    height: 92px;
    object-fit: contain;
}

.catalog-category-field select {
    width: 100%;
    min-height: 42px;
    padding: 9px 38px 9px 12px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background-color: #fff;
    color: var(--text-dark);
    font-size: 0.88rem;
    font-weight: 650;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary) 50%),
        linear-gradient(135deg, var(--primary) 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 13px) 18px;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.catalog-category-field select:focus {
    border-color: rgba(43, 125, 74, 0.45);
    box-shadow: 0 0 0 3px rgba(43, 125, 74, 0.1);
    outline: 0;
}

.product-card-image {
    background: #f8faf7;
}

.product-card-image img {
    padding: 7px;
    object-fit: contain;
}

.product-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.product-card-meta .product-card-stock,
.product-card-meta .product-card-category {
    margin: 0;
    min-width: 0;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 760;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: uppercase;
}

.product-card-meta .product-card-category {
    color: var(--primary);
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-card-growing {
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
}

.product-card-title {
    min-height: 2.2em;
    font-size: 0.9rem;
}

.product-card-price {
    margin-top: 1px;
    font-size: 0.86rem;
    line-height: 1.2;
}

.product-card-actions {
    gap: 6px;
    padding-top: 2px;
}

.product-card-secondary,
.product-card-action {
    height: 36px;
    gap: 6px;
    padding: 0 8px;
    font-size: 0.78rem;
}

.detail-category {
    margin-bottom: 6px !important;
    font-size: 0.82rem !important;
}

.detail-title {
    margin-bottom: 10px;
    font-size: 1.85rem;
}

.product-stock-code {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.stock-separator {
    color: var(--border-medium);
}

.product-description p {
    margin: 0;
}

.detail-cart-form {
    padding: 12px;
}

.detail-cart-form .package-table {
    gap: 0;
}

.detail-cart-form .package-row {
    border-radius: 0;
    border-bottom: 0;
}

.detail-cart-form .package-row:first-child {
    border-radius: 8px 8px 0 0;
}

.detail-cart-form .package-row:last-child {
    border-bottom: 1px solid var(--border-light);
    border-radius: 0 0 8px 8px;
}

.detail-cart-submit {
    min-height: 44px;
}

@media (max-width: 560px) {
    .page-header,
    .compact-page-header {
        padding: 24px 0 18px;
    }

    .soft-advantages {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card-meta .product-card-stock,
    .product-card-meta .product-card-category,
    .product-card-growing {
        font-size: 0.66rem;
    }

    .product-card-title {
        font-size: 0.86rem;
    }

    .product-card-price {
        font-size: 0.8rem;
    }

    .product-card-secondary,
    .product-card-action {
        height: 34px;
        font-size: 0.7rem;
    }
}

/* Home product carousels and latest catalog refinements */
.product-carousel {
    width: 100%;
    overflow: hidden;
    padding: 2px 1px 10px;
}

.product-carousel .swiper-wrapper {
    align-items: stretch;
    transition-timing-function: ease !important;
}

.product-carousel .swiper-slide {
    height: auto;
}

.product-carousel .product-card {
    height: 100%;
}

.product-card {
    border-color: #e9eee7;
}

.product-card-image img {
    padding: 3px;
}

.product-card-body {
    padding: 12px;
    gap: 5px;
}

.product-card-title {
    min-height: 2.05em;
}

.product-card-price {
    font-size: 0.82rem;
}

.product-card-title {
    font-weight: 700;
}

.product-card-price {
    color: #111;
    font-size: 0.75rem;
    font-weight: 600;
}

.product-card-meta .product-card-category {
    color: var(--text-muted);
}

.catalog-content .product-card-body {
    padding: 12px;
}

.catalog-category-field {
    position: relative;
}

.catalog-category-field select {
    height: 42px;
    border-color: #dde8df;
    background-color: #fbfdfb;
    color: var(--text-dark);
    cursor: pointer;
}

.catalog-category-field select:hover {
    border-color: rgba(40, 92, 59, 0.35);
    background-color: #fff;
}

.catalog-category-field select option {
    color: var(--text-dark);
    background: #fff;
    font-size: 0.9rem;
}

.compact-page-header {
    padding: 42px 0;
}

.stock-separator {
    display: none;
}

@media (max-width: 860px) {
    .product-carousel {
        padding-bottom: 8px;
    }

    .catalog-category-field select {
        height: 40px;
    }
}

@media (max-width: 560px) {
    .product-carousel .product-card-body {
        padding: 8px;
        gap: 4px;
    }

    .product-carousel .product-card-title {
        font-size: 0.78rem;
    }

    .product-carousel .product-card-price {
        font-size: 0.72rem;
    }

    .product-carousel .product-card-secondary,
    .product-carousel .product-card-action {
        height: 32px;
        gap: 4px;
        padding: 0 5px;
        font-size: 0.62rem;
    }
}

/* Final storefront refinements: compact nav, SEO card links, slider fit and detail lightbox */
.header-search {
    padding-right: 4px;
}

.header-search button[type="submit"] {
    width: auto;
    min-width: 46px;
    height: 34px;
    border: 0;
    border-radius: 7px;
    background: var(--primary);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.header-search button[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.navbar-dropdown-menu {
    width: min(240px, calc(100vw - 28px));
    padding: 6px;
    gap: 2px;
}

.navbar-dropdown-menu a {
    min-height: 32px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.82rem;
    line-height: 1.2;
}

.footer-links ul {
    gap: 5px;
}

.footer-links a {
    font-size: 0.84rem;
    line-height: 1.25;
}

/* Footer alignment and mobile column rhythm */
.footer,
.footer-grid,
.footer-bottom {
    text-align: center;
}

.footer-logo {
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.footer-social,
.footer-bottom,
.footer-bottom-links {
    justify-content: center;
}

.footer-links h5::after {
    left: 50%;
    transform: translateX(-50%);
}

.footer-contact li {
    justify-content: center;
}

@media (min-width: 769px) {
    .footer-bottom {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    }

    .footer-bottom p {
        grid-column: 2;
        text-align: center;
    }

    .footer-bottom-links {
        grid-column: 3;
        justify-self: end;
    }
}

@media (max-width: 768px) {
    .footer .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-grid > *,
    .footer-about,
    .footer-links {
        width: 100%;
        justify-self: center;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .footer-links-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        width: 100%;
        justify-items: center;
        align-items: start;
    }

    .footer-links-group .footer-links {
        min-width: 0;
    }

    .footer-links ul,
    .footer-contact {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-links ul,
    .footer-contact {
        margin: 0;
        padding: 0;
    }

    .footer-bottom-links {
        width: 100%;
        justify-content: center;
    }

    .footer-contact li,
    .footer-bottom p {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}

.hero-slide {
    background: #f7faf6;
}

.hero-slide picture,
.hero-slide picture img {
    background: #f7faf6;
}

.hero-slide picture img {
    object-fit: contain;
}

.product-card {
    position: relative;
}

.product-card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

.product-card-stretched-link:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 3px;
}

.product-card .product-image-link,
.product-card .product-card-actions,
.product-card .product-card-secondary,
.product-card .product-card-action,
.product-card .add-to-cart-trigger {
    position: relative;
    z-index: 2;
}

.product-gallery-open {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.product-gallery-open img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-lightbox[hidden] {
    display: none !important;
}

.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: grid;
    place-items: center;
    padding: 24px;
}

.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 20, 14, 0.72);
    backdrop-filter: blur(6px);
}

.product-lightbox-panel {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    width: min(1040px, 100%);
    height: min(760px, calc(100vh - 48px));
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: #fbfdfb;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.product-lightbox-panel img {
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 86px);
    padding: 22px;
    object-fit: contain;
}

.product-lightbox-close,
.product-lightbox-nav {
    position: absolute;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(36, 82, 50, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--primary-dark);
    box-shadow: 0 12px 28px rgba(20, 54, 28, 0.12);
    cursor: pointer;
}

.product-lightbox-close {
    top: 14px;
    right: 14px;
}

.product-lightbox-nav.prev {
    left: 14px;
}

.product-lightbox-nav.next {
    right: 14px;
}

.product-lightbox-counter {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-muted);
    font-size: 0.74rem;
    font-weight: 800;
}

.about-feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.about-feature-copy,
.about-feature-list,
.about-steps article {
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(20, 54, 28, 0.06);
}

.about-feature-copy {
    padding: 26px;
}

.about-feature-copy span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.about-feature-copy h2 {
    margin: 0 0 10px;
    color: var(--text-dark);
    font-size: clamp(1.35rem, 2vw, 2rem);
    line-height: 1.16;
}

.about-feature-copy p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.about-feature-list {
    display: grid;
    gap: 0;
    padding: 8px;
}

.about-feature-list div {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 2px 10px;
    padding: 14px 12px;
    border-radius: 10px;
}

.about-feature-list i {
    grid-row: span 2;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eef7ee;
    color: var(--primary);
}

.about-feature-list strong {
    color: var(--text-dark);
    font-size: 0.92rem;
}

.about-feature-list small {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.about-steps article {
    padding: 18px;
}

.about-steps span {
    display: inline-flex;
    margin-bottom: 14px;
    color: rgba(35, 101, 54, 0.28);
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
}

.about-steps h3 {
    margin: 0 0 6px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 850;
}

.about-steps p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

@media (max-width: 860px) {
    .about-feature-grid,
    .about-steps {
        grid-template-columns: 1fr;
    }

    .product-lightbox {
        padding: 10px;
    }

    .product-lightbox-panel {
        height: min(78vh, 680px);
        border-radius: 14px;
    }

    .product-lightbox-panel img {
        padding: 14px;
    }
}

@media (max-width: 560px) {
    .header-search button[type="submit"] {
        min-width: 42px;
        height: 32px;
        padding: 0 10px;
        font-size: 0.7rem;
    }

    .hero-slide {
        min-height: 210px;
        height: min(62vw, 340px);
    }

    .about-feature-copy,
    .about-steps article {
        padding: 16px;
    }

    .about-feature-list {
        padding: 6px;
    }

    .product-lightbox-nav {
        width: 36px;
        height: 36px;
    }
}

/* Turkish-friendly compact controls and stable dropdown hover bridge */
.navbar-dropdown {
    position: relative;
}

.navbar-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: -14px;
    right: -14px;
    height: 14px;
}

.navbar-dropdown-menu {
    top: calc(100% + 2px);
    width: min(230px, calc(100vw - 28px));
    max-height: min(390px, calc(100vh - 110px));
    padding: 6px;
    border-color: rgba(215, 228, 218, 0.96);
    border-radius: 10px;
    box-shadow: 0 18px 38px rgba(20, 54, 28, 0.12);
    transform: translate(-50%, 0);
}

.navbar-dropdown:hover .navbar-dropdown-menu,
.navbar-dropdown:focus-within .navbar-dropdown-menu,
.navbar-dropdown.open .navbar-dropdown-menu {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.navbar-dropdown.open .navbar-dropdown-trigger i {
    transform: rotate(180deg);
}

.navbar-dropdown-menu a {
    min-height: 31px;
    padding: 6px 9px;
    border-radius: 7px;
    font-size: 0.8rem;
    font-weight: 720;
    line-height: 1.18;
}

.catalog-category-field {
    position: relative;
    min-width: 0;
}

.catalog-category-field::before {
    content: "\F3E8";
    position: absolute;
    top: 50%;
    left: 11px;
    z-index: 1;
    transform: translateY(-50%);
    color: var(--primary);
    font-family: "bootstrap-icons";
    font-size: 0.9rem;
    pointer-events: none;
}

.catalog-category-field select {
    height: 42px;
    min-height: 42px;
    padding: 0 36px 0 34px;
    border: 1px solid rgba(203, 222, 207, 0.98);
    border-radius: 10px;
    background-color: #fff;
    color: var(--text-dark);
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 780;
    letter-spacing: 0;
    line-height: 42px;
    appearance: none;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(20, 54, 28, 0.045);
    background-image:
        linear-gradient(45deg, transparent 50%, var(--primary) 50%),
        linear-gradient(135deg, var(--primary) 50%, transparent 50%),
        linear-gradient(to bottom, #f7fbf7, #fff);
    background-position:
        calc(100% - 18px) 18px,
        calc(100% - 13px) 18px,
        0 0;
    background-size: 5px 5px, 5px 5px, 100% 100%;
    background-repeat: no-repeat;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.catalog-category-field select:hover {
    border-color: rgba(43, 125, 74, 0.36);
    background-color: #fff;
}

.catalog-category-field select:focus {
    border-color: rgba(43, 125, 74, 0.5);
    box-shadow: 0 0 0 3px rgba(43, 125, 74, 0.11), 0 8px 22px rgba(20, 54, 28, 0.055);
    outline: 0;
}

.catalog-category-field select option {
    background: #fff;
    color: #17381f;
    font-size: 0.9rem;
    font-weight: 650;
}

@media (max-width: 860px) {
    .navbar-dropdown::after {
        display: none;
    }

    .catalog-category-field select {
        width: 100%;
        height: 40px;
        min-height: 40px;
        line-height: 40px;
        font-size: 0.8rem;
    }
}

/* Admin UX refinements and analytics dashboard */
.admin-image-box {
    position: relative;
}

.admin-image-remove {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(185, 36, 36, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: #b42318;
    box-shadow: 0 10px 24px rgba(20, 54, 28, 0.12);
    cursor: pointer;
}

.admin-image-remove:hover {
    background: #fff3f1;
    border-color: rgba(185, 36, 36, 0.34);
}

.admin-confirm-modal[hidden] {
    display: none !important;
}

.admin-confirm-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: grid;
    place-items: center;
    padding: 18px;
}

.admin-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(9, 24, 14, 0.55);
    backdrop-filter: blur(4px);
}

.admin-confirm-panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
    text-align: center;
}

.admin-confirm-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #fff3e8;
    color: #c25a12;
    font-size: 1.25rem;
}

.admin-confirm-panel h2 {
    margin: 0 0 8px;
    color: var(--text-dark);
    font-size: 1.12rem;
    font-weight: 850;
}

.admin-confirm-panel p {
    margin: 0 0 18px;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

.admin-confirm-actions {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.admin-confirm-actions .danger {
    background: #b42318;
    border-color: #b42318;
}

.analytics-stats-grid .stat-card {
    min-height: 122px;
}

.analytics-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0;
}

.analytics-list {
    display: grid;
    gap: 8px;
}

.analytics-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 10px;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    background: #fbfdfb;
}

.analytics-list span {
    min-width: 0;
    overflow: hidden;
    color: var(--text-body);
    font-size: 0.84rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.analytics-list strong {
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 850;
}

.muted-small {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.84rem;
}

.admin-setting-toggle {
    justify-content: flex-start;
    margin-bottom: 6px;
}

@media (max-width: 860px) {
    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .admin-filter-bar.compact {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .admin-confirm-panel {
        padding: 18px;
    }
}

@media (max-width: 560px) {
    .admin-image-remove {
        top: 8px;
        right: 8px;
        width: 32px;
        height: 32px;
    }

    .admin-confirm-actions {
        flex-direction: column-reverse;
    }

    .admin-confirm-actions .btn {
        width: 100%;
    }

    .analytics-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .analytics-list span {
        white-space: normal;
    }
}

/* Final mobile catalog filter override: two controls until the filter panel is opened. */
@media (max-width: 860px) {
    .catalog-toolbar.filter-panel {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .catalog-filter-toggle,
    .catalog-sort-toggle {
        width: 100%;
        min-height: 42px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 7px;
        padding: 0 12px;
        border: 1px solid var(--border-light);
        border-radius: 8px;
        background: #fff;
        color: var(--text-heading);
        font-size: .84rem;
        font-weight: 800;
    }

    .catalog-toolbar-sort {
        grid-column: 2;
        grid-row: 1;
    }

    .catalog-toolbar-fields {
        display: none;
        grid-column: 1 / -1;
        grid-template-columns: minmax(0, 1fr);
        gap: 9px;
        margin: 0;
        padding: 12px 0 0;
        border-top: 1px solid var(--border-light);
    }

    .catalog-toolbar-fields.open {
        display: grid;
    }

    .catalog-toolbar-fields .catalog-search-field,
    .catalog-toolbar-fields .catalog-category-field {
        grid-column: 1;
    }

    .catalog-toolbar-fields .catalog-clear-button {
        display: none;
    }

    .catalog-sort-popover {
        right: 0;
        left: auto;
    }
}

/* Desktop catalog toolbar: search stays generous while category and actions fit on one line. */
@media (min-width: 861px) {
    .catalog-toolbar.filter-panel {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 10px;
        align-items: center;
    }

    .catalog-toolbar-fields {
        grid-template-columns: minmax(280px, 1fr) minmax(170px, 210px) auto;
        gap: 8px;
        min-width: 0;
    }

    .catalog-toolbar-fields .catalog-search-field {
        min-width: 0;
    }

    .catalog-toolbar-fields .catalog-category-field {
        width: 100%;
        min-width: 0;
    }

    .catalog-toolbar-sort,
    .catalog-toolbar-fields .catalog-clear-button {
        align-self: center;
    }
}

/* Final mobile navbar sizing adjustment. */
@media (max-width: 860px) {
    .site-header .navbar-logo {
        left: 35%;
    }

    .site-header .navbar-logo .site-logo-img {
        width: min(160px, 48vw);
        height: 58px;
    }

    .navbar-actions {
        gap: 10px;
    }

    .navbar-actions .icon-button,
    .navbar-actions .navbar-cart,
    .navbar-actions .language-switcher summary {
        height: 42px;
        min-height: 42px;
        padding: 0 4px;
    }

    .navbar-actions .icon-button i,
    .navbar-actions .navbar-cart i,
    .navbar-actions .language-switcher summary i {
        font-size: 1.16rem;
    }

    .navbar-actions .language-switcher summary span {
        font-size: .82rem;
    }
}

/* Keep the storefront navigation visible while the page scrolls. */
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
}

/* Final product-card typography overrides requested for storefront cards. */
.product-card-title,
.product-carousel .product-card-title,
.catalog-content .product-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
}

.product-card-price,
.product-carousel .product-card-price,
.catalog-content .product-card-price {
    color: #111;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Product-card reading hierarchy: compact on mobile, comfortably legible on desktop. */
@media (max-width: 860px) {
    .product-card-meta .product-card-stock,
    .product-card-meta .product-card-category,
    .product-carousel .product-card-meta .product-card-stock,
    .product-carousel .product-card-meta .product-card-category,
    .catalog-content .product-card-meta .product-card-stock,
    .catalog-content .product-card-meta .product-card-category {
        font-size: 10px;
    }

    .product-card-title,
    .product-carousel .product-card-title,
    .catalog-content .product-card-title {
        font-size: 12px;
    }

    .product-card-price,
    .product-carousel .product-card-price,
    .catalog-content .product-card-price {
        font-size: 10px;
    }
}

@media (min-width: 861px) {
    .product-card-meta .product-card-stock,
    .product-card-meta .product-card-category,
    .product-carousel .product-card-meta .product-card-stock,
    .product-carousel .product-card-meta .product-card-category,
    .catalog-content .product-card-meta .product-card-stock,
    .catalog-content .product-card-meta .product-card-category {
        font-size: 12px;
    }

    .product-card-title,
    .product-carousel .product-card-title,
    .catalog-content .product-card-title {
        font-size: 14px;
    }

    .product-card-price,
    .product-carousel .product-card-price,
    .catalog-content .product-card-price {
        font-size: 11px;
    }
}

.product-card-meta .product-card-category,
.catalog-content .product-card-meta .product-card-category {
    color: var(--text-muted);
}

/* Reference-inspired information area: leave the product image section untouched. */
.product-card .product-card-meta {
    display: block;
    margin: 0;
}

.product-card .product-card-stock {
    display: block;
    color: #4b5563;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 0.01em;
}

.product-card .product-card-category {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 2px 0 3px;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
}

.product-card .product-card-title,
.product-card .product-card-title a {
    color: var(--text-dark);
}

.product-card .product-card-title {
    margin-top: 2px;
    margin-bottom: 0;
}

.product-card-divider {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 15px;
    margin: 1px 0 0;
    color: var(--accent);
}

.product-card-divider::before {
    display: block;
    flex: 1 1 auto;
    max-width: 84px;
    height: 1px;
    background: currentColor;
    content: "";
}

.product-card-divider i {
    font-size: 0.9rem;
    line-height: 1;
}

.product-card .product-card-price {
    color: var(--primary);
    font-family: var(--font-body);
    font-weight: 800;
}

.product-card .product-card-price.price-request {
    color: #b85d12;
}

.product-card .product-card-secondary {
    border-color: var(--text-dark);
    background: #fff;
    color: var(--text-dark);
}

.product-card .product-card-action {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.product-card .product-card-secondary:hover,
.product-card .product-card-secondary:focus-visible {
    border-color: var(--primary);
    background: rgba(var(--primary-rgb), 0.08);
    color: var(--text-dark);
}

.product-card .product-card-action:hover,
.product-card .product-card-action:focus-visible {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
}

.product-card-image {
    isolation: isolate;
    background: #fff;
}

.product-card-image img {
    background: #fff;
}

.product-img-main {
    z-index: 1;
}

.product-img-hover {
    z-index: 2;
    background: #fff;
}

.product-card:hover .product-img-main {
    opacity: 0;
}

.product-card:hover .product-img-hover {
    opacity: 1;
}

/* Final fixed-header and mobile package layout corrections. */
.site-header + .site-drawer + main > .page-header,
.site-header + .site-drawer + main > .compact-page-header {
    margin-top: 0;
    padding-top: calc(var(--navbar-height) + var(--space-3xl));
}

.site-header + .site-drawer + main > .soft-hero {
    margin-top: var(--navbar-height);
}

.detail-cart-submit.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(234, 129, 27, 0.24);
}

.detail-cart-submit.btn-primary:hover,
.detail-cart-submit.btn-primary:focus-visible {
    background: #c96b11;
    border-color: #c96b11;
    color: #fff;
}

@media (max-width: 560px) {
    .site-header + .site-drawer + main > .page-header,
    .site-header + .site-drawer + main > .compact-page-header {
        padding-top: calc(var(--navbar-height) + 24px);
    }

    .detail-cart-form .package-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 10px;
    }

    .detail-cart-form .qty-stepper {
        display: flex;
        width: 100px;
        flex: 0 0 100px;
        grid-template-columns: none;
    }

    .detail-cart-form .qty-stepper button {
        width: 32px;
        height: 34px;
        flex: 0 0 32px;
    }

    .detail-cart-form .qty-stepper input {
        width: 36px;
        height: 34px;
        min-width: 0;
        flex: 0 0 36px;
    }
}

/* Slider assets are 16:9; preserve their native proportion without enlarging them. */
.soft-hero .hero-slide {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
}

.soft-hero .hero-slide picture,
.soft-hero .hero-slide picture img {
    width: 100%;
    height: 100%;
}

.soft-hero .hero-slide picture img {
    object-fit: contain;
    object-position: center;
}

/* ================================================================
   iOS Bubble Soft Transitions (Premium Feel)
   ================================================================ */
button, 
.btn, 
.icon-button, 
.navbar-cart, 
.product-card-action,
.advantage-card,
.product-card {
    transition: transform var(--transition-bounce), background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast), box-shadow var(--transition-fast) !important;
}

button:active:not(:disabled), 
.btn:active:not(:disabled), 
.icon-button:active:not(:disabled), 
.navbar-cart:active:not(:disabled), 
.product-card-action:active:not(:disabled) {
    transform: scale(0.92) !important;
}

.product-card:active,
.advantage-card:active {
    transform: scale(0.97) !important;
}

/* Prevent shadow clipping in swiper during bouncy scale animations */
.swiper-wrapper {
    padding-top: 12px;
    padding-bottom: 12px;
}
