/* ==========================================
   PICORAD - PRODUCTS PAGE STYLES
   ========================================== */

/* === Page Hero === */
.page-hero {
    position: relative;
    padding: 56px 0 36px;
    overflow: hidden;
}

.page-hero-bg {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.page-hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 50% at 70% 50%, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
}

.page-hero-content {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition-base);
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

.breadcrumb i {
    font-size: 0.6rem;
}

.page-hero h1 {
    font-family: var(--font-primary);
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.page-hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.5);
}

/* === Filter Section === */
.product-filter-section {
    background: #fff;
    border-bottom: 1px solid var(--gray-100);
    padding: 20px 0;
    position: sticky;
    top: 68px;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-bottom: 4px;
}

.filter-break {
    flex-basis: 100%;
    height: 0;
}

.filter-tabs::-webkit-scrollbar {
    display: none;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition-base);
}

.filter-tab:hover {
    background: rgba(230, 57, 70, 0.05);
    border-color: rgba(230, 57, 70, 0.2);
    color: var(--accent);
}

.filter-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.filter-tab i {
    font-size: 0.78rem;
}

/* === Products Section === */
.products-section {
    padding: 60px 0 80px;
    background: var(--gray-50);
}

/* Category Header Bar */
.product-category-group {
    margin-bottom: 60px;
    scroll-margin-top: 140px;
}

.product-category-group:last-child {
    margin-bottom: 0;
}

.category-header-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-200);
}

.category-header-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: var(--radius-md);
    background: var(--gradient-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.25);
}

.category-header-bar h2 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}

.category-header-bar p {
    font-size: 0.88rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Product Card */
.product-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--gray-100);
    transition: var(--transition-base);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.product-img {
    position: relative;
    height: 200px;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 16px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.product-placeholder {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, rgba(33, 150, 243, 0.06) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--accent);
    transition: var(--transition-base);
}

.product-card:hover .product-placeholder {
    transform: scale(1.1);
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.12) 0%, rgba(33, 150, 243, 0.1) 100%);
}

.product-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 5px 14px;
    background: var(--accent);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: var(--secondary);
}

.product-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-brand {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.product-info h3 {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
    flex: 1;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    transition: var(--transition-base);
    margin-top: auto;
}

.product-link:hover {
    gap: 10px;
}

.product-link i {
    font-size: 0.75rem;
}

/* === Hidden state for filter === */
.product-category-group.hidden {
    display: none;
}

/* === Responsive === */
@media (max-width: 768px) {
    .page-hero {
        padding: 44px 0 28px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .product-filter-section {
        top: 58px;
    }

    .filter-tabs {
        gap: 6px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 0.78rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .category-header-bar h2 {
        font-size: 1.2rem;
    }
}

/* Mobile-only (Products page) */
.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }

    /* Show Phantoms as a category card on mobile */
    #phantoms-mobile-hero {
        grid-template-columns: 1fr;
        margin-bottom: 16px;
    }

    #fantom .category-header-bar {
        display: none;
    }

    /* On mobile, hide the Phantoms list on products page; use the category card instead */
    #fantom #fantom-products {
        display: none;
    }
}
