/* --- Hero Slider --- */
.hero 
{ 
    position: relative; 
    height: 85vh; 
    overflow: hidden; 
}

/* Black Overlay */
.hero::after 
{
    content: '';
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.6); /* Black overlay at 45% opacity */
    z-index: 2;
}

.hero-slide 
{ 
    position: absolute; 
    inset: 0; 
    background-size: cover; 
    background-position: center; 
    opacity: 0; 
    transition: opacity 1.5s ease; 
}

.hero-slide.active 
{ 
    opacity: 1; 
}

.hero-content 
{ 
    position: absolute; 
    inset: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    color: white; 
    z-index: 10; 
    background: rgba(0,0,0,0.1); 
}

.hero h1 
{ 
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 0.5rem; 
}

.hero-button 
{ 
    background: var(--light-green); 
    color: white; 
    padding: 12px 145px; 
    text-decoration: none; 
    font-size: 1.2rem; 
    font-weight: 400; 
    border-radius: 2px; 
    transition: 0.3s; 
}

.hero-button:hover 
{
    opacity: 0.7;
}

/* Nav Arrows */
.slider-arrow 
{
    position: absolute; 
    top: 50%; 
    transform: translateY(-50%);
    background: rgba(255,255,255,0); 
    color: white; 
    border: none;
    width: 70px; 
    height: 70px; 
    border-radius: 50%; 
    cursor: pointer;
    font-size: 2.5rem; 
    z-index: 20; 
    transition: 0.3s;
    display: flex; 
    align-items: center; 
    justify-content: center;
}

.slider-arrow:hover 
{ 
    opacity: 0.7; 
}

.arrow-left 
{ 
    left: 30px; 
}

.arrow-right 
{ 
    right: 30px; 
}

/* --- Accordion Gallery & OVERLAPPING Button --- */
.collections-wrapper 
{
    position: relative; /* Crucial for overlapping */
    width: 100%;
    background: #fdfdfb;
}

.gallery-container 
{ 
    display: flex; height: 600px; 
}

.gallery-item 
{ 
    flex: 1; position: relative; overflow: hidden; transition: flex 0.6s ease; 
}

.gallery-item:hover 
{ 
    flex: 2.5; 
}

.gallery-item img 
{ 
    width: 100%; height: 100%; object-fit: cover; 
}

/* THE OVERLAPPING BUTTON */
.shop-all-overlay 
{
    position: absolute;
    bottom: 30px; /* Positioned 30px from the bottom of the gallery */
    left: 50%;
    transform: translateX(-50%);
    z-index: 50; /* Sits on top of the images */
}

.shop-all-btn 
{
    background: var(--light-green); 
    color: white; 
    padding: 12px 145px; 
    text-decoration: none; 
    font-size: 1.2rem; 
    font-weight: 400; 
    border-radius: 2px; 
    transition: 0.3s; 
    margin: 50px 0px;
}

.shop-all-btn:hover 
{
    opacity: 0.7;
}

@media (max-width: 850px) 
{
    /* --- Gallery: Stack Vertically, No Gaps --- */
    .gallery-container 
    {
        flex-direction: column !important;
        height: auto !important;
        gap: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .gallery-item 
    {
        flex: none !important;
        width: 100% !important;
        height: 450px !important;
        transition: none !important;
        margin: 0 !important;
        padding: 0 !important;
        display: block !important;
    }

    .gallery-item:hover 
    {
        flex: none !important;
    }

    /* --- Floating "Shop All" Button --- */
    .shop-all-overlay {
    position: sticky;
    bottom: 30px;
    left: 0;
    transform: none;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 50;
    margin-top: -151px; /* Pulls the button up to overlap the last image */
    pointer-events: none;
    }

    .shop-all-btn 
    {
        pointer-events: auto;
        padding: 14px 145px;
        font-size: 1rem;
        width: auto;
        display: inline-block;
        text-align: center;
    }
}

@media (max-width: 500px) 
{
    .shop-all-btn 
    {
        pointer-events: auto;
        padding: 14px 80px;
        font-size: 1rem;
        width: auto;
        display: inline-block;
        text-align: center;
    }

    .hero-button 
    { 
        padding: 12px 80px; 
    }

    .hero h1 
    { 
        font-size: 2.5rem;
    }
}
