:root {
    --black-primary: #000000;
    --black-secondary: #0B0B0B;
    --gold-primary: #D4AF37;
    --gold-secondary: #C9A24D;
    --white: #FFFFFF;
    --grey-muted: #B5B5B5;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
}

/* Typography Scaling */
@media (max-width: 768px) {
    html {
        font-size: 14px;
        /* Scale down base size */
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 200;
}

.hamburger span {
    width: 30px;
    height: 2px;
    background-color: var(--gold-primary);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.98);
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.4s ease-in-out;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu a {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
}

.mobile-menu a:hover {
    color: var(--gold-primary);
}

/* Responsive Nav Override */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 1.5rem;
    }

    .hamburger {
        display: flex;
    }

    /* Hide Desktop SubNav */
    .sub-nav {
        display: none;
    }

    /* Adjust Nav Right */
    .nav-right .nav-link {
        display: none;
        /* Hide Account link on mobile header, maybe put in menu */
    }

    .nav-brand {
        margin-left: auto;
        margin-right: auto;
    }

    .nav-left {
        /* Ensure search stays or moves */
        order: -1;
    }
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--black-primary);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    position: relative;
}

/* Cinematic Golden Brown Border Light Effect */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
    /* Above content but below modals/nav if needed, actually 50 is fine as nav is 100 */
    box-shadow: inset 0 0 150px 20px rgba(184, 134, 11, 0.15);
    /* Subtle Golden Brown Glow */
    mix-blend-mode: screen;
    /* Blends light onto the dark theme */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    transition: transform 0.3s ease-in-out, background-color 0.3s ease, padding 0.3s ease;
}

.navbar.nav-hidden {
    transform: translateY(-100%);
}

/* Search Overlay */
#search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 5, 0.98);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

#search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    text-align: center;
}

.search-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--gold-primary);
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--gold-primary);
    padding: 1rem;
    outline: none;
    text-align: center;
}

.search-input::placeholder {
    color: rgba(212, 175, 55, 0.3);
}

.close-search {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-search:hover {
    color: var(--gold-primary);
}

.nav-brand {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    /* Adjust based on navbar padding */
    width: auto;
    object-fit: contain;
}

.icon {
    color: var(--gold-primary);
    width: 24px;
    height: 24px;
    cursor: pointer;
    transition: filter 0.3s;
}

.icon:hover {
    filter: drop-shadow(0 0 5px var(--gold-primary));
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cart-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gold-primary);
    color: var(--black-primary);
    font-size: 0.7rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.nav-link {
    color: var(--gold-primary);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    font-weight: 600;
    /* Bolder */
    transition: all 0.3s ease;
}

.nav-link:hover {
    letter-spacing: 2px;
    /* Hover Animation */
}

.sub-nav {
    position: fixed;
    top: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1rem;
    z-index: 90;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideDown 0.8s forwards 0.5s;
    pointer-events: none;
    /* Just for visuals initially unless scrolled? prompt said fixed header with these links */
}

/* Prompt correction: User wanted links inside header navigation list. 
   I'll make them visible in the main nav or sub-bar depending on space. 
   Let's keep them in a clean sub-row for "Desktop First" luxury feel or integrate.
   Actually, let's put them in the sub-nav but make it visible and interactive.
*/
.sub-nav {
    pointer-events: none;
    background: transparent;
}

.sub-nav a {
    pointer-events: auto;
    color: var(--grey-muted);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    /* Slightly larger */
    letter-spacing: 2px;
    font-weight: 600;
    /* Bolder */
    transition: all 0.3s ease;
}

.sub-nav a:hover {
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
    letter-spacing: 4px;
    /* Cinematic Hover Animation */
}

@keyframes slideDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    height: 70vh;
    /* Horizontal banner aspect */
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg .bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    /* Slight dim to let logo pop */
    z-index: 1;
}

.hero-bg .front-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    z-index: 2;
}

.texture-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Gradient to fade bottom into black body for blending, preserving original image colors */
    background: linear-gradient(to bottom, transparent 70%, var(--black-primary) 100%);
    z-index: 2;
    pointer-events: none;
}

