/* ==========================================================================
   SN ART - Premium Heritage Design System
   ========================================================================== */

/* Design Tokens & Custom Properties */
:root {
    /* Color Palette */
    --color-saffron: #C8882A;
    --color-walnut: #3D2B1A;
    --color-brown-secondary: #6B4226;
    --color-cream: #FAF6EE;
    --color-ivory: #F2EBD9;
    --color-gold: #D4A843;
    --color-muted: #B5A593;
    --color-chinar-red: #A63425;
    --color-dal-teal: #2A6B6B;
    
    /* Text Color Settings */
    --color-text-dark: #EAE2D5;
    --color-text-light: #FAF6EE;
    --color-border: #222222;
    --color-border-dark: #333333;

    /* Explicit Dark Mode Background Scopes */
    --color-bg-page: #050505;
    --color-bg-card: #121212;

    /* Typography */
    --font-logo: 'Cinzel', serif;
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;

    /* Layout & Transitions */
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.25s ease;
    --container-max-width: 1320px;
    --header-height: 85px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    font-size: 16px;
    background-color: var(--color-bg-page);
    color: var(--color-text-dark);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    background-color: var(--color-bg-page);
    background-image: 
        radial-gradient(at 0% 0%, rgba(200, 136, 42, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(42, 107, 107, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(166, 52, 37, 0.03) 0px, transparent 60%),
        radial-gradient(at 0% 100%, rgba(42, 107, 107, 0.04) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(200, 136, 42, 0.05) 0px, transparent 50%);
    background-attachment: scroll;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-page);
}
::-webkit-scrollbar-thumb {
    background: var(--color-walnut);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-saffron);
}

/* Typography Defaults */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.2;
}

p {
    font-family: var(--font-body);
    color: var(--color-muted);
}

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

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

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    transition: var(--transition-fast);
}

/* Utility Containers */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.section-spacing {
    padding: clamp(3.5rem, 8vw, 7.5rem) 0;
}

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

.italic-garamond {
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 0;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg);
    transition: 0.75s;
    pointer-events: none;
}

.btn:hover::before {
    left: 150%;
}

.btn-primary {
    background-color: var(--color-walnut);
    color: var(--color-text-light);
    border: 1px solid var(--color-walnut);
}

.btn-primary:hover {
    background-color: var(--color-saffron);
    border-color: var(--color-saffron);
    color: white;
    box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.4),
                0 12px 30px rgba(200, 136, 42, 0.35),
                0 0 40px rgba(212, 168, 67, 0.25);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-dark);
    border: 1px solid var(--color-text-dark);
}

.btn-secondary:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-page);
}

.btn-sm {
    padding: 0.6rem 1.5rem;
    font-size: 0.8rem;
}

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

/* ==========================================================================
   Header & Sticky Navigation
   ========================================================================== */
.main-header {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    height: var(--header-height);
    transition: var(--transition-smooth);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}

/* Soft scrim keeps the logo/icons legible over the bright hero video
   before the user scrolls (fades away once .scrolled solid bg kicks in) */
.main-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 5, 0.55) 0%, rgba(5, 5, 5, 0) 100%);
    pointer-events: none;
    z-index: -1;
    transition: opacity 0.4s ease;
}

.main-header.scrolled::before {
    opacity: 0;
}

.main-header.scrolled {
    background-color: rgba(5, 5, 5, 0.98);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.2);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0 2rem;
}

/* Left cluster: nav menu (desktop) / hamburger (mobile) */
.nav-menu {
    justify-self: start;
    grid-column: 1;
}

/* Center cluster: brand logo, perfectly centered */
.brand-logo {
    justify-self: center;
    grid-column: 2;
}

/* Right cluster: action icons */
.nav-actions {
    justify-self: end;
    grid-column: 3;
}

.brand-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    line-height: 1;
}

.logo-title {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-logo); /* Cinzel — luxury serif */
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1;
    transition: var(--transition-smooth);
}

/* The "SN" monogram — strong, refined, with a gradient sheen */
.logo-mark {
    color: var(--color-text-light);
    letter-spacing: 0.18em;
    /* nudge so optical spacing looks centered next to the divider */
    padding-left: 0.18em;
}

/* The "ART" — lighter weight gold for contrast */
.logo-accent {
    font-weight: 400;
    color: var(--color-gold);
    letter-spacing: 0.42em;
    padding-left: 0.42em; /* compensate trailing letter-spacing */
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-saffron) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Slim vertical divider between SN and ART */
.logo-sep {
    width: 1px;
    height: 1.2em;
    background: linear-gradient(to bottom, transparent, var(--color-saffron), transparent);
    opacity: 0.7;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.46em;
    color: var(--color-saffron);
    font-weight: 500;
    margin-top: 8px;
    /* compensate the trailing letter-spacing so it stays centered */
    padding-left: 0.46em;
    transition: var(--transition-smooth);
}

.brand-logo:hover .logo-accent {
    letter-spacing: 0.5em;
    padding-left: 0.5em;
}

.main-header.scrolled .logo-title {
    font-size: 1.55rem;
}

.main-header.scrolled .logo-subtitle {
    font-size: 0.54rem;
    letter-spacing: 0.4em;
    padding-left: 0.4em;
}

/* Nav Menu Links */
.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2.2rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--color-saffron);
    transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-saffron);
}

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

/* Nav Actions Group */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.action-btn {
    color: var(--color-text-dark);
    position: relative;
    padding: 0.5rem;
}

.action-btn:hover {
    color: var(--color-saffron);
    transform: translateY(-2px);
}

.action-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--color-chinar-red);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle-btn {
    display: none;
    color: var(--color-text-dark);
    grid-column: 1;
    justify-self: start;
}

/* ==========================================================================
   Hero Section (Split Screen Editorial Layout)
   ========================================================================== */
.hero-section {
    position: relative;
    height: auto;
    background-color: var(--color-bg-page);
    overflow: visible;
}

.hero-video-container {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: 1;
    will-change: transform;
    backface-visibility: hidden;
}

.hero-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Slow Ken Burns cinematic zoom */
    animation: ken-burns 60s ease-in-out infinite alternate;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce), (max-width: 992px) {
    .hero-video-bg {
        animation: none;
    }
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(5, 5, 5, 0.4) 0%,
        rgba(5, 5, 5, 0.85) 100%
    );
    z-index: 2;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 3;
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    opacity: 0.8;
    animation: hero-indicator-bounce 2s infinite ease-in-out;
    pointer-events: none;
}

@keyframes hero-indicator-bounce {
    0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
    40% { transform: translate(-50%, -10px); }
    60% { transform: translate(-50%, -5px); }
}

.hero-container {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
    z-index: 10;
    text-align: center;
    color: var(--color-text-light);
}

