/* =========================================================
   MYLO PRODUCTS — PREMIUM COMPACT SECTION
   Fully isolated. No generic/global selectors.
   ========================================================= */

.mh-products {
    --mhp-purple: #6f35d7;
    --mhp-purple-dark: #4d209f;
    --mhp-green: #15b88a;
    --mhp-green-dark: #0b7f62;

    --mhp-ink: #111827;
    --mhp-text: #42526a;
    --mhp-muted: #7b8798;
    --mhp-line: #e5e9f0;

    position: relative;
    overflow: hidden;

    width: 100%;

    padding: clamp(42px, 5.3vw, 68px) 0;

    background:
        radial-gradient(
            circle at 8% 6%,
            rgba(111, 53, 215, 0.07),
            transparent 27%
        ),
        radial-gradient(
            circle at 92% 18%,
            rgba(21, 184, 138, 0.06),
            transparent 26%
        ),
        #f8fafc;

    font-family:
        "Segoe UI",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        Arial,
        sans-serif;
}


.mh-products__inner {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.mh-products__heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: clamp(22px, 2.6vw, 30px);
}


.mh-products__title {
    margin: 0;

    color: var(--mhp-ink);

    font-size: clamp(34px, 4vw, 52px);
    font-weight: 850;
    line-height: 1;

    letter-spacing: -0.045em;
}


.mh-products__pricing-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 40px;

    padding: 9px 14px;

    color: var(--mhp-purple-dark) !important;

    background: rgba(255, 255, 255, 0.86);

    border: 1px solid rgba(111, 53, 215, 0.18);
    border-radius: 999px;

    box-shadow:
        0 7px 20px rgba(50, 38, 90, 0.06);

    font-size: 12px;
    font-weight: 800;
    line-height: 1;

    text-decoration: none !important;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        border-color 160ms ease;
}


.mh-products__pricing-button:hover {
    transform: translateY(-1px);

    border-color: rgba(111, 53, 215, 0.34);

    box-shadow:
        0 10px 24px rgba(50, 38, 90, 0.10);
}


/* =========================================================
   GRID
   ========================================================= */

.mh-products__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: clamp(18px, 2.3vw, 28px);

    align-items: start;
}


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

.mh-product-card {
    min-width: 0;
    overflow: hidden;

    background: #ffffff;

    border: 1px solid var(--mhp-line);
    border-radius: 22px;

    box-shadow:
        0 18px 48px rgba(18, 31, 53, 0.075),
        0 2px 8px rgba(18, 31, 53, 0.035);

    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}


.mh-product-card:hover {
    transform: translateY(-3px);

    box-shadow:
        0 24px 58px rgba(18, 31, 53, 0.10),
        0 4px 10px rgba(18, 31, 53, 0.04);
}


.mh-product-card--10:hover {
    border-color: rgba(111, 53, 215, 0.28);
}


.mh-product-card--20:hover {
    border-color: rgba(21, 184, 138, 0.30);
}


/* =========================================================
   IMAGE AREA
   Product name + capacity + price are INSIDE this area.
   ========================================================= */

.mh-product-card__visual {
    position: relative;
    overflow: hidden;

    aspect-ratio: 1 / 1;

    background: #ffffff;
}


.mh-product-card__image {
    position: absolute;
    inset: 0;

    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: 50% 50%;

    transform: scale(1.03);
    transform-origin: center;
}


.mh-product-card__image-shade {
    position: absolute;
    z-index: 2;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.90) 0%,
            rgba(255, 255, 255, 0.42) 14%,
            rgba(255, 255, 255, 0.00) 34%,
            rgba(255, 255, 255, 0.00) 62%,
            rgba(11, 18, 29, 0.05) 70%,
            rgba(11, 18, 29, 0.70) 100%
        );
}


/* =========================================================
   PRODUCT NAME — overlay at top
   ========================================================= */

.mh-product-card__name-block {
    position: absolute;
    z-index: 3;

    top: 20px;
    left: 22px;

    max-width: calc(100% - 44px);
}


.mh-product-card__series {
    display: block;

    margin-bottom: 5px;

    color: #6f7785;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.075em;

    text-transform: uppercase;
}


.mh-product-card__name {
    margin: 0;

    color: var(--mhp-ink);

    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 900;
    line-height: 0.98;

    letter-spacing: -0.05em;
}


.mh-product-card--10 .mh-product-card__name {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7);
}


.mh-product-card--20 .mh-product-card__name {
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7);
}


