/* ============================================================
   PREMIUM INDIAN JEWELRY & DIVINE SCULPTURE — Ultra-Luxury Theme
   Stack: Bootstrap 5 + Custom CSS
   Fonts: Cormorant Garamond (Headings) + Inter (Body)
   Aesthetic: Minimal | Dark | Maroon & Gold | Glassmorphism
   ============================================================ */

/* ── 1. THEME VARIABLES ────────────────────────────────── */
:root {
    /* Color Palette */
    --bg-main:         #0b0b0b;       /* Deep Luxury Black */
    --bg-surface:      #111111;       /* Easing surface for cards */
    --bg-glass:        rgba(17, 17, 17, 0.85); /* Glass header */
    
    --gold:            #d4af37;       /* Primary Rich Gold */
    --gold-soft:       #e9d9b5;       /* Warm Ivory/Soft Gold */
    --gold-dark:       #a98622;
    --maroon:          #7a0f0f;       /* Divine Deep Maroon */
    
    --text-primary:    #f5f0e8;       /* Warm Ivory for high contrast */
    --text-secondary:  rgba(245, 240, 232, 0.65);
    --text-muted:      rgba(245, 240, 232, 0.4);
    
    --border-gold:     rgba(212, 175, 55, 0.25);
    --border-subtle:   rgba(245, 240, 232, 0.08);

    /* Status Colors */
    --success:         #0ab360;
    --danger:          #d84040;
    --warning:         #d97706;

    /* Typography */
    --font-heading:    'Cormorant Garamond', 'Playfair Display', serif;
    --font-body:       'Inter', -apple-system, sans-serif;
    
    /* Spacing & Sizes */
    --radius-sm:       2px;
    --radius-md:       4px;
    --radius-lg:       8px;
    
    /* Effects */
    --transition:      all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-fast: all 0.2s ease-in-out;
    --shadow-soft:     0 4px 20px rgba(0,0,0, 0.4);
    --shadow-gold:     0 6px 24px rgba(212, 175, 55, 0.15);
}

/* ── 2. GLOBAL RESET & BASE ────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Hero pushes content down normally, non-hero pages need padding */
    padding-top: 130px; /* Offset for sticky header */
}

/* On homepage, the hero section sits flush under transparent header */
body.page-home { padding-top: 0; }

a { color: var(--gold); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--gold-soft); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ── 3. TYPOGRAPHY SYSTEM ──────────────────────────────── */
h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 0.5em;
    font-style: italic;
    letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 300; }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; font-family: var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; }

/* Premium Shimmer for special headings */
.text-shimmer {
    background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 50%, var(--gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: goldShimmer 6s linear infinite;
}
@keyframes goldShimmer { to { background-position: 200% center; } }

/* Utility Typo */
.text-gold { color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.ls-1 { letter-spacing: 0.05em; }
.ls-2 { letter-spacing: 0.15em; }

/* ── 4. COMPONENTS ─────────────────────────────────────── */

/* BUTTONS */
.btn-lux-primary {
    display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
    background: var(--gold);
    color: var(--bg-main) !important;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.8rem 2.2rem;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}
.btn-lux-primary:hover {
    background: var(--gold-soft);
    border-color: var(--gold-soft);
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-lux-outline {
    display: inline-flex; justify-content: center; align-items: center; gap: 0.5rem;
    background: transparent;
    color: var(--gold) !important;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.8rem 2.2rem;
    border: 1px solid var(--gold);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    cursor: pointer;
}
.btn-lux-outline:hover {
    background: var(--gold);
    color: var(--bg-main) !important;
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

/* INPUTS */
.form-control, .form-select {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 0.7rem 1.2rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus, .form-select:focus {
    background: var(--bg-main);
    border-color: var(--gold);
    color: var(--text-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.2);
}

/* ── 5. LUXURY HEADER SYSTEM ───────────────────────────── */

/* Topbar */
.topbar {
    background: var(--maroon);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding: 0.4rem 0;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-soft);
    text-align: center;
    position: relative;
    z-index: 1061;
}

/* Main Site Header Wrapper */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1060;
    transition: var(--transition);
}
/* When at top, navbar is transparent on homepage. Otherwise glass */
body.page-home .site-header {
    background: transparent;
    border-bottom: 1px solid transparent;
}
body:not(.page-home) .site-header,
.site-header.scrolled {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-gold);
    box-shadow: var(--shadow-soft);
}
/* If scrolled, and we had a topbar, push header to top */
.site-header.scrolled { top: 0 !important; }
body.has-topbar .site-header { top: 32px; /* approximate topbar height */ }

/* Main Header Row (Logo, Search, Icons) */
.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
}

/* Logo */
.header-logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: 0.08em;
    font-style: italic;
    text-transform: none;
}
.header-logo:hover { color: var(--gold-soft); }

