/* 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: 10px;
    padding-top: 10px;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.listings-icon-divider {
    margin-bottom: 28px;
}

.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;
}

/* ==========================================================
   Horizontal Scrollable Categories
   ========================================================== */
.home-categories-section {
    margin-bottom: 30px;
    position: relative;
    width: 100%;
}

/* Concept 1: Illuminated Icon Divider */
.categories-icon-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    width: 100%;
}

.categories-icon-divider .divider-line {
    flex: 1;
    max-width: 180px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15));
}

.categories-icon-divider .divider-line:last-child {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.15), transparent);
}

.divider-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #141414;
    border: 1px solid rgba(255, 46, 46, 0.4);
    color: var(--primary);
    box-shadow: 0 0 16px rgba(255, 46, 46, 0.22), 0 4px 12px rgba(0, 0, 0, 0.6);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.divider-icon-badge:hover {
    transform: scale(1.08);
    border-color: var(--primary);
    box-shadow: 0 0 22px rgba(255, 46, 46, 0.5);
}

.categories-scroll-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
}

.categories-scroll-track {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 10px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* Hide scrollbar across all browsers */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.categories-scroll-track::-webkit-scrollbar {
    display: none;
}

/* Navigation Arrow Buttons (Positioned on the Left & Right outside the track) */
.category-scroll-btn {
    position: relative;
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #151515;
    border: 1px solid rgba(255, 46, 46, 0.4);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 14px rgba(255, 46, 46, 0.18), 0 4px 12px rgba(0, 0, 0, 0.6);
}

.category-scroll-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: scale(1.08);
    box-shadow: 0 0 20px rgba(255, 46, 46, 0.6);
}

.category-scroll-btn:active {
    transform: scale(0.95);
}

.category-scroll-btn.disabled {
    opacity: 0.18;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

/* Individual Category Chip Card - Combo A: Sleek Gaming Hardware Look */
.category-chip-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 56px;
    padding: 26px 32px;
    background: linear-gradient(180deg, rgba(255, 46, 46, 0.06) 0%, #151515 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-top: 3px solid var(--primary); /* Signature illuminated red top line */
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.category-chip-name {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

/* Hover & Active States */
.category-chip-card:hover {
    background: linear-gradient(180deg, rgba(255, 46, 46, 0.14) 0%, #1c1c1c 100%);
    border-color: rgba(255, 46, 46, 0.5);
    border-top-color: #ff5252;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(255, 46, 46, 0.25);
}

.category-chip-card:hover .category-chip-name {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 46, 46, 0.35);
}

.category-chip-card:active {
    transform: translateY(0);
}

/* Responsive adjustment for tablets & mobiles */
@media (max-width: 768px) {
    .home-categories-section {
        margin-bottom: 20px;
    }

    .categories-header {
        margin-bottom: 14px;
    }

    .categories-header .section-title {
        font-size: 1.15rem;
    }

    .categories-scroll-wrapper {
        gap: 10px;
    }

    .category-scroll-btn {
        width: 36px;
        height: 36px;
    }

    .category-chip-card {
        min-height: 48px;
        padding: 16px 20px;
    }

    .category-chip-name {
        font-size: 0.9rem;
    }
}




