/* --- PRODUCTS LISTING STYLES --- */

/* Hero Section */
.products-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 0 2rem;
    background: var(--bg-body);
}


.hero-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.hero-super-title {
    font-size: var(--fs-body-sm);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
    display: block;
}

.hero-title {
    font-size: 4rem;
    /* Specific to this page maybe? Or use display-lg? List uses 4rem, display-lg is 5rem. 4rem is closer to display-md (3rem) or lg. Let's use display-lg but override locally or stick to specific size if needed. Plan said "Align listing titles". Let's stick to 4rem if it's unique or map to closest. 4rem is ~64px. display-lg is 80px. display-md is 48px. I'll make it lg but it might be too big. Let's use custom for now or keep 4rem but use a calculation? No, standardization means aligning. Let's try display-md (3rem) or keep it if it's intentional. The plan says "Align... with standard sizes". 4rem is unique. I will map it to var(--fs-display-lg) which is 5rem, might be big. Or define a new var? No. Let's strictly follow plan: "Align...". I'll use display-lg (5rem). Or display-md (3rem). 4rem is in between. Let's use display-lg and see. Actually, previous home was 5rem. This is 4rem. 5rem is fine. */
    font-size: var(--fs-display-lg);
    line-height: 1;
    margin-bottom: 1.5rem;
    background: var(--hero-tittle-bg-color-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Products Layout */
.products-list-section {
    padding: 4rem 2rem;
    background: var(--bg-body);
}

.products-layout-wrapper {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 4rem;
    align-items: start;
}

/* Sidebar Styling */
.products-sidebar {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    border-radius: 4px;
    position: sticky;
    top: 100px;
    /* Adjust for header */
}

.filter-group {
    margin-bottom: 2rem;
}

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

.filter-group h3 {
    font-size: var(--fs-body-md);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 700;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    /* Close to body-md (1rem) or sm (0.875). Let's use body-md or calc. 0.95 vs 1. Use body-md. */
    font-size: var(--fs-body-md);
    color: var(--text-primary);
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    accent-color: var(--accent-primary);
    width: 16px;
    height: 16px;
}

/* Products List (Vertical) */
.products-column-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Horizontal Card Transformation */
.product-entry-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: row;
    /* Horizontal Layout */
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    min-height: 280px;
    width: 100%;
    flex-shrink: unset;
    scroll-snap-align: unset;
}

.product-entry-card:hover {
    transform: translateY(-5px);
    /* Less movement for list items */
    border-color: var(--accent-primary);
    box-shadow: var(--default-card-box-shadow);
}

.product-thumb {
    width: 35%;
    /* Fixed width for image container */
    height: auto;
    overflow: hidden;
    position: relative;
    background: var(--bg-surface-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    flex-shrink: 0;
}

.product-thumb img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.product-entry-card:hover .product-thumb img {
    transform: scale(1.05);
}

.product-details {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.prod-series {
    font-family: var(--font-display);
    font-size: 1.75rem;
    /* 1.75 is between sm (2) and xs (1.5). Let's use sm (2rem) */
    font-size: var(--fs-display-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.prod-super {
    color: var(--text-secondary);
    font-size: var(--fs-body-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    display: block;
}

.prod-desc-short {
    color: var(--text-tertiary);
    font-size: var(--fs-body-md);
    margin-bottom: 2rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Fewer lines in list view */
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 80%;
}

.arrow-link {
    margin-top: auto;
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arrow-link svg {
    transition: transform 0.3s ease;
}

.product-entry-card:hover .arrow-link svg {
    transform: translateX(5px);
}

@media (max-width: 1024px) {
    .products-layout-wrapper {
        grid-template-columns: 1fr;
        /* Stack sidebar on top */
        gap: 2rem;
    }

    .products-sidebar {
        position: static;
        width: 100%;
    }

    .filter-group {
        display: inline-block;
        margin-right: 2rem;
        vertical-align: top;
    }
}

@media (max-width: 768px) {
    .product-entry-card {
        flex-direction: column;
        /* Revert to stacked on small screens */
    }

    .product-thumb {
        width: 100%;
        height: 250px;
    }

    .prod-desc-short {
        max-width: 100%;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .filter-group {
        display: block;
        margin-right: 0;
        margin-bottom: 1.5rem;
        border-bottom: 1px solid var(--border-subtle);
        padding-bottom: 1rem;
    }

    .filter-group:last-child {
        border-bottom: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}

/* Filter Link Styles */
.filter-link {
    display: block;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.95rem;
}

.filter-link:hover {
    color: var(--accent-primary);
}

.filter-link.active {
    font-weight: 700;
}

.filter-link.active::before {
    content: "";
    width: 3px;
    height: 100%;
    top: 0;
    left: 0;
    color: var(--accent-primary);
    font-weight: 700;
    padding-left: 0.5rem;
    border-left: 2px solid var(--accent-primary);
}