/**
 * LeRoosa Store CSS — Organic Store Aesthetic
 * Inspired by Mike Taylor's Organic Store Dribbble designs
 * Zero Node.js / No Build Step
 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Brand palette — organic green + gold accent */
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #d8f3dc;
    --secondary: #b8860b;
    --secondary-light: #f5e6c8;
    --success: #10b981;
    --danger: #ef4444;

    /* Semantic colors */
    --body-bg: #faf7f2;
    --body-color: #2d3436;
    --surface: #f5f0eb;
    --surface-2: #efe9e1;
    --card-bg: #ffffff;
    --border-color: #e8e0d6;
    --border-light: #f0ebe5;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --heading-color: #1a1a2e;

    /* Hero — light organic bg */
    --hero-bg: var(--body-bg);
    --hero-glow: rgba(45, 106, 79, .08);
    --hero-badge-bg: #2d6a4f;
    --hero-badge-color: #ffffff;

    /* Footer */
    --footer-bg: #1b4332;
    --footer-color: rgba(255, 255, 255, .7);
    --footer-brand-accent: #b8860b;
    --footer-link-hover: #d8f3dc;

    /* Layout */
    --header-h: 64px;
    --announce-h: 36px;
    --font: 'Poppins', system-ui, sans-serif;
    --radius: 16px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .04);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .06);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .08);

    /* Accent backgrounds */
    --accent-bg-light: #edf7f0;
    --accent-bg-medium: #d8f3dc;
    --icon-gradient-start: #edf7f0;
    --icon-gradient-end: #d8f3dc;
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --primary: #40916c;
    --primary-dark: #2d6a4f;
    --primary-light: #1b4332;
    --secondary: #d4a017;
    --secondary-light: #3d2e06;

    --body-bg: #0f172a;
    --body-color: #e2e8f0;
    --surface: #1e293b;
    --surface-2: #1e293b;
    --card-bg: #1e293b;
    --border-color: #334155;
    --border-light: #334155;
    --text-muted: #94a3b8;
    --text-light: #64748b;
    --heading-color: #f1f5f9;

    --hero-bg: #0f172a;
    --hero-glow: rgba(64, 145, 108, .12);
    --hero-badge-bg: #40916c;

    --footer-bg: #020617;
    --footer-color: rgba(255, 255, 255, .6);
    --footer-link-hover: #40916c;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, .3);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, .35);

    --accent-bg-light: #1b4332;
    --accent-bg-medium: #2d6a4f;
    --icon-gradient-start: #1b4332;
    --icon-gradient-end: #234d3a;
}

/* Dark mode overrides for Bootstrap utility classes */
[data-theme="dark"] .text-dark { color: var(--body-color) !important; }
[data-theme="dark"] .text-black { color: var(--body-color) !important; }
[data-theme="dark"] .bg-white { background-color: var(--card-bg) !important; }
[data-theme="dark"] .bg-light { background-color: var(--surface) !important; }
[data-theme="dark"] .border { border-color: var(--border-color) !important; }
[data-theme="dark"] .border-bottom { border-color: var(--border-color) !important; }
[data-theme="dark"] .border-top { border-color: var(--border-color) !important; }
[data-theme="dark"] .dropdown-menu { background-color: var(--card-bg); border-color: var(--border-color); }
[data-theme="dark"] .dropdown-item { color: var(--body-color); }
[data-theme="dark"] .dropdown-item:hover,
[data-theme="dark"] .dropdown-item:focus { background-color: var(--surface); color: var(--heading-color); }
[data-theme="dark"] .form-control { background-color: var(--surface); color: var(--body-color); border-color: var(--border-color); }
[data-theme="dark"] .form-select { background-color: var(--surface); color: var(--body-color); border-color: var(--border-color); }
[data-theme="dark"] .card { background-color: var(--card-bg); border-color: var(--border-color); }
[data-theme="dark"] .modal-content { background-color: var(--card-bg); color: var(--body-color); }
[data-theme="dark"] .btn-outline-secondary { color: var(--body-color); border-color: var(--border-color); }
[data-theme="dark"] .btn-outline-secondary:hover { background-color: var(--surface); color: var(--heading-color); }
[data-theme="dark"] .table { color: var(--body-color); }
[data-theme="dark"] .table > :not(caption) > * > * { background-color: var(--card-bg); color: var(--body-color); border-color: var(--border-color); }
[data-theme="dark"] .accordion-button { background-color: var(--card-bg); color: var(--body-color); }
[data-theme="dark"] .accordion-button:not(.collapsed) { background-color: var(--surface); color: var(--heading-color); }
[data-theme="dark"] .accordion-body { background-color: var(--card-bg); color: var(--body-color); }
[data-theme="dark"] .breadcrumb-item a { color: var(--primary) !important; }
[data-theme="dark"] .breadcrumb-item.active { color: var(--text-muted) !important; }
[data-theme="dark"] .alert { border-color: var(--border-color); }
[data-theme="dark"] .shadow-sm { box-shadow: var(--shadow-sm) !important; }
[data-theme="dark"] .shadow { box-shadow: var(--shadow-md) !important; }
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: var(--text-muted) !important; }
[data-theme="dark"] .post-navbar { background: var(--card-bg) !important; border-color: var(--border-color) !important; }
[data-theme="dark"] .list-group-item { background-color: transparent; color: var(--body-color); border-color: var(--border-color); }
[data-theme="dark"] .list-group-item:hover { background-color: var(--surface); color: var(--heading-color); }
[data-theme="dark"] .list-group-item.active { background-color: var(--primary) !important; color: white !important; }
[data-theme="dark"] .text-muted { color: var(--text-muted) !important; }
[data-theme="dark"] .text-secondary { color: var(--text-muted) !important; }

*,
*::before,
*::after {
    box-sizing: border-box;
}

