/* style.css - Impertinent Design Studio: Mogan-Style Edition */

/* Skip link for keyboard and screen reader users */
.skip-link {
    position: fixed;
    top: -100%;
    left: 1rem;
    background: var(--muted-purple);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    z-index: 9999;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Import Google Fonts - DM Serif Display is a close match for the Mogan aesthetic */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;1,400&family=Inter:wght@400;600&display=swap');

:root {
    --muted-purple: #7b2682; 
    --slate: #2f3640;
    --off-white: #f8f9fa;
    --text-main: #2d3436;
    --white: #ffffff;
}

html { background-color: #3d1440; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--text-main);
    margin: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}


/* --- Title Typography (Mogan Aesthetic) --- */
h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    color: var(--muted-purple);
    font-weight: 400;
    text-transform: none; /* Serifs look better in Sentence case */
    margin-top: 0;
}

/* --- Navigation --- */
nav {
    background-color: var(--white);
    padding: 0 3rem 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 90px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-bottom: 3px solid var(--muted-purple);
    overflow: visible;
}

.nav-logo {
    position: relative;
    z-index: 1001;
}

.nav-logo img {
    height: 130px;
    width: auto;
    display: block;
    transform: translateY(24px);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--muted-purple);
    text-decoration: none;
    margin-left: 35px; /* Slightly more space between links */
    font-weight: 900;
    text-transform: uppercase;
    font-size: 1rem; /* Bumped up from 0.75rem to match logo scale */
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.nav-links a:hover { color: var(--slate); }
.nav-links a.nav-active { color: var(--slate); border-bottom: 2px solid var(--muted-purple); padding-bottom: 2px; }

