/* CSS Variables for Luxury Theme */
:root {
    --color-black: #050505;
    --color-gold: #C5A059;
    /* Solid Fallback */
    /* Metallic Gold Gradient */
    --gold-metal: linear-gradient(135deg, #BF953F 0%, #FCF6BA 40%, #B38728 60%, #FBF5B7 100%);
    --gold-text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);

    --color-charcoal: #1A1A1A;
    --color-white: #FAFAFA;
    --color-text-muted: #B0B0B0;

    --font-heading: 'Cinzel', serif;
    --font-body: 'Libre Baskerville', serif;

    --spacing-container: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}



body {
    background-color: var(--color-black);
    color: var(--color-white);
    font-family: var(--font-body);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
.logo,
.eyebrow {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    background: var(--gold-metal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 2.5rem;
    color: var(--color-white);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.8rem;
    background: var(--gold-metal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2% 0 0;
    position: absolute;
    width: 100%;
    z-index: 10;
    border-bottom: 1px solid rgba(201, 164, 76, 0.2);
}

.logo {
    display: flex;
    align-items: center;
}

.nav-links a {
    margin-left: 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--color-gold);
}

.btn-gold {
    border: 1px solid var(--color-gold);
    padding: 0.5rem 1.5rem;
    color: var(--color-gold);
}

.btn-gold:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Hero Section */
/* Hero Section */
/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), url('images/home-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    border-bottom: 2px solid var(--color-gold);
}

/* ===== FINAL HERO FIX (NAVBAR SAFE) ===== */


/* Product Page Hero Override */
.hero-product {
    height: auto !important;
    min-height: 66vh !important;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('images/Magic.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    padding: 4rem 0;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 1rem;
}

.subtitle {
    font-size: 1.2rem;
    margin: 1.5rem 0 3rem 0;
    color: var(--color-text-muted);
    display: block;
    /* Ensure it takes up space */
    position: relative;
    /* Ensure z-index works */
}

.cta-button {
    background: var(--gold-metal);
    color: var(--color-black);
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(191, 149, 63, 0.4);
}

.cta-button:hover {
    background-color: var(--color-gold-hover);
}

/* Sections */
.container {
    max-width: var(--spacing-container);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 3rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.eyebrow {
    color: var(--color-gold);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.5rem;
}

.divider-gold {
    width: 60px;
    height: 3px;
    background: var(--color-gold);
    margin: 1rem auto;
}

/* Featured Product (Men's) */
.featured-section {
    background-color: var(--color-charcoal);
}

.product-showcase {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.product-image-placeholder {
    flex: 1;
    background: #000;
    height: 400px;
    border: 1px solid var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
}

.product-image-placeholder .placeholder-text {
    display: none;
}

/* Orb removed */

.product-details {
    flex: 1;
}

.benefit-list {
    list-style: none;
    margin: 2rem 0;
}

.benefit-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.benefit-list li::before {
    content: '•';
    color: var(--color-gold);
    position: absolute;
    left: 0;
}

.price-block {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 2rem;
}

.price {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-white);
}

.retail {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.btn-primary {
    display: inline-block;
    background: var(--gold-metal);
    color: var(--color-black);
    padding: 1rem 2rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Grid Section */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--color-charcoal);
    border: 1px solid #333;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--color-gold);
    transform: translateY(-5px);
}

.card-image {
    height: 250px;
    background: #000;
    border-bottom: 1px solid #333;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orb removed */

/* Luxury Shine Effect on Placeholders */
.card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(201, 164, 76, 0.1), transparent);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.card-info {
    padding: 1.5rem;
    text-align: center;
}

.card-info h4 {
    margin-bottom: 0.5rem;
    color: var(--color-white);
}

.card-info p {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.btn-card {
    display: block;
    border: 1px solid var(--color-gold);
    color: var(--color-gold);
    padding: 0.5rem;
    font-size: 0.9rem;
}

.btn-card:hover {
    background: var(--color-gold);
    color: var(--color-black);
}

/* Footer */
footer {
    background: #000;
    padding: 4rem 0;
    text-align: center;
    border-top: 1px solid #222;
}

.disclaimer {
    max-width: 600px;
    margin: 1.5rem auto;
    font-size: 0.8rem;
    color: #555;
}

.copyright {
    color: #444;
    font-size: 0.8rem;
}

/* Logo hardening – prevents white background boxes and inline gaps */
.logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent !important;
    text-decoration: none;
    margin-left: 0;
    /* Reset container to decouple */
    position: relative;
    top: -20px;
    /* Move entire assembly up */
}

.logo img {
    height: 180px;
    width: auto;
    display: block;
    background: transparent !important;
    border: 0;
    box-shadow: none;
    position: relative;
    left: -30px;
    /* Locked logo position */
}

.logo-text {
    font-family: var(--font-heading);
    color: var(--color-gold);
    font-size: 1.0rem;
    margin-top: -30px;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    left: 8px;
    /* Independent text position */
    margin-left: 0;
}

/* --- Responsive Hardening --- */
@media (max-width: 1024px) {
    .logo img {
        height: 120px;
        /* Shrink logo on smaller screens */
        left: 0;
        /* Reset locked position */
    }

    .logo-text {
        font-size: 0.8rem;
        margin-top: -15px;
        left: 0;
        /* Align center */
    }

    .logo {
        top: 0;
        margin-left: 0;
    }

    .navbar {
        padding: 0 1rem;
    }
}

@media (max-width: 768px),
(hover: none) and (pointer: coarse) {
    .navbar {
        flex-direction: column;
        padding: 1rem 0;
        position: relative;
        height: auto;
    }

    /* Force static positioning for mobile text overlays */
    .hero-content,
    .overlay-text,
    .hero h1,
    .hero p {
        position: static !important;
        transform: none !important;
        text-align: center !important;
        width: 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }

    /* Fix Overlap on Mobile */
    /* Adjust Fonts - Dynamic Sizing to prevent cutoff */
    h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem) !important;
        line-height: 1.1 !important;
        word-wrap: break-word !important;
    }

    h2 {
        font-size: clamp(1.4rem, 4vw, 2rem) !important;
    }

    .hero .subtitle {
        margin-bottom: 2rem !important;
        margin-top: 1rem !important;
    }

    .hero .cta-button {
        margin-top: 1rem !important;
        display: inline-block !important;
    }

    .nav-links {
        margin-top: 1rem;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .nav-links a {
        margin-left: 0;
        font-size: 0.8rem;
    }

    .logo img {
        height: 100px;
    }

    /* --- Mobile Product Layout Fixes --- */

    /* Stack the product details */
    .product-showcase {
        flex-direction: column;
        gap: 2rem;
    }

    /* Mobile-Specific Hero Images */
    .hero-product {
        background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8)), url('images/magic-mobile.jpg') !important;
    }



    /* Modal Styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.85);
        z-index: 9999;
        display: none;
        align-items: center;
        justify-content: center;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /* ... Rest of modal styles from previous ... */
    .modal-overlay.active {
        display: flex;
        opacity: 1;
    }

    .modal-container {
        background: #111;
        border: 1px solid var(--color-gold);
        width: 90%;
        max-width: 450px;
        padding: 1.5rem;
        position: relative;
        text-align: center;
        box-shadow: 0 0 30px rgba(201, 164, 76, 0.2);
        /* Mobile safe transform */
        transform: translateY(20px);
        transition: transform 0.3s ease;
        max-height: 90vh;
        overflow-y: auto;
        /* Scroll if tall */
    }

    .modal-overlay.active .modal-container {
        transform: translateY(0);
    }

    .modal-logo {
        height: 320px !important;
        width: auto !important;
        max-width: 100% !important;
        margin: 0 !important;
        display: inline-block;
    }

    /* Specific Mobile Overrides for Modal */
    @media (max-width: 480px) {
        .modal-logo {
            height: 140px !important;
        }

        .modal-header h2 {
            font-size: 1.5rem;
        }
    }

    .modal-close {
        position: absolute;
        top: 10px;
        right: 15px;
        background: none;
        border: none;
        color: #555;
        font-size: 2rem;
        cursor: pointer;
        line-height: 1;
        transition: 0.2s;
    }

    .modal-close:hover {
        color: var(--color-gold);
    }

    .modal-header h2 {
        font-family: var(--font-heading);
        color: var(--color-gold);
        margin-bottom: 0.5rem;
        margin-top: 0;
        line-height: 1.2;
    }

    .modal-header p {
        font-size: 0.9rem;
        color: #ccc;
        margin-bottom: 1.5rem;
    }

    .form-group-modal {
        margin-bottom: 1rem;
    }

    .form-group-modal input {
        width: 100%;
        padding: 0.8rem;
        background: #000;
        border: 1px solid #333;
        color: #fff;
        font-family: var(--font-body);
    }

    .form-group-modal input:focus {
        border-color: var(--color-gold);
        outline: none;
    }
}