/* ==========================================================================
   DESIGN SYSTEM & VARIABLES - DI BELLA M. (LUX IN TENEBRIS)
   ========================================================================== */

   :root {
    --bg-dark-obsidian: #050505;
    --bg-dark-charcoal: #0e0e0e;
    --bg-dark-velvet: #131313;
    
    --color-gold-dark: #8a6f3e;
    --color-gold-mid: #c5a059;
    --color-gold-light: #e8d09b;
    --color-gold-glow: rgba(197, 160, 89, 0.4);
    
    --text-primary: #e8e8e8;
    --text-muted: #9c9c9c;
    --text-dark: #636363;
    
    --candle-orange: #ff9d3b;
    --candle-glow: rgba(255, 157, 59, 0.15);
    
    --font-heading: 'Cinzel', serif;
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Montserrat', sans-serif;
    
    --border-gold-subtle: 1px solid rgba(197, 160, 89, 0.2);
    --border-gold-active: 1px solid rgba(197, 160, 89, 0.6);
    
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & CORE STYLES
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark-obsidian);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark-obsidian);
}
::-webkit-scrollbar-thumb {
    background: var(--color-gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-gold-mid);
}

/* Typography Helpers */
h1, h2, h3, h4, .brand-text {
    font-family: var(--font-heading);
    letter-spacing: 0.15em;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

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

button, input, select, textarea {
    font-family: inherit;
    background: none;
    border: none;
    outline: none;
}

/* Embedded gold gradient text utility */
.gold-text-gradient {
    background: linear-gradient(135deg, var(--color-gold-dark), var(--color-gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   BACKGROUND ATMOSPHERE & EMBERS
   ========================================================================== */

.embers-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.7;
}

.ember {
    position: absolute;
    bottom: -10px;
    background: radial-gradient(circle, rgba(255, 157, 59, 0.8) 0%, rgba(255, 60, 0, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: floatUp 8s infinite linear;
}

@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-105vh) translateX(var(--drift, 50px)) scale(0.2);
        opacity: 0;
    }
}

/* Ambient Candle Flicker Glow on edges */
.candle-glow-left, .candle-glow-right {
    position: fixed;
    top: 0;
    height: 100vh;
    width: 250px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.6;
    mix-blend-mode: color-dodge;
}

.candle-glow-left {
    left: 0;
    background: radial-gradient(ellipse at left center, var(--candle-glow) 0%, transparent 70%);
    animation: flickerLeft 4s infinite ease-in-out;
}

.candle-glow-right {
    right: 0;
    background: radial-gradient(ellipse at right center, var(--candle-glow) 0%, transparent 70%);
    animation: flickerRight 4.5s infinite ease-in-out;
}

@keyframes flickerLeft {
    0%, 100% { opacity: 0.4; transform: scaleX(1); }
    30% { opacity: 0.6; transform: scaleX(1.15); }
    50% { opacity: 0.3; transform: scaleX(0.9); }
    70% { opacity: 0.75; transform: scaleX(1.2); }
    85% { opacity: 0.5; transform: scaleX(1.05); }
}

@keyframes flickerRight {
    0%, 100% { opacity: 0.5; transform: scaleX(1.05); }
    25% { opacity: 0.3; transform: scaleX(0.9); }
    45% { opacity: 0.7; transform: scaleX(1.25); }
    65% { opacity: 0.4; transform: scaleX(1.0); }
    80% { opacity: 0.65; transform: scaleX(1.15); }
}

/* ==========================================================================
   NAVIGATION BAR (HTML OVERLAY & PERSISTENT NAV)
   ========================================================================== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 15px 0;
    transition: var(--transition-smooth);
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.1);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(14, 14, 14, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    width: 35%;
}

.right-links {
    justify-content: flex-end;
}

.nav-item {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    position: relative;
    padding: 5px 0;
}

.nav-item:hover, .nav-item.active {
    color: var(--text-primary);
    text-shadow: 0 0 10px var(--color-gold-glow);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-gold-mid), transparent);
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-item:hover::after {
    width: 100%;
}

.nav-brand {
    width: 30%;
    display: flex;
    justify-content: center;
}

.brand-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.brand-logo-svg {
    width: 54px;
    height: 54px;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.5));
}

.brand-link:hover .brand-logo-svg {
    transform: rotate(5deg) scale(1.05);
    filter: drop-shadow(0 0 8px var(--color-gold-glow));
}

.db-logo {
    width: 100%;
    height: 100%;
}

.brand-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.25em;
    color: var(--color-gold-mid);
    background: linear-gradient(135deg, #a67c52, #e8d09b, #a67c52);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: var(--transition-smooth);
}

.brand-link:hover .brand-text {
    filter: brightness(1.2) drop-shadow(0 0 4px var(--color-gold-glow));
}

/* Navigation Cart Button */
.nav-cart-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    position: relative;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.nav-cart-btn:hover {
    color: var(--color-gold-mid);
    transform: scale(1.08);
}

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

.cart-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--color-gold-mid);
    color: var(--bg-dark-obsidian);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.65rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--bg-dark-obsidian);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
    animation: badgePop 0.3s ease;
}

