/* ============================================================
   HOME PRODUCT SHOWCASE — Apple-glass product cards
   Loaded after the base / exported product showcase styles.
   ============================================================ */

.rh-products {
    position: relative;
    isolation: isolate;
    overflow: clip;
    padding: 72px 0 !important;
    background: transparent !important;
}

.rh-products__wrap {
    position: relative;
    z-index: 1;
}

/* ---------- Head ---------- */
body .rh-products .rh-products__head {
    align-items: flex-end;
    gap: 24px;
    margin-bottom: 26px;
}

body .rh-products .rh-products__head small {
    color: #0071e3 !important;
    font: 600 10px/1.5 Inter, "SF Pro Text", sans-serif !important;
    letter-spacing: 0.14em !important;
    text-transform: uppercase;
}

body .rh-products h2 {
    margin: 10px 0 0 !important;
    color: #1d1d1f !important;
    font: 600 clamp(28px, 3.2vw, 42px)/1.15 "Plus Jakarta Sans", "SF Pro Display", Inter, sans-serif !important;
    letter-spacing: -0.042em !important;
}

body .rh-products .rh-products__head > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
    border: 0 !important;
    color: #0071e3 !important;
    font: 500 13px/1.4 Inter, "SF Pro Text", sans-serif !important;
    text-decoration: none;
}

body .rh-products .rh-products__head > a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Filters ---------- */
body .rh-products .rh-products__filters { gap: 8px !important; }

body .rh-products .rh-products__filters button {
    padding: 9px 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.48) !important;
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    color: #425466 !important;
    font: 600 11.5px/1.2 Inter, "SF Pro Text", sans-serif !important;
    letter-spacing: -0.005em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

body .rh-products .rh-products__filters button:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    color: #1d1d1f !important;
}

body .rh-products .rh-products__filters button[aria-pressed="true"] {
    background: #0a2540 !important;
    border-color: #0a2540 !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px -14px rgba(10, 37, 64, 0.8);
}

body .rh-products .rh-products__filter-toggle {
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}

@media (max-width: 900px) {
    body .rh-products .rh-products__filters {
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, 0.88) !important;
        -webkit-backdrop-filter: blur(26px) saturate(170%);
        backdrop-filter: blur(26px) saturate(170%);
        box-shadow: 0 24px 48px -26px rgba(10, 37, 64, 0.4) !important;
    }

    body .rh-products .rh-products__filters button { border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none; }
    body .rh-products .rh-products__filters button[aria-pressed="true"] { background: #0a2540 !important; }
}

/* ---------- Product cards ---------- */
body .rh-products .rh-products__grid { gap: 18px !important; }