.hero-subtitle-tag {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    font-weight: 600;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    color: var(--color-text-light);
    line-height: 1.1;
    margin-bottom: 2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-description {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-actions .btn-secondary {
    color: var(--color-text-light);
    border-color: var(--color-text-light);
}

.hero-actions .btn-secondary:hover {
    background-color: var(--color-text-light);
    color: var(--color-bg-page);
}

/* Stats Row */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(61, 43, 26, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 168, 67, 0.2);
    padding: 2rem 3rem;
    margin-top: 3.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.hero-stats:hover {
    border-color: var(--color-saffron);
    box-shadow: 0 35px 70px rgba(200, 136, 42, 0.15);
    transform: translateY(-3px);
}

/* Artisan Story Preview Card */
.artisan-preview-card {
    position: absolute;
    bottom: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(18, 12, 8, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 168, 67, 0.25);
    padding: 1.2rem;
    max-width: 330px;
    text-align: left;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    z-index: 15;
    transition: var(--transition-smooth);
}

.artisan-preview-card:hover {
    transform: translateY(-5px);
    border-color: var(--color-saffron);
    box-shadow: 0 25px 45px rgba(200, 136, 42, 0.2);
}

.ap-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--color-gold);
    flex-shrink: 0;
}

.ap-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.ap-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    font-weight: 600;
}

.ap-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-light);
    margin: 2px 0 4px;
}

.ap-quote {
    font-size: 0.75rem;
    color: var(--color-muted);
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ap-link {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-saffron);
    font-weight: 600;
}

.ap-link:hover {
    color: var(--color-gold);
}

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

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--color-gold);
    line-height: 1;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-ivory);
    margin-top: 5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(242, 235, 217, 0.2);
}

/* Editorial Masterpiece Gallery Section */
.editorial-gallery-section {
    background-color: var(--color-bg-page);
    border-bottom: 1px solid var(--color-border);
}

/* Right Side: Editorial Grid Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(6, 1fr);
    height: 680px;
    gap: 1.2rem;
}

.grid-item {
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.grid-item img, .grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(5, 5, 5, 0.95), transparent);
    padding: 2.2rem 1.5rem 1.5rem;
    opacity: 0;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.gallery-item-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text-light);
    font-style: italic;
    font-weight: 600;
}

.gallery-item-size {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.grid-item:hover img, .grid-item:hover video {
    transform: scale(1.08);
}

.grid-item:hover .grid-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Asymmetric Placements */
.item-main {
    grid-column: 1 / 4;
    grid-row: 1 / 4;
}

.item-sec-1 {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
}

.item-sec-2 {
    grid-column: 4 / 7;
    grid-row: 3 / 5;
}

.item-sec-3 {
    grid-column: 1 / 3;
    grid-row: 4 / 7;
}

.item-sec-4 {
    grid-column: 3 / 5;
    grid-row: 5 / 7;
}

.item-sec-5 {
    grid-column: 5 / 7;
    grid-row: 5 / 7;
}

/* ==========================================================================
   Scrolling Heritage Marquee Divider
   ========================================================================== */
.marquee-divider {
    background-color: var(--color-walnut);
    border-top: 1px solid var(--color-saffron);
    border-bottom: 1px solid var(--color-saffron);
    padding: 1.2rem 0;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
}

.marquee-content {
    display: flex;
}

.marquee-slide {
    display: flex;
    align-items: center;
    animation: loop-marquee 30s linear infinite;
}

.marquee-slide span {
    font-family: var(--font-logo);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    padding: 0 2rem;
}

.marquee-slide .bullet {
    font-size: 0.8rem;
    color: var(--color-saffron);
}

@keyframes loop-marquee {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

/* ==========================================================================
   Trust Indicators
   ========================================================================== */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.trust-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: var(--transition-smooth);
}

.trust-card:hover {
    border-color: var(--color-saffron);
    background-color: var(--color-cream);
    transform: translateY(-5px);
}

.trust-icon {
    color: var(--color-saffron);
    margin-bottom: 1.2rem;
    display: inline-block;
}

.trust-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin-bottom: 0.6rem;
}

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

/* ==========================================================================
   Browse By Craft (Category Cards with Hover Overlays)
   ========================================================================== */
.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    font-weight: 650;
    display: inline-block;
    background: linear-gradient(to right, var(--color-saffron), var(--color-chinar-red), var(--color-dal-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.6rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 2.8rem);
    color: var(--color-text-dark);
}

.header-divider {
    width: 60px;
    height: 2px;
    background-color: var(--color-saffron);
    margin-top: 1rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
    perspective: 1500px;
}

.category-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.5) 0%, rgba(10, 10, 10, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transition: var(--transition-smooth);
    transform: translate3d(0, 0, 0);
}

.category-image {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 320px;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.category-pattern-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(200, 136, 42, 0.15) 1px, transparent 1px);
    background-size: 16px 16px;
    opacity: 0;
    transition: var(--transition-smooth);
    mix-blend-mode: color-burn;
}

.category-content {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-card-title {
    font-size: 1.6rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
}

.category-card-desc {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.8rem;
}

.category-btn {
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--color-text-dark);
    border-bottom: 1px solid var(--color-text-dark);
    padding-bottom: 3px;
}

.category-btn:hover {
    color: var(--color-saffron);
    border-color: var(--color-saffron);
    padding-left: 5px;
}

/* Hover effects */
.category-card:hover {
    transform: translate3d(0, -10px, 15px) rotateX(-1deg) rotateY(1.5deg);
    box-shadow: 0 25px 50px rgba(61, 43, 26, 0.12),
                0 0 30px rgba(200, 136, 42, 0.05);
    border-color: rgba(200, 136, 42, 0.25);
}

.category-card:hover .category-image img {
    transform: scale(1.08) translateZ(10px);
}

.category-card:hover .category-pattern-overlay {
    opacity: 1;
}

/* ==========================================================================
   Featured Products Grid & Product Cards
   ========================================================================== */
.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    color: var(--color-muted);
    border: 1px solid var(--color-border);
    transition: var(--transition-fast);
}

.filter-tab:hover, .filter-tab.active {
    color: var(--color-cream);
    background-color: var(--color-walnut);
    border-color: var(--color-walnut);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
    perspective: 1500px;
}

.product-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.5) 0%, rgba(10, 10, 10, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    transform: translate3d(0, 0, 0);
}

