/* StyleHub Homepage Styles */

/* ─────────────────────────────────────────────────────────────
   1. POSTER CAROUSEL (3 SLIDES)
   ───────────────────────────────────────────────────────────── */
.home-carousel-container {
    position: relative;
    width: 100%;
    height: min(750px, 85vh);
    min-height: 520px;
    background: #000000;
    overflow: hidden;
}

.home-carousel-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.poster-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 1;
}

.poster-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.poster-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: brightness(0.72);
}

.poster-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(0, 0, 0, 0.75) 0%, 
        rgba(0, 0, 0, 0.35) 50%, 
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 2;
}

.poster-slide-content {
    position: absolute;
    bottom: clamp(40px, 8vh, 80px);
    left: clamp(24px, 5vw, 80px);
    z-index: 3;
    max-width: 650px;
    color: #ffffff;
}

.poster-badge {
    display: inline-block;
    background: #ffffff;
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    padding: 6px 14px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.poster-title {
    font-family: var(--font-heading);
    font-size: clamp(32px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.poster-subtitle {
    font-size: clamp(13px, 1.5vw, 16px);
    color: #dddddd;
    margin-bottom: 24px;
    line-height: 1.5;
    max-width: 500px;
}

.btn-poster-shop {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 36px;
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-poster-shop:hover {
  background-color: #0056b3; /* Darker shade on hover */
  transform: translateY(-2px);  /* Subtle lift effect */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Soft drop shadow */
}

/* Side Navigation Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.carousel-arrow:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-50%) scale(1.08);
}

.carousel-arrow.prev {
    left: clamp(16px, 3vw, 40px);
}

.carousel-arrow.next {
    right: clamp(16px, 3vw, 40px);
}

/* Dash Indicators */
.carousel-dash-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dash-btn {
    width: 32px;
    height: 4px;
    border: none;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.dash-btn.active,
.dash-btn:hover {
    background: #ffffff;
    width: 52px;
}

/* ─────────────────────────────────────────────────────────────
   2. HOMEPAGE SECTIONS & PRODUCT GRIDS
   ───────────────────────────────────────────────────────────── */
.home-content-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 60px 40px 90px 40px;
}

.home-section {
    margin-bottom: 70px;
}

.home-section:last-child {
    margin-bottom: 0;
}

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    border-bottom: 2px solid #111111;
    padding-bottom: 12px;
}

.home-section-title {
    font-family: var(--font-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-section-title .section-tag {
    font-size: 11px;
    font-weight: 800;
    background: #000000;
    color: #ffffff;
    padding: 4px 10px;
    letter-spacing: 1.5px;
    vertical-align: middle;
}

.home-view-all-link {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #000000;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.home-view-all-link:hover {
    opacity: 0.7;
}

.home-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
    .home-product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

@media (max-width: 992px) {
    .home-product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

@media (max-width: 640px) {
    .home-content-container {
        padding: 40px 18px 60px 18px;
    }

    .home-section {
        margin-bottom: 45px;
    }

    .home-section-header {
        margin-bottom: 20px;
    }

    .home-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .poster-slide-content {
        bottom: 36px;
        left: 20px;
        right: 20px;
    }

    .poster-title {
        font-size: 28px;
    }
}