body.store-body {
    margin: 0;
    padding: 0;
    font-family: var(--font);
    color: var(--body-color);
    background: var(--body-bg);
    overflow-x: hidden;
    transition: background .3s, color .3s;
}

/* ===== GLOBAL BUTTON OVERRIDES ===== */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    border-radius: 50px !important;
    font-weight: 600;
}
.btn-primary:hover {
    background: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}
.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: 50px;
}
.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== HEADER ===== */
.store-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 8px rgba(0, 0, 0, .04);
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Auto-hide on scroll down, reveal on scroll up */
.store-header.header-hidden {
    transform: translateY(-100%);
}

.announcement-bar {
    height: var(--announce-h);
    background: var(--primary-dark);
    color: rgba(255, 255, 255, .9);
    display: flex;
    align-items: center;
    font-size: .8rem;
    text-align: center;
}

.store-navbar {
    background: var(--card-bg);
    padding: 10px 0;
    transition: background .3s;
}

.store-brand {
    text-decoration: none;
}

.brand-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    letter-spacing: -.5px;
}

.brand-logo .text-primary {
    color: var(--primary) !important;
}

/* ===== SEARCH ===== */
.store-search {
    max-width: 500px;
    flex: 1;
}

.store-search-inner {
    display: flex;
    align-items: center;
    background: var(--surface);
    border-radius: 50px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: .2s;
    width: 100%;
}

.store-search-inner:focus-within {
    border-color: var(--primary);
    background: var(--card-bg);
}

.store-search-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 10px 20px;
    font-size: .875rem;
    outline: none;
    color: var(--body-color);
    min-width: 0;
}

.store-search-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: .2s;
    border-radius: 0 50px 50px 0;
}

.store-search-btn:hover {
    background: var(--primary-dark);
}

/* ===== NAV ICONS ===== */
.store-nav-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.store-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: .2s;
}

.store-icon-btn:hover {
    background: var(--surface);
    color: var(--primary);
}

.store-icon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--danger);
    color: white;
    font-size: .6rem;
    font-weight: 700;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.nav-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: var(--text-muted);
    transition: .2s;
}
.theme-toggle:hover {
    background: var(--surface);
    color: var(--primary);
}

/* ===== MEGA MENU ===== */
.mega-dropdown .dropdown-menu {
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 0 0 20px 20px;
    padding: 24px 0;
    margin-top: 0;
    border: none;
    box-shadow: var(--shadow-lg, 0 14px 40px rgba(0,0,0,.12));
    /* Force opaque background — the hero carousel's Swiper creates its own
       stacking context, so without these the dropdown appears transparent. */
    background-color: var(--card-bg, #ffffff) !important;
    z-index: 1080;
}
[data-theme="dark"] .mega-dropdown .dropdown-menu {
    background-color: var(--card-bg, #1e293b) !important;
}

.mega-menu .dropdown-item {
    color: var(--text-muted);
    font-size: .875rem;
    padding: 6px 12px;
    border-radius: 10px;
}

.mega-menu .dropdown-item:hover {
    background: var(--accent-bg-light);
    color: var(--primary);
}

/* ===== MOBILE DRAWER ===== */
.mobile-nav-drawer {
    position: fixed;
    top: 0;
    left: -100%;
    height: 100vh;
    width: 280px;
    background: var(--card-bg);
    z-index: 1050;
    box-shadow: var(--shadow-lg);
    transition: left .3s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-list {
    list-style: none;
    padding: 12px;
    margin: 0;
}

.mobile-nav-list a,
.mobile-nav-logout {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: .875rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: .15s;
}

.mobile-nav-list a:hover,
.mobile-nav-logout:hover {
    background: var(--accent-bg-light);
    color: var(--primary);
}

.mobile-nav-divider {
    border-top: 1px solid var(--border-color);
    margin: 8px 0;
}

.mobile-nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 1045;
    backdrop-filter: blur(4px);
}

.mobile-search-bar {
    padding-top: 8px;
}

/* ===== MAIN ===== */
.store-main {
    min-height: 60vh;
}

/* ===== HERO — Light Organic ===== */
.hero-section {
    background: var(--hero-bg);
    min-height: 480px;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -150px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--hero-glow) 0%, transparent 60%);
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    background: var(--hero-badge-bg);
    color: var(--hero-badge-color);
    border: none;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.75rem);
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 16px;
}

.text-gradient {
    background: linear-gradient(90deg, #2d6a4f, #40916c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 480px;
}

.hero-cta {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 32px;
}

.hero-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 106, 79, .25);
    color: white;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 32px;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1;
}

.hero-stat-label {
    font-size: .75rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat-div {
    width: 1px;
    height: 40px;
    background: var(--border-color);
}

.hero-blob {
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--primary-light);
    position: relative;
    margin: auto;
}

.hero-floating-card {
    position: absolute;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--body-color);
    box-shadow: var(--shadow-md);
}

.hero-image-wrap {
    position: relative;
    min-height: 320px;
}

/* ===== SPOTLIGHT HERO (Single Product) ===== */
.spotlight-hero {
    min-height: auto;
    background: var(--hero-bg);
}

.spotlight-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    letter-spacing: -1px;
    color: var(--heading-color);
}

.spotlight-gallery { position: relative; }
.spotlight-main-img {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.spotlight-main-img img {
    max-height: 420px;
    object-fit: contain;
    width: 100%;
    border-radius: 16px;
    transition: transform .4s ease;
}
.spotlight-main-img:hover img { transform: scale(1.04); }
.spotlight-sale-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--danger);
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    padding: 6px 14px;
    border-radius: 50px;
}
.spotlight-thumbs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
    flex-wrap: wrap;
}
.spotlight-thumb {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    border: 2px solid transparent;
    overflow: hidden;
    background: var(--surface);
    cursor: pointer;
    padding: 2px;
    transition: border-color .2s;
}
.spotlight-thumb.active,
.spotlight-thumb:hover { border-color: var(--primary); }
.spotlight-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.spotlight-rating { display: flex; align-items: center; }
.spotlight-rating .bi-star-fill,
.spotlight-rating .bi-star-half,
.spotlight-rating .bi-star { font-size: 1rem; }