.product-card:hover {
    transform: translate3d(0, -12px, 20px) rotateX(1.8deg) rotateY(-1.8deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(200, 136, 42, 0.15);
    border-color: rgba(200, 136, 42, 0.35);
}

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

.product-card:hover .product-image-container {
    transform: translate3d(0, 0, 10px);
}

.product-card:hover .product-info {
    transform: translate3d(0, 0, 15px);
}

.product-image-container {
    position: relative;
    padding-top: 110%; /* Elegant aspect ratio */
    overflow: hidden;
    background-color: var(--color-bg-card);
}

.product-image-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Badges */
.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: var(--color-walnut);
    color: var(--color-gold);
    font-size: 0.65rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.7rem;
    z-index: 10;
}

.product-badge.gi {
    background-color: var(--color-saffron);
    color: white;
}

/* Product Absolute Actions & Custom Hover Effects */
.absolute-heart {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(18, 12, 8, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 15;
    opacity: 0;
    transform: translate3d(12px, 0, 0);
    transition: var(--transition-smooth);
}

.product-card:hover .absolute-heart {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.absolute-heart.active {
    color: var(--color-chinar-red);
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.absolute-heart:hover {
    background-color: var(--color-walnut);
    color: var(--color-gold);
    transform: scale(1.1) !important;
}

/* Quick View Overlay Button (Centered on hover) */
.quick-view-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -30%, 0);
    padding: 0.7rem 1.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    background: rgba(18, 12, 8, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 168, 67, 0.25);
    color: var(--color-gold);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    opacity: 0;
    z-index: 12;
    transition: var(--transition-smooth);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card:hover .quick-view-overlay-btn {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
    pointer-events: auto;
}

.quick-view-overlay-btn:hover {
    background-color: var(--color-gold);
    color: var(--color-walnut);
    border-color: var(--color-gold);
}

/* Add to Cart Sliding Button (Slides up from bottom of image container) */
.add-to-cart-slide-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, var(--color-walnut), var(--color-brown-secondary));
    color: var(--color-text-light);
    border-top: 1px solid rgba(212, 168, 67, 0.3);
    padding: 0.9rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transform: translate3d(0, 100%, 0);
    transition: var(--transition-smooth);
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.product-card:hover .add-to-cart-slide-btn {
    transform: translate3d(0, 0, 0);
}

.add-to-cart-slide-btn:hover {
    background: var(--color-saffron);
    color: white;
}

/* Product Info */
.product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-cat {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-saffron);
    margin-bottom: 0.4rem;
}

.product-name {
    font-size: 1.3rem;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-rating {
    font-size: 0.8rem;
    color: var(--color-gold);
    margin-bottom: 0.8rem;
}

.product-reviews-count {
    color: var(--color-muted);
    font-size: 0.75rem;
    margin-left: 4px;
}

.product-price-row {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.wishlist-heart-btn {
    color: var(--color-muted);
}

.wishlist-heart-btn.active {
    color: var(--color-chinar-red);
}

/* ==========================================================================
   Heritage Story Section (Dark Accent Panels)
   ========================================================================== */
.heritage-story-section {
    background-color: var(--color-walnut);
    color: var(--color-cream);
    position: relative;
    padding: 9rem 0;
    overflow: hidden;
}

.story-background-decor {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z' fill='none' stroke='%235a432d' stroke-width='1'/%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.story-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.story-image {
    position: relative;
}

.story-image img {
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border-dark);
}

.story-quote-card {
    position: absolute;
    bottom: -40px;
    right: -30px;
    background-color: var(--color-brown-secondary);
    padding: 2rem;
    max-width: 320px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--color-saffron);
}

.quote-mark {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--color-saffron);
    line-height: 0.5;
    display: block;
}

.quote-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-cream);
    margin-bottom: 0.8rem;
}

.quote-author {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
}

.story-content {
    padding-left: 2rem;
}

.story-subtitle {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--color-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 1rem;
}

.story-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-cream);
    margin-bottom: 2rem;
}

.story-divider {
    width: 80px;
    height: 1px;
    background-color: var(--color-saffron);
    margin-bottom: 2.2rem;
}

.story-paragraph {
    font-size: 1.05rem;
    color: var(--color-ivory);
    margin-bottom: 1.8rem;
    line-height: 1.8;
}

.story-signature {
    margin-top: 3rem;
}

.sig-name {
    font-family: var(--font-logo);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    color: var(--color-gold);
}

.sig-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
}

/* ==========================================================================
   Artisan Heritage Section
   ========================================================================== */
.artisan-carousel-container {
    max-width: 1000px;
    margin: 0 auto;
}

.artisan-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--color-bg-card);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--color-border);
}

.artisan-photo-side {
    position: relative;
    overflow: hidden;
}

.artisan-photo-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 400px;
    transition: var(--transition-smooth);
}

.artisan-info-side {
    padding: 4.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.artisan-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.artisan-badge {
    background-color: var(--color-saffron);
    color: white;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 0.8rem;
    font-weight: 500;
}

.artisan-experience {
    font-size: 0.8rem;
    color: var(--color-muted);
    font-weight: 500;
}

.artisan-name {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 1.5rem;
}

.artisan-bio {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-style: italic;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.artisan-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.artisan-nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
}

.artisan-nav-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-page);
    border-color: var(--color-text-dark);
}

.artisan-indicator {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--color-muted);
    font-weight: 600;
}

/* ==========================================================================
   Testimonial Review Cards
   ========================================================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.testimonial-card {
    background-color: var(--color-bg-card);
    border: 1px solid transparent;
    padding: 3rem 2.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    border-color: var(--color-saffron);
    transform: translateY(-5px);
}

.rating {
    color: var(--color-gold);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-dark);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.patron-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.patron-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-walnut);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
}

.patron-name {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
}

.patron-location {
    font-size: 0.75rem;
    color: var(--color-muted);
    display: block;
}

/* ==========================================================================
   Newsletter Section
   ========================================================================== */
.newsletter-section {
    background: linear-gradient(135deg, var(--color-walnut) 0%, var(--color-brown-secondary) 100%);
    color: var(--color-cream);
    padding: 7.5rem 0;
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, var(--color-saffron) 0%, var(--color-chinar-red) 33%, var(--color-dal-teal) 66%, var(--color-gold) 100%) 1;
}

.newsletter-container {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-sub {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-gold);
    font-weight: 600;
    display: block;
    margin-bottom: 0.8rem;
}

.newsletter-title {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: var(--color-cream);
    margin-bottom: 1.2rem;
}

.newsletter-text {
    font-size: 1rem;
    color: var(--color-ivory);
    margin-bottom: 2.8rem;
}

.newsletter-form {
    display: flex;
    border: 1px solid rgba(212, 168, 67, 0.3);
    background-color: rgba(250, 246, 238, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px;
}

.newsletter-form input {
    flex-grow: 1;
    border: none;
    background: transparent;
    padding: 1rem 1.5rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-cream);
}

.newsletter-form input:focus {
    outline: none;
}

.newsletter-form button {
    padding: 0 2.5rem;
}

