/*
 * Products page — compact_reference_guide preset (Web Override)
 * Fulgent palette: red accents, black hierarchy, white and neutral surfaces.
 */
body.page-products {
    --catalog-blue: #e30613;
    --catalog-blue-dark: #111111;
    --catalog-ink: #111111;
    --catalog-muted: #5f5f5f;
    --catalog-line: #e1e1e1;
    --catalog-quiet: #f5f5f5;
    --catalog-surface: #ffffff;
    --catalog-brand: #e30613;
    color: var(--catalog-ink);
    font-size: 16px;
    line-height: 1.55;
}

body.page-products main {
    display: block;
}

body.page-products .page-breadcrumb {
    background: #f7f9fc;
    border-bottom: 1px solid var(--catalog-line);
}

body.page-products .page-hero {
    min-height: 470px;
    padding: 76px 0;
    background-image:
        linear-gradient(90deg, rgba(30, 41, 59, .92) 0%, rgba(71, 85, 105, .78) 43%, rgba(148, 163, 184, .22) 72%, rgba(203, 213, 225, .04) 100%),
        url('../images/banners/products-retail-shelf.webp');
    background-position: center 45%;
    display: flex;
    align-items: center;
}

body.page-products .page-hero::after {
    background: linear-gradient(90deg, rgba(30, 41, 59, .9) 0%, rgba(71, 85, 105, .76) 42%, rgba(148, 163, 184, .2) 70%, rgba(203, 213, 225, .04) 100%);
}

body.page-products .page-hero .container {
    position: relative;
    z-index: 1;
}

body.page-products .products-hero-content {
    max-width: 1180px;
}