.spotlight-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.spotlight-price-current {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}
.spotlight-price-original {
    font-size: 1.1rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.spotlight-variant-chip {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--body-color);
    font-size: .8rem;
    font-weight: 500;
}

.spotlight-qty {
    display: inline-flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
}
.spotlight-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    color: var(--body-color);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background .2s;
}
.spotlight-qty-btn:hover { background: var(--surface-2); }
.spotlight-qty-val {
    min-width: 36px;
    text-align: center;
    color: var(--heading-color);
    font-weight: 700;
    font-size: 1rem;
}

.spotlight-cart-btn {
    min-width: 180px;
    border-radius: 50px;
}

.spotlight-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.spotlight-trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 500;
}
.spotlight-trust-item i { font-size: 1rem; color: var(--primary); }

.spotlight-details li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: .9rem;
}
.spotlight-details li:last-child { border-bottom: 0; }
.spotlight-details li span:first-child { min-width: 100px; display: inline-block; }

.product-description { font-size: .95rem; line-height: 1.8; color: var(--text-muted); }
.product-description p { margin-bottom: 12px; }
.product-description ul { padding-left: 20px; }

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin .6s linear infinite; }

@media (max-width: 991.98px) {
    .spotlight-main-img img { max-height: 300px; }
    .spotlight-price-current { font-size: 1.6rem; }
    .spotlight-trust { justify-content: center; }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel-section {
    position: relative;
    overflow: hidden;
    width: 100%;
}

.hero-swiper {
    width: 100%;
    height: 600px;
}

.hero-slide {
    position: relative;
    overflow: hidden;
}

/* Background image */
.hero-slide__img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    will-change: transform;
}

/* Ken Burns animation */
.animate-kenburns .hero-slide__img-bg {
    animation: heroKenBurns 14s ease forwards;
}

@keyframes heroKenBurns {
    0%   { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.18) translate(-2%, -1%); }
}

/* Zoom In animation */
.animate-zoomIn .hero-slide__img-bg {
    animation: heroZoomIn 1.4s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes heroZoomIn {
    0%   { transform: scale(1.25); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Slide Right content animation */
.animate-slideRight .hero-slide__text {
    animation: heroSlideRight 0.9s cubic-bezier(.25,.46,.45,.94) forwards;
}

@keyframes heroSlideRight {
    0%   { transform: translateX(-80px); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

/* Parallax — text layers animate via Swiper parallax module */
.animate-parallax .hero-slide__img-bg {
    animation: heroKenBurns 18s ease forwards;
}

/* Overlay */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* Content positioning */
.hero-slide__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 40px 0;
}

.hero-slide__content--left   { justify-content: flex-start; }
.hero-slide__content--center { justify-content: center; text-align: center; }
.hero-slide__content--right  { justify-content: flex-end; text-align: right; }

.hero-slide__text {
    max-width: 620px;
}

.hero-slide__content--center .hero-slide__text {
    margin: 0 auto;
}

.hero-slide__content--center .hero-slide__desc {
    margin-left: auto;
    margin-right: auto;
}

/* Text elements */
.hero-slide__badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: .78rem;
    font-weight: 600;
    margin-bottom: 18px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.hero-slide__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
}

.hero-slide__desc {
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 28px;
    max-width: 520px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .25);
}

.hero-slide__cta {
    border-radius: 50px;
    padding: 13px 36px;
    font-weight: 600;
    font-size: 1rem;
    transition: transform .3s, box-shadow .3s;
    border: none;
}

.hero-slide__cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

/* Navigation arrows — glass morphism */
.hero-swiper-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    transition: background .3s, transform .3s;
    border: 1px solid rgba(255, 255, 255, .18);
}

.hero-swiper-btn:hover {
    background: rgba(255, 255, 255, .28);
    transform: translateY(-50%) scale(1.08);
}

.hero-swiper-prev { left: 24px; }
.hero-swiper-next { right: 24px; }

/* Pagination — pill active bullet (override Swiper defaults) */
.hero-swiper .hero-swiper-pagination.swiper-pagination-horizontal {
    position: absolute !important;
    bottom: 28px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 10;
    display: flex !important;
    gap: 6px;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, .35);
    opacity: 1;
    border-radius: 50%;
    transition: all .35s ease;
    cursor: pointer;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: #fff;
    width: 36px;
    border-radius: 6px;
}

/* YouTube background video container */
.hero-slide__video-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-yt-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 178vh;      /* 16:9 over-sized to fill */
    height: 100vh;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero-yt-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-swiper { height: 460px; }
    .hero-slide__title { font-size: clamp(1.7rem, 5vw, 2.5rem); }
    .hero-swiper-btn { width: 40px; height: 40px; font-size: 1rem; }
    .hero-swiper-prev { left: 12px; }
    .hero-swiper-next { right: 12px; }
}