.order-form-section {
    margin-top: 1.5rem;
}

.order-confirmation-form {
    display: grid;
    gap: 1rem;
}

.order-confirmation-form .form-group {
    display: grid;
    gap: 0.5rem;
}

.order-confirmation-form label {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.order-confirmation-form input,
.order-confirmation-form textarea {
    width: 100%;
    border: 1px solid rgba(212, 168, 67, 0.25);
    background-color: rgba(250, 246, 238, 0.05);
    color: var(--color-text-light);
    padding: 0.85rem 1rem;
    border-radius: 0.55rem;
    resize: vertical;
}

.order-confirmation-form input:focus,
.order-confirmation-form textarea:focus {
    outline: 1px solid rgba(212, 168, 67, 0.65);
}

.order-confirmation-form textarea {
    min-height: 90px;
}

.form-note,
.payment-note {
    font-size: 0.88rem;
    color: var(--color-muted);
    margin-top: 0.85rem;
    line-height: 1.5;
}

.payment-confirmed {
    margin-bottom: 0.85rem;
    padding: 0.9rem 1rem;
    background-color: rgba(212, 168, 67, 0.12);
    border-left: 4px solid var(--color-gold);
    color: var(--color-text-light);
    border-radius: 0.65rem;
}

.newsletter-success {
    display: none;
    margin-top: 1.5rem;
    color: var(--color-dal-teal);
    font-size: 0.95rem;
    font-weight: 500;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.main-footer {
    background-color: var(--color-walnut);
    color: var(--color-cream);
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--color-border-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4.5rem;
}

.footer-logo {
    align-items: flex-start;
    text-align: left;
}

.footer-logo .logo-title {
    color: var(--color-cream);
}

.footer-desc {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.footer-socials {
    display: flex;
    gap: 1.2rem;
}

.footer-socials a {
    color: var(--color-muted);
}

.footer-socials a:hover {
    color: var(--color-saffron);
}

.footer-title {
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    margin-bottom: 1.8rem;
    font-weight: 600;
}

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

.footer-col ul li {
    margin-bottom: 0.9rem;
}

.footer-col ul li a {
    font-size: 0.9rem;
    color: var(--color-muted);
}

.footer-col ul li a:hover {
    color: var(--color-cream);
    padding-left: 4px;
}

.contact-col {
    font-size: 0.9rem;
}

.contact-item {
    color: var(--color-muted);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.contact-item strong {
    color: var(--color-gold);
    display: block;
    margin-bottom: 2px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid var(--color-border-dark);
    padding-top: 2.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--color-muted);
}

.payment-methods {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.payment-methods span {
    border: 1px solid var(--color-border-dark);
    padding: 0.2rem 0.6rem;
}

/* ==========================================================================
   Side Drawers & Overlays
   ========================================================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(61, 43, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

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

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background-color: var(--color-bg-page);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    transform: translate3d(100%, 0, 0);
    transition: var(--transition-smooth);
}

.drawer.active {
    transform: translate3d(0, 0, 0);
}

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

.drawer-header h3 {
    font-size: 1.6rem;
    color: var(--color-text-dark);
}

.drawer-close-btn {
    color: var(--color-text-dark);
    font-size: 1.2rem;
}

.drawer-close-btn:hover {
    color: var(--color-saffron);
}

.drawer-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 2rem;
}

.drawer-footer {
    padding: 2rem;
    border-top: 1px solid var(--color-border);
    background-color: var(--color-bg-card);
}

/* Cart Item Cards */
.cart-item {
    display: flex;
    gap: 1.2rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    background-color: var(--color-ivory);
}

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

.cart-item-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text-dark);
    margin-bottom: 0.3rem;
}

.cart-item-price {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-saffron);
    margin-bottom: 0.6rem;
}

.cart-item-qty-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
    width: fit-content;
}

.qty-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--color-text-dark);
}

.qty-val {
    width: 32px;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
}

.cart-item-remove {
    align-self: flex-start;
    color: var(--color-muted);
}

.cart-item-remove:hover {
    color: var(--color-chinar-red);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.empty-icon {
    color: var(--color-border);
}

.empty-state p {
    font-size: 0.95rem;
}

/* Drawer Footer Info */
.cart-subtotal-row, .cart-shipping-row, .cart-total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.cart-total-row {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 1.2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-text-dark);
}

.drawer-footer-note {
    font-size: 0.75rem;
    text-align: center;
    color: var(--color-muted);
    margin-top: 1rem;
}

/* ==========================================================================
   Search Overlay Modal
   ========================================================================== */
.search-modal {
    position: fixed;
    inset: 0;
    background-color: var(--color-bg-page);
    z-index: 1002;
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -20px, 0);
    transition: var(--transition-smooth);
}

.search-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
}

.search-modal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 1rem;
    margin-bottom: 3rem;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex-grow: 1;
    gap: 1rem;
}

.search-icon {
    color: var(--color-saffron);
}

.search-modal-header input {
    width: 100%;
    border: none;
    background: transparent;
    font-family: var(--font-heading);
    font-size: clamp(1.3rem, 5vw, 2.2rem);
    font-weight: 300;
    color: var(--color-text-dark);
}

.search-modal-header input::placeholder {
    color: var(--color-border);
}

.search-modal-header input:focus {
    outline: none;
}

.search-close-btn {
    color: var(--color-text-dark);
}

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

.search-suggestions h4, .search-results-wrapper h4 {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-muted);
    margin-bottom: 1.2rem;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.suggestion-tags button {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
    color: var(--color-text-dark);
}

.suggestion-tags button:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-page);
    border-color: var(--color-text-dark);
}

.search-results-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-height: 400px;
    overflow-y: auto;
    padding-right: 1rem;
}

/* ==========================================================================
   Product Quick View Modal (High-End Gallery overlay)
   ========================================================================== */
.quick-view-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(61, 43, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1005;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.quick-view-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.quick-view-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    width: 90%;
    max-width: 960px;
    background-color: var(--color-bg-page);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5);
    z-index: 1006;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.quick-view-modal.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.qv-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--color-text-dark);
    z-index: 10;
}

.qv-close-btn:hover {
    color: var(--color-saffron);
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
}

.qv-image-side {
    background-color: var(--color-bg-card);
    height: 550px;
}

.qv-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qv-info-side {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    height: 550px;
}

.qv-cat {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-saffron);
    margin-bottom: 0.8rem;
}

