
/* =========================================================
   J&P IT SOLUTION — PREMIUM PRODUCT CATALOG
   Modern Corporate | Responsive | Desktop + Mobile
========================================================= */

/* ---------- GLOBAL ---------- */

.catalog-page {
    --catalog-primary: #15366b;
    --catalog-primary-dark: #0b1d3c;
    --catalog-blue: #2864b4;
    --catalog-accent: #d8b46a;
    --catalog-text: #17243a;
    --catalog-muted: #6b7890;
    --catalog-border: #e5eaf2;
    --catalog-soft: #f5f8fc;

    color: var(--catalog-text);
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.7;
    overflow: hidden;
}

.catalog-page *,
.catalog-page *::before,
.catalog-page *::after {
    box-sizing: border-box;
}

.catalog-page a {
    text-decoration: none;
}

.catalog-page img {
    max-width: 100%;
    height: auto;
}

/* ---------- CONTAINER ---------- */

.catalog-container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.catalog-section {
    padding-top: 54px;
    padding-bottom: 64px;
}

.catalog-section.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
    padding-top: 54px;
    padding-bottom: 64px;
}

/* ---------- HERO ---------- */

.catalog-hero {
    position: relative;
    isolation: isolate;
    padding: 76px 0 82px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(
            circle at 85% 12%,
            rgba(95, 157, 255, .24),
            transparent 32%
        ),
        radial-gradient(
            circle at 10% 100%,
            rgba(216, 180, 106, .12),
            transparent 35%
        ),
        linear-gradient(
            120deg,
            #0b1935 0%,
            #122f5f 52%,
            #1c5599 100%
        );
}

.catalog-hero::after {
    position: absolute;
    z-index: -1;
    right: -100px;
    bottom: -190px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: "";
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, .025),
        0 0 0 90px rgba(255, 255, 255, .018);
    pointer-events: none;
}

.catalog-hero .container {
    position: relative;
    z-index: 1;
}

.catalog-hero h1 {
    margin: 15px 0 14px;
    color: #fff;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: -.8px;
}

.catalog-hero p {
    max-width: 740px;
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: 16px;
    line-height: 1.9;
}

.catalog-hero-compact {
    padding: 36px 0 42px;
}

.catalog-hero-compact h1 {
    margin-top: 16px;
    font-size: clamp(29px, 3.4vw, 40px);
}

.catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #e4c98f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
}

.catalog-eyebrow::before {
    width: 25px;
    height: 2px;
    background: var(--catalog-accent, #d8b46a);
    content: "";
}

/* ---------- BREADCRUMB ---------- */

.catalog-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    line-height: 1.8;
}

.catalog-breadcrumb a {
    color: rgba(255, 255, 255, .76);
    transition: color .2s ease;
}

.catalog-breadcrumb a:hover {
    color: #fff;
}

.catalog-breadcrumb span:last-child {
    color: #fff;
    font-weight: 700;
}

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

.catalog-heading {
    margin-bottom: 28px;
}