@media (max-width: 575.98px) {
    .hero-swiper { height: 360px; }
    .hero-slide { aspect-ratio: auto; }
    .hero-slide__img-bg { background-position: center top; }
    .hero-slide__content { padding: 20px 0 24px; }
    .hero-slide__text { max-width: 92%; }
    .hero-slide__content--right,
    .hero-slide__content--left { justify-content: center; text-align: center; }
    .hero-slide__content--right .hero-slide__desc,
    .hero-slide__content--left .hero-slide__desc {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-slide__badge { padding: 4px 14px; font-size: .68rem; margin-bottom: 10px; letter-spacing: .3px; }
    .hero-slide__title { font-size: clamp(1.35rem, 6.5vw, 1.85rem) !important; line-height: 1.15; margin-bottom: 8px; letter-spacing: -.5px; }
    .hero-slide__desc { font-size: .9rem; line-height: 1.45; margin-bottom: 14px; max-width: 100%; }
    .hero-slide__cta { padding: 10px 22px; font-size: .9rem; }
    .hero-swiper-btn { display: none; }
    .hero-swiper .hero-swiper-pagination.swiper-pagination-horizontal { bottom: 8px; }
}
@media (max-width: 379.98px) {
    .hero-swiper { height: 320px; }
    .hero-slide__title { font-size: 1.25rem !important; }
    .hero-slide__desc { font-size: .82rem; margin-bottom: 10px; }
    .hero-slide__cta { padding: 8px 18px; font-size: .85rem; }
}

/* ===== SECTION LAYOUT ===== */
.section-pad {
    padding: 72px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--heading-color);
    margin: 0;
    letter-spacing: -.5px;
}

.section-link {
    color: var(--primary);
    text-decoration: none;
    font-size: .875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-link:hover {
    gap: 8px;
}

/* ===== BG-LIGHT sections ===== */
.bg-light {
    background: var(--surface) !important;
}

/* ===== CATEGORY GRID ===== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    background: var(--card-bg);
    border-radius: 20px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition: .25s;
}

.category-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--icon-gradient-start), var(--icon-gradient-end));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.category-name {
    font-size: .8rem;
    font-weight: 700;
    color: var(--heading-color);
    text-align: center;
}

.category-count {
    font-size: .7rem;
    color: var(--text-light);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    overflow: hidden;
    transition: .3s;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.product-card-img {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: var(--surface);
}

.product-card-img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s;
}

.product-card:hover .product-card-img img {
    transform: scale(1.06);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: .7rem;
    font-weight: 700;
    z-index: 2;
}

.product-badge--sale {
    background: var(--danger);
    color: white;
}

.product-badge--new {
    background: var(--primary);
    color: white;
}

.product-badge--out {
    background: #6b7280;
    color: white;
}

.product-badge--backorder {
    background: #f59e0b;
    color: #1a1a1a;
}

.product-card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    opacity: 0;
    transition: .25s;
}

.product-card:hover .product-card-actions {
    opacity: 1;
}

.product-action-btn {
    width: 34px;
    height: 34px;
    background: var(--card-bg);
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    color: var(--text-muted);
    text-decoration: none;
    transition: .2s;
}

.product-action-btn:hover,
.product-action-btn.active {
    color: var(--danger);
    background: white;
}

.product-card-body {
    padding: 16px;
}

.product-card-category {
    font-size: .7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 4px;
}

.product-card-title {
    margin: 0 0 8px;
}

.product-card-title a {
    font-size: .875rem;
    font-weight: 600;
    color: var(--heading-color);
    text-decoration: none;
    line-height: 1.4;
    display: block;
}

.product-card-title a:hover {
    color: var(--primary);
}

.product-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.rating-count {
    font-size: .75rem;
    color: var(--text-light);
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-current {
    font-size: 1rem;
    font-weight: 800;
    color: var(--secondary);
}

.price-original {
    font-size: .8rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-left: 4px;
}

.product-add-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50% !important;
}

/* ===== PROMO BANNERS ===== */
.promo-banner {
    border-radius: 24px;
    padding: 36px 32px;
    min-height: 200px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease;
}

.promo-banner:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.15);
}

.promo-content {
    position: relative;
    z-index: 2;
}

.promo-content .promo-tag {
    display: inline-block;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(6px);
    color: white;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.promo-content h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    line-height: 1.3;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0,0,0,.15);
}

.promo-content .btn {
    border-radius: 50px;
    font-weight: 600;
    transition: transform .2s ease;
}

.promo-content .btn:hover {
    transform: scale(1.05);
}

@media (max-width: 767.98px) {
    .promo-banner {
        min-height: 160px;
        padding: 24px 20px;
    }
    .promo-content h3 {
        font-size: 1.2rem;
    }
}

/* ===== PRODUCT HIGHLIGHT ===== */
.highlight-section {
    background: var(--body-bg);
}

.highlight-main-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    transition: box-shadow .3s ease, transform .3s ease;
}

.highlight-main-card:hover {
    box-shadow: 0 16px 48px rgba(0,0,0,.1);
    transform: translateY(-4px);
}

.highlight-img-frame {
    position: relative;
    padding-top: 85%;
    overflow: hidden;
    background: var(--surface);
}

.highlight-img-frame img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.highlight-main-card:hover .highlight-img-frame img {
    transform: scale(1.06);
}

.highlight-img-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--surface));
    font-size: 3rem;
    color: var(--primary);
}

.highlight-sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--danger);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3px;
    z-index: 2;
}

.highlight-new-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--primary);
    color: white;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .3px;
    z-index: 2;
}

.highlight-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.highlight-category {
    font-size: .7rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 6px;
}

.highlight-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.highlight-desc {
    color: var(--text-muted);
    font-size: .88rem;
    line-height: 1.7;
    margin-bottom: 14px;
    flex: 1;
}

.highlight-price {
    margin-bottom: 18px;
}

.highlight-price .price-current {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--secondary);
}

.highlight-price .price-original {
    font-size: .95rem;
    text-decoration: line-through;
    color: var(--text-light);
    margin-left: 8px;
}

.highlight-cta {
    border-radius: 50px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: .9rem;
    align-self: flex-start;
    transition: transform .2s, box-shadow .2s;
}

.highlight-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45,106,79,.35);
}

/* Right column slider */
.highlight-slider-wrap {
    position: relative;
}

.highlight-swiper {
    padding-bottom: 44px;
}

.highlight-swiper .swiper-slide {
    height: auto;
}

