/* assets/css/store.css - Mobile-First E-Commerce Framework - Handmade Premium Aesthetics */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Woolwala Premium Aesthetic */
    --primary: #8B1E1E;      /* Primary Red */
    --primary-light: #A33333;
    --primary-dark: #631010;
    --accent: #E0A800;       /* Accent Yellow */
    --accent-hover: #C29100;
    --secondary: #1E6FB8;    /* Secondary Blue */
    --background: #FDFDFD;   /* Off-white / white background */
    --surface: #FFFFFF;
    --text: #1F1F1F;         /* Dark grey */
    --muted: #5A5A5A;        /* Soft text */
    --border: #E8E5E1;       /* Softer border for premium feel */
    
    /* Premium Gradients */
    --gradient-primary: linear-gradient(135deg, #A33333 0%, #8B1E1E 100%);
    --gradient-primary-hover: linear-gradient(135deg, #8B1E1E 0%, #631010 100%);
    --gradient-accent: linear-gradient(135deg, #FFC107 0%, #E0A800 100%);
    --gradient-accent-hover: linear-gradient(135deg, #E0A800 0%, #C29100 100%);
    --gradient-dark: linear-gradient(135deg, #2D2D2D 0%, #151515 100%);
    
    --radius-sm: 8px;        /* Slightly more rounded for modern feel */
    --radius: 12px;
    --radius-lg: 20px;       /* Softer massive borders */
    --radius-full: 9999px;
    
    --danger: #cf2e2e;
    --success: #198754;      
    
    /* Shadows - Soft and premium Glassmorphism-esque */
    --shadow-sm: 0 4px 14px rgba(139, 30, 30, 0.05);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 35px rgba(224, 168, 0, 0.35);

    /* Transitions */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-bouncy: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);

    --safe-bottom: env(safe-area-inset-bottom, 20px);
}

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

html, body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    padding-bottom: calc(70px + var(--safe-bottom)); /* Mobile Nav space */
    line-height: 1.6;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    line-height: 1.3;
    color: var(--primary);
}

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

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

/* ===== SCROLL REVEAL ANIMATIONS ===== */
.reveal-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal-section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== MARQUEE TRUST BAR ===== */
.marquee-bar {
    background: var(--gradient-dark);
    color: rgba(255,255,255,0.9);
    overflow: hidden;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marqueeScroll 30s linear infinite;
    width: max-content;
}
.marquee-track span {
    flex-shrink: 0;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel {
    position: relative !important;
    width: 100%;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    background: var(--primary);
    /* CRITICAL: explicit height required because all slides are position:absolute */
    height: 420px !important;
    max-height: 420px;
    min-height: 420px;
    display: block !important;
}


/* Each slide stacks on top of each other */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.65s ease;
    pointer-events: none;
    /* Ensure absolute children (overlay) are contained */
    overflow: hidden;
}
.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 2;
}
.hero-slide.slide-out {
    opacity: 1;
    transform: translateX(-100%);
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Slide image fills the container */
.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Dark gradient overlay — canonical definition in HERO BANNER section below */
/* Use .hero-carousel .hero-overlay for carousel slides */
/* Use .hero-banner .hero-overlay for standalone banners */

/* Hero overlay — fills the slide, uses flex to push content to bottom-left */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.18) 55%, transparent 100%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    z-index: 3;
}

/* Content inside carousel slides — starts invisible, becomes .visible via JS */
.hero-carousel .hero-content-inner {
    padding: 2rem 1.75rem;
    max-width: 600px;
    width: 100%;
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s ease 0.15s, transform 0.65s ease 0.15s;
    text-align: left;
}
.hero-carousel .hero-content-inner.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Ensure CTA button stays left-aligned */
.hero-carousel .hero-content-inner .btn {
    display: inline-flex;
}

/* ── Hero Text ── */
.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}
.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: rgba(255,255,255,0.88);
    line-height: 1.6;
    margin: 0 0 1.5rem;
    max-width: 480px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.2);
}
@media (max-width: 479px) {
    .hero-title  { font-size: 1.55rem; margin-bottom: 0.5rem; }
    .hero-subtitle { font-size: 0.875rem; margin-bottom: 1rem; }
}