/* --- Snipcart cart button (nav) --- */
.snipcart-checkout {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    color: inherit;
    font-family: inherit;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.snipcart-checkout:hover { opacity: 0.7; }
.snipcart-items-count:empty { display: none; }

/* --- Snipcart add-to-cart button (product pages) --- */
.snipcart-add-item {
    display: block;
    width: 100%;
    background-color: var(--muted-purple, #7b2682);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
    text-align: center;
}
.snipcart-add-item:hover { opacity: 0.85; }

/* --- Header --- */
header {
    background-color: var(--off-white);
    color: var(--slate);
    padding: 0 1rem 0.1rem;
    text-align: center;
    margin-bottom: -1rem;
}

header h1 {
    font-size: 3.5rem;
    color: var(--muted-purple);
    margin: 0;
}

.tagline {
    margin-top: 5px;
    margin-bottom: 0;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--slate);
    opacity: 0.6;
    font-size: 0.85rem;
}

/* --- Container & Home Grid --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 2rem 2rem;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

.home-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.home-card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--muted-purple);
    text-align: center;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.home-card {
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
    aspect-ratio: 4 / 3;
}

.home-card:hover { transform: translateY(-6px); }

.home-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.home-card:hover > img { transform: scale(1.04); }

.home-card-btn {
    display: block;
    margin: 0.75rem auto 0;
    width: fit-content;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
}

/* --- Brackets --- */
.home-card::before, .home-card::after, .home-card .bracket-accent {
    content: "";
    position: absolute;
    width: 45px;
    height: 45px;
    border: 1.5px solid rgba(255,255,255,0.7);
    z-index: 1;
}
.home-card::before { top: 16px; left: 16px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.home-card::after { bottom: 16px; right: 16px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }
.home-card .bracket-top-right { top: 16px; right: 16px; border-left: none; border-bottom: none; border-top-right-radius: 12px; }
.home-card .bracket-bottom-left { bottom: 16px; left: 16px; border-right: none; border-top: none; border-bottom-left-radius: 12px; }

/* --- Product Cards (Wood & Concrete Pages) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0,0,0,0.04);
}

/* Reusing the home-card bracket logic */
.product-card::before, 
.product-card::after, 
.product-card .bracket-accent {
    content: "";
    position: absolute;
    width: 35px; /* Slightly smaller for product cards */
    height: 35px;
    border: 1.5px solid var(--slate);
    pointer-events: none;
    z-index: 10;
}

/* Corner Positioning */
.product-card::before { top: 15px; left: 15px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.product-card::after { bottom: 15px; right: 15px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }
.product-card .bracket-top-right { top: 15px; right: 15px; border-left: none; border-bottom: none; border-top-right-radius: 12px; }
.product-card .bracket-bottom-left { bottom: 15px; left: 15px; border-right: none; border-top: none; border-bottom-left-radius: 12px; }

.product-image {
    background: #f4f4f4;
    height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-info { padding: 1rem; flex-grow: 1; display: flex; flex-direction: column; }
.product-info h3 { font-size: 1.8rem; margin-bottom: 0.5rem; text-align: center; }
.product-info p { font-size: 0.95rem; color: #555; margin-bottom: 1rem; flex-grow: 1; }
.product-info { text-align: center; }
.product-info .btn { margin-top: auto; align-self: center; width: 130px; padding: 0.5rem 0; font-size: 0.7rem; }

.product-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--muted-purple);
    margin-bottom: 1.5rem;
}
.product-price .price-note {
    font-size: 0.85rem;
    font-weight: 400;
    color: #888;
    display: block;
    margin-top: 0.2rem;
}

/* --- BACK TO TOP --- */
.back-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(0,0,0,0.12);
    background: var(--white);
    color: var(--muted-purple);
    text-decoration: none;
    margin: 0 auto 2rem;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.back-to-top:hover {
    border-color: var(--muted-purple);
    background: rgba(123, 38, 130, 0.05);
    transform: translateY(-3px);
}

/* --- SECTION JUMP NAV (Shop page) --- */
.section-jump {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.section-jump a {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--slate);
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    opacity: 0.45;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 50px;
    transition: opacity 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}

.section-jump a:hover {
    opacity: 1;
    border-color: var(--muted-purple);
    color: var(--muted-purple);
    background: rgba(123, 38, 130, 0.05);
}

.sign-section {
    margin-bottom: 2rem;
    scroll-margin-top: 110px;
}
.sign-section-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    text-align: right;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

/* --- Shared Elements --- */
.btn {
    background-color: var(--muted-purple);
    color: var(--white);
    /* Fixed width and small pill shape */
    width: 200px;
    padding: 0.75rem 0;
    
    text-align: center;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    border-radius: 50px; /* Pill shape */
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
    display: inline-block;
}

.btn:hover { background-color: var(--slate); }

/* --- Toned Down Dark Purple Footer --- */
footer {
    /* A deep, desaturated plum that feels high-end and serious */
    background-color: #3d1440; 
    
    /* Using off-white for text to keep it soft but readable */
    color: var(--off-white); 
    
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    
    /* Ensure it covers the bottom width fully */
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid rgba(255,255,255,0.05); /* Very subtle divider */
}

/* If you have a link or brand name you want to pop slightly */
footer .highlight {
    color: var(--white);
    opacity: 1;
}

footer a {
    color: var(--off-white);
    opacity: 0.7;
    text-decoration: none;
    transition: opacity 0.2s;
}

footer a:hover {
    opacity: 1;
}

.footer-sep {
    margin: 0 0.75rem;
    opacity: 0.3;
}

@media (max-width: 850px) {
    .home-grid { grid-template-columns: 1fr; }
    nav { flex-direction: row; padding: 0 1rem; height: 70px; justify-content: center; }
    .nav-links { margin-top: 0; }
    header h1 { font-size: 2.5rem; }
    .tagline { letter-spacing: 1.5px; font-size: 0.75rem; }
}

/* --- RESPONSIVE SINGLE HERO BANNER WITH BRAND BORDERS --- */
.hero-banner-container {
    width: 100%;
    max-width: 1100px;
    height: 33vh;
    min-height: 250px;
    max-height: 400px;
    margin: 0 auto 3rem auto;
    overflow: hidden;
    background-color: var(--white);
    border-top: 2px solid var(--muted-purple);
    border-bottom: 2px solid var(--muted-purple);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Homepage full-bleed hero */
.home-hero {
    background-color: var(--off-white);
    padding: 140px 2rem 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: -120px;
    margin-bottom: 0;
}

.home-hero h1 {
    color: var(--muted-purple);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    margin-bottom: 0.5rem;
}

.home-hero .tagline {
    color: var(--slate);
}

.about-mobile-image { display: none; }

/* --- ABOUT PAGE 2-ROW GRID --- */
.about-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.07);
    border: 1px solid rgba(0,0,0,0.05);
    padding: 2.5rem;
    position: relative;
}

.about-layout-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Defines the 2 cells for the first row */
    gap: 0.5rem 3.5rem;                 /* Row gap / Column gap */
    width: 100%;
}

/* Full-width intro row */
.about-intro-fullwidth {
    grid-column: 1 / span 2;
    margin-bottom: 0.5rem;
}

/* Row 1, Cell 1 styling */
.about-text-cell {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Row 1, Cell 2 styling */
.about-image-cell {
    display: flex;
    justify-content: center;
    align-items: center;
}

.portrait-frame {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 3 / 4;
    background-color: #e4e4e4; 
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.07);
}

.about-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ROW 2: Spans across both columns completely */
.about-pug-row-fullwidth {
    grid-column: 1 / span 2; 
    width: 100%;
}

/* Responsive adjustment for small screens */
@media (max-width: 850px) {
    .about-layout-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .about-intro-fullwidth,
    .about-pug-row-fullwidth {
        grid-column: 1;
    }

    .about-text-cell {
        text-align: left;
        min-width: 0;
        word-wrap: break-word;
    }

    .product-detail-header .back-link {
        position: static !important;
        transform: none !important;
        display: block;
        margin-bottom: 0.5rem;
    }

    .about-text-cell p,
    .about-intro-fullwidth p {
        font-size: 0.85rem !important;
        line-height: 1.6;
    }

    .about-pug-row-fullwidth p {
        font-size: 0.85rem !important;
    }

    .about-image-cell {
        display: none;
    }

    .about-mobile-image {
        display: block;
        text-align: center;
        margin-bottom: 1.5rem;
    }

    .about-mobile-image .portrait-frame {
        display: inline-block;
        width: 200px;
        max-width: 200px;
        margin: 0;
    }

    .about-card {
        padding: 1.5rem;
        box-sizing: border-box;
        width: 100%;
    }

    .about-layout-grid,
    .about-text-cell,
    .about-intro-fullwidth,
    .about-pug-row-fullwidth {
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* --- ABOUT PAGE TYPOGRAPHY SCALE --- */

/* Upscale the section header */
.about-text-cell h2 {
    font-size: 2.4rem;
    margin-top: 0;
    margin-bottom: 1.8rem;
}

/* Upscale the main story paragraphs */
.about-text-cell p,
.about-intro-fullwidth p {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.about-intro-fullwidth {
    grid-column: 1 / span 2;
    margin-bottom: 0;
}

.about-intro-fullwidth strong {
    color: var(--muted-purple);
}

.about-text-cell p strong {
    color: var(--muted-purple);
}


/* Remove margin on the last paragraph so it doesn't push down layout spacing */
.about-text-cell p:last-child {
    margin-bottom: 0;
}

/* Upscale the pug supervision text row to match the new scale */
.about-pug-row-fullwidth p {
    font-size: 1.15rem;
    line-height: 1.6;
}

/* --- PRODUCT IMAGE CONSTRAINT --- */

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    position: relative;
    
    /* Smooth out the top corners to match the card frame */
    border-top-left-radius: 16px;  
    border-top-right-radius: 16px;
}

/* Force the actual image to scale down and fill the container cleanly */
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* Crops the image proportionally without stretching it */
    display: block;
}

.product-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/shared/RECTANGLE.gif') no-repeat center center;
    background-size: cover;
    pointer-events: none; /* Keeps the underlying links clickable */
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-card-overlay {
    opacity: 1;
}

/* --- PRODUCT DETAIL PAGE --- */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted-purple);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2.5rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.back-link:hover { opacity: 1; }

.product-detail-header .back-link {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}

.product-page { min-height: calc(100vh - 400px); padding-top: 1.25rem !important; }
.full-page {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1.5rem !important;
    padding-bottom: 2rem !important;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "header header"
        "image  desc"
        "specs  paypal"
        "note   note";
    column-gap: 5rem;
    row-gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 2rem 0;
}

.product-detail-header {
    grid-area: header;
    text-align: center;
    position: relative;
}

.product-detail-image {
    grid-area: image;
}

.product-detail-img-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
    background-color: #e4e4e4;
    position: relative;
}