.highlight-swiper .product-card-img {
    padding-top: 75%;
}

.highlight-swiper-prev,
.highlight-swiper-next {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    z-index: 10;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: all .25s ease;
    color: var(--heading-color);
    font-size: .9rem;
}

.highlight-swiper-prev { left: -12px; }
.highlight-swiper-next { right: -12px; }

.highlight-swiper-prev:hover,
.highlight-swiper-next:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(45,106,79,.3);
}

.highlight-swiper-pagination {
    text-align: center;
    bottom: 0 !important;
}

.highlight-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--border-color);
    opacity: 1;
}

.highlight-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--primary);
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 991.98px) {
    .highlight-main-card {
        margin-bottom: 24px;
    }
    .highlight-slider-wrap {
        padding: 0 16px;
    }
    .highlight-swiper-prev { left: 0; }
    .highlight-swiper-next { right: 0; }
}

@media (max-width: 575.98px) {
    .highlight-img-frame {
        padding-top: 70%;
    }
    .highlight-info {
        padding: 18px;
    }
    .highlight-title {
        font-size: 1.15rem;
    }
    .highlight-price .price-current {
        font-size: 1.2rem;
    }
    .highlight-swiper-prev,
    .highlight-swiper-next {
        display: none;
    }
}

/* ===== STORY SECTION ===== */
.story-section {
    position: relative;
    overflow: hidden;
    background: var(--body-bg);
}

.story-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 16px;
}

.story-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    color: var(--heading-color);
    line-height: 1.25;
    margin-bottom: 20px;
}

.story-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 28px;
    max-width: 520px;
}

.story-cta {
    border-radius: 50px;
    padding: 12px 32px;
    font-weight: 600;
    transition: transform .2s ease, box-shadow .2s ease;
}

.story-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(45, 106, 79, .25);
}

/* Creative visual container */
.story-visual {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-blob {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: .6;
}

.story-blob--sm {
    width: 120px;
    height: 120px;
    background: var(--secondary-light);
    top: 10%;
    left: 75%;
    opacity: .5;
}

.story-img-frame {
    position: relative;
    z-index: 1;
    width: 85%;
    max-width: 420px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
    transform: rotate(2deg);
    transition: transform .4s ease, box-shadow .4s ease;
}

.story-img-frame:hover {
    transform: rotate(0deg) scale(1.02);
    box-shadow: 0 24px 64px rgba(0, 0, 0, .16);
}

.story-img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.story-img-placeholder {
    width: 100%;
    height: 340px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .3);
    font-size: 5rem;
}

/* Play button overlay */
.story-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .9);
    backdrop-filter: blur(8px);
    border: none;
    color: var(--primary);
    font-size: 1.8rem;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
    transition: transform .3s ease, background .3s ease;
    z-index: 2;
}

.story-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.12);
    background: #fff;
}

/* Floating accent cards */
.story-float-card {
    position: absolute;
    z-index: 2;
    background: var(--card-bg);
    border-radius: 14px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--body-color);
    box-shadow: var(--shadow-md);
    white-space: nowrap;
    animation: storyFloat 4s ease-in-out infinite;
}

.story-float-card--top {
    top: 8%;
    right: 5%;
    animation-delay: 0s;
}

.story-float-card--bottom {
    bottom: 12%;
    left: 2%;
    animation-delay: 2s;
}

@keyframes storyFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Video modal */
.story-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, .8);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.story-video-wrap {
    position: relative;
    width: 100%;
    max-width: 900px;
    aspect-ratio: 16/9;
}

.story-video-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px 8px;
}

.story-video-iframe {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

/* Responsive */
@media (max-width: 991.98px) {
    .story-visual {
        min-height: 360px;
    }
    .story-blob {
        width: 300px;
        height: 300px;
    }
    .story-img {
        height: 280px;
    }
    .story-img-placeholder {
        height: 280px;
    }
}

@media (max-width: 767.98px) {
    .story-visual {
        min-height: 300px;
        margin-top: 20px;
    }
    .story-blob {
        width: 250px;
        height: 250px;
    }
    .story-blob--sm {
        width: 80px;
        height: 80px;
    }
    .story-img-frame {
        width: 90%;
        transform: rotate(0deg);
    }
    .story-img {
        height: 240px;
    }
    .story-img-placeholder {
        height: 240px;
    }
    .story-float-card {
        font-size: .7rem;
        padding: 8px 12px;
    }
    .story-text {
        font-size: .95rem;
    }
}

/* ===== TRUST BADGES ===== */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.trust-item {
    text-align: center;
    padding: 28px;
}

.trust-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--icon-gradient-start), var(--icon-gradient-end));
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    color: var(--primary);
    margin: 0 auto 14px;
}

.trust-item h6 {
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--heading-color);
}

.trust-item p {
    font-size: .85rem;
    color: var(--text-muted);
    margin: 0;
}