/* ── Arrow Buttons ── */
.hero-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
}
@media (max-width: 767px) {
    .hero-arrow { width: 34px; height: 34px; }
    .hero-arrow svg { width: 16px; height: 16px; }
    .hero-carousel .hero-content-inner h1 { font-size: 1.8rem; line-height: 1.2; padding-top: 1rem; }
    .hero-carousel .hero-content-inner p { font-size: 0.95rem; margin-bottom: 1rem; }
}
.hero-arrow:hover {
    background: rgba(255,255,255,0.32);
    transform: translateY(-50%) scale(1.08);
}
.hero-arrow-prev { left: 1rem; }
.hero-arrow-next { right: 1rem; }

/* ── Dot Indicators ── */
.hero-dots {
    position: absolute;
    bottom: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-smooth);
}
.hero-dot.active {
    background: #fff;
    width: 24px;
    border-radius: 4px;
}

/* ── Progress Bar ── */
.hero-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.15);
    z-index: 10;
}
.hero-progress-bar {
    height: 100%;
    width: 0%;
    background: var(--accent);
}

/* ── Floating Badge (sits above all slides) ── */
.hero-floating-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatBadge 3s ease-in-out infinite;
    box-shadow: var(--shadow-glow);
}
.badge-inner {
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}

/* ── Responsive ── */
@media (min-width: 768px) {
    .hero-carousel { height: 520px !important; max-height: 520px; min-height: 520px; }
    .hero-content-inner { padding: 3rem; }
    .hero-arrow { width: 52px; height: 52px; }
    .hero-arrow-prev { left: 1.5rem; }
    .hero-arrow-next { right: 1.5rem; }
    .hero-floating-badge { width: 72px; height: 72px; top: 2rem; right: 2rem; }
    .badge-inner { font-size: 0.75rem; }
}
@media (min-width: 1024px) {
    .hero-carousel { height: 600px !important; max-height: 600px; min-height: 600px; }
}


/* Layout Helpers */
.container {
    padding: 0 1.25rem;
    margin: 0 auto;
    max-width: 1200px;
    width: 100%;
}

.section {
    margin: 4rem 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    margin: 0;
    letter-spacing: -0.02em;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
}

.section-title-large {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text);
    opacity: 0.85;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 460px;
}

.view-all {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    position: relative;
    padding-bottom: 2px;
    white-space: nowrap;
}

.view-all::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1.5px;
    background: currentColor;
    transition: width var(--transition-smooth);
}
.view-all:hover::after {
    width: 100%;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-align: center;
    min-width: fit-content;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255,255,255,0.1); /* Subtle premium inner border feel */
}

.btn-primary:active, .btn-primary:hover {
    transform: translateY(-2px);
    background: var(--gradient-primary-hover);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--gradient-accent);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}
.btn-accent:hover {
    background: var(--gradient-accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-glow {
    box-shadow: var(--shadow-glow);
}
.btn-glow:hover {
    box-shadow: 0 0 40px rgba(210, 140, 113, 0.45);
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.btn-arrow svg {
    transition: transform var(--transition-smooth);
}
.btn-arrow:hover svg {
    transform: translateX(4px);
}

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

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

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
}

/* ===== ANNOUNCEMENT BAR ===== */
.announcement-bar {
    background: var(--gradient-accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 40px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ===== HEADER ===== */
.store-header {
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 1rem 1.25rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05); /* Softer glass border */
    box-shadow: var(--shadow-sm); /* Default soft shadow */
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth);
}

.store-logo {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
    letter-spacing: -0.01em;
}

.header-icons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    color: var(--primary);
}

.icon-btn {
    cursor: pointer;
    background: none;
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition-fast), color var(--transition-fast);
}

.icon-btn:hover {
    transform: scale(1.1);
    color: var(--accent);
}

.cart-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    height: 18px;
    min-width: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
}

/* Mega Menu / Desktop Nav */
.header-desktop-nav {
    display: none;
    gap: 2.5rem;
    font-size: 1rem;
    font-weight: 500;
}

.nav-link {
    color: var(--text);
    position: relative;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition-smooth);
    border-radius: 1px;
}
.nav-link:hover::after {
    width: 100%;
}
.nav-link:hover {
    color: var(--primary);
}

/* ===== GRIDS ===== */
.grid-2, .grid-3, .grid-4 {
    display: grid;
    gap: 1.5rem;
}
/* Mobile: all grids default to 1 column to prevent overflow/overlap */
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(2, 1fr); }

/* Tablet: unlock two columns */
@media (min-width: 640px) {
    .grid-2 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop: full columns */
@media (min-width: 768px) {
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.grid-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
}
.grid-gallery::-webkit-scrollbar {
    display: none;
}
.grid-gallery-item {
    scroll-snap-align: start;
    flex: 0 0 85%;
}

/* ===== PRODUCT CARD ===== */
.product-card {
    background: var(--surface);
    border: 1px solid rgba(0,0,0,0.06); /* Soft inner glass border */
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-bouncy), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0,0,0,0.1);
}