body.page-products .page-hero .hero-badge {
    display: inline-flex !important;
    align-items: center;
    min-height: 30px;
    margin: 0 0 18px;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 4px;
    background: rgba(227, 6, 19, .9);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body.page-products .page-hero .hero-title {
    max-width: 680px;
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -.035em;
}

body.page-products .page-hero .hero-subtitle {
    max-width: 650px;
    margin: 0 0 30px;
    color: #e8eef6;
    font-size: 18px;
    line-height: 1.65;
}

body.page-products .page-hero .btn-frosted-red {
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 7px;
    box-shadow: none;
}

body.page-products .product-filter-section {
    padding: 18px 0 16px !important;
    background: #fff !important;
    border-top: 0 !important;
    border-bottom: 1px solid var(--catalog-line) !important;
    box-shadow: 0 8px 24px rgba(17, 17, 17, .05) !important;
}

body.page-products .product-filter-section .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

body.page-products .product-filter-section .filter-tabs {
    justify-content: flex-start !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.page-products .product-filter-section .filter-btn,
body.page-products .product-filter-section .filter-tab {
    min-height: 40px !important;
    padding: 9px 15px !important;
    border: 1px solid #cbd7e5 !important;
    border-radius: 7px !important;
    background: #fff !important;
    color: var(--catalog-blue-dark) !important;
    box-shadow: none !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.page-products .product-filter-section .filter-btn:hover,
body.page-products .product-filter-section .filter-tab:hover,
body.page-products .product-filter-section .filter-btn:focus-visible,
body.page-products .product-filter-section .filter-tab:focus-visible {
    border-color: var(--catalog-blue) !important;
    background: #fff3f4 !important;
    color: var(--catalog-blue-dark) !important;
    transform: none !important;
}

body.page-products .product-filter-section .filter-btn.active,
body.page-products .product-filter-section .filter-tab.active {
    border-color: var(--catalog-brand) !important;
    background: var(--catalog-brand) !important;
    color: #fff !important;
}

body.page-products .product-filter-status {
    flex: 0 0 auto;
    margin: 0;
    color: var(--catalog-muted);
    font-size: 13px;
    font-weight: 700;
}

body.page-products .product-categories {
    padding: 54px 0 72px !important;
    background: var(--catalog-quiet) !important;
}

body.page-products .categories-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px !important;
    max-width: 1180px;
}

body.page-products .catalog-section-heading {
    grid-column: 1 / -1;
    scroll-margin-top: 140px;
    display: block;
    margin: 20px 0 0;
    padding: 0 0 15px;
    border-bottom: 2px solid var(--catalog-line);
}

body.page-products .catalog-section-heading:first-child {
    margin-top: 0;
}

body.page-products .catalog-section-heading[hidden],
body.page-products .product-card[hidden] {
    display: none !important;
}

body.page-products .catalog-section-heading h2 {
    margin: 0 0 4px;
    color: var(--catalog-blue);
    font-size: 28px;
    line-height: 1.15;
}

body.page-products .catalog-section-heading p {
    margin: 0;
    color: var(--catalog-muted);
    font-size: 15px;
}

body.page-products .product-card {
    min-height: 0 !important;
    overflow: hidden;
    border: 1px solid #d5dfeb !important;
    border-radius: 10px !important;
    background: var(--catalog-surface) !important;
    box-shadow: 0 8px 22px rgba(17, 17, 17, .06) !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease !important;
}

body.page-products .product-card::before {
    height: 3px !important;
    background: var(--catalog-brand) !important;
}

body.page-products .product-card:hover {
    transform: translateY(-3px) !important;
    border-color: #b6c8db !important;
    box-shadow: 0 14px 30px rgba(17, 17, 17, .11) !important;
}

body.page-products .category-image {
    width: 100%;
    height: auto !important;
    aspect-ratio: 4 / 3;
    padding: 14px;
    background: #f7f8fa !important;
    border-bottom: 1px solid #dce4ee;
}

body.page-products .category-image img {
    width: 100%;
    height: 100%;
    object-fit: contain !important;
    object-position: center;
}

body.page-products .category-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px !important;
}

body.page-products .product-card h3 {
    margin: 0 0 10px !important;
    color: var(--catalog-ink) !important;
    font-size: 22px !important;
    line-height: 1.22 !important;
}

body.page-products .product-card .category-content > p:not(.product-spec) {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 17px;
    color: var(--catalog-muted);
    font-size: 15px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

body.page-products .badge-highlight {
    align-self: flex-start;
    margin: 0 0 10px;
    border-radius: 4px;
    background: #e9f1fb !important;
    color: var(--catalog-blue-dark) !important;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

body.page-products .product-spec {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2px 8px;
    margin: auto 0 18px;
    padding: 11px 12px;
    border-left: 3px solid var(--catalog-blue);
    border-radius: 0 6px 6px 0;
    background: #f1f4f7;
    color: var(--catalog-ink);
    font-size: 13px;
    line-height: 1.4;
}

body.page-products .product-spec strong {
    color: var(--catalog-blue-dark);
}

body.page-products .product-spec span {
    grid-column: 1 / -1;
    color: var(--catalog-muted);
}

body.page-products .product-card .btn-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    align-self: flex-start;
    color: var(--catalog-blue-dark) !important;
    font-size: 14px;
    font-weight: 800;
}

body.page-products .product-card .btn-link:hover {
    color: var(--catalog-brand) !important;
}

body.page-products .product-card.is-entering {
    animation: catalog-card-in .28s ease both;
}

@keyframes catalog-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

body.page-products .b2b-section {
    padding: 64px 0 !important;
    background: var(--catalog-brand) !important;
    border-top: 0;
}

body.page-products .b2b-section h2 {
    color: #fff !important;
    font-size: 34px;
}

body.page-products .b2b-section p {
    color: #dce7f3 !important;
}

body.page-products .b2b-contact-link {
    border-color: rgba(255, 255, 255, .75) !important;
    color: #fff !important;
}

@media (max-width: 900px) {
    body.page-products .page-hero {
        min-height: 440px;
        padding: 64px 0;
        background-position: 62% center;
    }

    body.page-products .page-hero::after {
        background: linear-gradient(90deg, rgba(30, 41, 59, .92), rgba(100, 116, 139, .72));
    }

    body.page-products .categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 640px) {
    body.page-products .page-hero {
        min-height: 410px;
        padding: 48px 0;
    }

    body.page-products .page-hero .hero-title {
        font-size: clamp(34px, 11vw, 46px);
    }

    body.page-products .page-hero .hero-subtitle {
        font-size: 16px;
    }

    body.page-products .product-filter-section .container {
        display: block;
    }

    body.page-products .product-filter-section .filter-tabs {
        display: flex !important;
        justify-content: flex-start !important;
        overflow-x: auto;
        padding-bottom: 4px !important;
        scrollbar-width: thin;
    }

    body.page-products .product-filter-section .filter-btn,
    body.page-products .product-filter-section .filter-tab {
        flex: 0 0 auto;
    }

    body.page-products .product-filter-status {
        margin-top: 9px;
    }

    body.page-products .product-categories {
        padding: 36px 0 52px !important;
    }

    body.page-products .categories-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
    }

    body.page-products .catalog-section-heading {
        margin-top: 20px;
    }

    body.page-products .catalog-section-heading h2 {
        font-size: 24px;
    }

    body.page-products .category-content {
        padding: 20px !important;
    }

    body.page-products .b2b-section {
        padding: 48px 0 !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.page-products .product-card,
    body.page-products .product-card.is-entering {
        animation: none !important;
        transition: none !important;
    }
}
