@import url("https://use.typekit.net/fac7qzq.css");

/* Modern CSS for L'Onglerie Paris Montparnasse */

:root {
    /* Brand Colors */
    --color-primary: #e4bba9;
    --color-secondary: #b67689;
    --color-accent: #de8592;
    --color-bg: #F9F2EC;
    --color-text-dark: #313131;
    --color-text-light: #ffffff;
    --color-admin: #11100e;
    
    /* Secondary Communication Colors */
    --color-comm-1: #e6c4ac;
    --color-comm-2: #f87c5d;

    /* Typography */
    --font-heading: 'minerva-modern', 'Playfair Display', serif; /* Minerva Modern as primary, fallback to Playfair */
    --font-body: 'aaux-next', 'Inter', sans-serif; /* Aauxt Next as primary, fallback to Inter */
    
    /* Spacing & Layout */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --border-radius: 12px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg);
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    text-wrap: pretty;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography Base */
h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin-bottom: 1rem; }
h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; font-weight: 300; }
p { font-size: 1rem; margin-bottom: 1.5rem; color: #555; }

/* Les Crochets (Brand Graphic Element) */
.bracket-title {
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
}
.bracket-title::before, .bracket-title::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-primary);
}
.bracket-title::before {
    bottom: 0;
    left: 0;
    border-top: none;
    border-right: none;
}
.bracket-title::after {
    top: 0;
    right: 0;
    border-bottom: none;
    border-left: none;
}

/* Navbar */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--color-text-dark);
    cursor: pointer;
    margin-right: 1rem;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    z-index: 1000;
    background: rgba(249, 242, 236, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(228, 187, 169, 0.3);
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.logo-img {
    height: 90px; /* Increased size significantly */
    width: auto;
    margin-bottom: 2px;
}
.logo-sub {
    font-family: var(--font-body);
    font-size: 0.9rem; /* Increased size to match the bigger logo */
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
}

nav a {
    text-decoration: none;
    color: var(--color-text-dark);
    margin: 0 1.5rem;
    font-weight: 500;
    font-size: 1.15rem; /* Increased size per user request */
    position: relative;
    transition: color 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--color-secondary);
}
nav a:hover::after {
    width: 100%;
}

.lang-btn {
    background: none;
    border: 1px solid var(--color-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--color-primary);
    transition: all 0.3s ease;
}
.lang-btn:hover {
    background: var(--color-primary);
    color: var(--color-text-light);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 500;
    letter-spacing: 1px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn.primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 0 4px 15px rgba(228, 187, 169, 0.4);
}

.btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(228, 187, 169, 0.6);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) 5%;
}

.text-center {
    text-align: center;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    padding-top: 80px; /* Offset for navbar */
}

.hero-content {
    flex: 1;
    z-index: 2;
    padding-right: 5%;
}