@keyframes badgePop {
    0% { transform: scale(0); }
    80% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   HERO SECTION (PORTRAIT ALTAR CONTAINER)
   ========================================================================== */

.hero-section {
    position: relative;
    height: 100vh;
    width: 100vw;
    background-color: var(--bg-dark-obsidian);
    z-index: 10;
    overflow: hidden;
}

/* Gothic image background texture */
.hero-background-blur {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #151515 0%, #050505 100%);
    opacity: 0.85;
    pointer-events: none;
}

/* Full Screen Portrait Container mimicking background-size: cover */
.hero-frame-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100vh;
    width: 179.167vh; /* 2752 / 1536 = 1.79167 */
    max-width: none;
    margin: 0;
    padding: 0;
    background: #000;
    border: none;
    box-shadow: none;
    border-radius: 0;
    animation: frameFadeIn 1.2s cubic-bezier(0.19, 1, 0.22, 1);
}

@keyframes frameFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -46%) scale(0.98);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Gothic decorative brass corner pieces */
.gothic-corner {
    display: none; /* Hidden on full screen */
}

.hero-frame-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: none;
}

.hero-frame-inner picture {
    display: block;
    width: 100%;
    height: 100%;
}

@media (min-aspect-ratio: 2752/1536) {
    .hero-frame-container {
        width: 100vw;
        height: 55.814vw; /* 1536 / 2752 = 0.55814 */
    }
}

.hero-mockup-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    pointer-events: none;
}

/* Subtle gold light blend filter to brighten the original printed text below the button */
.hero-brand-brightener {
    position: absolute;
    top: 66.8%;
    left: 46.5%;
    width: 13%;
    height: 9.2%;
    background: radial-gradient(circle, rgba(232, 208, 155, 0.45) 0%, rgba(232, 208, 155, 0.15) 50%, transparent 80%);
    mix-blend-mode: color-dodge;
    pointer-events: none;
    z-index: 18;
}



/* HOTSPOTS OVERLAYS FOR THE ORIGINAL IMAGE MOCKUP */
.mock-nav-hotspots {
    position: absolute;
    top: 2.2%;
    left: 0;
    width: 100%;
    height: 5%;
    display: flex;
    z-index: 25;
}

.hotspot-nav {
    position: absolute;
    height: 100%;
    cursor: pointer;
    background: rgba(255,255,255,0);
    transition: var(--transition-fast);
}
.hotspot-nav:hover {
    background: rgba(197, 160, 89, 0.05);
    box-shadow: 0 0 5px rgba(197, 160, 89, 0.1);
}

.hotspot-nav-cart {
    position: absolute;
    height: 100%;
    cursor: pointer;
    background: rgba(255,255,255,0);
}
.hotspot-nav-cart:hover {
    background: rgba(197, 160, 89, 0.05);
}

/* "Scopri la Collezione" Button overlay */
.hotspot-cta {
    position: absolute;
    top: 55.66%;
    left: 45.17%;
    width: 10.32%;
    height: 4.3%;
    cursor: pointer;
    z-index: 20;
    outline: none;
}

.gold-hover-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 1px solid transparent;
    box-shadow: 0 0 0 transparent;
    transition: var(--transition-smooth);
}

.hotspot-cta:hover .gold-hover-glow {
    border: 1px solid var(--color-gold-mid);
    box-shadow: 0 0 15px var(--color-gold-glow), inset 0 0 10px rgba(197, 160, 89, 0.15);
    background: rgba(197, 160, 89, 0.03);
}

