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

html, body {
    /* Prevents the page from shifting left/right when a scrollbar appears */
    scrollbar-gutter: stable !important; 
    
    /* Stops the "rubber band" bounce on iOS that causes layout shifts */
    overscroll-behavior-y: none !important; 
    
    /* Ensures the height is calculated once based on the initial view */
    height: -webkit-fill-available !important;
    background-color: #f8fbff;
}



img.loading-logo {
    left: 37.5vw;
    width: 25vw;
}


h5.name-tag {
    font-size: 11px;
    font-family: copperplate;
    font-weight: 100;
    color: #a2a2a2;
    letter-spacing: 1px !important;
}

.content-link {
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes the link area fill available space */
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.product-details {
    flex-grow: 1; /* Pushes everything below it down */
}

.discover-button {
    margin-top: auto; /* THE MAGIC LINE: Pushes button to bottom of .content-link */
    padding: 12px;
    color: #fff;
    text-transform: uppercase;
    font-size: 12px;
}

/* Carousel Styling */
.carousel-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 1/1;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: none; /* Hidden by default */
}

.carousel-img.active {
    display: block;
}







.line-track {
    flex: 1;
    height: 100%;
    background: rgba(0, 0, 0, 0.1); 
    position: relative;
    overflow: hidden;
}

.line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    /* Slide effect: optional but very Cartier */
    transform: translateX(-101%); 
    transition: transform 0.4s ease, opacity 0.3s ease;
}

/* When the JS adds 'active', slide it in */
.line.active {
    transform: translateX(0);
    opacity: 1;
}






button#load-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 35px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
        font-family: copperplate;
    font: italic;
    margin-bottom: 20px;
    width: 20%;
}

.carousel-item {
    min-width: 100%;
    scroll-snap-align: start;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
 
.image-carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Hide scrollbar for clean look */
}
.carousel-inner::-webkit-scrollbar { display: none; }

.carousel-item {
    min-width: 100%;
    scroll-snap-align: start;
}


.carousel-next:active { transform: scale(0.9); }


.dot { width: 6px; height: 6px; border-radius: 50%; background: #ddd; transition: 0.3s; }
.dot.active { background: #000; width: 12px; border-radius: 3px; } /* Slightly wider active dot */
 
 
.product-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff00;
    position: relative;
    border: unset;
}

input#search-input {
    background-color: #f8fbff;
}

.product-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
    padding: 2px 5px;
    padding-top: 10px;
    text-align: center;
    text-decoration: none;
    color: #000;
}

.product-text {
    flex-grow: 1; 
    margin-bottom: 20px;
}



.line-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
}


.carousel-next {
    position: absolute;
    right: -10px;
    bottom: 25px;
    font-size: 1px;
    width: 70px;
    height: 80px;
    background: #e4e4e400;
    border-radius: 50%;
    border: none;
    box-shadow: 0 4px 12px rgb(0 0 0 / 0%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    color: #000;
}


.carousel-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    gap: 0; /* No gap for a continuous line look */
    height: 2px;
    z-index: 5;
}




.products {
    width: 100vw;
    background-color: #f8fbff;
    text-align: center;
}

.filter-section {
    padding: 60px 0 40px;
    background:  #f8fbff;
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.editorial-ticker-container {
    margin-top: 30px;
}


.filter-container {
    width: 90%;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-input-text {
    border: none;
    border-bottom: 1px solid #000;
    padding: 10px 0;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    outline: none;
    width: 250px;
    transition: border-color 0.3s ease;
    font-family: copperplate;
}

.filter-input-text:focus {
    border-bottom: 1px solid #888;
}
 
.gender-box-wrapper {
    display: flex;
    gap: 15px;
}

.gender-label input {
    display: none;  
}

.custom-box {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #000;
    font-size: 12px;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: copperplate;
}

.gender-label input:checked + .custom-box {
    background: #000;
    color: #fff;
}
 
.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
}

.price-field {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 8px 10px;
}

.price-field span {
    font-size: 12px;
    color: #888;
    margin-right: 5px;
}

.price-field input {
    border: none;
    width: 60px;
    font-size: 13px;
    outline: none;
    background: transparent;
        font-family: copperplate;
}

.price-separator {
    width: 10px;
    height: 1px;
    background: #000;
}
 
.filter-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;  
}

