/* =========================================================
   PRODUCTS RANGE  (products-range.css)
   Link AFTER style.css. All classes use the "pr-" prefix, so
   delete the old PRODUCTS RANGE block (.products-range,
   .category-toggle, .sub-products ...) from style.css.
========================================================= */

.pr-section {
    --pr-navy: #023253;
    --pr-blue: #1476a8;
    --pr-teal: #136f78;
    --pr-amber: #f5b301;
    --pr-ink: #17384f;
    --pr-muted: #647685;
    --pr-line: #dce5e9;
    --pr-tint: #f3f8fa;

    padding: 40px 0;
    background: #fff;
    font-family: "Inter", sans-serif;
}

.pr-wrap {
    width: min(1320px, 92%);
    margin: 0 auto;
}


/* ---------- HEADING ---------- */

.pr-head {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.pr-head h2 {
    margin: 0 0 12px;
    font-family: "Poppins", sans-serif;
    font-size: clamp(28px, 3.2vw, 42px);
    line-height: 1.18;
    font-weight: 600;
    color: var(--pr-ink);
}

.pr-head p {
    max-width: 540px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.7;
    color: var(--pr-muted);
}


/* ---------- LAYOUT ---------- */

.pr-layout {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 40px;
    align-items: start;
}


/* ---------- CATEGORY LIST ---------- */

.pr-tabs {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pr-tab {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: #fff;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
    transition: background .25s ease, border-color .25s ease, color .25s ease;
}

.pr-tab:hover {
    border-color: var(--pr-blue);
}

.pr-tab-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--pr-tint);
    color: var(--pr-blue);
    font-size: 17px;
    transition: background .25s ease, color .25s ease;
}

.pr-tab-text strong {
    display: block;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--pr-ink);
    transition: color .25s ease;
}

.pr-tab-text small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--pr-muted);
    transition: color .25s ease;
}

.pr-tab-count {
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--pr-tint);
    color: var(--pr-muted);
    font-size: 12px;
    font-weight: 600;
    transition: background .25s ease, color .25s ease;
}

/* active */

.pr-tab.is-active {
    background: var(--pr-navy);
    border-color: var(--pr-navy);
}

.pr-tab.is-active .pr-tab-icon {
    background: var(--pr-amber);
    color: var(--pr-navy);
}

.pr-tab.is-active .pr-tab-text strong {
    color: #fff;
}

.pr-tab.is-active .pr-tab-text small {
    color: rgba(255, 255, 255, .72);
}

.pr-tab.is-active .pr-tab-count {
    background: rgba(255, 255, 255, .14);
    color: #fff;
}


/* ---------- PANELS ---------- */

.pr-panel[hidden] {
    display: none;
}

.pr-panel.is-active {
    animation: prSwap .35s ease;
}

@keyframes prSwap {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

.pr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}


/* ---------- PRODUCT CARD ---------- */

.pr-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--pr-line);
    border-radius: 8px;
    background: #023253;
    text-decoration: none;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.pr-card:hover {
    border-color: var(--pr-blue);
    box-shadow: 0 10px 28px rgba(2, 50, 83, .10);
}

.pr-img {
    height: 220px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--pr-tint);
}

.pr-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    transition: transform .5s ease;
}

.pr-card:hover .pr-img img {
    transform: scale(1.05);
}

.pr-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 15px 18px;
    border-top: 1px solid var(--pr-line);
}

.pr-info h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
    color: #ffffff;
}

.pr-info i {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--pr-line);
    color: #f5b301;
    font-size: 11px;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.pr-card:hover .pr-info i {
    background: var(--pr-blue);
    border-color: var(--pr-blue);
    color: #fff;
}


/* ---------- QUOTE STRIP ---------- */

.pr-quote {
    margin-top: 26px;
    padding: 20px 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-radius: 8px;
    background: var(--pr-tint);
    border-left: 4px solid var(--pr-amber);
}

.pr-quote p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--pr-ink);
}

.pr-quote-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: 5px;
    background: var(--pr-navy);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease;
}

.pr-quote-btn:hover {
    background: var(--pr-blue);
}


/* ---------- VIEW PRODUCTS BUTTON ---------- */

.pr-more {
    margin-top: 44px;
    text-align: center;
}

.pr-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 32px;
    border-radius: 5px;
    background: var(--pr-navy);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background .25s ease;
}

.pr-more-btn i {
    font-size: 12px;
    transition: transform .25s ease;
}

.pr-more-btn:hover {
    background: var(--pr-blue);
}

.pr-more-btn:hover i {
    transform: translateX(4px);
}


/* ---------- FOCUS ---------- */

.pr-tab:focus-visible,
.pr-card:focus-visible,
.pr-more-btn:focus-visible,
.pr-quote-btn:focus-visible {
    outline: 2px solid var(--pr-blue);
    outline-offset: 3px;
}


/* ---------- LAPTOP ---------- */

@media (max-width: 1199px) {
    .pr-layout {
        grid-template-columns: 290px minmax(0, 1fr);
        gap: 28px;
    }

    .pr-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* ---------- TABLET: tabs become a horizontal scroller ---------- */

@media (max-width: 991px) {
    .pr-section {
        padding: 65px 0;
    }

    .pr-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .pr-tabs {
        position: static;
        flex-direction: row;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 6px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
    }

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

    .pr-tab {
        width: auto;
        flex: 0 0 auto;
        grid-template-columns: 40px auto auto;
        scroll-snap-align: start;
    }

    .pr-tab-icon {
        width: 40px;
        height: 40px;
    }

    .pr-tab-text small {
        display: none;
    }

    .pr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


/* ---------- MOBILE ---------- */

@media (max-width: 767px) {
    .pr-section {
        padding: 50px 0;
    }

    .pr-head {
        margin-bottom: 26px;
    }

    .pr-more {
        margin-top: 30px;
    }

    .pr-more-btn {
        width: 100%;
        justify-content: center;
    }

    .pr-head p {
        font-size: 14px;
    }

    .pr-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .pr-img {
        height: 150px;
        padding: 12px;
    }

    .pr-info {
        padding: 11px 12px;
    }

    .pr-info h3 {
        font-size: 13px;
    }

    .pr-info i {
        display: none;
    }

    .pr-quote {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 18px;
    }

    .pr-quote-btn {
        width: 100%;
        justify-content: center;
    }
}


/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
    .pr-panel.is-active {
        animation: none;
    }

    .pr-tab,
    .pr-card,
    .pr-img img,
    .pr-info i,
    .pr-more-btn i {
        transition: none;
    }
}