/* Down Arrow scroll hotspot overlay */
.hotspot-arrow {
    position: absolute;
    bottom: 1.5%;
    left: 45%;
    width: 10%;
    height: 7%;
    cursor: pointer;
    z-index: 20;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bouncing-arrow {
    position: absolute;
    width: 1px;
    height: 1px;
    transition: var(--transition-smooth);
}

.hotspot-arrow:hover .bouncing-arrow {
    filter: brightness(1.5) drop-shadow(0 0 5px var(--color-gold-mid));
}

/* Sparkling overlays */
.sparkle-spark {
    position: absolute;
    color: var(--color-gold-light);
    font-size: 18px;
    pointer-events: none;
    user-select: none;
    z-index: 22;
    animation: sparkleBlink 3s infinite ease-in-out;
    filter: drop-shadow(0 0 5px var(--color-gold-mid));
}

@keyframes sparkleBlink {
    0%, 100% { opacity: 0.1; transform: scale(0.6) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.1) rotate(90deg); }
}

/* ==========================================================================
   PRODUCT SECTION (COLLECTION AREA)
   ========================================================================== */

.collection-section {
    position: relative;
    padding: 80px 0;
    background-color: var(--bg-dark-charcoal);
    z-index: 10;
}

/* Custom Gothic Dividers */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 70px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.divider-line {
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(197, 160, 89, 0.3) 50%, transparent 100%);
}

.divider-crest {
    color: var(--color-gold-mid);
    font-size: 1.4rem;
    filter: drop-shadow(0 0 3px var(--color-gold-glow));
    animation: crestPulse 2.5s infinite alternate ease-in-out;
}

@keyframes crestPulse {
    from { filter: drop-shadow(0 0 2px rgba(197,160,89,0.3)); transform: scale(1); }
    to { filter: drop-shadow(0 0 8px var(--color-gold-mid)); transform: scale(1.12); }
}

/* Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

.small-container {
    max-width: 850px;
}

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: start;
}

/* Product Gallery (Left) */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1452 / 2048; /* Same aspect ratio as img2 */
    border: 1px solid #1c1c1c;
    border-radius: 2px;
    background-color: #030303;
    box-shadow: 0 5px 30px rgba(0,0,0,0.8);
    overflow: hidden;
    cursor: zoom-in;
}

.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

/* Lens Zoom Overlays */
.zoom-lens {
    position: absolute;
    border: 1px solid var(--color-gold-mid);
    width: 130px;
    height: 130px;
    background: rgba(197, 160, 89, 0.08);
    box-shadow: 0 0 10px var(--color-gold-glow);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 10;
}