.product-img-wrap {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, #f5f3ef, #ece6df);
    position: relative;
    overflow: hidden;
}

.product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.product-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--surface);
    color: var(--primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    z-index: 2;
}

.trending-badge {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { box-shadow: 0 0 0 0 rgba(238, 90, 36, 0.3); }
    50% { box-shadow: 0 0 0 6px rgba(238, 90, 36, 0); }
}

.product-wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    box-shadow: var(--shadow-sm);
    z-index: 2;
    cursor: pointer;
    border: none;
    transition: all var(--transition-fast);
}

.product-wishlist-btn:hover {
    color: var(--danger);
    transform: scale(1.15);
    box-shadow: var(--shadow);
}

.product-info {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    color: var(--primary);
    line-height: 1.3;
}

.product-price-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--accent);
}

.product-price-old {
    font-size: 0.95rem;
    color: var(--muted);
    text-decoration: line-through;
}

.product-card .btn {
    margin-top: auto;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.9rem;
}

/* ===== VALUE PROPOSITIONS ===== */
.value-props-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 2rem 0 0 0;
}
@media (min-width: 480px) {
    .value-props-grid { grid-template-columns: repeat(2, 1fr); }
}

.value-prop-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: all var(--transition-smooth);
}

.value-prop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.value-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fdf0ea, #f8e5d8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: var(--accent);
    transition: transform var(--transition-bouncy);
}

.value-prop-card:hover .value-icon {
    transform: scale(1.1) rotate(5deg);
}

.value-prop-card h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.value-prop-card p {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ===== HERO BANNER ===== */
.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/5;
    background: #e2dcd3;
    margin-top: 1rem;
}
.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 8s ease;
}
.hero-animated:hover img {
    transform: scale(1.05);
}

.hero-carousel .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(65, 48, 36, 0.72) 0%,
        rgba(65, 48, 36, 0.25) 60%,
        transparent 100%
    );
    display: flex;
    align-items: center;
}

/* ── Banner hero-overlay: gradient bottom-to-top ── */
.hero-banner .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(65, 61, 58, 0.85) 0%, rgba(65, 61, 58, 0.3) 45%, rgba(65, 61, 58, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.5rem 1.5rem;
    color: white;
}
.hero-content-inner {
    max-width: 600px;
}
/* hero-title + hero-subtitle: single definition used by both carousel and banner */
.hero-title {
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.2);
}
.hero-subtitle {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: rgba(255,255,255,0.88);
    margin-bottom: 1.5rem;
    font-weight: 300;
    opacity: 0.9;
    line-height: 1.65;
    max-width: 440px;
}

/* Floating Badge on Hero */
.hero-floating-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 3;
    animation: floatBadge 3s ease-in-out infinite;
}
.badge-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    text-align: center;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: var(--shadow-glow);
}
@keyframes floatBadge {
    0%, 100% { transform: translateY(0) rotate(-8deg); }
    50% { transform: translateY(-8px) rotate(8deg); }
}

/* ===== PARALLAX PROMO BANNER ===== */
.parallax-promo {
    position: relative;
    min-height: 360px;
    display: flex;
    align-items: center;
    margin: 4rem 0;
    overflow: hidden;
}
.parallax-bg {
    position: absolute;
    inset: -40px;
    background-size: cover;
    background-position: center;
    /* iOS Safari does not support background-attachment: fixed inside overflow:hidden */
    background-attachment: scroll;
    z-index: 0;
}
.parallax-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(92, 75, 65, 0.92), rgba(92, 75, 65, 0.75));
    z-index: 1;
}
.parallax-content {
    position: relative;
    z-index: 2;
    color: white;
    padding: 3rem 1.25rem;
}
.parallax-content h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}
.parallax-desc {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 520px;
    line-height: 1.7;
}

/* ===== FEATURES STRIP ===== */
.features-strip {
    background: var(--primary);
    color: white;
    padding: 3.5rem 0;
}
.features-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.feature-icon-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all var(--transition-smooth);
}
.feature-item:hover .feature-icon-ring {
    border-color: var(--accent);
    background: rgba(210, 140, 113, 0.15);
    transform: scale(1.1);
}
.feature-item h4 {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: white;
    margin-bottom: 0.2rem;
}
.feature-item p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.65);
}

