/* ============================================================
   UNIFIED APPLE-GLASS CANVAS
   One quiet background for the whole page, transparent sections
   and glass surfaces for every home section. Loaded last.
   ============================================================ */

html { background: #f2f4f7; }

html body {
    background:
        radial-gradient(1200px 820px at 5% -10%, rgba(188, 214, 236, 0.28) 0%, rgba(188, 214, 236, 0) 62%),
        radial-gradient(1000px 760px at 100% 3%, rgba(190, 228, 211, 0.22) 0%, rgba(190, 228, 211, 0) 60%),
        linear-gradient(180deg, #f8f9fb 0%, #eef2f6 52%, #f4f6f8 100%) !important;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Every light home section lets the canvas show through. */
html body :is(.rh-hero, .rh-categories, .rh-products, .rh-areas, .acto-brands) {
    background: transparent !important;
}

/* Hero image fades gently into the page instead of cutting hard. */
html body .rh-hero .rh-hero__visual { position: relative; }

html body .rh-hero .rh-hero__visual::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 64px;
    background: linear-gradient(180deg, rgba(248, 249, 251, 0) 0%, rgba(248, 249, 251, 0.72) 100%);
    pointer-events: none;
}

/* Keep the sticky category rows readable while the page scrolls. */
@media (min-width: 701px) {
    html body .rh-categories .rh-categories__row {
        background: rgba(245, 247, 250, 0.78) !important;
        -webkit-backdrop-filter: blur(14px) saturate(140%);
        backdrop-filter: blur(14px) saturate(140%);
    }
}

/* ---------- Category cards ---------- */
html body .rh-categories .rh-categories__card {
    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(24px) saturate(165%);
    backdrop-filter: blur(24px) saturate(165%);
    box-shadow:
        0 24px 48px -38px rgba(10, 37, 64, 0.55),
        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;
}

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

html body .rh-categories .rh-categories__icon {
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    background: rgba(255, 255, 255, 0.58) !important;
    box-shadow:
        0 12px 26px -20px rgba(10, 37, 64, 0.5),
        inset 0 1px 0 #ffffff;
}

html body .rh-categories .rh-categories__action b {
    border-color: rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.55) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ---------- Brand logos ---------- */
html body .acto-brands .acto-brands__item {
    border: 1px solid rgba(255, 255, 255, 0.72) !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    -webkit-backdrop-filter: blur(22px) saturate(160%);
    backdrop-filter: blur(22px) saturate(160%);
    box-shadow:
        0 20px 44px -34px rgba(10, 37, 64, 0.55),
        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;
}

@media (hover: hover) and (pointer: fine) {
    html body .acto-brands .acto-brands__item:hover {
        background: rgba(255, 255, 255, 0.7) !important;
        border-color: rgba(255, 255, 255, 0.95) !important;
        transform: translateY(-3px) !important;
        box-shadow:
            0 26px 50px -32px rgba(10, 37, 64, 0.5),
            inset 0 1px 0 #ffffff !important;
    }
}

/* ---------- Dark statistics panel ---------- */
html body .acto-stats {
    width: min(calc(100% - 40px), 1440px) !important;
    margin: 32px auto !important;
    padding: 48px 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px !important;
    background:
        linear-gradient(135deg, rgba(8, 28, 43, 0.97) 0%, rgba(16, 56, 79, 0.94) 55%, rgba(28, 90, 120, 0.92) 100%) !important;
    box-shadow:
        0 36px 80px -44px rgba(6, 20, 34, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    overflow: hidden;
    color: #ffffff;
}

html body .acto-stats .acto-stats__item { border-radius: 20px; }

@media (max-width: 700px) {
    html body .acto-stats {
        width: calc(100% - 24px) !important;
        margin: 24px auto !important;
        padding: 36px 0 !important;
        border-radius: 26px !important;
    }
}

/* ---------- Dark canvas ---------- */
html.ac-access-dark body {
    background:
        radial-gradient(1200px 820px at 5% -10%, rgba(24, 68, 98, 0.5) 0%, rgba(24, 68, 98, 0) 62%),
        radial-gradient(1000px 760px at 100% 3%, rgba(18, 68, 56, 0.35) 0%, rgba(18, 68, 56, 0) 60%),
        linear-gradient(180deg, #0a141d 0%, #0d1a26 52%, #0b1721 100%) !important;
}

html.ac-access-dark:not(.ac-access-contrast) body .rh-hero .rh-hero__visual::after {
    background: linear-gradient(180deg, rgba(10, 20, 29, 0) 0%, rgba(10, 20, 29, 0.82) 100%);
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-categories .rh-categories__row {
    background: rgba(10, 20, 30, 0.82) !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-categories .rh-categories__card {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(28, 28, 30, 0.6) !important;
    box-shadow:
        0 26px 50px -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-categories .rh-categories__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-categories .rh-categories__icon {
    border-color: rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #0a84ff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-categories .rh-categories__action b {
    border-color: rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #0a84ff !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .acto-brands .acto-brands__item {
    border-color: rgba(255, 255, 255, 0.14) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow:
        0 24px 48px -34px rgba(0, 0, 0, 0.85),
        inset 0 1px 0 #ffffff !important;
}

html.ac-access-dark:not(.ac-access-contrast) body .acto-stats {
    background:
        linear-gradient(135deg, rgba(5, 17, 27, 0.98) 0%, rgba(10, 36, 52, 0.96) 55%, rgba(18, 60, 82, 0.94) 100%) !important;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 36px 80px -44px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ---------- Forced contrast ---------- */
html.ac-access-contrast body {
    background: #ffffff !important;
}

html.ac-access-contrast body .rh-hero .rh-hero__visual::after { content: none !important; }

html.ac-access-contrast body .rh-categories .rh-categories__row { background: #ffffff !important; }

html.ac-access-contrast body .rh-categories .rh-categories__card,
html.ac-access-contrast body .acto-brands .acto-brands__item {
    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-categories .rh-categories__icon,
html.ac-access-contrast body .rh-categories .rh-categories__action b {
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
}

html.ac-access-contrast body .acto-stats {
    border: 2px solid #000000 !important;
    border-radius: 0 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
}

html.ac-access-contrast body .acto-stats :is(h2, .acto-stats__num, .acto-stats__label) { color: #000000 !important; }

html.ac-access-contrast.ac-access-dark body {
    background: #000000 !important;
}

html.ac-access-contrast.ac-access-dark body .rh-categories .rh-categories__card,
html.ac-access-contrast.ac-access-dark body .acto-brands .acto-brands__item {
    background: #000000 !important;
    border-color: #ffffff !important;
}

html.ac-access-contrast.ac-access-dark body .rh-categories .rh-categories__icon,
html.ac-access-contrast.ac-access-dark body .rh-categories .rh-categories__action b {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

html.ac-access-contrast.ac-access-dark body .acto-stats {
    background: #000000 !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
}

html.ac-access-contrast.ac-access-dark body .acto-stats :is(h2, .acto-stats__num, .acto-stats__label) { color: #ffffff !important; }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html body .rh-categories .rh-categories__card,
    html body .acto-brands .acto-brands__item { transition: none !important; }
    html body .rh-categories .rh-categories__card:hover,
    html body .acto-brands .acto-brands__item:hover { transform: none !important; }
}

html.ac-access-motion body .rh-categories .rh-categories__card,
html.ac-access-motion body .acto-brands .acto-brands__item { transition: none !important; }
html.ac-access-motion body .rh-categories .rh-categories__card:hover,
html.ac-access-motion body .acto-brands .acto-brands__item:hover { transform: none !important; }