/* ===== FOOTER ===== */
.store-footer {
    background: var(--footer-bg);
    color: var(--footer-color);
    padding: 64px 0 24px;
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.footer-brand span {
    color: var(--footer-brand-accent, var(--secondary));
}

.footer-heading {
    font-weight: 700;
    color: #ffffff;
    font-size: .875rem;
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: var(--footer-color);
    text-decoration: none;
    font-size: .85rem;
    transition: .15s;
    opacity: .8;
}

.footer-links a:hover {
    color: var(--footer-link-hover, var(--primary-light));
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.social-link {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--footer-color);
    text-decoration: none;
    font-size: 1rem;
    transition: .2s;
}

.social-link:hover {
    background: var(--primary);
    color: white;
}

.footer-divider {
    border-color: rgba(255, 255, 255, .1);
    margin: 32px 0 24px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.payment-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    color: var(--footer-color);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity .3s;
    font-size: 1rem;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== STAR RATING (for @stars directive) ===== */
.stars {
    color: #f59e0b;
    font-size: .85rem;
}

.star-empty {
    color: var(--border-color);
}

/* ===== BOOTSTRAP OVERRIDES for dark mode ===== */
[data-theme="dark"] .card {
    background: var(--card-bg);
    border-color: var(--border-color);
    color: var(--body-color);
}

[data-theme="dark"] .card-body {
    color: var(--body-color);
}

[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

[data-theme="dark"] .btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}
[data-theme="dark"] .btn-primary:hover {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
}

[data-theme="dark"] .btn-outline-light {
    border-color: rgba(255,255,255,.3);
    color: rgba(255,255,255,.85);
}
[data-theme="dark"] .btn-outline-light:hover {
    background: rgba(255,255,255,.1);
    border-color: rgba(255,255,255,.4);
    color: white;
}

[data-theme="dark"] .text-success { color: var(--success) !important; }
[data-theme="dark"] .text-danger { color: var(--danger) !important; }
[data-theme="dark"] .text-primary { color: var(--primary) !important; }
[data-theme="dark"] .bg-primary { background-color: var(--primary) !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 767.98px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .section-pad {
        padding: 48px 0;
    }
}

@media (max-width: 479.98px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .06);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    padding: 0 4px;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 6px 0;
    text-decoration: none;
    color: var(--text-muted);
    font-size: .65rem;
    font-weight: 500;
    letter-spacing: .2px;
    gap: 2px;
    transition: color .2s;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.25rem;
    line-height: 1;
}

.bottom-nav-item.active {
    color: var(--primary);
    font-weight: 600;
}

.bottom-nav-item:hover {
    color: var(--primary);
}

.bottom-nav-cart-wrap {
    position: relative;
    display: inline-flex;
}

.bottom-nav-badge {
    position: absolute;
    top: -6px;
    right: -10px;
    background: var(--danger);
    color: #fff;
    font-size: .55rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    padding: 0 4px;
    line-height: 1;
}

/* Mobile drawer section title */
.mobile-nav-section-title {
    padding: 8px 12px 4px;
    font-size: .65rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: .5px;
    text-transform: uppercase;
    list-style: none;
}

/* Mobile body padding to account for bottom nav */
@media (max-width: 991.98px) {
    body.store-body {
        padding-bottom: 64px;
    }

    .back-to-top {
        bottom: 76px;
    }

    .store-brand img {
        max-height: 32px !important;
    }
}

[data-theme="dark"] .bottom-nav {
    box-shadow: 0 -2px 12px rgba(0, 0, 0, .3);
}

/* ===== PRODUCT DETAIL PAGE (PDP) ===== */

/* Gallery wrapper — holds thumbs + main + magnifier */
.pdp-gallery {
    display: flex;
    gap: 12px;
    position: relative;
}

/* Vertical thumbnail strip */
.pdp-thumbs-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 72px;
    flex-shrink: 0;
    max-height: 480px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.pdp-thumbs-col::-webkit-scrollbar { width: 3px; }
.pdp-thumbs-col::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.pdp-thumbs-col img {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    object-fit: cover;
    transition: border-color .15s, box-shadow .15s;
    flex-shrink: 0;
}
.pdp-thumbs-col img:hover,
.pdp-thumbs-col img.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Video thumbnails in the gallery */
.pdp-thumb-video {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: border-color .15s, box-shadow .15s;
    background: #0f172a;
}
.pdp-thumb-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.pdp-thumb-video-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #dc2626, #7f1d1d);
    color: #fff;
    font-size: 1.4rem;
}
.pdp-thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.8rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}
.pdp-thumb-video:hover,
.pdp-thumb-video.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

/* Main video player area */
.pdp-main-video {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
}
.pdp-main-video iframe,
.pdp-main-video video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
[x-cloak] { display: none !important; }

/* Main image container */
.pdp-main-col {
    position: relative;
    flex: 1;
    min-width: 0;
    background: #f8fafc;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: crosshair;
}
.pdp-main-col img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    pointer-events: none;
}

/* Sale badge on main image */
.pdp-sale-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #ef4444;
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    z-index: 3;
}

/* Magnifier lens overlay */
.pdp-lens {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(45, 106, 79, .5);
    background: rgba(45, 106, 79, .12);
    pointer-events: none;
    z-index: 4;
    border-radius: 4px;
}

/* External magnifier box — visibility controlled by Alpine x-show */
.pdp-magnifier {
    position: absolute;
    top: 0;
    left: calc(100% + 16px);
    width: 420px;
    height: 420px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 250%;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    pointer-events: none;
    overflow: hidden;
}

