/* ════════════════════════════════════════════════════════════════
   PRODUCTS PAGE — Ultramax Hydrojet
   Layout   : hero band → sidebar category browser → product grid → CTA
   Blue     : #004789      Orange : #FF8300
   Type     : Oswald (display) · Open Sans (body)
   Pattern reference: client-provided "Small Format & Digital" sample,
   re-skinned to brand tokens below — structure kept 1:1.
   ════════════════════════════════════════════════════════════════ */

:root {
    --blue: #004789;
    --blue-deep: #002f5f;
    --blue-mid: #00336e;
    --blue-light: #e8f0f9;
    --orange: #FF8300;
    --orange-dim: #e67500;
    --orange-pale: #fff4e6;
    --white: #ffffff;
    --off-white: #f4f7fb;
    --panel: #eef2f8;
    --text-dark: #0d1b2e;
    --text-body: #2c3e55;
    --text-muted: #607490;
    --border: #d0dae8;
    --shadow-sm: 0 2px 12px rgba(0, 71, 137, 0.08);
    --shadow-md: 0 6px 28px rgba(0, 71, 137, 0.13);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.22);
    --font-head: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
    --radius: 4px;
    --radius-lg: 10px;
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: var(--off-white);
    margin: 0;
}

a {
    color: var(--blue);
    text-decoration: none;
}

.w-90 {
    width: 90%;
    max-width: 1320px;
    margin-inline: auto;
}


/* ════════════════════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════════════════════ */

.products-hero {
    position: relative;
    background: linear-gradient(115deg, var(--blue-deep) 0%, var(--blue) 55%, var(--blue-mid) 100%);
    overflow: hidden;
    padding: 56px 0 44px;
}

.products-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 131, 0, 0.14) 0%, transparent 55%);
}

.products-hero::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 46%;
    height: 100%;
    background: repeating-linear-gradient(-55deg, transparent, transparent 28px, rgba(255, 131, 0, 0.06) 28px, rgba(255, 131, 0, 0.06) 30px);
}

.hero-inner {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 10px;
}

.hero-eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--orange);
    display: block;
}

.hero-title {
    font-family: var(--font-head);
    font-size: clamp(28px, 4.2vw, 42px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px;
    text-wrap: balance;
}

.hero-breadcrumb {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
}

.hero-breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.hero-breadcrumb a:hover {
    color: var(--orange);
}

.hero-breadcrumb .crumb-sep {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.4);
}

.hero-breadcrumb .current {
    color: var(--orange);
    font-weight: 600;
}


/* ════════════════════════════════════════════════════════════════
   EXPLORER LAYOUT
   ════════════════════════════════════════════════════════════════ */

.products-explorer {
    padding: 48px 0 64px;
}

.explorer-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
}


/* ── SIDEBAR ───────────────────────────────────────────────────── */

.cat-sidebar {
    flex: 0 0 290px;
    background: var(--blue-deep);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 24px;
}

.cat-sidebar-head {
    padding: 22px 24px 18px;
    background: var(--blue-mid);
    border-bottom: 3px solid var(--orange);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cat-sidebar-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
}

.cat-sidebar-title {
    font-family: var(--font-head);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
}

.cat-list {
    display: flex;
    flex-direction: column;
    padding: 10px;
    gap: 4px;
}

.cat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    padding: 13px 14px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.cat-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
}

.cat-item.active {
    background: var(--orange);
    color: var(--white);
}

.cat-item .cat-item-name {
    line-height: 1.35;
}

.cat-item .cat-count {
    flex-shrink: 0;
    min-width: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.14);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
}

.cat-item.active .cat-count {
    background: rgba(255, 255, 255, 0.3);
}


/* ── CONTENT PANEL ─────────────────────────────────────────────── */

.cat-content {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    padding: 40px 44px 46px;
}


/* Only one panel is shown at a time; products.js toggles "active" */

.cat-panel {
    display: none;
}

.cat-panel.active {
    display: block;
}

.cat-heading {
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--blue-deep);
    margin: 0 0 20px;
    text-wrap: balance;
}

.cat-heading .accent {
    color: var(--orange);
}

.cat-desc-banner {
    position: relative;
    background: var(--off-white);
    border-left: 3px solid var(--orange);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 18px 22px;
    margin-bottom: 36px;
}

.cat-desc-banner p {
    margin: 0;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-body);
}


/* ── SERIES HEADER ─────────────────────────────────────────────── */

.series-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 26px;
    border-bottom: 2px solid var(--panel);
}

.series-title {
    font-family: var(--font-head);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue-deep);
}

.series-badge {
    background: var(--blue);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    padding: 3px 9px;
    border-radius: 999px;
}


/* ── PRODUCT GRID / CARDS ──────────────────────────────────────── */

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 36px;
}

.product-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--transition), transform var(--transition);
}

.product-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.product-media img {
    height: 400px;
    object-fit: cover;
}