/* ===== COLLECTIONS GRID ===== */
.collections-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.collection-card-v2 {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16/10;
    display: flex;
    align-items: flex-end;
}
.collection-card-v2.collection-large {
    aspect-ratio: 16/9;
}
.collection-card-v2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.collection-card-v2:hover img {
    transform: scale(1.06);
}
.collection-card-v2 .collection-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.15) 80%, transparent 100%);
    color: white;
}
.collection-tag {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}
.collection-card-v2 h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 0.5rem;
}
.collection-cta {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255,255,255,0.8);
    font-family: 'Inter', sans-serif;
    transition: color var(--transition-fast);
}
.collection-card-v2:hover .collection-cta {
    color: white;
}

/* ===== TESTIMONIALS ===== */
.testimonials-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 2rem;
    scrollbar-width: none;
}
.testimonials-slider::-webkit-scrollbar { display: none; }

.testimonial-card {
    scroll-snap-align: start;
    flex: 0 0 88%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: all var(--transition-smooth);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 12px;
    right: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 5rem;
    color: var(--accent);
    opacity: 0.12;
    line-height: 1;
}
.testimonial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}
.testimonial-stars {
    color: #f0a500;
    font-size: 1rem;
    letter-spacing: 2px;
}
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text);
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}
.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #e8a68f);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.testimonial-author strong {
    display: block;
    font-size: 0.95rem;
    color: var(--primary);
}
.testimonial-author span {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ===== BLOG GRID ===== */
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
.blog-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    display: flex;
    flex-direction: column;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.blog-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.blog-card:hover .blog-img img {
    transform: scale(1.06);
}
.blog-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.blog-content h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.blog-excerpt {
    font-size: 0.92rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 1rem;
}
.blog-read-more {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    margin-top: auto;
    transition: color var(--transition-fast);
}
.blog-card:hover .blog-read-more {
    color: var(--accent-hover);
}

/* ===== INSTAGRAM GRID ===== */
.insta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}
.insta-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.insta-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.insta-item:hover img {
    transform: scale(1.08);
}
.insta-overlay {
    position: absolute;
    inset: 0;
    background: rgba(92, 75, 65, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}
.insta-item:hover .insta-overlay {
    opacity: 1;
}
.hide-mobile {
    display: none;
}

/* ===== SCROLL TO TOP ===== */
.scroll-top-btn {
    position: fixed;
    bottom: calc(80px + var(--safe-bottom));
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    pointer-events: none;
}
.scroll-top-btn.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.scroll-top-btn:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

/* ===== CATEGORY CUBES (existing) ===== */
.category-cube-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.category-cube-text {
    flex: 1;
    padding-right: 2rem;
}
.category-cube {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    gap: 1rem;
    aspect-ratio: 1;
}
.category-cube-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    background: #f0ebe1;
}
.category-cube-item img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.category-cube-item:hover img {
    transform: scale(1.08);
}
.category-cube-content {
    position: relative;
    z-index: 2;
    padding: 1rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
}
.category-cube-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* ===== COLLECTION CARD (legacy) ===== */
.collection-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    align-items: flex-end;
}
.collection-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.collection-card:hover img {
    transform: scale(1.05);
}
.collection-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    color: white;
}

/* ===== ARTICLE CARDS (learn section, used in legacy) ===== */
.article-card {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-smooth);
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.article-img {
    aspect-ratio: 16/10;
    overflow: hidden;
}
.article-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-content {
    padding: 1.5rem;
}
.article-tag {
    font-size: 0.8rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== CATEGORY CIRCLE GALLERY (legacy) ===== */
.category-circle-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    scrollbar-width: none;
}
.category-circle-gallery::-webkit-scrollbar { display: none; }
.category-circle-item {
    scroll-snap-align: start;
    flex: 0 0 calc(35% - 1rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.category-circle {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: #f0ebe1;
    overflow: hidden;
    transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}
.category-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}
.category-circle-item:hover .category-circle {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.category-circle-item:hover .category-circle img {
    transform: scale(1.1);
}
.category-circle-title {
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    color: var(--primary);
}

/* ===== FOOTER ===== */
.store-footer {
    background: var(--gradient-primary); /* Deep premium red gradient */
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    gap: 3rem;
}

.footer-col h3 {
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

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

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}
.footer-links a:hover {
    color: white;
    padding-left: 4px;
}

/* Newsletter Input */
.input-group {
    display: flex;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    padding: 0.25rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: border-color var(--transition-fast);
}
.input-group:focus-within {
    border-color: var(--accent);
}
.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1.25rem;
    color: white;
    outline: none;
}
.input-group input::placeholder { color: rgba(255,255,255,0.5); }
.input-group button {
    background: white;
    color: var(--primary);
    border: none;
    border-radius: var(--radius-full);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.input-group button:hover {
    background: var(--accent);
    color: white;
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

/* ===== MOBILE BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255,255,255,0.85); /* Slightly more transparent for better glass effect */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 0.75rem 0 calc(0.75rem + var(--safe-bottom));
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.06); /* Premium upward soft shadow */
    z-index: 9999;
    border-top: 1px solid rgba(0,0,0,0.05); /* Softer top line */
}
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.nav-item.active { color: var(--primary); }
.nav-item svg { width: 24px; height: 24px; }

/* ===== SEARCH BAR ===== */
.search-bar-wrapper {
    display: none;
    width: 100%;
    margin-top: 1rem;
}
.search-bar-wrapper.active {
    display: block;
}
.search-input-group {
    display: flex;
    background: var(--background);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.25rem 0.25rem 1rem;
    border: 1px solid var(--border);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.search-input-group:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(210, 140, 113, 0.1);
}
.search-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text);
    font-family: 'Outfit';
}
.search-input-group button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background var(--transition-fast);
}
.search-input-group button:hover {
    background: var(--accent);
}