/* Product info column */
.pdp-info { padding-left: 8px; }
.pdp-info .store-badge {
    display: inline-flex;
    align-items: center;
    background: #f1f5f9;
    color: var(--primary);
    font-size: .8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
    margin-bottom: 12px;
}
.pdp-info .pdp-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 10px;
}
.pdp-info .pdp-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 12px 0;
}
.pdp-info .price-block {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.pdp-info .price-main {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}
.pdp-info .price-crossed {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: #94a3b8;
}
.pdp-info .pdp-short-desc {
    color: var(--text-muted);
    font-size: .9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}
.pdp-info .variant-btn {
    border: 2px solid var(--border-color);
    background: #fff;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}
.pdp-info .variant-btn.active,
.pdp-info .variant-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}
.pdp-info .qty-control {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
}
.pdp-info .qty-control button {
    border: none;
    background: #f8fafc;
    padding: 10px 16px;
    font-size: 1rem;
    cursor: pointer;
}
.pdp-info .qty-control button:hover { background: #f1f5f9; }
.pdp-info .qty-display { padding: 0 20px; font-weight: 700; }

/* Product meta / details */
.pdp-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 16px;
}
.pdp-meta div span {
    color: #94a3b8;
    min-width: 80px;
    display: inline-block;
    font-size: .875rem;
}

/* Trust badges row */
.pdp-trust-row {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.pdp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: var(--text-muted);
}
.pdp-trust-item i {
    font-size: 1.2rem;
    color: var(--primary);
}

/* Tabs — reuse existing styles */
.product-tabs .nav-link { color: #64748b; font-weight: 600; border: none; padding: 12px 20px; }
.product-tabs .nav-link.active { color: var(--primary); border-bottom: 2px solid var(--primary); background: none; }
.product-tab-content { padding: 20px 0; color: #475569; line-height: 1.8; }
.review-card { background: #f8fafc; border-radius: 12px; padding: 16px; margin-bottom: 12px; }
.review-form-card { background: #f1f5f9; border-radius: 16px; padding: 20px; }
.shipping-info-card { background: #f8fafc; border-radius: 12px; padding: 20px; text-align: center; }

/* ===== ADD TO CART ANIMATION ===== */
.atc-btn {
    position: relative;
    overflow: hidden;
    transition: background .3s, transform .15s;
}
.atc-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Adding state — bag icon slides in + bouncing dots */
.atc-btn.atc-adding {
    background: var(--primary) !important;
    pointer-events: none;
}
.atc-bag-icon {
    font-size: 1.3rem;
    animation: bagSlideIn .4s ease-out forwards;
}
@keyframes bagSlideIn {
    0%   { transform: translateY(-20px) scale(.5); opacity: 0; }
    60%  { transform: translateY(4px) scale(1.1); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}
.atc-dots span {
    animation: dotBounce .6s infinite ease-in-out;
    display: inline-block;
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 1px;
}
.atc-dots span:nth-child(2) { animation-delay: .15s; }
.atc-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes dotBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-6px); }
}

/* Added state — green success */
.atc-btn.atc-added {
    background: #10b981 !important;
    border-color: #10b981 !important;
}
.atc-state-added {
    animation: checkPop .35s ease-out;
}
@keyframes checkPop {
    0%   { transform: scale(.5); opacity: 0; }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}

/* Cart icon bounce in header */
.cart-bounce {
    animation: cartBounce .5s ease;
}
@keyframes cartBounce {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.35); }
    50%  { transform: scale(.9); }
    70%  { transform: scale(1.15); }
    100% { transform: scale(1); }
}

/* Flying image to cart */
.fly-to-cart {
    will-change: top, left, width, height, opacity;
}

/* ===== PLACE ORDER TRUCK ANIMATION ===== */
.order-truck-btn {
    appearance: none;
    border: 0;
    background: var(--primary-dark);
    position: relative;
    height: 60px;
    width: 100%;
    padding: 0;
    outline: none;
    cursor: pointer;
    border-radius: 14px;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    transition: transform .3s ease, opacity .2s;
    font-family: var(--font);
}
.order-truck-btn:active { transform: scale(.97); }
.order-truck-btn:disabled { cursor: not-allowed; opacity: .85; }

/* Text states */
.order-truck-btn .otb-text {
    position: absolute;
    left: 0; right: 0;
    text-align: center;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .3px;
    transition: opacity .3s ease;
}
.order-truck-btn .otb-default { transition-delay: .3s; }
.order-truck-btn .otb-success {
    opacity: 0;
    color: #fff;
}
.order-truck-btn .otb-success svg {
    width: 13px; height: 11px;
    display: inline-block;
    vertical-align: top;
    fill: none;
    margin: 5px 0 0 6px;
    stroke: #4ade80;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 16px;
    stroke-dashoffset: 16px;
    transition: stroke-dashoffset .4s ease;
}

/* Speed lines */
.order-truck-btn .otb-lines {
    opacity: 0;
    position: absolute;
    height: 3px;
    background: rgba(255,255,255,.6);
    border-radius: 2px;
    width: 6px;
    top: 29px;
    left: 100%;
    box-shadow:
        15px 0 0 rgba(255,255,255,.5),
        30px 0 0 rgba(255,255,255,.4),
        45px 0 0 rgba(255,255,255,.5),
        60px 0 0 rgba(255,255,255,.6),
        75px 0 0 rgba(255,255,255,.4),
        90px 0 0 rgba(255,255,255,.5),
        105px 0 0 rgba(255,255,255,.6),
        120px 0 0 rgba(255,255,255,.4),
        135px 0 0 rgba(255,255,255,.5),
        150px 0 0 rgba(255,255,255,.6);
}

/* Truck container */
.order-truck-btn .otb-truck {
    width: 54px; height: 36px;
    left: 100%;
    z-index: 1;
    top: 12px;
    position: absolute;
    transform: translateX(20px);
}

/* Truck arms (doors) */
.order-truck-btn .otb-truck::before,
.order-truck-btn .otb-truck::after {
    content: '';
    height: 2px; width: 16px;
    right: 52px;
    position: absolute;
    display: block;
    background: rgba(255,255,255,.7);
    border-radius: 1px;
    transform-origin: 100% 50%;
    transform: rotate(-90deg);
}
.order-truck-btn .otb-truck::before { top: 3px; }
.order-truck-btn .otb-truck::after { bottom: 3px; transform: rotate(90deg); }

/* Truck back (cargo area) */
.order-truck-btn .otb-truck-back {
    position: absolute;
    left: 0; top: 0;
    width: 54px; height: 36px;
    border-radius: 3px;
    background: linear-gradient(#fff, #cdd9ed);
    z-index: 1;
}

/* Truck front (cabin) */
.order-truck-btn .otb-truck-front {
    overflow: hidden;
    position: absolute;
    border-radius: 3px 8px 8px 3px;
    width: 22px; height: 36px;
    left: 54px;
}
.order-truck-btn .otb-truck-front::before {
    content: '';
    position: absolute;
    height: 12px; width: 2px;
    left: 0; top: 12px;
    background: linear-gradient(#6c7486, #3f4656);
}
.order-truck-btn .otb-truck-front::after {
    content: '';
    position: absolute;
    border-radius: 3px 8px 8px 3px;
    background: var(--primary);
    width: 20px; height: 36px;
    right: 0;
}

/* Truck window */
.order-truck-btn .otb-truck-window {
    overflow: hidden;
    border-radius: 2px 7px 7px 2px;
    background: var(--primary-light, #7699FF);
    transform: perspective(4px) rotateY(3deg);
    width: 18px; height: 36px;
    position: absolute;
    left: 2px; top: 0; z-index: 1;
    transform-origin: 0 50%;
}
.order-truck-btn .otb-truck-window::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: 12px;
    background: var(--primary-dark);
}
.order-truck-btn .otb-truck-window::after {
    content: '';
    width: 12px;
    top: 6px; height: 4px;
    position: absolute; right: 0;
    background: rgba(255,255,255,.14);
    transform: skewY(14deg);
    box-shadow: 0 6px 0 rgba(255,255,255,.14);
}

/* Truck lights */
.order-truck-btn .otb-truck-light {
    width: 3px; height: 7px;
    left: 74px;
    transform-origin: 100% 50%;
    position: absolute;
    border-radius: 2px;
    transform: scaleX(.8);
    background: #f0dc5f;
}
.order-truck-btn .otb-truck-light::before {
    content: '';
    height: 4px; width: 6px;
    opacity: 0;
    transform: perspective(2px) rotateY(-15deg) scaleX(.88);
    position: absolute;
    transform-origin: 0 50%;
    left: 3px; top: 50%; margin-top: -2px;
    background: linear-gradient(90deg, #f0dc5f, rgba(240,220,95,.7), rgba(240,220,95,0));
}
.order-truck-btn .otb-truck-light.top { top: 3px; }
.order-truck-btn .otb-truck-light.bottom { bottom: 3px; }

/* Package box */
.order-truck-btn .otb-box {
    position: absolute;
    border-radius: 2px;
    background: linear-gradient(#edd9a9, #dcb773);
    width: 18px; height: 18px;
    right: 100%; top: 21px;
}
.order-truck-btn .otb-box::before {
    content: '';
    top: 9px; position: absolute;
    left: 0; right: 0;
    height: 3px; margin-top: -1px;
    background: rgba(0,0,0,.1);
}
.order-truck-btn .otb-box::after {
    content: '';
    top: 9px; position: absolute;
    left: 0; right: 0;
    height: 1px;
    background: rgba(0,0,0,.15);
}

/* ===== ANIMATE CLASS TRIGGERS ===== */
.order-truck-btn.animate .otb-default { opacity: 0; transition-delay: 0s; }
.order-truck-btn.animate .otb-success { opacity: 1; transition-delay: 3s; }
.order-truck-btn.animate .otb-success svg { stroke-dashoffset: 0; transition-delay: 3.2s; }
.order-truck-btn.animate .otb-truck { animation: otbTruck 4s ease forwards; }
.order-truck-btn.animate .otb-truck::before { animation: otbDoor1 1.2s ease forwards .15s; }
.order-truck-btn.animate .otb-truck::after { animation: otbDoor2 1.2s ease forwards .3s; }
.order-truck-btn.animate .otb-truck-light::before { animation: otbLight 4s ease forwards; }
.order-truck-btn.animate .otb-box { animation: otbBox 4s ease forwards; }
.order-truck-btn.animate .otb-lines { animation: otbLines 4s ease forwards; }

/* Truck: enters, pauses to load, drives off */
@keyframes otbTruck {
    10%, 30% { transform: translateX(-170px); }
    40%      { transform: translateX(-110px); }
    60%      { transform: translateX(-230px); }
    75%, 100% { transform: translateX(20px); }
}

/* Box: slides in from left, collected by truck */
@keyframes otbBox {
    8%, 10%  { transform: translateX(40px); opacity: 1; }
    25%      { transform: translateX(100px); opacity: 1; }
    26%      { transform: translateX(100px); opacity: 0; }
    27%, 100% { transform: translateX(0); opacity: 0; }
}

/* Speed lines: appear during drive-off */
@keyframes otbLines {
    0%, 30%  { opacity: 0; transform: scaleY(.7) translateX(0); }
    35%, 65% { opacity: 1; }
    70%      { opacity: 0; }
    100%     { transform: scaleY(.7) translateX(-400px); }
}

/* Headlights glow */
@keyframes otbLight {
    0%, 30%  { opacity: 0; transform: perspective(2px) rotateY(-15deg) scaleX(.88); }
    40%, 100% { opacity: 1; transform: perspective(2px) rotateY(-15deg) scaleX(.94); }
}

/* Truck doors open to receive package */
@keyframes otbDoor1 {
    30%, 50% { transform: rotate(32deg); }
}
@keyframes otbDoor2 {
    30%, 50% { transform: rotate(-32deg); }
}

/* ===== PDP RESPONSIVE ===== */
@media (max-width: 991.98px) {
    .pdp-gallery {
        flex-direction: column;
    }
    .pdp-thumbs-col {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: visible;
        order: 2;
    }
    .pdp-main-col {
        order: 1;
        cursor: default;
    }
    .pdp-lens,
    .pdp-magnifier {
        display: none !important;
    }
    .pdp-main-col:hover .pdp-lens {
        display: none !important;
    }
    .pdp-info { padding-left: 0; margin-top: 16px; }
    .pdp-trust-row { flex-wrap: wrap; }
}

@media (max-width: 575.98px) {
    .pdp-info .pdp-title { font-size: 1.2rem; }
    .pdp-info .price-main { font-size: 1.5rem; }
    .pdp-thumbs-col img { width: 56px; height: 56px; }
}