.product-media {
    /* height: 160px; */
    /* background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 65%, var(--blue-mid) 100%); */
    /* background: var(--off-white); */
    background: #a9d9db;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}


/* .product-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-55deg, transparent, transparent 18px, rgba(255, 131, 0, 0.08) 18px, rgba(255, 131, 0, 0.08) 20px);
} */

.product-media i {
    position: relative;
    z-index: 2;
    font-size: 44px;
    color: rgba(255, 255, 255, 0.92);
}

.product-card-body {
    padding: 20px 22px 6px;
    flex: 1;
}

.product-name {
    font-family: var(--font-head);
    font-size: 17px;
    font-weight: 600;
    color: var(--blue-deep);
    line-height: 1.3;
    margin: 0 0 8px;
}

.product-desc {
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--text-muted);
    margin: 0;
}

.product-card-footer {
    padding: 22px;
}

.btn-know-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-deep);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 11px 18px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-know-more:hover {
    background: var(--orange);
    transform: translateX(2px);
}

.btn-know-more i {
    font-size: 11px;
    transition: transform var(--transition);
}

.btn-know-more:hover i {
    transform: translateX(3px);
}


/* ── VIEW-ALL / CATALOGUE CTA ─────────────────────────────────── */

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--blue-deep);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 13px 26px;
    border: 1.5px solid var(--blue-deep);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-view-all:hover {
    background: var(--blue-deep);
    color: var(--white);
}


/* ── SINGLE-PRODUCT FEATURE PANEL ─────────────────────────────── */

.feature-panel {
    display: flex;
    gap: 36px;
    background: var(--off-white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    align-items: stretch;
}

.feature-media {
    flex: 0 0 280px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 65%, var(--blue-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.feature-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-55deg, transparent, transparent 18px, rgba(255, 131, 0, 0.08) 18px, rgba(255, 131, 0, 0.08) 20px);
}

.feature-media i {
    position: relative;
    z-index: 2;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.92);
}

.feature-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feature-name {
    font-family: var(--font-head);
    font-size: 22px;
    font-weight: 700;
    color: var(--blue-deep);
    margin: 0 0 12px;
    line-height: 1.25;
}

.feature-desc {
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--text-body);
    margin: 0 0 18px;
}

.feature-highlights {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
}

.feature-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.5;
}

.feature-highlights li i {
    color: var(--orange);
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

.feature-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
    flex-wrap: wrap;
}

.btn-enquire {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 13px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-enquire:hover {
    background: var(--orange-dim);
    transform: translateY(-1px);
    color: var(--white);
}


/* ════════════════════════════════════════════════════════════════
   DARK CTA STRIP
   ════════════════════════════════════════════════════════════════ */

.products-cta {
    background: var(--blue-deep);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.products-cta::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--orange), rgba(255, 131, 0, 0.2));
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.cta-text h2 {
    font-family: var(--font-head);
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 700;
    color: var(--white);
    margin: 0 0 8px;
    text-wrap: balance;
}

.cta-text h2 span {
    color: var(--orange);
}

.cta-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 15px 30px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s, transform .15s;
    flex-shrink: 0;
}

.btn-cta-primary:hover {
    background: var(--orange-dim);
    color: var(--white);
    transform: translateY(-1px);
}


/* ════════════════════════════════════════════════════════════════
   MODAL (product enquiry)
   ════════════════════════════════════════════════════════════════ */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(0, 20, 50, 0.72);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    transform: translateY(18px) scale(0.98);
    transition: transform .28s cubic-bezier(.34, 1.56, .64, 1), opacity .25s;
    opacity: 0;
}

.modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-header {
    background: var(--blue-deep);
    padding: 24px 28px 20px;
    border-bottom: 4px solid var(--orange);
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.modal-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 6px;
}

.modal-title {
    font-family: var(--font-head);
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    line-height: 1.25;
}

.modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
}

.modal-body {
    padding: 26px 28px 8px;
}

.modal-media {
    height: 150px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue) 65%, var(--blue-mid) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.modal-media i {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.92);
}

.modal-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0 0 18px;
}

.modal-highlights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13.5px;
    color: var(--text-body);
    line-height: 1.5;
}

.modal-highlights li i {
    color: var(--orange);
    font-size: 12px;
    margin-top: 3px;
    flex-shrink: 0;
}

.modal-footer {
    padding: 20px 28px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.modal-privacy {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-privacy i {
    color: var(--blue);
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--orange);
    color: var(--white);
    font-family: var(--font-head);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-submit:hover {
    background: var(--orange-dim);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255, 131, 0, 0.35);
}


/* ════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 1599px) {
    .product-media img {
        height: 300px;
        object-fit: cover;
    }
    .product-media {
        height: 300px;
    }
}

@media (max-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .explorer-inner {
        flex-direction: column;
    }
    .cat-sidebar {
        flex: 1 1 100%;
        position: static;
        width: 100%;
    }
    .cat-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .cat-item {
        flex: 1 1 auto;
        justify-content: center;
    }
    .cat-content {
        padding: 32px 26px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-panel {
        flex-direction: column;
    }
    .feature-media {
        flex: 0 0 auto;
        width: 100%;
    }
    .feature-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768x) {
    .product-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .cat-content {
        padding: 26px 18px;
    }
    .cat-item {
        font-size: 13px;
        padding: 11px 12px;
    }
    .cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}