
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ==========================================
   PRIME SYSTEMS — PRODUCT SECTION
   Theme: Charcoal / Red / White
========================================== */

.products {
    --ps-dark: #292b2d;
    --ps-red: #d62828;
    --ps-text: #6e7379;
    --ps-border: #e7e8ea;
    --ps-light: #f7f7f7;

    position: relative;
    display: block;
    width: 100%;
    padding: 95px 0 75px;
    overflow: hidden;
    background: var(--ps-light);
    font-family: "Inter", sans-serif;
}

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

.products .container {
    width: min(1240px, 92%);
    margin: 0 auto;
}

/* ==========================================
   SECTION HEADER
========================================== */

.products .section-header {
    max-width: 720px;
    margin: 0 auto 42px;
    text-align: center;
}

.products .section-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--ps-red);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.products .section-eyebrow::before,
.products .section-eyebrow::after {
    content: "";
    width: 20px;
    height: 1.5px;
    background: var(--ps-red);
}

.products .section-header h2 {
    margin: 0 0 14px;
    color: var(--ps-dark);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(27px, 3vw, 38px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.8px;
}

.products .section-header p {
    max-width: 620px;
    margin: 0 auto;
    color: var(--ps-text);
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.85;
}

/* ==========================================
   SLIDER WRAPPER
========================================== */

.products .wrapper {
    position: relative;
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 25px;
    padding: 12px 2px 48px;
    overflow: hidden;
}

/* Keep slides aligned and equal in height */

.products .card-list {
    display: flex;
    align-items: stretch;
}

.products .card-list > .card {
    height: auto;
    min-width: 0;
}

/* ==========================================
   PRODUCT CARD
========================================== */

.products .card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--ps-border);
    border-radius: 8px;
    box-shadow: 0 5px 22px rgb(20 25 30 / 4%);

    transition:
        transform 0.4s cubic-bezier(.2, .7, .2, 1),
        box-shadow 0.4s ease,
        border-color 0.35s ease;
}

.products .card:hover {
    transform: translateY(-7px);
    border-color: rgb(214 40 40 / 35%);
    box-shadow: 0 18px 38px rgb(25 30 35 / 10%);
}

/* ==========================================
   CARD IMAGE
========================================== */

.products .card-image {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9eaeb;
    isolation: isolate;
}

.products .card-image::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    content: "";
    pointer-events: none;

    background: linear-gradient(
        180deg,
        rgb(20 24 28 / 28%) 0%,
        transparent 36%,
        transparent 65%,
        rgb(20 24 28 / 18%) 100%
    );
}

.products .card-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: cover;

    transition:
        transform 0.8s cubic-bezier(.2, .65, .25, 1),
        filter 0.5s ease;
}

.products .card:hover .card-image img {
    transform: scale(1.075);
    filter: saturate(1.06);
}

/* ==========================================
   IMAGE CATEGORY TAG
========================================== */

.products .card .card-image .card-tag {
    position: absolute;
    z-index: 2;
    top: 15px;
    left: 15px;

    margin: 0;
    padding: 8px 11px;

    color: #fff;
    background: rgb(41 43 45 / 82%);
    border: 1px solid rgb(255 255 255 / 25%);
    border-radius: 3px;

    font-family: "Inter", sans-serif;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
    text-transform: uppercase;

    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);

    transition:
        background 0.35s ease,
        transform 0.35s ease;
}

.products .card:hover .card-image .card-tag {
    color: #fff;
    background: var(--ps-red);
    transform: translateY(-2px);
}

/* ==========================================
   FLOATING ICON
========================================== */

.products .card .card-icon {
    position: absolute;
    z-index: 3;
    right: 16px;
    bottom: 0;

    display: grid;
    place-items: center;

    width: 52px;
    height: 52px;

    color: var(--ps-red);
    background: #fff;
    border: 1px solid rgb(214 40 40 / 12%);
    border-radius: 6px 6px 0 0;
    box-shadow: 0 4px 15px rgb(0 0 0 / 7%);

    transform-origin: center;

    transition:
        color 0.35s ease,
        background 0.35s ease,
        transform 0.5s cubic-bezier(.2, .8, .2, 1),
        box-shadow 0.35s ease;
}

.products .card .card-icon i {
    font-size: 20px;

    transition:
        transform 0.5s cubic-bezier(.2, .8, .2, 1);
}

.products .card:hover .card-icon {
    color: #fff;
    background: var(--ps-red);
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 20px rgb(214 40 40 / 25%);
}

.products .card:hover .card-icon i {
    transform: rotate(-12deg) scale(1.13);
}

/* ==========================================
   CARD CONTENT
========================================== */

.products .card .card-content {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 24px 21px 20px;
    background: #fff;
}

.products .card .card-kicker {
    display: block;
    margin-bottom: 10px;

    color: #85898e;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.6;
    letter-spacing: 0.9px;
}

.products .card .card-title {
    margin: 0 0 12px;

    color: var(--ps-dark);
    font-family: "Montserrat", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.35px;

    transition: color 0.3s ease;
}

