/* ==========================================================
   PRODUCTS SECTION
========================================================== */

.products-section {
    position: relative;
    width: 100%;
    padding: 96px 0 104px;
    background:
        linear-gradient(180deg,
            #f8f8f7 0%,
            #ffffff 100%);
    overflow: hidden;
}

.products-container {
    position: relative;
    width: min(calc(100% - (var(--container-padding) * 2)),
            1540px);
    margin-inline: auto;
    overflow: visible;
}

.products-side-brand {
    display: none;
    margin-bottom: 28px;
}

.products-side-brand-link {
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition-fast);
}

.products-side-brand-link:hover {
    opacity: 0.82;
}

.products-side-brand-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 138px;
}

.products-side-brand-symbol {
    color: var(--color-black);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -5px;
}

.products-side-brand-name {
    margin-top: 10px;
    color: var(--color-black);
    font-size: 9px;
    font-weight: var(--font-bold);
    line-height: 1;
    letter-spacing: 3px;
    white-space: nowrap;
}

.products-side-logo {
    display: block;
    width: 140px;
    max-height: 68px;
    object-fit: contain;
}

.products-header {
    position: relative;
    z-index: 4;
    max-width: 980px;
    margin-left: clamp(0px, 7vw, 128px);
}

.products-eyebrow {
    margin: 0 0 18px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: var(--font-extrabold);
    line-height: 1.4;
    letter-spacing: 5px;
}

.products-title {
    margin: 0;
    color: var(--color-black);
    font-size: clamp(42px, 4vw, 68px);
    font-weight: var(--font-bold);
    line-height: 1.08;
    letter-spacing: -2.6px;
}

.products-description {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--color-text-gray);
    font-size: clamp(15px, 1.05vw, 19px);
    font-weight: var(--font-regular);
    line-height: 1.7;
}

.products-chevron-outline {
    position: absolute;
    pointer-events: none;
    clip-path: polygon(0 0,
            72% 0,
            100% 50%,
            72% 100%,
            0 100%,
            28% 50%);
}

.products-chevron-outline-main {
    top: 26px;
    right: 0;
    z-index: 1;
    width: min(32vw, 500px);
    min-width: 360px;
    height: 236px;
    background-color: var(--color-primary);
}

.products-chevron-outline-main::after {
    content: "";
    position: absolute;
    inset: 3px;
    background: linear-gradient(180deg, #f8f8f7 0%, #ffffff 100%);
    clip-path: polygon(0 0,
            72% 0,
            100% 50%,
            72% 100%,
            0 100%,
            28% 50%);
}

.products-chevron-outline-fade {
    top: 44px;
    right: 0;
    z-index: 0;
    width: min(28vw, 430px);
    min-width: 320px;
    height: 212px;
    background-color: rgba(214, 0, 18, 0.14);
}

.products-chevron-outline-fade::after {
    content: "";
    position: absolute;
    inset: 1px;
    background: linear-gradient(180deg, #f8f8f7 0%, #ffffff 100%);
    clip-path: polygon(0 0,
            72% 0,
            100% 50%,
            72% 100%,
            0 100%,
            28% 50%);
}

.products-grid {
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
    margin-top: 48px;
}

.product-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    padding: 14px;
    background-color: rgba(255, 255, 255, 0.88);
    border: 1px solid #dddddb;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(17, 18, 22, 0.04);
    overflow: hidden;
}

.product-card-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #ececea;
    border-radius: 6px;
    overflow: hidden;
}

.product-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.product-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px 6px 6px;
}

.product-card-heading {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.product-card-icon {
    width: 34px;
    height: 34px;
    color: var(--color-black);
}

.product-card-icon svg {
    width: 100%;
    height: 100%;
}

.product-card-title {
    margin: 0;
    color: var(--color-black);
    min-height: 50px;
    font-size: 20px;
    font-weight: var(--font-bold);
    line-height: 1.25;
}

.product-card-description {
    margin: 12px 0 0;
    color: var(--color-text-gray);
    font-size: 15px;
    line-height: 1.75;
    min-height: 104px;
}

.product-card-divider {
    width: 100%;
    height: 1px;
    margin: 16px 0 16px;
    background-color: #dededc;
}

.product-card-brands {
    margin: 0;
    color: var(--color-black);
    font-size: 15px;
    font-weight: var(--font-bold);
    line-height: 1.45;
}

.product-card-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 14px 20px;
    background-color: transparent;
    border: 2px solid var(--color-primary);
    border-radius: 8px;
    color: var(--color-primary);
    font-size: 15px;
    font-weight: var(--font-semibold);
    line-height: 1;
    text-align: center;
    transition:
        background-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast),
        border-color var(--transition-fast);
}

.product-card-button:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.product-card-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


/* ==========================================================
   LAPTOP
========================================================== */

@media (max-width: 1440px) {
    .products-section {
        padding-top: 86px;
        padding-bottom: 100px;
    }

    .products-header {
        margin-left: clamp(0px, 6vw, 96px);
    }

    .products-chevron-outline-main {
        right: 0;
        width: 390px;
        min-width: 0;
        height: 208px;
    }

    .products-chevron-outline-fade {
        right: 0;
        width: 340px;
        min-width: 0;
        height: 196px;
    }

    .products-grid {
        gap: 16px;
    }

    .product-card-title {
        font-size: 18px;
        min-height: 46px;
    }

    .product-card-description,
    .product-card-brands,
    .product-card-button {
        font-size: 14px;
    }
}


/* ==========================================================
   SMALL LAPTOP
========================================================== */

@media (max-width: 1180px) {
    .products-header {
        margin-left: 0;
        max-width: 760px;
    }

    .products-chevron-outline-main,
    .products-chevron-outline-fade {
        display: none;
    }

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

    .product-card-description {
        min-height: 78px;
    }
}


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

@media (max-width: 900px) {
    .products-section {
        padding-top: 72px;
        padding-bottom: 84px;
    }

    .products-title {
        font-size: clamp(38px, 6vw, 56px);
        letter-spacing: -2px;
    }

    .products-description {
        font-size: 15px;
    }

    .products-grid {
        margin-top: 36px;
    }
}


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

@media (max-width: 640px) {
    .products-section {
        padding-top: 58px;
        padding-bottom: 66px;
    }

    .products-title {
        font-size: clamp(34px, 10vw, 44px);
        line-height: 1.12;
        letter-spacing: -1.6px;
    }

    .products-description {
        margin-top: 18px;
        font-size: 14px;
        line-height: 1.75;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-top: 30px;
    }

    .product-card {
        padding: 12px;
        border-radius: 8px;
    }

    .product-card-body {
        padding: 16px 4px 6px;
    }

    .product-card-title {
        min-height: 48px;
        font-size: 19px;
    }

    .product-card-description {
        min-height: 98px;
    }

    .product-card-button {
        min-height: 50px;
        font-size: 14px;
    }
}