.hero-image-wrapper {
    flex: 1.2;
    height: 80vh;
    position: relative;
    border-radius: 20px 0 0 20px;
    overflow: hidden;
    box-shadow: -10px 10px 40px rgba(0,0,0,0.1);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-image.active {
    opacity: 1;
}

/* About Section */
.layout-split {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.image-wrapper {
    flex: 1;
    position: relative;
}

.portrait {
    border-radius: var(--border-radius);
    position: relative;
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.halo-decor {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 100%;
    height: 100%;
    background-color: var(--color-primary);
    border-radius: var(--border-radius);
    z-index: 1;
    opacity: 0.3;
}

.text-content {
    flex: 1;
}

/* Button overrides */
.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Services Modern Redesign */
.services-modern {
    background-color: var(--color-text-light);
    padding: var(--spacing-xl) 0;
    border-top: 1px solid rgba(228, 187, 169, 0.2);
}

.services-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.services-header {
    position: sticky;
    top: 120px;
}

.services-header .subtitle {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Diploma integration */
.diploma-wrapper {
    margin-top: 3rem;
    display: inline-block;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(228, 187, 169, 0.4);
}

.diploma-text {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
}

.diploma-img {
    max-width: 140px;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, filter 0.4s ease;
    filter: grayscale(20%) sepia(10%);
    cursor: zoom-in;
}

.diploma-img:hover {
    transform: scale(2) translateX(20px) translateY(10px);
    filter: grayscale(0%);
    position: relative;
    z-index: 100;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
}

.service-item {
    display: flex;
    gap: 2rem;
    padding: 3rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

.service-item:first-child {
    padding-top: 0;
}

.service-item:hover {
    padding-left: 1rem;
    background: linear-gradient(90deg, rgba(249, 242, 236, 0.5) 0%, transparent 100%);
}

.service-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    line-height: 1;
    color: var(--color-primary);
    opacity: 0.5;
    font-weight: 300;
}

.service-content h4 {
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--color-admin);
}

.service-content p {
    color: #555;
    margin: 0;
}

/* Pricing */
.pricing {
    background-color: var(--color-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-card {
    background: var(--color-text-light);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(228, 187, 169, 0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(228, 187, 169, 0.2);
    border-color: var(--color-primary);
}

.pricing-card h4 {
    color: var(--color-secondary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.pricing-card ul {
    list-style: none;
}

.pricing-card li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(0,0,0,0.1);
    padding-bottom: 0.3rem;
}

.pricing-card li span:last-child {
    font-weight: bold;
    color: var(--color-admin);
}

/* Tooltip Styles */
.pricing-card li {
    position: relative; /* tooltip-container */
    cursor: pointer;
}
.pricing-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(249, 242, 236, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--color-text-dark);
    text-align: center;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(228, 187, 169, 0.5);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-size: 0.85rem;
    font-weight: 400;
    width: 250px;
    z-index: 100;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    pointer-events: none;
    line-height: 1.4;
}
.pricing-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: rgba(249, 242, 236, 0.95) transparent transparent transparent;
}
.pricing-tooltip::before {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -9px;
    border-width: 9px;
    border-style: solid;
    border-color: rgba(228, 187, 169, 0.5) transparent transparent transparent;
    z-index: -1;
}
.pricing-card li:hover .pricing-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Products Launch - Masonry/Grid */
.products {
    background-color: var(--color-text-light);
    border-top: 1px solid rgba(228, 187, 169, 0.2);
    border-bottom: 1px solid rgba(228, 187, 169, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.highlight-text {
    color: var(--color-secondary);
    font-family: var(--font-heading);
    font-style: italic;
    font-weight: 400;
    font-size: 1.3rem;
    margin: 1.5rem 0;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.highlight-text::before,
.highlight-text::after {
    content: '';
    display: block;
    width: 50px;
    height: 1px;
    background-color: var(--color-primary);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    grid-auto-rows: 250px;
}

.gallery-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

@media (max-width: 768px) {
    .gallery-item.large {
        grid-column: span 1;
        grid-row: span 1;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

@keyframes pan-left-to-right {
    0% { object-position: 0% 50%; }
    100% { object-position: 100% 50%; }
}

.gallery-item.panning img {
    object-position: 0% 50%;
    animation: pan-left-to-right 20s alternate cubic-bezier(0.15, 0, 0.85, 1) infinite;
}

@keyframes zoom-out-in {
    0% { scale: 1.25; }
    100% { scale: 1; }
}

.gallery-item.zooming img {
    animation-name: zoom-out-in;
    animation-duration: 12s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: cubic-bezier(0.15, 0, 0.85, 1);
}

.gallery-item.zooming.delay img {
    animation-delay: -6s; /* Starts halfway through so they breathe out of sync */
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    padding: 2rem 1rem 1rem;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 1.2rem;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 10;
}

.gallery-item:hover .overlay,
.grid-item.is-highlighted .overlay,
.grid-item:hover .overlay {
    transform: translateY(0);
    opacity: 1;
}

/* Footer */
.footer {
    background-color: var(--color-admin);
    color: var(--color-text-light);
    padding-top: 2rem;
}

.footer-logo-sub {
    color: var(--color-text-light);
    display: block;
    margin-bottom: 1rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2rem;
    padding-bottom: 1.5rem;
}

.footer-brand p, .footer-info p, .footer-hours p {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.qr-container {
    margin-top: 1.5rem;
}

.qr-container p {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.logo-img-footer {
    height: 90px; /* Larger logo for footer */
    filter: invert(1); /* Invert if logo is black, we need it white/light for footer */
    margin-bottom: 1rem;
}

.qr-image {
    max-width: 150px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.footer-info h4, .footer-social h4 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.footer-social a {
    display: inline-block;
    color: #ccc;
    text-decoration: none;
    margin-right: 1rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    gap: 0.5rem;
}

.social-icons svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.footer-bottom {
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.85rem;
    color: #888;
}

/* Scroll-Driven Animations using modern CSS where supported */
@supports (animation-timeline: view()) {
    .reveal {
        opacity: 0;
        animation: fade-in linear forwards;
        animation-timeline: view();
        animation-range: entry 10% cover 30%;
    }
    
    .parallax {
        animation: parallax-img linear forwards;
        animation-timeline: scroll();
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes parallax-img {
    from {
        object-position: 50% 0%;
    }
    to {
        object-position: 50% 100%;
    }
}

/* Fallback for browsers not supporting scroll-driven animations */
@supports not (animation-timeline: view()) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s ease, transform 0.8s ease;
    }
    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Layout */
@media (max-width: 900px) {
    .layout-split {
        flex-direction: column;
    }
    .services-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .services-header {
        position: static;
        text-align: center;
    }
    .diploma-img:hover {
        transform: scale(1.5);
    }
    .hero {
        flex-direction: column-reverse;
        justify-content: center;
        padding-top: 100px;
    }
    .hero-image-wrapper {
        height: 40vh;
        width: 100%;
        border-radius: var(--border-radius);
        margin-bottom: 2rem;
    }
    .hero-content {
        padding-right: 0;
        text-align: center;
    }
    .menu-toggle {
        display: block;
    }
    nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(249, 242, 236, 0.98);
        padding: 1.5rem 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 999;
    }
    nav.active {
        display: flex;
    }
    nav a {
        margin: 1rem 0;
        text-align: center;
    }
}

/* Collections Page */
.collections-page {
    padding-top: 120px;
    background-color: var(--color-bg);
}

.collections-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: #555;
    line-height: 1.8;
}

.collections-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0 4rem;
    flex-wrap: wrap;
}

.collections-nav a {
    text-decoration: none;
    font-family: var(--font-heading);
    color: #888;
    font-size: 1.2rem;
    padding-bottom: 5px;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.collections-nav a:hover,
.collections-nav a.active {
    color: var(--color-admin);
    border-bottom: 1px solid var(--color-primary);
}

/* Stylish Composition Layout (Flex Masonry) */
.collection-grid {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-bottom: 5rem;
}

.collection-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    flex: 1;
}

.collection-col.center-col {
    flex: 1.2; /* Center column slightly wider */
}

.grid-item {
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden; /* To keep border radius if img is zoomed */
    z-index: 1;
    transition: transform 0.6s ease, box-shadow 0.6s ease, z-index 0s 0.6s;
}

.grid-logo {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 60px !important;
    height: auto !important;
    z-index: 15;
    pointer-events: none;
    filter: drop-shadow(0px 2px 4px rgba(255,255,255,0.8));
}

/* Tint overlay for swatch hover effect */
.grid-item::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--hover-tint, transparent);
    mix-blend-mode: color;
    opacity: 0;
    transition: opacity 0.4s ease, background-color 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.collection-grid.is-tinted .grid-item:not(.center-star):not(.masked-item)::after {
    opacity: 0.85; /* Strength of the colorization */
}

/* Nail Wrapper (For compositing alpha masks) */
.grid-item.masked-item {
    aspect-ratio: 1 / 1; /* Match the square proportion of the new images */
}

.grid-item.masked-item .nail-wrapper {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.4s ease, transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.collection-grid.is-tinted .grid-item.masked-item:not(.is-highlighted) .nail-wrapper {
    opacity: 1; /* Show the colored white nails over the original image */
}

.grid-item.is-highlighted {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.5); /* Fly to center and grow */
    z-index: 20; /* S'assurer qu'elle passe au-dessus de tout le reste */
    box-shadow: 0 20px 50px rgba(0,0,0,0.5); /* Ombre plus marquée pour effet de vol */
    transition: transform 0.6s ease, box-shadow 0.6s ease, z-index 0s;
}

/* Specific adjustment for palma because its base column is 20% wider */
#palma.is-highlighted {
    transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.25);
}

@media (max-width: 900px) {
    .grid-item.is-highlighted {
        transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.05); /* Smaller scale on mobile */
    }
    #palma.is-highlighted {
        transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(0.95); /* Even smaller for palma */
    }
}

.swatch {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.swatch.active-swatch {
    transform: scale(1.15);
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.nail-wrapper .nail-shading {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.nail-wrapper .nail-color {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--hover-tint, transparent);
    mix-blend-mode: multiply; /* Multiplies color into the white nails ONLY */
    transition: background-color 0.4s ease;
    pointer-events: none;
}

.nail-wrapper .nail-highlight {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    z-index: 2;
}

.grid-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.grid-item.masked-item img {
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Modifiers for custom crop alignment */
.grid-item.align-bottom img,
.grid-item.align-bottom .nail-wrapper .nail-shading {
    object-position: bottom;
}

.grid-item.align-bottom .nail-wrapper {
    -webkit-mask-position: bottom;
    mask-position: bottom;
}

.grid-item:hover img,
.grid-item.masked-item:hover .nail-wrapper {
    transform: scale(1.05);
}

/* The Central Star Item */
.grid-item.center-star {
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.center-slideshow .slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-in-out;
}

.center-slideshow .slide.active {
    position: relative;
    opacity: 1;
    pointer-events: auto;
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    text-align: center;
    padding: 1.5rem;
    z-index: 2; /* Keep text above the tint overlay */
}

.grid-item.center-star:hover .product-overlay {
    opacity: 1;
}

.product-overlay p {
    color: var(--color-text-light);
    font-family: var(--font-body); /* Inter */
    font-size: 1.1rem;
    font-weight: 300;
    font-style: italic; /* Matches "Parfum de Tiaré" */
    margin: 0.1rem 0;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.6);
    line-height: 1.4;
    letter-spacing: 0.5px;
}

/* Color Palette Swatches */
.color-palette {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem; /* Slight increase to fit names */
}

.swatch-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.swatch {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    overflow: hidden;
    border: 3px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.swatch-name {
    position: absolute;
    top: 100%;
    margin-top: 8px;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    color: var(--color-text);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.9), 0 0 8px rgba(255, 255, 255, 0.8);
}

.swatch:hover {
    transform: scale(1.2) translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.swatch:hover + .swatch-name {
    opacity: 1;
    visibility: visible;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .collection-grid {
        flex-direction: column;
    }
    .collection-col.center-col {
        order: -1; /* Put star product at the top on mobile */
    }
}
