/* Products page — layout from design reference, colors from HueFit logo */
:root {
    --hue: #00ADEF;      /* logo "Hue" */
    --fit: #F58220;      /* logo "Fit" */
    --ink: #123047;
    --muted: #64748b;
    --surface: #ffffff;
    --soft: #f4f8fb;
    --line: #e6eef5;
}

.products-page {
    background: var(--soft);
}

.products-page .nav-link.active,
.products-page .nav-link:hover {
    color: var(--hue) !important;
}

.products-page .quote-btn {
    background: var(--hue);
}

.products-page .quote-btn:hover {
    background: #F58220;
}

.products-page .iso i {
    color: var(--fit);
}

.navbar .dropdown-item.active {
    background: rgba(0, 173, 239, 0.12);
    color: var(--hue);
    font-weight: 700;
}

/* Keep Products dropdown above page content (esp. product-detail) */
.navbar.sticky-top {
    z-index: 1040;
}

.navbar,
.navbar .container,
.navbar-collapse,
.navbar .nav-item.dropdown {
    overflow: visible !important;
}

.navbar .dropdown-menu {
    z-index: 1050;
    max-height: none;
    overflow: visible;
}

/* Hero */
.products-hero {
    background: var(--surface);
    padding: 2.75rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
}

.products-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
    color: var(--muted);
}

.products-breadcrumb a {
    color: var(--hue);
    text-decoration: none;
    font-weight: 600;
}

.products-breadcrumb a:hover {
    color: var(--fit);
}

.products-breadcrumb .current {
    color: var(--ink);
    font-weight: 600;
}

.products-hero-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    color: var(--hue);
    margin-bottom: 0.85rem;
}

.products-hero-text {
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 460px;
    margin: 0;
}

.products-hero-media {
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(18, 48, 71, 0.1);
}

.products-hero-media img {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
}

/* Filters */
.products-filters {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1.35rem;
    position: sticky;
    top: 96px;
}

.products-search {
    position: relative;
}

.products-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--hue);
}

.products-search input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.75rem 0.9rem 0.75rem 2.4rem;
    background: var(--soft);
    color: var(--ink);
    outline: none;
}

.products-search input:focus {
    border-color: var(--hue);
    box-shadow: 0 0 0 3px rgba(0, 173, 239, 0.15);
}

.filter-block {
    margin-bottom: 1.4rem;
}

.filter-block h6 {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: 0.85rem;
}

.filter-categories {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-categories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid var(--line);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.filter-categories a.active {
    color: var(--hue);
    font-weight: 700;
}

.filter-categories a:hover {
    color: var(--hue);
}

.filter-categories i {
    color: var(--fit);
    font-size: 0.8rem;
}

.btn-clear-filters {
    border: 1.5px solid var(--fit);
    color: var(--fit);
    background: transparent;
    border-radius: 12px;
    font-weight: 700;
    padding: 0.7rem 1rem;
}

.btn-clear-filters:hover {
    background: var(--fit);
    color: #fff;
}

/* Toolbar */
.products-count {
    color: var(--muted);
}

.products-count strong {
    color: var(--ink);
}

.products-sort {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--muted);
    font-size: 0.94rem;
}

.products-sort select {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.45rem 0.75rem;
    background: var(--surface);
    color: var(--ink);
    font-weight: 600;
}

/* Cards */
.product-listing-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 36px rgba(18, 48, 71, 0.1);
}

.product-listing-media {
    background: #eef3f7;
    aspect-ratio: 1.15 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem;
}

.product-listing-media img {
    max-width: 100%;
    max-height: 180px;
    object-fit: contain;
}

.product-listing-body {
    padding: 1.1rem 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-listing-body h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 0.45rem;
}

.product-listing-body h3 a {
    color: inherit;
    text-decoration: none;
}

.product-listing-body h3 a:hover {
    color: var(--hue);
}