.qv-title {
    font-size: 2.2rem;
    color: var(--color-text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.qv-rating-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.qv-price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--color-text-dark);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.qv-desc {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.qv-meta-bullets {
    margin-bottom: 2.2rem;
    list-style: none;
}

.qv-meta-bullets li {
    font-size: 0.85rem;
    color: var(--color-muted);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.qv-meta-bullets li::before {
    content: '✦';
    color: var(--color-saffron);
    font-size: 0.65rem;
}

.qv-actions-row {
    display: flex;
    gap: 1rem;
}

.qv-actions-row .btn {
    flex-grow: 1;
}

.qv-wishlist-btn {
    width: 50px;
    height: 50px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
}

.qv-wishlist-btn:hover {
    color: var(--color-chinar-red);
    border-color: var(--color-chinar-red);
}

.qv-wishlist-btn.active {
    color: var(--color-chinar-red);
    background-color: rgba(166, 52, 37, 0.05);
    border-color: var(--color-chinar-red);
}

/* ==========================================================================
   WhatsApp Floating Widget
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: rgba(61, 43, 26, 0.8);
    color: var(--color-gold);
    border: 1px solid rgba(200, 136, 42, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.8rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(61, 43, 26, 0.3);
    z-index: 99;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    background-color: var(--color-saffron);
    color: white;
    transform: translateY(-3px);
}

.whatsapp-icon {
    width: 20px;
    height: 20px;
}

.whatsapp-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* ==========================================================================
   Reveal on Scroll Animations
   ========================================================================== */
.reveal,
.reveal-fade-up {
    opacity: 0;
    transform: translate3d(0, 45px, 0);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-scale-in {
    opacity: 0;
    transform: scale3d(0.94, 0.94, 0.94);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-slide-left {
    opacity: 0;
    transform: translate3d(-50px, 0, 0);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-slide-right {
    opacity: 0;
    transform: translate3d(50px, 0, 0);
    transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

/* Active States */
.reveal.reveal-active,
.reveal-fade-up.reveal-active,
.reveal-scale-in.reveal-active,
.reveal-slide-left.reveal-active,
.reveal-slide-right.reveal-active {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
}

/* Delay helpers */
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* ==========================================================================
   Mobile Menu Overlay Drawer
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-toggle-btn {
        display: block;
        grid-column: 1;
        justify-self: start;
    }

    .brand-logo {
        grid-column: 2;
        justify-self: center;
    }

    .nav-actions {
        grid-column: 3;
        justify-self: end;
    }

    /* Admin login icon stays visible on mobile (users tap it to reach /admin) */
    .profile-btn-desktop {
        display: inline-flex;
    }

    /* Nav menu becomes an off-canvas drawer, removed from grid flow */
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 300px;
        max-width: 82vw;
        background-color: var(--color-bg-page);
        border-right: 1px solid var(--color-border);
        box-shadow: 10px 0 40px rgba(0,0,0,0.5);
        padding: 5rem 2rem 2rem;
        transform: translate3d(-100%, 0, 0);
        transition: var(--transition-smooth);
        z-index: 999;
    }

    .nav-menu.active {
        transform: translate3d(0, 0, 0);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 1.8rem;
    }

    .nav-link {
        font-size: 1.1rem;
        color: var(--color-text-dark);
    }
}

/* ==========================================================================
   Responsive Grid Systems (Media Queries)
   ========================================================================== */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-container {
        gap: 2rem;
    }
    
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .hero-container {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        padding: 6rem 1rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        padding: 1.5rem 2rem;
    }

    .artisan-preview-card {
        position: relative;
        bottom: auto;
        right: auto;
        margin: 1.5rem auto 0;
        max-width: 100%;
        width: 100%;
    }

    .gallery-grid {
        height: 400px;
    }

    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

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

    .story-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .story-content {
        padding-left: 0;
    }

    .story-quote-card {
        right: 0;
        bottom: -20px;
    }

    .artisan-showcase {
        grid-template-columns: 1fr;
    }
    
    .artisan-photo-side img {
        min-height: 300px;
        height: 350px;
    }

    .artisan-info-side {
        padding: 3rem 2rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .section-spacing {
        padding: 4.5rem 0;
    }

    .logo-title {
        font-size: 1.45rem;
        gap: 0.45rem;
    }

    .logo-subtitle {
        font-size: 0.5rem;
        letter-spacing: 0.34em;
        padding-left: 0.34em;
    }

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

    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        justify-content: center;
    }

    .stat-divider {
        display: none;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
        height: auto;
        gap: 1rem;
    }

    .grid-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 240px;
    }

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

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

    .quick-view-grid {
        grid-template-columns: 1fr;
    }

    .qv-image-side {
        height: 300px;
    }

    .qv-info-side {
        height: auto;
        padding: 2rem;
    }
    
    .quick-view-modal {
        overflow-y: auto;
        max-height: 90vh;
    }

    .category-card {
        grid-template-columns: 1fr;
    }
    
    .category-image {
        min-height: 240px;
    }
    
    .category-content {
        padding: 2rem;
    }

    .story-quote-card {
        position: relative;
        right: auto;
        bottom: auto;
        margin: 2rem auto 0;
        max-width: 100%;
    }

    /* Tablet: drawers take most of the screen, never overflow */
    .drawer {
        max-width: 400px;
    }

    /* Catalogue header stacks; filter tabs become a horizontal scroll strip */
    .header-flex {
        flex-direction: column;
        align-items: stretch;
        gap: 1.2rem;
    }

    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.4rem;
    }

    .filter-tabs::-webkit-scrollbar {
        display: none;
    }

    .filter-tab {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .hero-stats {
        padding: 1.5rem;
        width: 100%;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    /* Search modal sits flush to the top on small screens */
    .search-modal-container {
        padding-top: 1rem;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .grid-item {
        height: 250px;
    }

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

    .filter-tabs {
        justify-content: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 10px;
        background: transparent;
        border: none;
        padding: 0;
    }

    .newsletter-form input {
        background-color: rgba(250, 246, 238, 0.08);
        border: 1px solid rgba(212, 168, 67, 0.25);
        color: var(--color-cream);
    }

    .newsletter-form button {
        width: 100%;
        padding: 1rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-actions {
        gap: 0.6rem;
    }

    .artisan-name {
        font-size: 1.8rem;
    }

    .artisan-bio {
        font-size: 1.15rem;
    }

    .artisan-info-side {
        padding: 2rem 1.2rem;
    }

    /* Small phones: drawers and modals go edge-to-edge */
    .drawer {
        max-width: 100%;
    }

    .drawer-header,
    .drawer-body,
    .drawer-footer {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .drawer-header h3 {
        font-size: 1.35rem;
    }

    .quick-view-modal {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        top: 0;
        left: 0;
        transform: none;
    }

    .quick-view-modal.active {
        transform: none;
    }

    .qv-info-side {
        padding: 1.5rem 1.2rem;
    }

    /* Tighter header so logo + icons never collide */
    .nav-actions {
        gap: 0.4rem;
    }

    .action-btn svg {
        width: 18px;
        height: 18px;
    }

    /* Stats stack into a single readable column */
    .hero-stats {
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.5rem 1rem;
    }

    .hero-subtitle-tag {
        font-size: 0.7rem;
        letter-spacing: 0.15em;
    }

    .grid-item {
        height: 220px;
    }

    .marquee-slide span {
        font-size: 0.95rem;
        padding: 0 1.2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

/* Touch & Mobile Always-Visible Card Buttons */
@media (hover: none), (max-width: 1024px) {
    .absolute-heart {
        opacity: 1 !important;
        transform: translate3d(0, 0, 0) !important;
    }
    .add-to-cart-slide-btn {
        transform: translate3d(0, 0, 0) !important;
        background: var(--color-saffron) !important;
        color: white !important;
    }
    .quick-view-overlay-btn {
        display: none !important;
    }
    .product-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
    }
    .category-card:hover {
        transform: translateY(-5px) !important;
    }
}

/* ==========================================================================
   Luxury Page Loader
   ========================================================================== */
.luxury-loader {
    position: fixed;
    inset: 0;
    background-color: var(--color-walnut);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.9s cubic-bezier(0.85, 0, 0.15, 1), opacity 0.9s ease, visibility 0.9s;
}

.luxury-loader.fade-out {
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
    color: var(--color-cream);
}

.loader-logo {
    font-family: var(--font-logo); /* Cinzel — luxury serif */
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    padding-left: 0.3em;
    display: block;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: loader-fade-in-up 0.8s forwards 0.2s;
    color: var(--color-text-light);
}

.loader-tag {
    font-family: var(--font-body);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--color-cream);
    display: block;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: loader-fade-in-up 0.8s forwards 0.4s;
}

.loader-bar-container {
    width: 180px;
    height: 1px;
    background-color: rgba(242, 235, 217, 0.15);
    margin: 0 auto;
    overflow: hidden;
}

.loader-bar {
    width: 100%;
    height: 100%;
    background-color: var(--color-saffron);
    transform: translate3d(-100%, 0, 0);
    animation: loader-slide 1.5s cubic-bezier(0.65, 0.05, 0.36, 1) forwards 0.1s;
}

@keyframes loader-fade-in-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loader-slide {
    to {
        transform: translate3d(100%, 0, 0);
    }
}

/* ==========================================================================
   Mouse Follow Glow Custom Cursor Light
   ========================================================================== */
.mouse-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(200, 136, 42, 0.06) 0%, rgba(200, 136, 42, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* ==========================================================================
   Testimonial Slider Carousel Styles
   ========================================================================== */
.testimonials-slider-container {
    position: relative;
    max-width: 820px;
    margin: 0 auto;
    overflow: hidden;
    padding: 1rem;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.testimonial-slide {
    flex: 0 0 100%;
    width: 100%;
    padding: 0 1rem;
}

.testimonials-slider-container .testimonial-card {
    margin: 0;
    width: 100%;
    box-shadow: 0 20px 40px rgba(61, 43, 26, 0.04);
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.slider-nav-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-dark);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.slider-nav-btn:hover {
    background-color: var(--color-text-dark);
    color: var(--color-bg-page);
    border-color: var(--color-text-dark);
    transform: scale(1.05);
}

.slider-dots {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-border);
    transition: var(--transition-fast);
    cursor: pointer;
}

.slider-dot.active {
    background-color: var(--color-saffron);
    transform: scale(1.3);
}

/* ==========================================================================
   Professional Colorful Accent Combos (Inspired by Kani shawl borders)
   ========================================================================== */

/* Multi-colored Kani shawl border line */
.main-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, var(--color-saffron) 0%, var(--color-chinar-red) 33%, var(--color-dal-teal) 66%, var(--color-gold) 100%);
    z-index: 10;
    opacity: 0;
    transition: var(--transition-smooth);
}

.main-header.scrolled::after {
    opacity: 1;
}

.main-footer {
    border-top: 3px solid transparent;
    border-image: linear-gradient(to right, var(--color-saffron) 0%, var(--color-chinar-red) 33%, var(--color-dal-teal) 66%, var(--color-gold) 100%) 1;
}

/* Category-specific color accents on hover */
.category-card[data-category="tokri"]:hover {
    border-color: var(--color-saffron);
    box-shadow: 0 25px 50px rgba(200, 136, 42, 0.08);
}

.category-card[data-category="papier_mache"]:hover {
    border-color: var(--color-dal-teal);
    box-shadow: 0 25px 50px rgba(42, 107, 107, 0.08);
}

.category-card[data-category="pashmina"]:hover {
    border-color: var(--color-chinar-red);
    box-shadow: 0 25px 50px rgba(166, 52, 37, 0.08);
}

.category-card[data-category="wood_carving"]:hover {
    border-color: var(--color-gold);
    box-shadow: 0 25px 50px rgba(212, 168, 67, 0.08);
}

/* Color-coded badges for products */
.product-badge.gi {
    background-color: var(--color-saffron);
    color: var(--color-cream);
}

.product-badge.artisan {
    background-color: var(--color-dal-teal);
    color: var(--color-cream);
}

.product-badge.masterpiece {
    background-color: var(--color-chinar-red);
    color: var(--color-gold);
}

/* Colorful counter highlights */
.hero-stats .stat-item:nth-of-type(1) .counter {
    color: var(--color-saffron);
}

.hero-stats .stat-item:nth-of-type(2) .counter {
    color: var(--color-chinar-red);
}

.hero-stats .stat-item:nth-of-type(3) .counter {
    color: var(--color-dal-teal);
}

/* Trust Card Base Gradients & Hover Accents */
.trust-card {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(5, 5, 5, 0.75) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-card:nth-of-type(1) {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(200, 136, 42, 0.03) 100%);
}
.trust-card:nth-of-type(2) {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(42, 107, 107, 0.03) 100%);
}
.trust-card:nth-of-type(3) {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(212, 168, 67, 0.03) 100%);
}
.trust-card:nth-of-type(4) {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(166, 52, 37, 0.03) 100%);
}
.trust-card:nth-of-type(5) {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(200, 136, 42, 0.03) 100%);
}

.trust-card:hover .trust-icon {
    transform: scale(1.1) rotate(5deg);
    transition: var(--transition-smooth);
}

.trust-card:nth-of-type(1):hover {
    border-color: var(--color-saffron);
    box-shadow: 0 15px 30px rgba(200, 136, 42, 0.08);
}
.trust-card:nth-of-type(2):hover {
    border-color: var(--color-dal-teal);
    box-shadow: 0 15px 30px rgba(42, 107, 107, 0.08);
}
.trust-card:nth-of-type(3):hover {
    border-color: var(--color-gold);
    box-shadow: 0 15px 30px rgba(212, 168, 67, 0.08);
}
.trust-card:nth-of-type(4):hover {
    border-color: var(--color-chinar-red);
    box-shadow: 0 15px 30px rgba(166, 52, 37, 0.08);
}
.trust-card:nth-of-type(5):hover {
    border-color: var(--color-saffron);
    box-shadow: 0 15px 30px rgba(200, 136, 42, 0.08);
}

/* Category-specific card background gradients */
.category-card[data-category="tokri"] {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(200, 136, 42, 0.05) 100%);
}
.category-card[data-category="papier_mache"] {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(42, 107, 107, 0.05) 100%);
}
.category-card[data-category="pashmina"] {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(166, 52, 37, 0.05) 100%);
}
.category-card[data-category="wood_carving"] {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, rgba(212, 168, 67, 0.05) 100%);
}