.btn-filter-apply, .submit-brands-btn {
    background: #000;
    color: #fff;
    border: none;
    padding: 12px 30px;
    font-size: 12px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease;
        font-family: copperplate;
}

.btn-filter-apply:hover {
    background: #333;
}

.btn-filter-reset {
    font-size: 11px;
    color: #888;
    text-decoration: none;
    letter-spacing: 1px;
    border-bottom: 1px solid transparent;
    transition: border 0.3s ease;
}

.btn-filter-reset:hover {
    border-bottom: 1px solid #888;
}


.space {
    height: 20px;
}




/* Hide the default checkbox */
.hidden-check { display: none; }

/* Turn the label into a clickable button */
.brand-checkbox-card {
    display: inline-block;
    background: #f0f0f0;
    padding: 5px 15px;
    margin: 5px;
    border-radius: 20px;
    font-size: 12px;
    letter-spacing: 0.1em;
}

/* Change style when checkbox is checked */
.brand-checkbox-card:has(input:checked) {
    background: #000;
    color: #fff;
}

.submit-brands-btn {
    margin-top: 30px;
    display: inline-block;
    margin: 5px;
    border-radius: 42px;
    font-size: 12px;
    background: #000;
    padding: 15px 40px;
    border: none;
    cursor: pointer;
}


.brand-search {
    margin-bottom: 80px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    text-align: center;
}

span.brand-name {
    font-family: copperplate;
}



.top-button {
    /* display: inline-block; */
    padding: 18px 45px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: transparent;
    color: #010101;
    border: 1px solid #000000;
    backdrop-filter: blur(5px);
    background-color: rgb(255 255 255 / 0%);
    position: absolute;
    bottom: 70px;
    right: 35px;
    font-family: copperplate;
}

button.cart-toggle-btn {
    background: none;
    border: none!important;
    cursor: pointer!important;
    display: flex!important;
    align-items: center!important;
    margin-left: 15px !important;
    position: sticky !important;
    top: 20px;
    left: 1px;
}


    .cart-btn {
        /* Positioning */
        position: fixed;
        top: 20px;
        right: 20px;
        z-index: 1000; /* Keeps it above everything else */

        /* Visual Style */
        background: rgba(255, 255, 255, 0); /* Or transparent depending on your design */
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: transform 0.2s ease;
    }

    .cart-btn:hover {
        transform: scale(1.1);
    }

    .cart-badge {
        position: absolute;
        top: 0;
        right: 0;
        background: rgba(255, 255, 255, 0);
        color: white;
        font-size: 10px;
        padding: 2px 6px;
        border-radius: 10px;
        font-family: sans-serif;
    }

    /* Optional: Small dot indicator if preferred over badge */
    #nav-cart-dot {
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 8px;
        height: 8px;
        background: red;
        border-radius: 50%;
        display: none; /* Show/hide via JS */
    }

.slider-image:not([src]), 
.slider-image[src=""], 
.slider-image[src*="%20"] {
    display: none !important;
}


@media (max-width: 768px){
    img.loading-logo {
    left: 37.5vw;
    width: 60vw;
}

button#load-more-btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 35px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #000000;
    font-family: 'Didot', 'Playfair Display', serif;
    font: italic;
    margin-bottom: 20px;
    width: 40%;
}
.top-button {
    /* display: inline-block; */
    padding: 13px 25px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    background-color: transparent;
    color: #010101;
    border: 1px solid #000000;
    backdrop-filter: blur(5px);
    background-color: rgb(255 255 255 / 0%);
    position: absolute;
    bottom: 70px;
    right: 40px;
    font-family: copperplate;
}
}

@media (max-width: 992px) {
    .filter-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .filter-actions {
        margin-left: 0;
        width: 100%;
        justify-content: space-between;
    }
}
 
@media (min-width: 1200px) {
    .sommelier-full-page {
    padding-top: 120px;
    min-height: 700px;
    max-width: 9999px !important;
    text-align: center;
    margin: 0px auto;
}
}