/* Integrated Search */
.header-search {
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
    position: relative;
    display: none; /* hidden on mobile */
}
@media (min-width: 992px) { .header-search { display: block; } }

.header-search input {
    width: 100%;
    height: 38px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 0 1.5rem 0 1.2rem;
    color: var(--text-primary);
    font-size: 0.8rem;
}
.header-search input:focus {
    background: var(--bg-surface);
    border-color: var(--gold);
}
.header-search button {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--gold);
    cursor: pointer; padding: 0; font-size: 0.9rem;
}
.header-search button:hover { color: var(--gold-soft); }

/* Header Icons */
.header-icons { display: flex; align-items: center; gap: 1.2rem; }
.header-icon-btn {
    position: relative;
    color: var(--text-primary);
    font-size: 1.1rem;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: var(--transition-fast);
}
.header-icon-btn:hover { color: var(--gold); transform: translateY(-1px); }
.header-badge {
    position: absolute; top: -6px; right: -8px;
    background: var(--maroon);
    color: var(--gold-soft);
    font-size: 0.55rem;
    font-weight: 700;
    border: 1px solid var(--gold);
    border-radius: 50%;
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
}

/* Category Navigation Row */
.header-nav-row {
    border-top: 1px solid var(--border-subtle);
    display: none; /* hidden on mobile natively */
}
@media (min-width: 992px) { .header-nav-row { display: block; } }
.nav-list {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    list-style: none;
}
.nav-list li a {
    display: block;
    padding: 0.8rem 0;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
}
.nav-list li a::after {
    content: '';
    position: absolute; bottom: 6px; left: 50%;
    width: 0; height: 1px;
    background: var(--gold);
    transition: var(--transition);
    transform: translateX(-50%);
}
.nav-list li a:hover, .nav-list li a.active { color: var(--gold); }
.nav-list li a:hover::after, .nav-list li a.active::after { width: 100%; }

/* Mobile Menu Toggler */
.mobile-menu-btn { display: block; }
@media (min-width: 992px) { .mobile-menu-btn { display: none; } }

/* ── 6. HERO SECTION BASICS ────────────────────────────── */
.lux-hero {
    position: relative;
    height: 80vh; /* Premium proportion */
    min-height: 500px;
    max-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0; /* Important: flush top to underlap header */
}
.lux-hero-bg {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    filter: brightness(0.4) saturate(0.85);
    transition: transform 12s linear;
}
.lux-hero:hover .lux-hero-bg { transform: scale(1.05); }
.lux-hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(11,11,11,0.5) 0%, transparent 40%, rgba(11,11,11,0.8) 100%);
    z-index: 1;
}
.lux-hero-content {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 1.5rem;
}
.lux-hero-tag {
    display: inline-block;
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase;
    color: var(--gold);
    border: 1px solid var(--border-gold);
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(4px);
}

/* ── 7. PRODUCT CARD BASICS ────────────────────────────── */
.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex; flex-direction: column;
}
.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}
.product-image-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--bg-main); }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.product-card:hover .product-image-wrap img { transform: scale(1.05); }
.product-card-body { padding: 1.5rem 1rem; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.product-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.product-price { font-family: var(--font-body); font-weight: 600; color: var(--gold); font-size: 0.9rem; }

/* ── 8. FOOTER BASICS ──────────────────────────────────── */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-gold);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}
.footer-logo { font-family: var(--font-heading); font-size: 2rem; color: var(--gold); font-style: italic; margin-bottom: 1rem; display: block; }
.footer-text { color: var(--text-secondary); font-size: 0.85rem; max-width: 300px; }
.footer-heading { font-family: var(--font-body); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.footer-links li { margin-bottom: 0.8rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.85rem; transition: var(--transition-fast); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid var(--border-subtle); margin-top: 3rem; padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--text-muted); }

/* ── 9. RESPONSIVE BREAKPOINTS ─────────────────────────── */
@media (max-width: 991px) {
    body { padding-top: 70px; }
    .header-main-row { padding: 1rem 0; }
    .header-logo { font-size: 1.5rem; }
}