.hero-centerpiece {
    position: relative;
    z-index: 10;
    margin-top: 50px;
}

.hero-bottle {
    height: 60vh;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.9));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.hero-overlay {
    position: absolute;
    bottom: 10%;
    text-align: center;
    z-index: 11;
    width: 100%;
}

.brand-name {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 4rem;
    /* Large cinematic text */
    letter-spacing: 0.5em;
    margin-top: 0;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    position: relative;
    /* Create a text mask effect if possible, simplified for now */
    background: linear-gradient(to bottom, #D4AF37, #8a6e18);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    font-size: 0.9rem;
    color: var(--gold-secondary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Philosophy */
.philosophy {
    background-color: var(--black-secondary);
    padding: 8rem 2rem;
    text-align: center;
}

.content-narrow {
    max-width: 600px;
    margin: 0 auto;
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1.2rem;
    line-height: 2;
    color: var(--white);
    opacity: 0.9;
}

/* Top Sellers */
.top-sellers {
    padding: 6rem 4rem;
    background-color: var(--black-primary);
}

.section-title {
    text-align: center;
    color: var(--gold-primary);
    font-family: var(--font-heading);
    letter-spacing: 0.3em;
    margin-bottom: 4rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* Desktop: 3 columns */
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.product-card {
    background: #050505;
    padding: 2.5rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.03);
    transition: all 0.4s ease;
    cursor: pointer;
}

.product-card:hover {
    border-color: var(--gold-primary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.1);
}

.card-image {
    position: relative;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.card-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.product-card:hover .card-image img {
    transform: scale(1.05);
}

.add-to-cart-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: var(--gold-primary);
    color: var(--black-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.8rem;
    cursor: pointer;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    z-index: 5;
}

.product-card:hover .add-to-cart-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.add-to-cart-btn:hover {
    background-color: var(--white);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.card-details h4 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.size {
    display: block;
    color: var(--grey-muted);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
}

.price-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.original-price {
    text-decoration: line-through;
    color: var(--grey-muted);
    font-size: 0.9rem;
    opacity: 0.7;
}

.price {
    color: var(--gold-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.discount-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    /* Top Left corner */
    background: var(--gold-primary);
    color: var(--black-primary);
    padding: 0.4rem 0.8rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    z-index: 5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.product-card:hover .discount-badge {
    transform: scale(1.05);
    /* Subtle interaction */
    transition: transform 0.3s ease;
}

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background: var(--gold-primary);
    /* For grid lines */
    border: 1px solid var(--gold-primary);
}

.cat-card {
    background: var(--black-secondary);
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 0.3s;
    cursor: pointer;
}

.cat-card span {
    color: var(--gold-primary);
    font-family: var(--font-heading);
    letter-spacing: 0.2em;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.cat-card:hover {
    background: var(--black-primary);
}

.cat-card:hover span {
    color: var(--white);
}

/* Contact Us */
.contact-section {
    padding: 6rem 2rem;
    background-color: var(--black-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.contact-icon {
    color: var(--gold-primary);
    width: 24px;
    height: 24px;
    margin-top: 5px;
}

.contact-item h5 {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.contact-item p {
    color: var(--grey-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.newsletter-box {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
    text-align: center;
}

.newsletter-box h4 {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.newsletter-box p {
    color: var(--grey-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
}

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem;
    color: var(--white);
    font-family: var(--font-body);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.newsletter-form button {
    background: var(--gold-primary);
    color: var(--black-primary);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-body);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.newsletter-form button:hover {
    background: var(--white);
}

@media (max-width: 900px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .newsletter-form {
        flex-direction: column;
    }
}

/* Footer */

/* Accordion Styles */
.accordion-section {
    margin-bottom: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion-header {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--white);
    padding: 1.5rem 0;
    text-align: left;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.accordion-header:hover {
    color: var(--gold-primary);
}

.accordion-icon {
    font-size: 1.2rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--grey-muted);
    font-size: 0.95rem;
    line-height: 1.8;
}

.accordion-item.active .accordion-content {
    max-height: 1500px;
    /* Arbitrary large height */
    transition: max-height 0.5s ease-in;
}

.accordion-content p {
    padding-bottom: 1.5rem;
    margin: 0;
}

.accordion-content ul {
    list-style-position: inside;
    padding-bottom: 1.5rem;
    margin: 0;
}

.accordion-content li {
    margin-bottom: 0.5rem;
}

.footer {
    padding: 4rem 2rem;
    background: var(--black-primary);
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    letter-spacing: 0.3em;
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-weight: 700;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.footer-links {
    margin-bottom: 2rem;
}

.footer-links a {
    color: var(--grey-muted);
    text-decoration: none;
    margin: 0 1rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gold-primary);
}

.copyright {
    color: #444;
    font-size: 0.7rem;
}

/* Responsive */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .brand-name {
        font-size: 2.5rem;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
    }

    .navbar {
        padding: 1rem;
    }

    .sub-nav {
        gap: 1rem;
        font-size: 0.6rem;
    }
}

/* Utility Animations for Scroll */
.fade-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Why Choose Us */
.why-choose-us {
    padding: 6rem 2rem;
    background-color: var(--black-secondary);
    text-align: center;
}

.features-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 150px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    color: var(--white);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    color: var(--gold-primary);
    transform: translateY(-5px);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.4));
}

.feature-text {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.why-choose-us {
    position: relative;
    background: url('assets/why_choose_us_bg.jpg') no-repeat center center/cover;
    z-index: 1;
}

.why-choose-us::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: -1;
}

/* 404 Error Page */
.error-page {
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: url('assets/hero_coal_bg.jpg') no-repeat center center/cover;
    position: relative;
    padding: 0 2rem;
}

.error-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.error-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.error-code {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 10rem;
    line-height: 1;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, #D4AF37, #8a6e18);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.error-message {
    font-family: var(--font-heading);
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.error-description {
    font-family: var(--font-body);
    color: var(--grey-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.home-btn {
    display: inline-block;
    background-color: var(--gold-primary);
    color: var(--black-primary);
    text-decoration: none;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid var(--gold-primary);
}

.home-btn:hover {
    background-color: transparent;
    color: var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .error-code {
        font-size: 6rem;
    }

    .error-message {
        font-size: 1.5rem;
    }
}

/* Responsive Layout Adjustments */
@media (max-width: 900px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 cols on tablet */
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        /* Stack contact info */
        gap: 3rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cart-item {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .quantity-controls {
        margin-right: 0;
        margin-top: 1rem;
    }

    .item-price {
        margin-right: 0;
    }
}

@media (max-width: 600px) {
    .product-grid {
        grid-template-columns: 1fr;
        /* 1 col on mobile */
    }

    .navbar {
        padding: 1rem;
    }

    .brand-name {
        font-size: 2.5rem;
        /* Smaller hero text */
    }

    .hero-centerpiece {
        margin-top: 0;
    }

    .top-sellers,
    .why-choose-us,
    .philosophy,
    .categories {
        padding: 4rem 1.5rem;
        /* Reduce padding */
    }

    .cat-card {
        height: 150px;
    }

    /* Product Page */
    .product-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-title {
        font-size: 2rem;
    }

    .product-image-container {
        height: 350px;
        padding: 1rem;
    }

    .add-to-cart-action {
        flex-direction: column;
        align-items: stretch;
    }

    /* Checkout */
    .form-row {
        flex-direction: column;
        gap: 1rem;
    }

    .checkout-form {
        padding: 1.5rem;
    }

    /* About Page */
    .story-block,
    .story-block:nth-child(even) {
        flex-direction: column;
        text-align: center;
    }

    .story-text {
        padding: 0;
    }

    /* Cart */


}

/* Context-specific grayscale to preserve drop shadows */
.card-image img.out-of-stock-grayscale {
    filter: grayscale(100%) drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
    opacity: 0.8 !important;
    /* Increased opacity and importance */
    display: block !important;
    visibility: visible !important;
}

.product-image-container img.out-of-stock-grayscale {
    filter: grayscale(100%) drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    opacity: 0.7;
}

/* Fallback/Generic */
.out-of-stock-grayscale {
    filter: grayscale(100%);
}

/* Out of Stock Premium Badge */
.out-of-stock-badge {
    color: var(--white);
    /* White text for better contrast */
    font-family: var(--font-heading);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border: 2px solid var(--gold-primary);
    /* Thicker border */
    padding: 1rem 2rem;
    margin-top: 1rem;
    background: rgba(212, 175, 55, 0.15);
    /* Darker/Stronger gold tint */
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    /* Bolder text */
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
    /* Subtle glow */
}

.out-of-stock-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.2), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Card-Specific Out of Stock Badge */
.card-out-of-stock-badge {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid var(--gold-primary);
    padding: 0.5rem 1rem;
    background: rgba(212, 175, 55, 0.15);
    width: 80%;
    text-align: center;
    white-space: nowrap;
    opacity: 1;
    z-index: 5;
    font-weight: 600;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Product Modal */
.product-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.product-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.product-modal-content {
    background: #0a0a0a;
    width: 90%;
    max-width: 900px;
    border: 1px solid var(--gold-primary);
    box-shadow: 0 0 50px rgba(212, 175, 55, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--grey-muted);
    font-size: 2rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--gold-primary);
}

.modal-image-col {
    background: #050505;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-image-col img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.modal-details-col {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-title {
    font-family: var(--font-heading);
    color: var(--gold-primary);
    font-size: 2rem;
    letter-spacing: 1px;
}

.modal-price-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.modal-original-price {
    text-decoration: line-through;
    color: var(--grey-muted);
    font-size: 1.1rem;
    opacity: 0.7;
}

.modal-current-price {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 500;
}

/* Reuse Product Page Button Styles */
.modal-size-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.modal-size-btn {
    background: transparent;
    border: 1px solid var(--grey-muted);
    color: var(--white);
    padding: 10px 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
}

.modal-size-btn:hover {
    border-color: var(--gold-primary);
}

.modal-size-btn.selected {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    font-weight: 700;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.1);
}

.modal-qty-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    width: fit-content;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-qty-btn {
    background: transparent;
    border: none;
    color: var(--white);
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
}

.modal-qty-btn:hover {
    color: var(--gold-primary);
}

.modal-qty-val {
    color: var(--gold-primary);
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

.modal-add-btn {
    background: var(--gold-primary);
    color: var(--black-primary);
    border: none;
    padding: 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: auto;
}

.modal-add-btn:hover {
    background: var(--white);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .product-modal-content {
        grid-template-columns: 1fr;
        max-height: 95vh;
        width: 95%;
    }

    .modal-image-col {
        padding: 1.5rem;
        height: 250px;
    }

    .modal-image-col img {
        max-height: 200px;
    }

    .modal-details-col {
        padding: 1.5rem;
    }

    .modal-title {
        font-size: 1.5rem;
    }
}

/* Premium Category Dropdown */
.category-dropdown-container {
    position: relative;
    display: inline-block;
    z-index: 50;
}

.premium-dropdown-btn {
    background: transparent;
    border: 1px solid var(--gold-primary);
    color: var(--gold-primary);
    padding: 0.8rem 1.5rem;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    min-width: 200px;
    justify-content: space-between;
}

.premium-dropdown-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.premium-dropdown-btn i {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.premium-dropdown-btn.active i {
    transform: rotate(180deg);
}

.premium-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--black-secondary);
    border: 1px solid var(--gold-primary);
    margin-top: 5px;
    display: none;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    animation: fadeInDropdown 0.3s ease;
}

.premium-dropdown-menu.show {
    display: flex;
}

.dropdown-item {
    padding: 0.8rem 1.5rem;
    color: var(--grey-muted);
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-primary);
    padding-left: 1.8rem;
    /* Subtle slide effect */
}

.dropdown-item.active {
    color: var(--gold-primary);
    font-weight: 600;
    background: rgba(212, 175, 55, 0.05);
}

@keyframes fadeInDropdown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}