/* Kani Ribbon Dividers */
.kani-border-line {
    width: 100%;
    height: 4px;
    background: linear-gradient(
        to right,
        var(--color-saffron) 0%,
        var(--color-gold) 20%,
        var(--color-chinar-red) 40%,
        var(--color-walnut) 50%,
        var(--color-dal-teal) 60%,
        var(--color-gold) 80%,
        var(--color-saffron) 100%
    );
    opacity: 0.85;
}

/* Product Card Custom Gradient Accents & Ribbon Borders */
.product-card {
    background: linear-gradient(180deg, var(--color-bg-card) 0%, rgba(5, 5, 5, 0.85) 100%);
    position: relative;
    overflow: hidden;
}

.product-card-gi::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-saffron);
    z-index: 5;
}

.product-card-artisan::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-dal-teal);
    z-index: 5;
}

.product-card-masterpiece::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--color-chinar-red);
    z-index: 5;
}

/* Testimonial Glassmorphic Cards */
.testimonials-slider-container .testimonial-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.95) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}


/* ==========================================================================
   GLOBAL RESPONSIVE & ANTI-OVERFLOW SAFETY NET
   Added to eliminate horizontal scrolling and the right-side empty space on
   mobile. The off-canvas drawers (translateX 100%) used to extend the document
   width; clipping overflow on the root plus the rules below keep every section
   within the viewport on phones, tablets, and desktops.
   ========================================================================== */