@media (max-width: 767px) {
    .topbar { display: none; }
    body.has-topbar .site-header { top: 0; }
    h1 { font-size: 2.2rem; }
    .lux-hero { height: 60vh; min-height: 400px; }
    .product-image-wrap { aspect-ratio: 1/1; }
    .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}

/* ── MOBILE MENU OFFCANVAS (Bootstrap Override) ────────── */
.offcanvas { background: var(--bg-main); border-right: 1px solid var(--border-gold); }
.offcanvas-header { border-bottom: 1px solid var(--border-subtle); padding: 1.5rem; }
.offcanvas-title { font-family: var(--font-heading); color: var(--gold); font-style: italic; font-size: 1.5rem; }
.btn-close { filter: invert(1) sepia(100%) saturate(1000%) hue-rotate(30deg) brightness(80%); opacity: 0.8; }
.offcanvas-body { padding: 1.5rem; }
.mobile-nav-list li { border-bottom: 1px solid var(--border-subtle); }
.mobile-nav-list a { display: block; padding: 1rem 0; color: var(--text-primary); font-family: var(--font-body); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.mobile-nav-list a:hover { color: var(--gold); padding-left: 0.5rem; }

/* ── 10. HOMEPAGE SPECIFIC COMPONENTS ──────────────────── */

/* Trust Strip */
.trust-strip { background: var(--bg-surface); padding: 2rem 0; border-bottom: 1px solid var(--border-gold); }
.trust-item { text-align: center; padding: 1rem; color: var(--text-primary); transition: var(--transition-fast); }
.trust-item:hover { transform: translateY(-3px); }
.trust-item i { font-size: 1.8rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.trust-item h6 { font-family: var(--font-body); font-weight: 600; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.4rem; color: var(--text-primary); }
.trust-item p { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 0; }

/* Section Titles */
.section-title { font-size: clamp(2rem, 4vw, 2.8rem); font-style: italic; color: var(--text-primary); margin-bottom: 0.5rem; }
.section-tag { font-family: var(--font-body); font-size: 0.65rem; font-weight: 700; letter-spacing: 0.25em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.8rem; }
.section-divider { width: 40px; height: 1px; background: var(--gold); margin: 1.5rem auto 3rem; }

/* Category Bubbles */
.cat-bubble {
    width: 120px; height: 120px; border-radius: 50%;
    margin: 0 auto 1rem; overflow: hidden;
    border: 1px solid var(--border-gold);
    transition: var(--transition);
    background: var(--bg-surface);
}
.cat-bubble img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.cat-bubble:hover { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.cat-bubble:hover img { transform: scale(1.1); }

/* Collection Cards (Masonry) */
.collection-card { position: relative; border-radius: var(--radius-sm); overflow: hidden; }
.collection-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.collection-card:hover img { transform: scale(1.05); }
.collection-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(11,11,11,0.9) 0%, rgba(11,11,11,0.2) 50%, transparent 100%); z-index: 1; pointer-events: none; }
.collection-card-content { position: absolute; bottom: 0; left: 0; width: 100%; padding: 2.5rem 2rem; z-index: 2; }
.collection-card-content h3 { font-size: 2rem; color: var(--text-primary); margin-bottom: 0.5rem; }
.cta-link { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid transparent; padding-bottom: 2px; transition: var(--transition-fast); }
.collection-card:hover .cta-link { border-bottom-color: var(--gold); color: var(--gold-soft); }

/* Testimonial Cards */
.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-gold);
    border-radius: var(--radius-md);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
}
.testimonial-card:hover { background: var(--bg-surface); border-color: var(--gold); transform: translateY(-5px); }
.testimonial-card .stars { color: var(--gold); font-size: 0.8rem; margin-bottom: 1.5rem; }
.testimonial-card blockquote { font-family: var(--font-heading); font-size: 1.2rem; font-style: italic; color: var(--text-primary); line-height: 1.6; margin-bottom: 1.5rem; }
.testimonial-card .author { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }

/* Newsletter */
.newsletter-section { background: var(--bg-main); border-top: 1px solid var(--border-gold); }
.btn-newsletter {
    background: var(--gold); color: var(--bg-main);
    border: 1px solid var(--gold);
    font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
    padding: 0 1.5rem; transition: var(--transition);
}
.btn-newsletter:hover { background: var(--gold-soft); border-color: var(--gold-soft); box-shadow: var(--shadow-gold); }

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