.product-detail-img-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-detail-description {
    grid-area: desc;
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-main);
}

.product-detail-description p { margin-bottom: 1rem; }
.product-detail-description p:last-child { margin-bottom: 0; }

.paypal-atc-container {
    grid-area: paypal;
}

.shipping-info {
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.7;
    margin-top: 0.75rem;
    text-align: center;
}

.made-to-order-note {
    grid-area: note;
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--slate);
    text-align: center;
    font-style: italic;
}

.product-category-label {
    display: none;
}

.product-detail-header h1 {
    font-size: 3rem;
    margin-bottom: 0;
    line-height: 1.1;
}

.product-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 1.5rem 0 0 0;
}

.product-specs {
    grid-area: specs;
    background: var(--off-white);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 0;
}

.product-specs h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--slate);
    opacity: 0.5;
    margin: 0 0 1rem 0;
}

.product-specs ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 0.9rem;
}

.product-specs li:last-child { border-bottom: none; }

.spec-label {
    font-weight: 600;
    color: var(--slate);
    opacity: 0.7;
    flex-shrink: 0;
    margin-right: 1rem;
}

.spec-value { color: var(--text-main); text-align: right; }

.product-cart-note {
    font-size: 0.8rem;
    color: #888;
    line-height: 1.6;
    margin-top: 1.5rem;
    font-style: italic;
}

