/* Hero section styling */
.hero-section {
    position: relative;
    background: #000;
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 0;
    margin-bottom: 35px;
    text-align: center;
    overflow: hidden;
    aspect-ratio: 4 / 1;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    transition: var(--transition);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: none;
}

.hero-slideshow.pc-only {
    display: block;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    z-index: 1;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.05) 70%, rgba(10, 10, 10, 0.5) 100%),
                rgba(0, 0, 0, 0.12);
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.7);
    z-index: 3;
    pointer-events: none;
}

/* Category Filter Tabs/Pills */
.catalog-section {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}

.catalog-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
}

.tag-filters-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.tag-filter-item {
    color: var(--text-dim);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag-filter-item:hover, .tag-filter-item.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.tag-filter-item.active {
    color: var(--primary);
    background: rgba(95, 179, 179, 0.08);
    font-weight: 600;
}

.tag-count {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-dim);
}

.tag-filter-item.active .tag-count {
    background: var(--primary);
    color: #000;
    font-weight: 700;
}

/* Empty listings styling */
.empty-catalog {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.empty-catalog h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.empty-catalog p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* Responsive sidebar */
@media (max-width: 1024px) {
    .hero-section {
        aspect-ratio: 4 / 3;
    }

    .hero-slideshow.tablet-only {
        display: block;
    }

    .hero-slideshow.pc-only,
    .hero-slideshow.mobile-only {
        display: none;
    }

    .catalog-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .catalog-sidebar {
        position: static;
        padding: 16px;
    }

    .tag-filters-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .tag-filter-item {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 500px) {
    .hero-section {
        aspect-ratio: 4 / 5;
    }

    .hero-slideshow.mobile-only {
        display: block;
    }

    .hero-slideshow.pc-only,
    .hero-slideshow.tablet-only {
        display: none;
    }
}

/* Home Latest Posts Header & View More Button */
.home-posts-section {
    margin-top: 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.home-posts-section .product-grid {
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 320px));
    margin: 0 auto;
}

@media (max-width: 768px) {
    .home-posts-section {
        padding-top: 16px;
    }

    .home-posts-section .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
        width: 100%;
    }

    .home-section-header {
        margin-bottom: 14px;
        padding-top: 0;
    }

    .section-title {
        font-size: 1.15rem;
        letter-spacing: 0.3px;
    }
}

@media (max-width: 600px) {
    .home-posts-section .product-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }
}

.home-section-header {
    text-align: center;
    margin-bottom: 24px;
    padding-top: 0;
}

.section-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.view-more-container {
    margin-top: 40px;
    text-align: center;
}

.btn-view-more {
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    box-shadow: none;
}

.btn-view-more:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: none;
}