body .rh-products .rh-products__card {
    position: relative;
    padding: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    -webkit-backdrop-filter: blur(26px) saturate(165%);
    backdrop-filter: blur(26px) saturate(165%);
    box-shadow:
        0 24px 48px -38px rgba(10, 37, 64, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: background-color 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

body .rh-products .rh-products__card[hidden] { display: none !important; }

@media (hover: hover) and (pointer: fine) {
    body .rh-products .rh-products__card:hover {
        background: rgba(255, 255, 255, 0.68) !important;
        border-color: rgba(255, 255, 255, 0.95) !important;
        box-shadow:
            0 32px 60px -34px rgba(10, 37, 64, 0.5),
            inset 0 1px 0 #ffffff !important;
        transform: translateY(-4px) !important;
    }
}

body .rh-products .rh-products__media {
    border-radius: 16px !important;
    background:
        radial-gradient(120% 120% at 28% 8%, #ffffff 0%, #eef5f9 100%) !important;
    box-shadow:
        inset 0 0 0 1px rgba(10, 37, 64, 0.04),
        inset 0 1px 0 #ffffff;
}

body .rh-products .rh-products__media img {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

body .rh-products .rh-products__card:hover .rh-products__media img { transform: scale(1.05); }

body .rh-products .rh-products__info small {
    color: #0071e3 !important;
    font: 600 10px/1.45 Inter, "SF Pro Text", sans-serif !important;
    letter-spacing: 0.085em !important;
    text-transform: uppercase;
}

body .rh-products h3 {
    color: #1d1d1f !important;
    font: 600 17px/1.35 "Plus Jakarta Sans", "SF Pro Display", Inter, sans-serif !important;
    letter-spacing: -0.022em !important;
    margin: 8px 0 8px !important;
}

body .rh-products .rh-products__info p {
    color: #6e6e73 !important;
    font: 12.5px/1.65 Inter, "SF Pro Text", sans-serif !important;
    margin-bottom: 16px !important;
}

body .rh-products .rh-products__info > span {
    color: #0071e3 !important;
    font: 600 10.5px/1.2 Inter, "SF Pro Text", sans-serif !important;
    letter-spacing: 0.08em;
}

body .rh-products .rh-products__info b {
    display: grid;
    place-items: center;
    width: 34px !important;
    height: 34px !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: rgba(0, 113, 227, 0.1) !important;
    color: #0071e3 !important;
    font-size: 16px !important;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body .rh-products .rh-products__card:hover .rh-products__info b {
    background: #0071e3 !important;
    color: #ffffff !important;
    transform: translate(2px, -2px);
}

@media (min-width: 901px) {
    body .rh-products .rh-products__card {
        grid-template-columns: 168px minmax(0, 1fr) !important;
        gap: 22px !important;
    }

    body .rh-products .rh-products__media {
        min-height: 184px !important;
        padding: 12px !important;
    }

    body .rh-products .rh-products__media img { height: 160px !important; }

    body .rh-products .rh-products__info { padding: 8px 8px 8px 0 !important; }

    body .rh-products h3 { font-size: 19px !important; line-height: 1.3 !important; }
}

/* ---------- Mobile carousel controls ---------- */
body .rh-products .rh-carousel__nav {
    width: 44px !important;
    height: 44px !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    color: #1d1d1f !important;
    box-shadow: 0 14px 28px -20px rgba(10, 37, 64, 0.6);
}

body .rh-products .rh-carousel__nav:hover:not(:disabled) {
    background: #0071e3 !important;
    border-color: #0071e3 !important;
    color: #ffffff !important;
}

body .rh-products .rh-carousel__dot { background: rgba(10, 37, 64, 0.18) !important; }
body .rh-products .rh-carousel__dot.is-active { background: #0071e3 !important; }

html[dir="rtl"] body .rh-products .rh-carousel__nav svg,
html[lang^="fa"] body .rh-products .rh-carousel__nav svg { transform: scaleX(-1); }

/* ---------- Dark appearance ---------- */
html.ac-access-dark:not(.ac-access-contrast) .rh-products {
    background: transparent !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products h2 { color: #f5f5f7 !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__head > a { color: #0a84ff !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__head small { color: #0a84ff !important; }

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__card {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(28, 28, 30, 0.6) !important;
    box-shadow:
        0 28px 54px -34px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__card:hover {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: rgba(38, 38, 40, 0.76) !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__media {
    background: #f2f2f7 !important;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info small { color: #0a84ff !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products h3 { color: #f5f5f7 !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info p { color: #98989d !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info > span { color: #0a84ff !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info b {
    background: rgba(10, 132, 255, 0.16) !important;
    color: #0a84ff !important;
}
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__card:hover .rh-products__info b {
    background: #0a84ff !important;
    color: #ffffff !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__filters:not([data-ac-dark-keep]) {
    border-color: transparent !important;
    background: transparent !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__filters button:not([data-ac-dark-keep]) {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e5e5ea !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__filter-toggle:not([data-ac-dark-keep]) {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #e5e5ea !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__filters button[aria-pressed="true"] {
    background: #0a84ff !important;
    border-color: #0a84ff !important;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__filters:not([data-ac-dark-keep]) {
        border-color: rgba(255, 255, 255, 0.12) !important;
        background: rgba(28, 28, 30, 0.94) !important;
    }
}

/* Keep the card accents on pages where #content dark text rules apply. */
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info small { color: #0a84ff !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info > span { color: #0a84ff !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products h3 { color: #f5f5f7 !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info p { color: #98989d !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-carousel__nav {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #f5f5f7 !important;
}
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-carousel__dot { background: rgba(255, 255, 255, 0.24) !important; }
html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-carousel__dot.is-active { background: #0a84ff !important; }

/* ---------- Forced contrast ---------- */
html.ac-access-contrast .rh-products { background: #ffffff !important; }
html.ac-access-contrast body .rh-products .rh-products__card {
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    transform: none !important;
}
html.ac-access-contrast body .rh-products h2,
html.ac-access-contrast body .rh-products h3,
html.ac-access-contrast body .rh-products .rh-products__info p { color: #000000 !important; }
html.ac-access-contrast body .rh-products .rh-products__info small,
html.ac-access-contrast body .rh-products .rh-products__info > span,
html.ac-access-contrast body .rh-products .rh-products__head small,
html.ac-access-contrast body .rh-products .rh-products__head > a { color: #000000 !important; }
html.ac-access-contrast body .rh-products .rh-products__media { background: #ffffff !important; box-shadow: none !important; border: 2px solid #000000; }
html.ac-access-contrast body .rh-products .rh-products__filters button,
html.ac-access-contrast body .rh-products .rh-products__filter-toggle {
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}
html.ac-access-contrast body .rh-products .rh-products__filters button[aria-pressed="true"] { background: #000000 !important; color: #ffffff !important; }
html.ac-access-contrast body .rh-products .rh-products__info b { border: 2px solid #000000 !important; background: #ffffff !important; color: #000000 !important; border-radius: 0 !important; }
html.ac-access-contrast body .rh-products .rh-carousel__nav { border: 2px solid #000000 !important; background: #ffffff !important; color: #000000 !important; }
html.ac-access-contrast body .rh-products .rh-carousel__dot { background: #000000 !important; }
html.ac-access-contrast body .rh-products .rh-carousel__dot.is-active { background: #000000 !important; }

html.ac-access-contrast.ac-access-dark .rh-products { background: #000000 !important; }
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__card { background: #000000 !important; border-color: #ffffff !important; }
html.ac-access-contrast.ac-access-dark body .rh-products h2,
html.ac-access-contrast.ac-access-dark body .rh-products h3,
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__info p { color: #ffffff !important; }
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__info small,
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__info > span,
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__head small,
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__head > a { color: #ffffff !important; }
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__media { background: #000000 !important; border-color: #ffffff; }
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__filters button,
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__filter-toggle { background: #000000 !important; border-color: #ffffff !important; color: #ffffff !important; }
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__filters button[aria-pressed="true"] { background: #ffffff !important; color: #000000 !important; }
html.ac-access-contrast.ac-access-dark body .rh-products .rh-products__info b { background: #000000 !important; border-color: #ffffff !important; color: #ffffff !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    body .rh-products .rh-products__card,
    body .rh-products .rh-products__media img,
    body .rh-products .rh-products__info b,
    body .rh-products .rh-products__filters button { transition: none !important; }
    body .rh-products .rh-products__card:hover { transform: none !important; }
}

html.ac-access-motion body .rh-products .rh-products__card,
html.ac-access-motion body .rh-products .rh-products__media img,
html.ac-access-motion body .rh-products .rh-products__info b,
html.ac-access-motion body .rh-products .rh-products__filters button { transition: none !important; }
html.ac-access-motion body .rh-products .rh-products__card:hover { transform: none !important; }
