.center-stack {
    z-index: 100;
    position: relative;
    background-color: #f8fbff;
}

body {
    background-color: #f8fbff;
}

 .editorial-collection {
    max-width: 1200px;
    margin: 0 auto;
    z-index: 999;
}

   .search-mode-switcher {
    display: list-item;
    justify-content: center;
    gap: 10px;
    margin-bottom: 30px;
}

.mode-btn {
    padding: 10px 20px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-bottom: 10px;
    color: #000;
}

.mode-btn.active {
    background: #000; /* Or your brand color */
    color: #fff;
    border-color: #000;
}

.search-content {
    animation: fadeIn 0.4s ease;
}


@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}



 .reveal-on-scroll {
    opacity: 1 !important;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.sommelier-full-page {
    padding-top: 120px;
    min-height: 700px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.ai-input-group {
    margin: 40px auto;
}


.sommelier-note {
    margin: 60px auto;
    font-size: 1.2rem;
    line-height: 1.6;
    font-style: italic;
    color: #333;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0px 0px;
    padding-bottom: 40px;
}

.sommelier-note {
    max-width: 900px;
    margin: 60px auto;
    font-size: 1.2rem;
    line-height: 1.6;
    font-family: sans-serif;
    color: #333;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}


@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.product-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 0px 0px;
    padding-bottom: 40px;
}



.sommelier-note {
    margin: 60px 30px;
    font-size: 17px;
    line-height: 1.6;
    text-align: left;
    font-family: sans-serif;
    color: #333;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
    letter-spacing: 0px;
}

button#ai-submit {
    margin-top: auto;
    padding: 7px;
    padding-left: 25px;
    padding-right: 25px;
    background: #00000000;
        border-width: 1px;
    color: #000000;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 4px;
    font-family: sans-serif;
    font-weight: 100;
}


h1.title, p, #ai-prompt {
    font-family: copperplate;
    margin-top: 20px;
    place-self: anchor-center;
}

button#ai-submit {
    font-family: copperplate;
    margin-top: 0px;
    margin-bottom: 0;
    place-self: anchor-center;
}


#ai-prompt {
    background: transparent !important;
    border: none;
    width: 60vw;
    border-bottom: 1px solid;
    background: transparent;
    font-size: 20px;
    padding: 5px;
    text-align: left;
    font-family: sans-serif;
    margin: 10px;
    font-family: copperplate;
}


    .weekly-top-slider {
    width: 100%;
    height: 600px;
    background-color: #f8fbff;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.animation-track {
    display: flex;
    justify-content: center;
    align-items: center;
    width: auto;
    gap: -80px; /* This creates the overlap */
}

.flying-fragrance {
    position: relative;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    
    /* Initial state: Hidden and way to the right */
    opacity: 0;
    transform: translateX(100vw);
    transition: all 1.2s cubic-bezier(0.22, 1, 0.36, 1);
    
    /* Calculate delay based on index so they follow each other */
    transition-delay: calc(var(--i) * 0.2s);
}

/* When user approaches, the items slide to their natural flex position */
.weekly-top-slider.reveal-active .flying-fragrance {
    opacity: 1;
    transform: translateX(0);
}

.slider-image {
    height: 350px;
    width: auto;
    object-fit: contain;
    margin: 0 -60px; 
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: calc(10 - var(--i)); /* Later items go "behind" earlier ones */
    filter: drop-shadow(0 35px 45px rgba(0, 0, 0, 0.2));
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: calc(10 - var(--i));
}


.fragrance-hover-info {
    position: absolute;
    bottom: -40px;
    text-align: center;
    opacity: 0;
    transition: all 0.4s ease;
    pointer-events: none;
}

h2.section-title.weeklytop {
    position: absolute;
    top: -5%;
}




@media(max-width: 768px){
    .slider-image {
    height: 255px;
    width: auto;
    object-fit: contain;
    /* The magic for overlap: */
    margin: 0 -65px; 
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: calc(10 - var(--i));
    
    transition: transform 0.5s ease, filter 0.5s ease;
    z-index: calc(10 - var(--i));
}

h2.section-title.weeklytop {
    position: absolute;
    top: -0%;
}

.sommelier-note {
    margin: 60px 30px;
    font-size: 17px;
    line-height: 1.6;
    text-align: left;
    font-family: sans-serif;
    color: #333;
    opacity: 0;
    animation: fadeIn 1.5s forwards;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0px 0px;
    padding-bottom: 40px;
}

#ai-prompt {
    background: transparent !important;
    border: none;
    width: 90vw;
    border-bottom: 1px solid;
    background: transparent;
    font-size: 20px;
    padding: 5px;
    text-align: left;
    font-family: sans-serif;
    margin: 10px;
    font-family: copperplate;
}
}