@media (min-width: 768px) {
    body { padding-bottom: 0; }
    .bottom-nav { display: none; }

    .store-header {
        padding: 1rem 2rem;
        flex-wrap: nowrap;
    }
    /* CSS controls display — no JS override needed */
    .header-desktop-nav {
        display: flex !important;
        flex: 1;
        justify-content: center;
    }
    .search-bar-wrapper {
        display: block !important;
        width: 280px;
        margin-top: 0;
        margin-right: 1.5rem;
    }

    .grid-gallery-item { flex: 0 0 calc(25% - 1.125rem); }
    .category-circle-item { flex: 0 0 calc(14.28% - 1.3rem); }

    .hero-banner { aspect-ratio: 21/9; margin-top: 0; }
    .hero-banner .hero-overlay {
        padding: 4rem;
        justify-content: center;
        background: linear-gradient(to right, rgba(65, 61, 58, 0.7) 0%, rgba(65, 61, 58, 0) 70%);
    }

    .section { margin: 6rem 0; }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; gap: 4rem; }

    /* Value Props */
    .value-props-grid { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

    /* Category Cube */
    .category-cube-container {
        flex-direction: row;
        align-items: center;
    }
    .section-title-large { font-size: 3rem; }

    /* Collections */
    .collections-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
    }
    .collection-card-v2.collection-large {
        grid-row: 1 / 3;
        aspect-ratio: auto;
    }

    /* Testimonials */
    .testimonial-card { flex: 0 0 calc(33.33% - 1rem); }

    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .blog-card.blog-featured {
        grid-row: 1 / 3;
    }
    .blog-card.blog-featured .blog-img {
        aspect-ratio: auto;
        height: 100%;
    }
    .blog-card.blog-featured {
        display: grid;
        grid-template-rows: 1fr auto;
    }

    /* Instagram */
    .insta-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 0.75rem;
    }
    .hide-mobile { display: block; }
    .insta-item { border-radius: var(--radius); }

    /* Scroll-top button positioning */
    .scroll-top-btn {
        bottom: 2rem;
        right: 2rem;
    }

    /* Parallax — enable fixed attachment only where supported (not iOS) */
    @supports not (-webkit-touch-callout: none) {
        .parallax-bg { background-attachment: fixed; }
    }
    .parallax-content { padding: 5rem 2rem; }
    .parallax-content h2 { font-size: 3.5rem; }
}

@media (min-width: 1024px) {
    .search-bar-wrapper { width: 320px; }
    .hero-title { font-size: 4.5rem !important; }
    .section-title-large { font-size: 3.5rem; }
    .testimonial-card { flex: 0 0 calc(33.33% - 1rem); }
}

/* ===== SAFE OVERRIDES for older WebKit/Blink ===== */
/* Ensure aspect-ratio fallback for browsers without support */
@supports not (aspect-ratio: 4/5) {
    .product-img-wrap { padding-top: 125%; position: relative; }
    .product-img-wrap > * { position: absolute; inset: 0; width: 100%; height: 100%; }
    .hero-carousel { height: 340px; }
    .collection-card-v2 { min-height: 220px; }
    .blog-img { padding-top: 62.5%; position: relative; }
    .blog-img > img { position: absolute; inset: 0; width: 100%; height: 100%; }
}