.product-listing-body p,
.product-listing-excerpt {
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-listing-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.btn-quick-view {
    margin-top: auto;
    align-self: flex-start;
    background: var(--fit);
    color: #fff;
    border: none;
    border-radius: 999px;
    padding: 0.55rem 1.15rem;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
}

.btn-quick-view:hover {
    background: #dd6f12;
    color: #fff;
}

.product-detail-media {
    background: #eef3f7;
    border-radius: 18px;
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    border: 1px solid var(--line);
}

.product-detail-media img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.product-detail-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.product-detail-thumb {
    width: 76px;
    height: 76px;
    border-radius: 12px;
    border: 2px solid var(--line);
    background: #eef3f7;
    padding: 0.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.product-detail-thumb.is-active,
.product-detail-thumb:hover {
    border-color: var(--hue);
}

.product-detail-thumb img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-detail-category {
    color: var(--hue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
}

.product-detail-title {
    color: var(--ink);
    font-weight: 800;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin-bottom: 1rem;
}

.product-detail-meta {
    color: #334155;
    margin-bottom: 0.45rem;
}

.product-detail-specs {
    margin: 1rem 0 0;
    padding-left: 1.1rem;
    color: #334155;
}

.product-detail-specs li {
    margin-bottom: 0.45rem;
    line-height: 1.55;
}

.product-detail-description {
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-line;
    margin: 0;
}

.product-detail-block {
    margin: 0 0 1rem;
}

.product-detail-block:last-child {
    margin-bottom: 0;
}

.product-detail-section-title {
    color: var(--hue);
    font-weight: 800;
    margin: 0 0 0.45rem;
    font-size: 1.03rem;
}

.product-detail-actions {
    margin-top: 1.25rem !important;
}

/* Pagination */
.products-pagination {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 2rem;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn.active,
.page-btn:hover {
    background: var(--hue);
    border-color: var(--hue);
    color: #fff;
}

/* Product detail page wrapper (not Word-format sub-blocks) */
.product-detail-section {
    padding: 1rem 0 2rem;
}

/* CTA */
.products-cta {
    background: linear-gradient(135deg, #0096cc 0%, var(--hue) 55%, #0bb4ef 100%);
    padding: 2.5rem 0;
}

.products-cta-inner h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 800;
    margin-bottom: 0.35rem;
}

.products-cta-inner p {
    color: rgba(255, 255, 255, 0.92);
}

.btn-cta-quote {
    background: #fff;
    color: var(--hue);
    font-weight: 800;
    border-radius: 999px;
    padding: 0.85rem 1.6rem;
    border: none;
    white-space: nowrap;
}

.btn-cta-quote:hover {
    background: var(--fit);
    color: #fff;
}

/* Quick View modal */
.quick-view-modal .modal-header {
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.quick-view-category {
    color: var(--hue);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.quick-view-modal .modal-title {
    color: var(--ink);
    font-weight: 800;
    font-size: 1.25rem;
}

.quick-view-media {
    background: #eef3f7;
    border-radius: 16px;
    min-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.quick-view-media img {
    max-width: 100%;
    max-height: 280px;
    object-fit: contain;
}

.quick-view-doc-title {
    color: var(--fit);
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.quick-view-specs {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--ink);
}

.quick-view-specs li {
    margin-bottom: 0.45rem;
    line-height: 1.55;
    color: #334155;
}

.quick-view-modal .btn-cta-quote {
    background: var(--hue);
    color: #fff;
}

.quick-view-modal .btn-cta-quote:hover {
    background: var(--fit);
    color: #fff;
}

@media (max-width: 991px) {
    .products-filters {
        position: static;
    }

    .products-hero-media img {
        height: 220px;
    }
}

.products-hero--compact {
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.products-hero--compact .products-breadcrumb {
    margin-bottom: 0;
}

@media (max-width: 575px) {
    .products-hero {
        padding-top: 1.75rem;
    }

    .products-hero-media img {
        height: 180px;
    }
}

/* Laboratory Furniture / Stool pages: keep full product in hero frame */
body[data-product-group="laboratory"] .products-hero-media,
body[data-product-group="lab-stool"] .products-hero-media {
    background: #eef2f5;
}

body[data-product-group="laboratory"] .products-hero-media img,
body[data-product-group="lab-stool"] .products-hero-media img {
    height: 360px;
    object-fit: contain;
    object-position: center;
    background: #eef2f5;
}

body[data-product-group="lab-stool"] .products-listing {
    padding-top: 2rem !important;
    padding-bottom: 2.5rem !important;
}

@media (max-width: 991px) {
    body[data-product-group="laboratory"] .products-hero-media img,
    body[data-product-group="lab-stool"] .products-hero-media img {
        height: 280px;
    }
}

@media (max-width: 575px) {
    body[data-product-group="laboratory"] .products-hero-media img,
    body[data-product-group="lab-stool"] .products-hero-media img {
        height: 220px;
    }
}

/* Crawlable product index: keep in HTML source, visually collapsed */
.seo-product-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