.zoom-result {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    background-repeat: no-repeat;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.hover-tip {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid rgba(197, 160, 89, 0.25);
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-radius: 2px;
    z-index: 12;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Thumbnails */
.thumbnail-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumb-btn {
    aspect-ratio: 1;
    cursor: pointer;
    border: 1px solid #202020;
    background: #000;
    padding: 0;
    border-radius: 1px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-fast);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.45;
    transition: var(--transition-fast);
}

.thumb-btn:hover img {
    opacity: 0.8;
}

.thumb-btn.active {
    border: 1px solid var(--color-gold-mid);
    box-shadow: 0 0 8px var(--color-gold-glow);
}

.thumb-btn.active img {
    opacity: 1;
}

/* Product Info Right Column */
.product-info-panel {
    display: flex;
    flex-direction: column;
    padding-top: 10px;
}

.product-brand {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.3em;
    color: var(--color-gold-mid);
    margin-bottom: 8px;
    font-weight: 500;
    display: block;
}

.product-title {
    font-size: 2.4rem;
    line-height: 1.2;
    margin-bottom: 5px;
    font-weight: 600;
}

.product-subtitle {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    display: block;
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 15px;
    border-top: 1px solid #202020;
    border-bottom: 1px solid #202020;
    padding: 15px 0;
    margin-bottom: 25px;
}

.price {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.05em;
}

.tax-shipping-info {
    font-size: 0.75rem;
    color: var(--text-dark);
}

.product-desc-box {
    margin-bottom: 25px;
}

.product-desc-lead {
    font-size: 1.05rem;
    font-family: var(--font-serif);
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.5;
}

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

.product-features {
    list-style: none;
    margin-bottom: 30px;
    background-color: var(--bg-dark-obsidian);
    border: 1px solid #1a1a1a;
    padding: 20px 25px;
    border-radius: 2px;
}

.product-features li {
    font-size: 0.85rem;
    margin-bottom: 10px;
    color: var(--text-muted);
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.product-features li:last-child {
    margin-bottom: 0;
}

.feature-icon {
    color: var(--color-gold-mid);
    font-size: 0.75rem;
}

.product-features strong {
    color: var(--text-primary);
}

/* Sizing Selector */
.selection-section {
    margin-bottom: 25px;
}

.selection-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.selection-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.size-guide-btn {
    font-size: 0.75rem;
    color: var(--color-gold-mid);
    cursor: pointer;
    text-decoration: underline;
    transition: var(--transition-fast);
}

.size-guide-btn:hover {
    color: var(--color-gold-light);
}

.size-selector-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.size-option {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #252525;
    background: transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.size-option:hover {
    border-color: rgba(197, 160, 89, 0.4);
    color: #fff;
}

.size-option.active {
    border: 1px solid var(--color-gold-mid);
    color: var(--bg-dark-obsidian);
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-mid));
    font-weight: 600;
    box-shadow: 0 0 10px var(--color-gold-glow);
}

/* Quantity and Action Row */
.action-section {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #252525;
    height: 50px;
}

.qty-btn {
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
}

.qty-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.qty-input {
    width: 40px;
    height: 100%;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    border: none;
    background: none;
    -moz-appearance: textfield;
}

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

.add-to-cart-btn {
    flex-grow: 1;
    height: 50px;
    background: linear-gradient(135deg, #1c150b, #000, #1c150b);
    border: 1px solid var(--color-gold-mid);
    color: var(--color-gold-light);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: var(--transition-smooth);
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transition: 0.6s;
}

.add-to-cart-btn:hover {
    box-shadow: 0 0 20px var(--color-gold-glow);
    background: linear-gradient(135deg, var(--color-gold-mid), var(--color-gold-dark));
    color: var(--bg-dark-obsidian);
    border-color: var(--color-gold-light);
}

.add-to-cart-btn:hover::before {
    left: 200%;
}

.add-to-cart-btn:active {
    transform: scale(0.98);
}

.btn-sparkle {
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.add-to-cart-btn:hover .btn-sparkle {
    transform: rotate(90deg);
}

/* Extra purchase details */
.extra-benefits {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid #1c1c1c;
    padding-top: 20px;
}

.benefit-item {
    font-size: 0.75rem;
    color: var(--text-dark);
}

/* ==========================================================================
   STORY / CONCEPT SECTION
   ========================================================================== */

.story-section {
    position: relative;
    padding: 140px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    z-index: 10;
    overflow: hidden;
}

/* Load blurred background of cathedral candles */
.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/images/img4.jpeg');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    filter: brightness(0.12) desaturate(40%) blur(4px);
    z-index: 1;
}

.story-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(14, 14, 14, 0.4) 0%, var(--bg-dark-obsidian) 100%);
    z-index: 2;
}

.story-content-wrapper {
    position: relative;
    z-index: 5;
    text-align: center;
    background: rgba(5, 5, 5, 0.75);
    border: 1px solid rgba(197, 160, 89, 0.15);
    padding: 60px 50px;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 50px rgba(0,0,0,0.8);
    border-radius: 2px;
}

.story-kicker {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-gold-mid);
    letter-spacing: 0.3em;
    display: block;
    margin-bottom: 12px;
}

