.homepage-collection-section {
    padding: 80px 0;
    background: #fff;
    position: relative;
    overflow: hidden;
}

/* Background Image Fixed Parallax */
.section-bg-image-fixed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.4;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .section-bg-image-fixed {
        background-attachment: fixed !important;
        background-position: center;
    }
}

.homepage-collection-section .container {
    position: relative;
    z-index: 2;
}

.homepage-collection-section .section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 0px;
    letter-spacing: -0.5px;
    line-height: 1.1;
}

.homepage-collection-section .section-tagline {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.homepage-collection-section .header-line {
    width: 60px;
    height: 3px;
    background: var(--theme-color, #d4af37);
}

.homepage-collection-section .collection-badge {
    display: inline-block;
    background: var(--theme-color, #d4af37);
    color: #fff;
    padding: 4px 15px;
    border-radius: 50px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
}

.homepage-collection-section .view-all-btn {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: #111;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 24px;
    border: 1.5px solid var(--theme-color, #111);
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.homepage-collection-section .view-all-btn i {
    transition: transform 0.3s ease;
}

.homepage-collection-section .view-all-btn:hover {
    background: var(--theme-color, #111);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.homepage-collection-section .view-all-btn:hover i {
    transform: translateX(4px);
}

.homepage-collection-section .section-actions {
    margin-bottom: 20px;
}

/* Slider Controls */
.slider-container-wrapper {
    position: relative;
    margin-top: 0;
}

.collection-slider {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    /* Ultra-thin gap */
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
    padding-bottom: 20px;
}

.collection-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.slider-item {
    flex: 0 0 calc(20% - 3.2px);
    /* Adjusted for 5 items: calc(100%/5 - gap*(5-1)/5) = calc(20% - 4*4/5) = calc(20% - 3.2) */
    scroll-snap-align: start;
    scroll-snap-stop: always;
    box-sizing: border-box;
    transition: transform 0.3s ease;
}

/* Sharp Corners for Product Cards in this section */
.homepage-collection-section .product-img-wrapper,
.homepage-collection-section .collection-ribbon-badge,
.homepage-collection-section .premium-badge,
.homepage-collection-section .new-badge,
.homepage-collection-section .discount-ribbon,
.homepage-collection-section .rating-badge-img {
    border-radius: 0 !important;
}

/* Iconic Arrow Styling (Sync with Shop by Category) */
.slider-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    width: 220px;
    height: 220px;
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: #000;
    font-size: 100px;
    opacity: 0.6;
}

.slider-arrow:hover {
    color: var(--theme-color, #f15406);
    transform: translateY(-50%) scale(1.1);
    background: transparent;
    box-shadow: none;
    opacity: 1;
}

.slider-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.slider-arrow.prev {
    left: -60px;
}

.slider-arrow.next {
    right: -60px;
}

/* Progress Bar */
.slider-progress-container {
    width: 250px;
    height: 3px;
    background: #eee;
    margin: 30px auto 0;
    border-radius: 10px;
    overflow: hidden;
}

.slider-progress-bar {
    width: 0%;
    height: 100%;
    background: var(--theme-color, #f15406);
    border-radius: 10px;
    transition: width 0.2s ease-out;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .slider-item {
        flex: 0 0 calc(25% - 3px);
        /* 4 items on small desktops/tablets */
    }
}

@media (max-width: 992px) {
    .homepage-collection-section .section-title {
        font-size: 2.2rem;
    }

    .slider-item {
        flex: 0 0 calc(33.333% - 2.66px);
        /* 3 items on medium screens */
    }

    .slider-arrow {
        width: 120px;
        height: 120px;
        font-size: 60px;
    }

    .slider-arrow.prev {
        left: -30px;
    }

    .slider-arrow.next {
        right: -30px;
    }
}

@media (max-width: 768px) {
    .homepage-collection-section {
        padding: 60px 0;
    }

    .homepage-collection-section .section-title {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .homepage-collection-section .section-tagline {
        font-size: 1rem;
        padding: 0 15px;
    }

    .homepage-collection-section .section-actions {
        display: flex;
        justify-content: center !important;
        margin: 25px 0 35px;
    }

    .homepage-collection-section .view-all-btn {
        padding: 8px 20px;
        font-size: 0.75rem;
    }

    .slider-container-wrapper {
        margin-left: 0;
        margin-right: 0;
        padding: 0 10px;
    }

    .collection-slider {
        padding: 0;
        gap: 4px;
    }

    .slider-item {
        flex: 0 0 calc(50% - 2px);
        /* 2 items on mobile landscape */
    }

    .slider-arrow {
        width: 60px;
        height: 60px;
        font-size: 40px;
        opacity: 0.8;
    }

    .slider-arrow.prev {
        left: -10px;
    }

    .slider-arrow.next {
        right: -10px;
    }

    .slider-progress-container {
        width: 150px;
        margin-top: 25px;
    }
}

@media (max-width: 576px) {
    .homepage-collection-section .section-title {
        font-size: 1.85rem;
    }

    .slider-item {
        flex: 0 0 48%;
        /* Nearly 2 items on small mobile, showing peek of next */
    }

    .slider-arrow {
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
}