.csp-products-wrap,
.csp-products-wrap * {
    box-sizing: border-box;
}

.csp-products-wrap {
    width: 100%;
    position: relative;
}

.csp-section-head {
    max-width: 780px;
    margin: 0 auto 36px;
    text-align: center;
}

.csp-heading {
    margin: 0 0 10px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.csp-subheading {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
}

.csp-products-grid {
    display: grid;
    width: 100%;
}

.csp-product-card {
    min-width: 0;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid rgba(17, 24, 39, .08);
    box-shadow: 0 10px 30px rgba(17, 24, 39, .07);
}

.csp-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(17, 24, 39, .13);
}

.csp-card-image {
    overflow: hidden;
    background: #e9ecef;
}

.csp-card-image img {
    width: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.csp-product-card:hover .csp-card-image img {
    transform: scale(1.035);
}

.csp-card-content {
    padding: 22px;
}

.csp-card-title {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 750;
}

.csp-material {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.55;
}

.csp-material span {
    font-weight: 700;
    color: inherit;
}

.csp-details-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}

.csp-details-btn:hover,
.csp-details-btn:focus {
    transform: translateY(-1px);
    outline: none;
}

.csp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.csp-modal.csp-is-open {
    display: flex;
}

.csp-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 20, .78);
    backdrop-filter: blur(4px);
}

.csp-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(1080px, 96vw);
    max-height: min(88vh, 860px);
    overflow: auto;
    border-radius: 20px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
    animation: cspModalIn .22s ease both;
}

@keyframes cspModalIn {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.csp-modal-close {
    position: sticky;
    float: right;
    top: 14px;
    margin: 14px 14px -54px 0;
    z-index: 10;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(17, 24, 39, .88);
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.csp-modal-body {
    clear: both;
}

.csp-popup-grid {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    min-height: 520px;
}

.csp-popup-image {
    min-height: 100%;
    background: #e7e9ec;
}

.csp-popup-image img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    max-height: 720px;
    object-fit: cover;
    display: block;
}

.csp-popup-content {
    padding: 42px;
}

.csp-popup-title {
    position: relative;
    margin: 0 0 30px;
    padding-bottom: 16px;
    color: #111827;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.16;
    font-weight: 800;
}

.csp-popup-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 999px;
}

.csp-detail-row {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eef0f2;
}

.csp-detail-label {
    font-size: 14px;
    font-weight: 800;
}

.csp-detail-value {
    color: #344054;
    font-size: 14px;
    line-height: 1.55;
}

.csp-popup-copy {
    margin-top: 24px;
}

.csp-popup-copy h4 {
    margin: 0 0 7px;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
}

.csp-popup-copy p {
    margin: 0;
    color: #475467;
    font-size: 15px;
    line-height: 1.75;
}

body.csp-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .csp-products-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .csp-section-head {
        margin-bottom: 26px;
    }

    .csp-modal {
        padding: 10px;
        align-items: flex-end;
    }

    .csp-modal-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 8px 8px;
    }

    .csp-popup-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .csp-popup-image img {
        height: 260px;
        min-height: 0;
        max-height: none;
    }

    .csp-popup-content {
        padding: 28px 22px 34px;
    }

    .csp-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .csp-card-content {
        padding: 18px;
    }
}

/* Progressive / infinite product loading (v1.3.0). Without JavaScript all
 * product cards remain visible, so the catalog is never inaccessible. */
.csp-js .csp-product-card.csp-is-deferred {
    display: none;
}

.csp-product-card.csp-is-revealed {
    animation: cspProductReveal .34s ease both;
}

@keyframes cspProductReveal {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.csp-infinite-loader {
    display: none;
    width: 100%;
    min-height: 74px;
    margin-top: 22px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    text-align: center;
    color: #667085;
    font-size: 14px;
    font-weight: 650;
}

.csp-js .csp-infinite-loader {
    display: flex;
}

.csp-js .csp-infinite-loader.csp-is-complete {
    display: none;
}

.csp-loader-spinner {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border: 3px solid rgba(17, 24, 39, .14);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: cspLoaderSpin .8s linear infinite;
}

.csp-infinite-loader.csp-is-loading .csp-loader-spinner {
    animation-duration: .62s;
}

@keyframes cspLoaderSpin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .csp-product-card.csp-is-revealed,
    .csp-loader-spinner {
        animation: none;
    }
}

/* WhatsApp enquiry button (v1.4.0) */
.csp-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
    padding: 13px 18px;
    border: 0;
    border-radius: 10px;
    background: #25D366;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .2s ease, box-shadow .2s ease;
    box-shadow: 0 8px 20px rgba(37, 211, 102, .18);
}

.csp-whatsapp-btn:hover,
.csp-whatsapp-btn:focus {
    background: #1EAF56;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
    outline: none;
}

.csp-whatsapp-btn:focus-visible {
    outline: 3px solid rgba(37, 211, 102, .28);
    outline-offset: 3px;
}

.csp-whatsapp-icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}