.story-title {
    font-size: 2.6rem;
    font-weight: 500;
    margin-bottom: 30px;
    background: linear-gradient(135deg, var(--color-gold-light) 0%, var(--color-gold-mid) 50%, var(--color-gold-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.story-text {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cormorant-serif {
    font-family: var(--font-serif);
}

.italic-quote {
    font-style: italic;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--text-primary);
    margin-bottom: 10px;
    padding: 0 20px;
}

.divider-ornament {
    margin: 10px 0;
    display: flex;
    justify-content: center;
}

.story-text p:not(.italic-quote) {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    text-align: justify;
    text-justify: inter-word;
}

/* ==========================================================================
   CONTACTS & NEWSLETTER SECTION
   ========================================================================== */

.contact-section {
    position: relative;
    padding: 90px 0;
    background-color: var(--bg-dark-charcoal);
    z-index: 10;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 70px;
    align-items: center;
}

/* Newsletter gothic card box */
.newsletter-card {
    position: relative;
}

.gothic-border-box {
    background: var(--bg-dark-obsidian);
    border: 1px solid #1a1a1a;
    padding: 50px 40px;
    position: relative;
    box-shadow: 0 5px 25px rgba(0,0,0,0.6);
}

.gothic-border-box::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    right: 5px;
    bottom: 5px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    pointer-events: none;
}

.card-kicker {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--color-gold-mid);
    letter-spacing: 0.25em;
    display: block;
    margin-bottom: 10px;
    text-align: center;
}

.card-title {
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 15px;
    text-align: center;
    letter-spacing: 0.1em;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 30px;
    text-align: center;
}

/* Gothic styled Inputs and Buttons */
.gothic-input {
    width: 100%;
    height: 48px;
    background-color: rgba(5,5,5,0.8);
    border: 1px solid #202020;
    color: #fff;
    padding: 0 15px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    border-radius: 1px;
    transition: var(--transition-fast);
}

.gothic-input:focus {
    border-color: var(--color-gold-mid);
    box-shadow: 0 0 8px var(--color-gold-glow);
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gothic-submit-btn {
    height: 48px;
    background: var(--color-gold-mid);
    color: var(--bg-dark-obsidian);
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition-smooth);
    border-radius: 1px;
}

.gothic-submit-btn:hover {
    background: var(--color-gold-light);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

.btn-arrow {
    transition: var(--transition-fast);
}

.gothic-submit-btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* Contact Form Right column */
.contact-form-container {
    display: flex;
    flex-direction: column;
}

.form-kicker {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: var(--color-gold-mid);
    letter-spacing: 0.2em;
    margin-bottom: 5px;
}

.form-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.form-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.gothic-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gothic-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.gothic-textarea {
    height: auto;
    padding: 12px 15px;
    resize: none;
}

.gothic-button {
    height: 50px;
    border: 1px solid var(--color-gold-mid);
    color: var(--color-gold-light);
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    background: transparent;
    transition: var(--transition-smooth);
    border-radius: 1px;
}

.gothic-button:hover {
    background: linear-gradient(135deg, var(--color-gold-mid), var(--color-gold-dark));
    color: var(--bg-dark-obsidian);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: var(--bg-dark-obsidian);
    padding: 60px 0 30px 0;
    border-top: 1px solid #141414;
    position: relative;
    z-index: 10;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #fff;
    margin-bottom: 2px;
}

.footer-tagline {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    color: var(--color-gold-mid);
    letter-spacing: 0.25em;
}

.footer-nav {
    display: flex;
    gap: 30px;
}

.footer-nav a {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-dark);
}

.footer-nav a:hover {
    color: var(--color-gold-mid);
}

.footer-divider {
    height: 1px;
    background-color: #161616;
    margin-bottom: 30px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-dark);
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a:hover {
    color: var(--text-muted);
}

/* ==========================================================================
   SHOPPING CART SLIDE-OUT DRAWER
   ========================================================================== */

.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

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

.cart-drawer {
    position: fixed;
    top: 0;
    right: -460px; /* Fully offscreen */
    width: 100%;
    max-width: 440px;
    height: 100vh;
    background-color: var(--bg-dark-obsidian);
    border-left: 1px solid #1a1a1a;
    box-shadow: -10px 0 50px rgba(0,0,0,0.8);
    z-index: 210;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* When cart is open, slide it in */
.cart-drawer.active {
    transform: translateX(-460px);
}

.cart-header {
    padding: 30px 40px;
    border-bottom: 1px solid #141414;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-drawer-title {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.1em;
}

.cart-close-btn {
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.cart-close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.cart-body {
    flex-grow: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

/* Cart Empty State */
.cart-empty {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.7;
    animation: bounceSlow 3s infinite alternate ease-in-out;
}

@keyframes bounceSlow {
    from { transform: translateY(0); }
    to { transform: translateY(-10px); }
}

.empty-text {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.empty-btn {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-gold-mid);
    border: 1px solid var(--color-gold-mid);
    padding: 12px 24px;
    transition: var(--transition-smooth);
}

.empty-btn:hover {
    background: var(--color-gold-mid);
    color: var(--bg-dark-obsidian);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

/* Cart items list */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.cart-item {
    display: flex;
    gap: 20px;
    align-items: center;
    border-bottom: 1px solid #101010;
    padding-bottom: 20px;
}

.cart-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.cart-item-img-link {
    width: 75px;
    height: 105px;
    flex-shrink: 0;
    border: 1px solid #1a1a1a;
    background-color: #000;
}

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

.cart-item-details {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cart-item-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.cart-item-variant {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cart-item-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Mini Quantity selectors */
.cart-item-qty-selector {
    display: flex;
    align-items: center;
    border: 1px solid #1e1e1e;
    height: 32px;
}

.cart-item-qty-btn {
    width: 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.cart-item-qty-btn:hover {
    color: #fff;
    background: rgba(255,255,255,0.02);
}

.cart-item-qty-val {
    width: 25px;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.cart-item-price {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
}

.cart-item-remove-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
    align-self: flex-start;
}

.cart-item-remove-btn:hover {
    color: #ff6b6b;
}

/* Cart Footer */
.cart-footer {
    padding: 30px 40px;
    border-top: 1px solid #141414;
    background-color: var(--bg-dark-charcoal);
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.total-label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.total-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
}

.cart-shipping-note {
    font-size: 0.75rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.checkout-btn {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold-mid));
    color: var(--bg-dark-obsidian);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
    border-radius: 1px;
}

.checkout-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 15px var(--color-gold-glow);
}

/* ==========================================================================
   SIZE GUIDE MODAL
   ========================================================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.gothic-modal {
    background-color: var(--bg-dark-obsidian);
    border: 1px solid var(--color-gold-mid);
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.9), 0 0 30px var(--color-gold-glow);
    width: 90%;
    max-width: 600px;
    padding: 35px 40px;
    border-radius: 2px;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.modal-overlay.active .gothic-modal {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.modal-title {
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-gold-mid);
}

.modal-close-btn {
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    color: #fff;
}

.modal-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
}

.size-table th, .size-table td {
    padding: 12px 15px;
    font-size: 0.85rem;
    text-align: left;
    border-bottom: 1px solid #1a1a1a;
}

.size-table th {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--color-gold-mid);
    letter-spacing: 0.05em;
}

.size-table td {
    color: var(--text-muted);
}

.size-table tbody tr:hover td {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.01);
}

.modal-note {
    background-color: rgba(197, 160, 89, 0.03);
    border: 1px solid rgba(197, 160, 89, 0.1);
    padding: 15px 20px;
    display: flex;
    gap: 12px;
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.note-icon {
    color: var(--color-gold-mid);
    font-size: 1rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Wide Desktops */
@media (min-width: 1600px) {
    .hero-frame-container {
        max-width: 650px;
    }
}

/* Tablets / Medium Screens */
@media (max-width: 1100px) {
    .nav-links {
        gap: 25px;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .product-info-panel {
        padding-top: 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .story-content-wrapper {
        padding: 50px 30px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .hover-tip {
        display: none;
    }
    
    .navbar {
        padding: 15px 0;
    }
    
    .nav-links {
        display: none; /* Hide standard nav on mobile */
    }
    
    .nav-container {
        padding: 0 20px;
        justify-content: center;
        position: relative;
    }
    
    .nav-brand {
        width: auto;
    }
    
    .nav-cart-btn {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hero-section {
        height: auto;
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero-frame-container {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 92vw;
        height: auto;
        aspect-ratio: 785 / 1024;
        max-width: 92vw;
        padding: 8px;
        margin: 0 auto;
    }
    
    .hotspot-cta {
        top: 54.8%;
        left: 38.3%;
        width: 25%;
        height: 5%;
    }
    
    .hero-mockup-img {
        object-fit: contain;
    }
    
    .gothic-corner {
        width: 15px;
        height: 15px;
        border-width: 1.5px;
    }
    .gothic-corner.top-left { top: 3px; left: 3px; }
    .gothic-corner.top-right { top: 3px; right: 3px; }
    .gothic-corner.bottom-left { bottom: 3px; left: 3px; }
    .gothic-corner.bottom-right { bottom: 3px; right: 3px; }
    
    .container {
        padding: 0 20px;
    }
    
    .product-title {
        font-size: 2rem;
    }
    
    .thumbnail-row {
        gap: 8px;
    }
    
    .story-title {
        font-size: 2.2rem;
    }
    
    .italic-quote {
        font-size: 1.25rem;
        padding: 0 5px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 30px;
        align-items: center;
        text-align: center;
    }
    
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .cart-drawer {
        width: 100%;
        max-width: 100%;
        right: -100%;
    }
    
    .cart-drawer.active {
        transform: translateX(-100%);
    }
    
    .cart-body, .cart-header, .cart-footer {
        padding: 20px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .product-title {
        font-size: 1.3rem;
        letter-spacing: 0.05em;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .story-title {
        font-size: 1.4rem;
        letter-spacing: 0.05em;
        word-wrap: break-word;
        overflow-wrap: break-word;
        margin-bottom: 20px;
    }
    
    .price {
        font-size: 1.5rem;
    }
    
    .add-to-cart-btn {
        font-size: 0.8rem;
    }
}