/* Never allow any element to be wider than the screen */
*,
*::before,
*::after {
    max-width: 100%;
}

/* Media should always scale within its container without breaking ratio */
img,
video,
svg,
iframe {
    max-width: 100%;
    height: auto;
}

/* The hero video is an exception: it must fill its fixed-height container */
.hero-video-bg {
    height: 100%;
    max-width: none;
    width: 100%;
}

/* Mouse-follow glow is a desktop cursor effect; hide on touch to avoid any
   stray off-screen paint that could widen the page */
@media (hover: none), (max-width: 1024px) {
    .mouse-glow {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Tablet & below (<= 1024px): collapse remaining multi-column layouts
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .container {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

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

/* --------------------------------------------------------------------------
   Phones (<= 768px): single column everywhere, full-width content
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .trust-grid,
    .product-grid,
    .category-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-container,
    .story-container,
    .artisan-showcase,
    .quick-view-grid,
    .category-card {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* Cards, sections and media take the full available width */
    .product-card,
    .category-card,
    .trust-card,
    .grid-item,
    .testimonial-card,
    .hero-content,
    .artisan-preview-card,
    .newsletter-container {
        width: 100%;
        max-width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Large phones (<= 425px)
   -------------------------------------------------------------------------- */
@media (max-width: 425px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .whatsapp-float {
        right: 14px;
        bottom: 16px;
        padding: 0.7rem 1rem;
    }

    /* Keep the floating button compact so it never causes overflow */
    .whatsapp-label {
        display: none;
    }

    .nav-container {
        gap: 0.4rem;
    }
}

/* --------------------------------------------------------------------------
   Standard phones (<= 375px)
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
    html {
        font-size: 15px;
    }

    .hero-actions .btn {
        padding-left: 1rem;
        padding-right: 1rem;
        letter-spacing: 0.08em;
    }
}

/* --------------------------------------------------------------------------
   Small phones (<= 320px)
   -------------------------------------------------------------------------- */
@media (max-width: 320px) {
    html {
        font-size: 14px;
    }

    .container {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .logo-subtitle {
        display: none;
    }

    .stat-number {
        font-size: 1.8rem;
    }
}


/* ==========================================================================
   PREMIUM LUXURY EFFECTS (added)
   Ken Burns, grain overlay, lightbox gallery, button ripple, magnetic buttons
   ========================================================================== */

/* --- Ken Burns slow cinematic zoom for the hero video --- */
@keyframes ken-burns {
    0%   { transform: scale(1) translate3d(0, 0, 0); }
    100% { transform: scale(1.12) translate3d(0, -1.5%, 0); }
}

/* --- Subtle film grain texture overlay (very light, GPU-cheap) --- */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.02;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.025) 0%, transparent 30%),
        radial-gradient(circle at top left, rgba(212, 168, 67, 0.02) 0%, transparent 28%);
    background-size: 160px 160px;
}

/* --- Button ripple effect --- */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-anim 0.6s linear;
    background-color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 0;
}

@keyframes ripple-anim {
    to {
        transform: scale(3.2);
        opacity: 0;
    }
}

/* Keep button text above the ripple */
.btn > * {
    position: relative;
    z-index: 1;
}

/* --- Magnetic buttons (smooth follow) --- */
.btn,
.category-btn,
.action-btn {
    will-change: transform;
}

/* --- Lightbox Gallery Viewer --- */
.gallery-grid .grid-item {
    cursor: zoom-in;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 1rem;
    background-color: rgba(5, 5, 5, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-figure {
    max-width: 90vw;
    max-height: 85vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transform: scale(0.96);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox.active .lightbox-figure {
    transform: scale(1);
}

.lightbox-figure img {
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border: 1px solid rgba(212, 168, 67, 0.25);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-gold);
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    color: var(--color-cream);
    background: rgba(61, 43, 26, 0.5);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    background: var(--color-saffron);
    color: white;
    transform: rotate(90deg);
}

.lightbox-nav {
    color: var(--color-cream);
    background: rgba(61, 43, 26, 0.5);
    border: 1px solid rgba(212, 168, 67, 0.3);
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    background: var(--color-saffron);
    color: white;
}

@media (max-width: 768px) {
    .lightbox {
        flex-direction: column;
    }
    .lightbox-nav {
        position: absolute;
        bottom: 1.5rem;
        width: 46px;
        height: 46px;
    }
    .lightbox-prev { left: 25%; }
    .lightbox-next { right: 25%; }
}

/* ==========================================================================
   MOTION ACCESSIBILITY: respect users who prefer reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
    .hero-video-bg {
        animation: none;
    }
    .grain-overlay {
        display: none;
    }
}


/* ==========================================================================
   MOBILE-FIRST RESPONSIVE LAYER  (authoritative — placed last)
   Guarantees a true mobile website at real device widths without Desktop Mode.
   Breakpoints: 768 / 480 / 414 / 390 / 375 / 320
   ========================================================================== */

/* ---- Hard stop on horizontal overflow at the root (belt & braces) ---- */
html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

/* Any element with a stray wide value can never push the page sideways */
section,
header,
footer,
.container,
.nav-container,
.hero-container,
.story-container {
    max-width: 100%;
}

/* --------------------------------------------------------------------------
   <= 768px  — Tablets & large phones: everything becomes single / 2-up,
   full width, generous touch targets.
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* All major multi-column grids collapse */
    .trust-grid,
    .product-grid,
    .category-grid,
    .footer-grid,
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    /* Feature cards (GI Tag / Free Shipping / Artisan Direct / Secure Payments)
       and product cards stack into 2 readable columns here, 1 column below */
    .trust-card {
        padding: 1.8rem 1.1rem;
    }

    /* Stacked editorial layouts */
    .hero-container,
    .story-container,
    .artisan-showcase,
    .quick-view-grid,
    .category-card {
        display: flex !important;
        flex-direction: column;
        width: 100%;
    }

    /* Touch targets: comfortable tap sizes */
    .action-btn,
    .mobile-toggle-btn,
    .filter-tab,
    .qty-btn,
    .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .action-btn {
        min-width: 44px;
        justify-content: center;
    }

    /* Hero spacing breathes on small screens */
    .hero-container {
        padding: 5rem 1rem 3rem;
    }

    /* Gallery: clean auto-height 2-col mosaic, no fixed pixel height */
    .gallery-grid {
        height: auto;
    }
    .grid-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        height: 200px;
    }
}

/* --------------------------------------------------------------------------
   <= 480px  — Phones: TRUE single column everywhere.
   This is where the four feature cards stack vertically and full-width.
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .trust-grid,
    .product-grid,
    .category-grid,
    .footer-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .grid-item {
        height: 220px;
    }

    /* Feature + product cards: full width, comfortable internal padding */
    .trust-card,
    .product-card,
    .category-card,
    .testimonial-card {
        width: 100%;
        max-width: 100%;
    }

    .trust-card {
        padding: 2rem 1.4rem;
    }

    /* Filter tabs scroll horizontally instead of wrapping awkwardly */
    .filter-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.3rem;
    }
    .filter-tabs::-webkit-scrollbar { display: none; }
    .filter-tab { flex: 0 0 auto; white-space: nowrap; }

    /* Hero stats stack cleanly */
    .hero-stats {
        flex-direction: column;
        gap: 1.1rem;
        padding: 1.4rem 1rem;
        width: 100%;
    }
    .stat-divider { display: none; }

    /* Product image keeps a pleasant ratio, never overflows */
    .product-image-container {
        padding-top: 100%;
    }
}