.products .card:hover .card-title {
    color: var(--ps-red);
}

.products .card .card-text {
    margin: 0 0 23px;

    color: var(--ps-text);
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.85;
    text-align: justify;
}

/* ==========================================
   CARD FOOTER / LINK
========================================== */

.products .card .card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    margin-top: auto;
    padding-top: 15px;

    border-top: 1px solid rgb(0 0 0 / 8%);
}

.products .card .card-footer .card-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    width: 100%;
    padding: 0;

    color: var(--ps-dark);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;

    transition: color 0.3s ease;
}

.products .card .card-footer .card-button i {
    display: grid;
    place-items: center;

    flex-shrink: 0;
    width: 31px;
    height: 31px;

    color: var(--ps-red);
    background: #fff0f0;
    border-radius: 50%;
    font-size: 11px;

    transition:
        color 0.3s ease,
        background 0.3s ease,
        transform 0.4s cubic-bezier(.2, .8, .2, 1);
}

.products .card:hover .card-footer .card-button {
    color: var(--ps-red);
    background: transparent;
}

.products .card:hover .card-footer .card-button i {
    color: #fff;
    background: var(--ps-red);
    transform: translateX(5px);
}

.products .card .card-footer .card-button:focus-visible {
    outline: 2px solid var(--ps-red);
    outline-offset: 5px;
    border-radius: 3px;
}

/* ==========================================
   SWIPER PAGINATION / AUTOPLAY BULLETS
========================================== */

.products .wrapper .products-controls {
    position: static;
}

/* Bullets remain clickable */

.products .wrapper .products-controls .products-pagination {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 4;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    width: auto;
    margin: 0;
    transform: none;
    pointer-events: auto;
}

.products .wrapper .products-pagination .swiper-pagination-bullet {
    display: inline-block;

    width: 8px;
    height: 8px;
    margin: 0 !important;
    padding: 0;

    background: rgb(214 40 40 / 24%);
    border-radius: 999px;
    opacity: 1;

    transition:
        background 0.3s ease,
        transform 0.3s ease,
        width 0.3s ease;
}

.products .wrapper .products-pagination .swiper-pagination-bullet:hover {
    transform: scale(1.12);
}

.products .wrapper .products-pagination .swiper-pagination-bullet-active {
    background: var(--ps-red);
    width: 28px;
}

/* ==========================================
   BOTTOM CTA
========================================== */

.products .products-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px 18px;

    margin-top: 24px;
    padding-top: 24px;

    color: var(--ps-text);
    border-top: 1px solid var(--ps-border);

    font-size: 13px;
    line-height: 1.7;
}

.products .products-bottom a {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: var(--ps-red);
    font-weight: 600;
    text-decoration: none;

    transition:
        color 0.3s ease,
        gap 0.3s ease;
}

.products .products-bottom a:hover {
    gap: 12px;
    color: #a91919;
}

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

@media (max-width: 991px) {
    .products {
        padding: 78px 0 60px;
    }

    .products .container {
        width: 92%;
    }

    .products .section-header {
        margin-bottom: 32px;
    }

    .products .wrapper {
        padding: 10px 2px 42px;
        margin-bottom: 20px;
    }

    .products .card-image {
        height: 205px;
    }

    .products .card .card-content {
        padding: 22px 18px 18px;
    }

    .products .card .card-title {
        font-size: 17px;
    }

}

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

@media (max-width: 768px) {
    .products {
        padding: 65px 0 48px;
    }

    .products .container {
        width: 91%;
    }

    .products .section-header {
        margin-bottom: 24px;
    }

    .products .section-header h2 {
        font-size: clamp(25px, 6vw, 30px);
        letter-spacing: -0.5px;
    }

    .products .section-header p {
        font-size: 13px;
        line-height: 1.8;
    }

    .products .wrapper {
        padding: 8px 2px 38px;
        margin: 0 auto 18px;
    }

    .products .card-image {
        height: 220px;
    }

    .products .card .card-content {
        padding: 22px 20px 19px;
    }

    .products .card .card-title {
        font-size: 18px;
    }

    .products .card .card-text {
        font-size: 13px;
        line-height: 1.8;
    }

    .products .products-bottom {
        flex-direction: column;
        gap: 5px;
        margin-top: 20px;
        padding-top: 19px;
        text-align: center;
        font-size: 12px;
    }
}

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

@media (max-width: 380px) {
    .products .container {
        width: 94%;
    }

    .products .section-header h2 {
        font-size: 24px;
    }

    .products .card-image {
        height: 190px;
    }

    .products .card .card-content {
        padding: 20px 16px 16px;
    }

    .products .card .card-title {
        font-size: 17px;
    }

    .products .card .card-text {
        font-size: 12px;
    }
}

/* ==========================================
   REDUCED MOTION ACCESSIBILITY
========================================== */

@media (prefers-reduced-motion: reduce) {
    .products *,
    .products *::before,
    .products *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