/* =========================================================
   CAPACITY + PRICE — overlay at bottom
   ========================================================= */

.mh-product-card__facts {
    position: absolute;
    z-index: 4;

    left: 18px;
    right: 18px;
    bottom: 18px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto;

    gap: 18px;

    align-items: end;

    padding: 14px 16px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 23, 42, 0.88),
            rgba(15, 23, 42, 0.72)
        );

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.16);

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}


.mh-product-card__fact {
    display: grid;
    gap: 3px;
}


.mh-product-card__fact--price {
    text-align: right;
}


.mh-product-card__fact-label {
    color: rgba(255, 255, 255, 0.62);

    font-size: 9.5px;
    font-weight: 800;
    line-height: 1.2;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


.mh-product-card__fact-value {
    color: #ffffff;

    font-size: clamp(17px, 1.8vw, 23px);
    font-weight: 850;
    line-height: 1.08;

    letter-spacing: -0.025em;

    white-space: nowrap;
}


.mh-product-card--10
.mh-product-card__fact--price
.mh-product-card__fact-value {
    color: #cdb8ff;
}


.mh-product-card--20
.mh-product-card__fact--price
.mh-product-card__fact-value {
    color: #9ef0d4;
}


/* =========================================================
   CONFIGURATION — compact below image
   ========================================================= */

.mh-product-card__configuration {
    padding: 16px 18px 18px;
}


.mh-product-card__config-label {
    margin-bottom: 10px;

    color: var(--mhp-ink);

    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;

    letter-spacing: 0.075em;

    text-transform: uppercase;
}


.mh-product-card__config-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px 10px;
}


.mh-product-card__config-item {
    display: flex;
    align-items: flex-start;

    gap: 7px;

    min-width: 0;

    color: var(--mhp-text);

    font-size: 11.5px;
    font-weight: 650;
    line-height: 1.4;
}


.mh-product-card__config-item i {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 17px;
    height: 17px;

    flex: 0 0 17px;

    margin-top: 1px;

    border-radius: 50%;

    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}


.mh-product-card--10
.mh-product-card__config-item i {
    color: var(--mhp-purple-dark);

    background: rgba(111, 53, 215, 0.10);
}


.mh-product-card--20
.mh-product-card__config-item i {
    color: var(--mhp-green-dark);

    background: rgba(21, 184, 138, 0.11);
}


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

@media (max-width: 940px) {

    .mh-products__inner {
        width: min(100% - 30px, 820px);
    }


    .mh-product-card__config-list {
        grid-template-columns: 1fr;
    }

}


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

@media (max-width: 760px) {

    .mh-products {
        padding: 42px 0 50px;
    }


    .mh-products__inner {
        width: calc(100% - 24px);
    }


    .mh-products__heading-row {
        margin-bottom: 20px;
    }


    .mh-products__title {
        font-size: 38px;
    }


    .mh-products__pricing-button {
        min-height: 38px;

        padding: 8px 12px;

        font-size: 11.5px;
    }


    .mh-products__grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .mh-product-card {
        max-width: 620px;

        margin: 0 auto;

        border-radius: 20px;
    }


    .mh-product-card:hover {
        transform: none;
    }


    .mh-product-card__name-block {
        top: 18px;
        left: 18px;
    }


    .mh-product-card__name {
        font-size: clamp(30px, 9vw, 40px);
    }


    .mh-product-card__facts {
        left: 14px;
        right: 14px;
        bottom: 14px;

        gap: 12px;

        padding: 12px 13px;

        border-radius: 13px;
    }


    .mh-product-card__fact-value {
        font-size: clamp(17px, 5vw, 22px);
    }


    .mh-product-card__configuration {
        padding: 14px 16px 16px;
    }


    .mh-product-card__config-list {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 8px;
    }

}


/* =========================================================
   SMALL PHONE
   ========================================================= */

@media (max-width: 460px) {

    .mh-products__heading-row {
        align-items: flex-end;
    }


    .mh-products__title {
        font-size: 34px;
    }


    .mh-products__pricing-button span:last-child {
        display: none;
    }


    .mh-product-card__facts {
        grid-template-columns: 1fr;

        gap: 7px;
    }


    .mh-product-card__fact--price {
        text-align: left;
    }


    .mh-product-card__config-list {
        grid-template-columns: 1fr;
    }


    .mh-product-card__config-item {
        font-size: 12px;
    }

}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .mh-product-card,
    .mh-products__pricing-button {
        transition: none !important;
    }

}