/* --------------------------------------------------------------------------
   <= 414px  — iPhone Plus / Pro Max, large Androids
   -------------------------------------------------------------------------- */
@media (max-width: 414px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .section-title { font-size: 1.9rem; }
    .grid-item { height: 200px; }

    /* Keep all header icons (search, wishlist, cart, admin) on one tidy row */
    .nav-actions { gap: 0.3rem; }
    .action-btn { padding: 0.35rem; }
    .action-btn svg { width: 18px; height: 18px; }
    .action-badge { width: 14px; height: 14px; font-size: 0.55rem; }
}

/* --------------------------------------------------------------------------
   <= 390px  — iPhone 12/13/14/15, Pixel
   -------------------------------------------------------------------------- */
@media (max-width: 390px) {
    .hero-actions {
        flex-direction: column;
        gap: 0.9rem;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .grid-item { height: 185px; }
}

/* --------------------------------------------------------------------------
   <= 375px  — iPhone SE/Mini, small Androids
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
    html { font-size: 15px; }
    .container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
    .trust-card { padding: 1.7rem 1.1rem; }
}

/* --------------------------------------------------------------------------
   <= 320px  — Smallest supported phones (iPhone 5/SE1)
   -------------------------------------------------------------------------- */
@media (max-width: 320px) {
    html { font-size: 14px; }
    .container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }
    .logo-subtitle { display: none; }
    .stat-number { font-size: 1.7rem; }
    .grid-item { height: 165px; }
}


/* ==========================================================================
   Cart / checkout toast
   ========================================================================== */
.sn-cart-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(140%);
    background: var(--color-bg-card, #121212);
    color: var(--color-cream, #FAF6EE);
    border: 1px solid var(--color-saffron, #C8882A);
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    font-size: 0.88rem;
    font-family: var(--font-body, sans-serif);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    z-index: 3000;
    transition: transform 0.35s cubic-bezier(0.25,1,0.5,1);
    max-width: 90vw;
    text-align: center;
}
.sn-cart-toast.show {
    transform: translateX(-50%) translateY(0);
}


/* ==========================================================================
   Cart → Payment step (UPI options)
   ========================================================================== */
.payment-step {
    padding: 0.5rem 0;
}
.payment-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--color-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.4rem 0;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}
.payment-back:hover { color: var(--color-saffron); }

.payment-heading {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--color-text-dark);
    margin-bottom: 0.4rem;
}
.payment-amount {
    font-size: 0.9rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}
.payment-amount strong { color: var(--color-gold); font-size: 1.1rem; }

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}
.pay-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.2rem 0.8rem;
    background: var(--color-bg-card, #121212);
    border: 1px solid var(--color-border, #2a2a2a);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pay-option:hover {
    border-color: var(--color-saffron);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.pay-logo {
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    letter-spacing: 0.02em;
    color: #fff;
    min-width: 64px;
    text-align: center;
}
.pay-logo.gpay { background: linear-gradient(135deg,#4285F4,#34A853,#FBBC05,#EA4335); }
.pay-logo.phonepe { background: #5f259f; }
.pay-logo.paytm { background: #00baf2; }
.pay-logo.upi { background: linear-gradient(135deg,#ff7e00,#097939); }
.pay-name {
    font-size: 0.82rem;
    color: var(--color-text-dark);
    font-weight: 500;
}

.payment-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    margin: 1.2rem 0;
}
.payment-divider::before,
.payment-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--color-border, #2a2a2a);
}
.payment-divider span { padding: 0 0.8rem; }

.payment-note {
    font-size: 0.75rem;
    color: var(--color-muted);
    margin-top: 1rem;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 360px) {
    .payment-options { grid-template-columns: 1fr; }
}