.product-custom-note {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--muted-purple);
}

@media (max-width: 850px) {
    .product-detail {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 1.5rem 1.5rem 4rem 1.5rem;
    }
    .product-detail-image { position: static; }
    .product-detail-header h1 { font-size: 2.4rem; }
    .product-detail {
        grid-template-areas:
            "header"
            "image"
            "desc"
            "specs"
            "paypal";
        grid-template-columns: 1fr;
    }
}

/* --- LANGUAGE DROPDOWN --- */
.lang-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
    vertical-align: middle;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--muted-purple);
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.lang-btn:hover { opacity: 1; outline: none; }
.lang-btn:focus-visible { opacity: 1; outline: 2px solid var(--muted-purple); outline-offset: 3px; border-radius: 3px; }

.lang-content {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 8px;
    background-color: var(--white);
    min-width: 160px;
    border: 1px solid #737B84;
    border-radius: 6px;
    padding: 14px 0;
    box-shadow: 0px 6px 20px rgba(0, 0, 0, 0.06);
    z-index: 1000;
}

/* Invisible bridge to prevent hover dead zone */
.lang-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

.lang-content.open { display: block; }

.nav-links .lang-content a {
    color: #211A24;
    padding: 10px 24px;
    text-decoration: none;
    display: block;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 400;
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.nav-links .lang-content a:hover {
    background-color: #FAF8FB;
    color: var(--muted-purple);
}

.nav-links .lang-content a.active-lang {
    color: var(--muted-purple);
    font-weight: 600;
}

/* --- HAMBURGER MENU --- */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--muted-purple);
    flex-direction: column;
    gap: 5px;
}

.hamburger-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--muted-purple);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger-btn.open span:nth-child(2) { opacity: 0; }
.hamburger-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 850px) {
    .hamburger-btn {
        display: flex;
        position: absolute;
        left: 1rem;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1010;
    }

    .nav-logo img {
        height: 60px;
    }

    nav > .paypal-cart-container {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .nav-links .paypal-cart-container {
        padding: 0.5rem 0;
        border-top: 1px solid rgba(0,0,0,0.05);
        margin-top: 0.5rem;
    }

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

    .product-image {
        height: 160px;
    }

    .product-info h3 {
        font-size: 1.3rem;
    }

    .product-info .btn {
        width: 70%;
        font-size: 0.65rem;
        padding: 0.4rem 0;
        margin-bottom: 0.5rem;
    }

    header {
        padding-top: 2rem;
    }

    header h1 {
        font-size: 2.5rem;
    }

    footer {
        padding: 1.5rem 1rem;
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .footer-sep {
        display: none;
    }

    footer > * {
        display: block;
        margin: 0.3rem 0;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 1rem 0 0.5rem 0;
        gap: 0.25rem;
    }

    .nav-links.open {
        display: flex;
        background-color: var(--white);
        position: absolute;
        top: 90px;
        left: 0;
        right: 0;
        padding: 1rem 1.5rem 1.5rem;
        box-shadow: 0 8px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-links a {
        margin-left: 0;
        padding: 0.5rem 0;
        width: 100%;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .lang-dropdown {
        margin-left: 0;
        padding: 0.5rem 0;
    }
}
/* --- CUSTOM ORDER FORM --- */
.custom-form {
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
}

.custom-form .form-intro {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--slate);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--text-main);
    background: var(--white);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--muted-purple);
    box-shadow: 0 0 0 3px rgba(123, 38, 130, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.6;
}

.form-group .field-hint {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 0.35rem;
    font-style: italic;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin: 2rem 0;
}

.form-submit {
    text-align: center;
    margin-top: 2.5rem;
}

.form-submit .btn { min-width: 200px; }

@media (max-width: 600px) {
    .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* --- Contact Page --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    padding: 3rem 0 4rem;
    align-items: start;
}

.contact-block {
    margin-bottom: 2rem;
}

.contact-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted-purple);
    font-weight: 600;
    margin: 0 0 0.5rem;
    font-family: 'Inter', sans-serif;
}

.contact-block p {
    margin: 0;
    line-height: 1.8;
}

.contact-block a {
    color: var(--slate);
    text-decoration: none;
    border-bottom: 1px solid var(--muted-purple);
}

.contact-block a:hover {
    color: var(--muted-purple);
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--slate);
    text-decoration: none;
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--muted-purple);
}

.social-links a svg {
    flex-shrink: 0;
}

.france-map {
    margin-top: 2.5rem;
}

@media (max-width: 850px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .social-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}