.catalog-heading h2 {
    margin: 0 0 8px;
    color: var(--catalog-primary-dark, #0b1d3c);
    font-size: clamp(23px, 2.5vw, 30px);
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: -.4px;
}

.catalog-heading p {
    margin: 0;
    color: var(--catalog-muted, #6b7890);
    font-size: 14px;
    line-height: 1.8;
}


/* ---------- CATEGORY GRID ---------- */

.catalog-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* ---------- CATEGORY CARD ---------- */

.catalog-category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    min-height: 230px;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--catalog-border, #e5eaf2);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff 0%, #f8faff 100%);
    color: var(--catalog-text, #17243a);
    text-decoration: none;
    box-shadow: 0 5px 20px rgba(20, 45, 90, .035);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.catalog-category-card::after {
    position: absolute;
    right: -35px;
    bottom: -55px;
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background: rgba(40, 100, 180, .045);
    content: "";
    transition: transform .3s ease;
    pointer-events: none;
}

.catalog-category-card:hover {
    transform: translateY(-5px);
    border-color: #c7d8f0;
    box-shadow: 0 18px 40px rgba(20, 45, 90, .09);
}

.catalog-category-card:hover::after {
    transform: scale(1.25);
}

/* ---------- CATEGORY IMAGE 16:9 ---------- */

.catalog-category-icon {
    position: relative;
    display: block;
    align-self: stretch;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid #e0eaff;
    border-radius: 12px;
    background: linear-gradient(145deg, #f0f5ff, #e5eeff);
}

.catalog-category-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .3s ease;
}

.catalog-category-card:hover .catalog-category-icon img {
    transform: scale(1.04);
}

/* ---------- CATEGORY TITLE ---------- */

.catalog-category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 8px;
    color: var(--catalog-primary-dark, #0b1d3c);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.5;
}

/* ---------- CATEGORY DESCRIPTION ---------- */

.catalog-category-card p {
    position: relative;
    z-index: 1;
    margin: 0 0 20px;
    color: var(--catalog-muted, #6b7890);
    font-size: 13px;
    line-height: 1.8;
}

/* ---------- VIEW LINK ---------- */

.catalog-view-link {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: var(--catalog-blue, #2864b4);
    font-size: 13px;
    font-weight: 800;
}

/* ---------- TABLET ---------- */

@media (max-width: 991px) {
    .catalog-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .catalog-category-card {
        padding: 20px;
    }
}

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

@media (max-width: 575px) {
    .catalog-category-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-category-card {
        min-height: 0;
        padding: 18px;
        border-radius: 16px;
    }

    .catalog-category-icon {
        margin-bottom: 16px;
        border-radius: 10px;
    }

    .catalog-category-card h3 {
        font-size: 18px;
    }

    .catalog-category-card p {
        margin-bottom: 16px;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .catalog-category-card,
    .catalog-category-card::after,
    .catalog-category-icon img {
        transition: none;
    }

    .catalog-category-card:hover {
        transform: none;
    }

    .catalog-category-card:hover .catalog-category-icon img {
        transform: none;
    }
}


/* ---------- BRAND GRID ---------- */

.catalog-brand-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.catalog-brand-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--catalog-border, #e5eaf2);
    border-radius: 18px;
    background: #fff;
    color: var(--catalog-text, #17243a);
    box-shadow: 0 4px 18px rgba(20, 45, 90, .035);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.catalog-brand-card:hover {
    transform: translateY(-4px);
    border-color: #c9d9ef;
    box-shadow: 0 15px 32px rgba(20, 45, 90, .09);
}

.catalog-brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 145px;
    padding: 25px;
    border-bottom: 1px solid #edf1f7;
    background:
        radial-gradient(circle at 50% 0%, #f2f6fd, transparent 75%),
        #fff;
}

.catalog-brand-logo img {
    display: block;
    width: 100%;
    max-width: 175px;
    height: 82px;
    object-fit: contain;
    transition: transform .25s ease;
}

.catalog-brand-card:hover .catalog-brand-logo img {
    transform: scale(1.05);
}

.catalog-brand-fallback {
    color: var(--catalog-primary, #15366b);
    font-size: 23px;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
}

.catalog-brand-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.catalog-brand-card-body h3 {
    margin: 0 0 5px;
    color: var(--catalog-primary-dark, #0b1d3c);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.catalog-brand-card-body p {
    margin: 0 0 17px;
    color: var(--catalog-muted, #6b7890);
    font-size: 12px;
}

.catalog-brand-card-body .catalog-view-link {
    width: 100%;
    justify-content: space-between;
    padding-top: 13px;
    border-top: 1px solid #edf1f7;
}

/* ---------- SEARCH ---------- */

.catalog-search {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 700px;
    margin: 0 0 22px;
}

.catalog-search input[type="search"] {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px 16px;
    border: 1px solid #dce4ef;
    border-radius: 12px;
    outline: none;
    background: #fff;
    color: var(--catalog-text, #17243a);
    font: inherit;
    font-size: 14px;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.catalog-search input[type="search"]::placeholder {
    color: #9aa5b6;
}

.catalog-search input[type="search"]:focus {
    border-color: #6a96d4;
    box-shadow: 0 0 0 4px rgba(40, 100, 180, .09);
}

.catalog-search button {
    flex-shrink: 0;
    min-height: 48px;
    padding: 0 23px;
    border: 0;
    border-radius: 12px;
    background: var(--catalog-primary, #15366b);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}

.catalog-search button:hover {
    transform: translateY(-1px);
    background: var(--catalog-blue, #2864b4);
}

/* ---------- RESULT COUNT ---------- */

.catalog-section > .text-muted {
    margin: 0 0 20px;
    color: var(--catalog-muted, #6b7890);
    font-size: 13px;
}

/* ---------- PRODUCT GRID ---------- */

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.catalog-product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--catalog-border, #e5eaf2);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(20, 45, 90, .035);
    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.catalog-product-card:hover {
    transform: translateY(-4px);
    border-color: #cbd9eb;
    box-shadow: 0 16px 35px rgba(20, 45, 90, .09);
}

.catalog-product-image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 245px;
    padding: 24px;
    overflow: hidden;
    border-bottom: 1px solid #edf1f7;
    background:
        radial-gradient(circle at 50% 45%, #f1f5fb 0%, #fff 72%);
}

.catalog-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}

.catalog-product-card:hover .catalog-product-image img {
    transform: scale(1.045);
}

.catalog-product-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.catalog-brand {
    display: inline-flex;
    align-self: flex-start;
    margin-bottom: 9px;
    padding: 4px 10px;
    border: 1px solid #e1eaf8;
    border-radius: 6px;
    background: #f3f7fd;
    color: var(--catalog-blue, #2864b4);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .5px;
}

.catalog-product-body h3 {
    margin: 0 0 10px;
    color: var(--catalog-primary-dark, #0b1d3c);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.catalog-product-body h3 a {
    color: inherit;
    transition: color .2s ease;
}

.catalog-product-body h3 a:hover {
    color: var(--catalog-blue, #2864b4);
}

.catalog-product-body > p {
    margin: 0 0 22px;
    color: var(--catalog-muted, #6b7890);
    font-size: 13px;
    line-height: 1.85;
}

.catalog-product-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #edf1f7;
}

.catalog-product-bottom strong {
    color: var(--catalog-primary, #15366b);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.catalog-detail-link {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #dce7f7;
    border-radius: 9px;
    background: #f5f8fd;
    color: var(--catalog-primary, #15366b);
    font-size: 12px;
    font-weight: 800;
    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.catalog-detail-link:hover {
    border-color: var(--catalog-primary, #15366b);
    background: var(--catalog-primary, #15366b);
    color: #fff;
}

/* =========================================================
   PRODUCT DETAIL PAGE
   ใช้กับ products/detail.php เมื่อมีคลาสตรงกัน
========================================================= */

.catalog-product-detail {
    color: var(--catalog-text, #17243a);
    background: #fff;
}

.catalog-product-detail .catalog-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
    gap: 28px;
}

.catalog-product-detail .catalog-product-main-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--catalog-border, #e5eaf2);
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% 40%, #f0f5fc, #fff 72%);
}

.catalog-product-detail .catalog-product-main-image img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.catalog-product-detail .catalog-detail-info {
    min-width: 0;
    padding: 28px;
    border: 1px solid var(--catalog-border, #e5eaf2);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(20, 45, 90, .05);
}

.catalog-product-detail .catalog-detail-info h1 {
    margin: 12px 0 16px;
    color: var(--catalog-primary-dark, #0b1d3c);
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.catalog-product-detail .catalog-detail-summary {
    color: var(--catalog-muted, #6b7890);
    font-size: 15px;
    line-height: 1.9;
}

.catalog-product-detail .catalog-detail-price {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid #e1eaf8;
    border-radius: 14px;
    background: #f5f8fd;
}

.catalog-product-detail .catalog-detail-price strong {
    color: var(--catalog-primary, #15366b);
    font-size: 22px;
    font-weight: 800;
}

.catalog-product-detail .catalog-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.catalog-product-detail .catalog-detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 11px 20px;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 700;
    transition: background .2s ease, transform .2s ease;
}

.catalog-product-detail .catalog-detail-actions a:hover {
    transform: translateY(-2px);
}

.catalog-product-detail .catalog-detail-actions .catalog-button-primary {
    background: var(--catalog-primary, #15366b);
    color: #fff;
}

.catalog-product-detail .catalog-detail-actions .catalog-button-line {
    background: #06a85a;
    color: #fff;
}

.catalog-product-detail .catalog-specs {
    margin-top: 32px;
    overflow: hidden;
    border: 1px solid var(--catalog-border, #e5eaf2);
    border-radius: 18px;
    background: #fff;
}

.catalog-product-detail .catalog-specs h2 {
    margin: 0;
    padding: 20px 24px;
    border-bottom: 1px solid var(--catalog-border, #e5eaf2);
    background: #f7f9fd;
    color: var(--catalog-primary-dark, #0b1d3c);
    font-size: 21px;
    font-weight: 800;
}

.catalog-product-detail .catalog-spec-row {
    display: grid;
    grid-template-columns: minmax(140px, 30%) minmax(0, 1fr);
    gap: 16px;
    padding: 15px 24px;
    border-bottom: 1px solid #edf1f7;
}

.catalog-product-detail .catalog-spec-row:last-child {
    border-bottom: 0;
}

.catalog-product-detail .catalog-spec-row:nth-child(even) {
    background: #fafbfd;
}

.catalog-product-detail .catalog-spec-label {
    color: var(--catalog-muted, #6b7890);
    font-weight: 700;
}

.catalog-product-detail .catalog-spec-value {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* =========================================================
   INSTALLATION PAGE
========================================================= */

.catalog-installation-page {
    color: #172033;
}

.catalog-installation-heading {
    max-width: 850px;
    margin: 0 auto 32px;
    text-align: center;
}

.catalog-installation-heading .catalog-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    border-radius: 18px;
    background: #edf4ff;
    color: #2159a8;
    font-size: 28px;
}

.catalog-installation-heading h2 {
    margin-bottom: 12px;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 750;
    line-height: 1.45;
}

.catalog-installation-heading p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

/* =========================
   PREMIUM INSTALLATION BANNER
========================= */

.catalog-service-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 42px 48px;
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(69, 142, 255, 0.25),
            transparent 35%
        ),
        linear-gradient(120deg, #101d36 0%, #173b70 58%, #174d87 100%);
    box-shadow: 0 14px 35px rgba(16, 40, 76, 0.15);
    color: #fff;
}

.catalog-service-content {
    position: relative;
    z-index: 2;
    flex: 1;
    max-width: 650px;
}

.catalog-service-banner .catalog-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    color: #a9d2ff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
}

.catalog-service-banner h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(23px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.35;
}

.catalog-service-banner p {
    max-width: 560px;
    margin: 0 0 25px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.8;
}

.catalog-service-banner .catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 10px;
    background: #fff;
    color: #173b70;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-service-banner .catalog-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.catalog-service-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 250px;
    min-height: 205px;
}

.catalog-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    transform: rotate(-7deg);
}

.catalog-service-icon i {
    color: #d5e9ff;
    font-size: 76px;
    transform: rotate(7deg);
}

.catalog-service-tag {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(17, 35, 65, 0.88);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    white-space: nowrap;
}

.catalog-service-tag i {
    color: #9dcaff;
    font-size: 16px;
}

.catalog-service-tag-top {
    top: 12px;
    right: 0;
}

.catalog-service-tag-bottom {
    bottom: 10px;
    left: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .catalog-service-banner {
        gap: 18px;
        padding: 30px 24px;
        border-radius: 18px;
    }

    .catalog-service-visual {
        flex-basis: 170px;
        min-height: 170px;
    }

    .catalog-service-icon {
        width: 115px;
        height: 115px;
        border-radius: 26px;
    }

    .catalog-service-icon i {
        font-size: 58px;
    }

    .catalog-service-tag {
        padding: 8px 10px;
        font-size: 10px;
    }
}

@media (max-width: 560px) {
    .catalog-service-banner {
        flex-direction: column;
        align-items: stretch;
        padding: 28px 22px 22px;
    }

    .catalog-service-banner h2 {
        font-size: 24px;
    }

    .catalog-service-banner p {
        font-size: 14px;
    }

    .catalog-service-banner .catalog-button {
        width: 100%;
        box-sizing: border-box;
    }

    .catalog-service-visual {
        flex: auto;
        width: 100%;
        min-height: 150px;
        margin-top: 4px;
    }

    .catalog-service-icon {
        width: 105px;
        height: 105px;
    }

    .catalog-service-icon i {
        font-size: 52px;
    }

    .catalog-service-tag-top {
        top: 0;
        right: 4%;
    }

    .catalog-service-tag-bottom {
        bottom: 0;
        left: 4%;
    }
}

/* ---------- INSTALLATION PRICE TABLE ---------- */

.catalog-installation-table-wrapper {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 56px;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 35, 70, .07);
    -webkit-overflow-scrolling: touch;
}

.catalog-installation-table {
    width: 100%;
    min-width: 320px;
    margin: 0;
    border-collapse: collapse;
    text-align: left;
}

.catalog-installation-table thead {
    background: #173b73;
    color: #fff;
}

.catalog-installation-table th {
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 700;
}

.catalog-installation-table td {
    padding: 20px 24px;
    border-bottom: 1px solid #edf0f5;
    vertical-align: middle;
}

.catalog-installation-table tbody tr:last-child td {
    border-bottom: 0;
}

.catalog-installation-table tbody tr:nth-child(even) {
    background: #f8faff;
}

.catalog-installation-table tbody tr:hover {
    background: #eef5ff;
}

.catalog-installation-range {
    color: #253858;
    font-weight: 650;
}

.catalog-installation-price {
    color: #174c9a;
    font-size: 19px;
    font-weight: 800;
    white-space: nowrap;
}

/* ---------- INCLUDED SERVICES ---------- */

.catalog-installation-services {
    margin: 0 0 48px;
}

.catalog-installation-services > h2 {
    margin-bottom: 24px;
    text-align: center;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 750;
}

.catalog-installation-service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.catalog-installation-service-item {
    padding: 26px;
    border: 1px solid #e5eaf2;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 35, 70, .04);
}

.catalog-installation-service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: #edf4ff;
    color: #2159a8;
    font-size: 23px;
}

.catalog-installation-service-item h3 {
    margin-bottom: 10px;
    font-size: 19px;
    font-weight: 750;
}

.catalog-installation-service-item p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

/* ---------- PRICE CONDITIONS ---------- */

.catalog-install-note {
    margin-bottom: 32px;
}

.catalog-install-note h2 {
    margin-bottom: 14px;
    font-size: 22px;
    font-weight: 750;
}

.catalog-install-note p {
    line-height: 1.85;
}

/* ---------- INSTALLATION CTA ---------- */

.catalog-installation-cta {
    padding: 40px 28px;
    border: 1px solid #dce7f8;
    border-radius: 20px;
    background: linear-gradient(135deg, #f4f8ff, #fff);
    text-align: center;
}

.catalog-installation-cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.catalog-installation-cta h2 {
    margin: 12px 0;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 800;
}

.catalog-installation-cta p {
    margin-bottom: 24px;
    color: #64748b;
    line-height: 1.8;
}

.catalog-installation-cta .catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

/* ---------- PAGINATION ---------- */

.catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.catalog-pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--catalog-border, #e5eaf2);
    border-radius: 10px;
    background: #fff;
    color: var(--catalog-text, #17243a);
    font-size: 13px;
    font-weight: 700;
    transition: .2s ease;
}

.catalog-pagination a:hover {
    border-color: var(--catalog-blue, #2864b4);
    color: var(--catalog-blue, #2864b4);
}

.catalog-pagination a.active {
    border-color: var(--catalog-primary, #15366b);
    background: var(--catalog-primary, #15366b);
    color: #fff;
    box-shadow: 0 4px 12px rgba(21, 54, 107, .18);
}

/* ---------- EMPTY STATE ---------- */

.catalog-empty {
    padding: 55px 25px;
    border: 1px dashed #cfd9e8;
    border-radius: 18px;
    background: var(--catalog-soft, #f5f8fc);
    text-align: center;
}

.catalog-empty h2 {
    margin: 0 0 10px;
    color: var(--catalog-primary-dark, #0b1d3c);
    font-size: 23px;
    font-weight: 800;
}

.catalog-empty p {
    margin: 0 0 22px;
    color: var(--catalog-muted, #6b7890);
    font-size: 14px;
}

.catalog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.catalog-button-primary {
    background: var(--catalog-primary, #15366b);
    color: #fff;
}

.catalog-button-primary:hover {
    background: var(--catalog-blue, #2864b4);
    color: #fff;
}

/* ---------- ACCESSIBILITY ---------- */

.catalog-page a:focus-visible,
.catalog-page button:focus-visible,
.catalog-page input:focus-visible,
.catalog-product-detail a:focus-visible,
.catalog-product-detail button:focus-visible {
    outline: 3px solid rgba(40, 100, 180, .4);
    outline-offset: 3px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    .catalog-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .catalog-brand-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .catalog-product-image {
        height: 225px;
    }

    .catalog-section,
    .catalog-section.container {
        padding-top: 42px;
        padding-bottom: 48px;
    }

    .catalog-product-detail .catalog-detail-layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 20px;
    }

    .catalog-product-detail .catalog-product-main-image {
        min-height: 300px;
    }

    .catalog-product-detail .catalog-detail-info {
        padding: 22px;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .catalog-installation-service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .catalog-installation-table th,
    .catalog-installation-table td {
        padding: 16px;
    }

    .catalog-installation-price {
        font-size: 17px;
    }

    .catalog-installation-cta {
        padding: 30px 20px;
    }

    .catalog-product-detail .catalog-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .catalog-product-detail .catalog-product-main-image {
        min-height: 260px;
        padding: 20px;
        border-radius: 16px;
    }

    .catalog-product-detail .catalog-product-main-image img {
        max-height: 320px;
    }

    .catalog-product-detail .catalog-detail-info {
        padding: 20px;
        border-radius: 16px;
    }

    .catalog-product-detail .catalog-detail-info h1 {
        font-size: 24px;
    }

    .catalog-product-detail .catalog-detail-price strong {
        font-size: 19px;
    }

    .catalog-product-detail .catalog-specs h2 {
        padding: 16px;
        font-size: 19px;
    }

    .catalog-product-detail .catalog-spec-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 13px 16px;
    }

    .catalog-product-detail .catalog-detail-actions {
        flex-direction: column;
    }

    .catalog-product-detail .catalog-detail-actions a {
        width: 100%;
    }
}

.catalog-brand-logo {
    width: 100%;
    aspect-ratio: 16 / 9;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 10px;
}

.catalog-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.catalog-brand-logo-fallback {
    color: #64748b;
    font-size: 18px;
    font-weight: 700;
}

/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {
    .catalog-container,
    .catalog-section.container {
        width: calc(100% - 32px);
    }

    .catalog-hero {
        padding: 48px 0 52px;
    }

    .catalog-hero-compact {
        padding: 27px 0 32px;
    }

    .catalog-hero h1 {
        margin: 12px 0 10px;
        font-size: 30px;
        letter-spacing: -.4px;
    }

    .catalog-hero-compact h1 {
        font-size: 27px;
    }

    .catalog-hero p {
        font-size: 13px;
        line-height: 1.85;
    }

    .catalog-breadcrumb {
        gap: 7px;
        margin-bottom: 16px;
        font-size: 11px;
    }

    .catalog-eyebrow {
        font-size: 10px;
        letter-spacing: 1.8px;
    }

    .catalog-section,
    .catalog-section.container {
        padding-top: 32px;
        padding-bottom: 40px;
    }

    .catalog-heading {
        margin-bottom: 20px;
    }

    .catalog-heading h2 {
        font-size: 22px;
    }

    .catalog-heading p {
        font-size: 13px;
    }

    .catalog-category-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .catalog-category-card {
        min-height: auto;
        padding: 22px;
        border-radius: 16px;
    }

    .catalog-category-icon {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    }

    .catalog-category-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

    .catalog-category-card h3 {
        font-size: 17px;
    }

    .catalog-brand-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog-brand-card {
        border-radius: 14px;
    }

    .catalog-brand-logo {
        height: 112px;
        padding: 15px;
    }

    .catalog-brand-logo img {
        height: 65px;
    }

    .catalog-brand-fallback {
        font-size: 18px;
    }

    .catalog-brand-card-body {
        padding: 14px;
    }

    .catalog-brand-card-body h3 {
        font-size: 14px;
    }

    .catalog-brand-card-body p {
        margin-bottom: 13px;
        font-size: 11px;
    }

    .catalog-brand-card-body .catalog-view-link {
        gap: 5px;
        padding-top: 10px;
        font-size: 11px;
    }

    .catalog-search {
        gap: 8px;
        margin-bottom: 18px;
    }

    .catalog-search input[type="search"] {
        min-height: 44px;
        padding: 10px 12px;
        border-radius: 10px;
        font-size: 12px;
    }

    .catalog-search button {
        min-height: 44px;
        padding: 0 15px;
        border-radius: 10px;
        font-size: 12px;
    }

    .catalog-section > .text-muted {
        margin-bottom: 15px;
        font-size: 12px;
    }

    .catalog-product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .catalog-product-card {
        border-radius: 14px;
    }

    .catalog-product-image {
        height: 150px;
        padding: 12px;
    }

    .catalog-product-body {
        padding: 13px;
    }

    .catalog-brand {
        margin-bottom: 7px;
        padding: 3px 7px;
        font-size: 9px;
    }

    .catalog-product-body h3 {
        margin-bottom: 7px;
        font-size: 13px;
        line-height: 1.55;
    }

    .catalog-product-body > p {
        margin-bottom: 14px;
        font-size: 11px;
        line-height: 1.7;
    }

    .catalog-product-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
        padding-top: 12px;
    }

    .catalog-product-bottom strong {
        font-size: 12px;
    }

    .catalog-detail-link {
        min-height: 32px;
        padding: 6px 9px;
        font-size: 10px;
    }

    .catalog-pagination {
        gap: 6px;
        margin-top: 30px;
    }

    .catalog-pagination a {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        border-radius: 8px;
        font-size: 12px;
    }

    .catalog-empty {
        padding: 35px 18px;
    }

    .catalog-empty h2 {
        font-size: 20px;
    }

    .catalog-installation-table th,
    .catalog-installation-table td {
        padding: 14px 12px;
        font-size: 14px;
    }

    .catalog-installation-price {
        font-size: 15px;
    }
}

/* ---------- EXTRA SMALL MOBILE ---------- */

@media (max-width: 360px) {
    .catalog-brand-grid,
    .catalog-product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .catalog-product-image {
        height: 210px;
    }

    .catalog-product-body {
        padding: 18px;
    }

    .catalog-product-body h3 {
        font-size: 15px;
    }

    .catalog-product-bottom {
        align-items: center;
        flex-direction: row;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    .catalog-page *,
    .catalog-page *::before,
    .catalog-page *::after,
    .catalog-product-detail *,
    .catalog-product-detail *::before,
    .catalog-product-detail *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
