/* ============================================================
   CLEAN-PRODUCT VIBRANCY
   Aqua/mint accents inspired by hygiene products: coloured icon
   wells, glossy packshots and a pointer-following clean shine.
   Loaded after the motion layer.
   ============================================================ */

:root {
    --ac-aqua: #00a8c8;
    --ac-aqua-deep: #007a99;
    --ac-mint: #17c3a2;
    --ac-sky: #38bdf8;
}

/* ---------- Category numbers: keep the cards clean ---------- */
html body .rh-categories .rh-categories__index {
    display: none !important;
}

/* ---------- Packshots stay neutral and readable ---------- */
html body .rh-products .rh-products__media {
    background: #f8fafc !important;
    box-shadow: inset 0 -22px 32px -32px rgba(10, 37, 64, 0.1) !important;
}

html body .rh-products .rh-products__media::before,
html body .rh-products .rh-products__media::after {
    content: none !important;
    display: none !important;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__visual {
    background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f5f7f9 100%) !important;
    box-shadow: inset 0 -22px 32px -32px rgba(10, 37, 64, 0.08) !important;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__visual::before,
html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__visual::after {
    content: none !important;
    display: none !important;
}

/* ---------- Colour lives on the card, not over the packshot ---------- */
html body .rh-products .rh-products__card {
    border: 1px solid rgba(255, 255, 255, 0.72);
    transition: background-color 0.26s ease, border-color 0.26s ease, box-shadow 0.26s ease, transform 0.26s ease;
}

html body .rh-products .rh-products__card:hover {
    border-color: rgba(0, 168, 200, 0.3) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(232, 250, 255, 0.56) 100%) !important;
    box-shadow:
        0 32px 60px -38px rgba(0, 168, 200, 0.38),
        inset 0 1px 0 #ffffff !important;
}

html body .rh-products .rh-products__info::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    margin-bottom: 7px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00a8c8 0%, #17c3a2 100%);
    opacity: 0.8;
    transition: width 0.3s ease;
}

html body .rh-products .rh-products__card:hover .rh-products__info::before {
    width: 46px;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__content::before {
    content: '';
    display: block;
    width: 28px;
    height: 2px;
    margin: 0 0 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #00a8c8 0%, #17c3a2 100%);
    opacity: 0.8;
    transition: width 0.3s ease;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product:hover .ac-product__content::before {
    width: 46px;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product:hover {
    border-color: rgba(0, 168, 200, 0.32) !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(232, 250, 255, 0.56) 100%) !important;
    box-shadow:
        0 32px 60px -40px rgba(0, 168, 200, 0.4),
        inset 0 1px 0 #ffffff !important;
}

/* ---------- Category icons become clean colour wells ---------- */
html body .rh-categories .rh-categories__icon {
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    background: linear-gradient(135deg, #00a8c8 0%, #17c3a2 100%) !important;
    color: #ffffff !important;
    box-shadow:
        0 16px 30px -18px rgba(0, 168, 200, 0.62),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

html body .rh-categories .rh-categories__card:nth-child(5n + 2) .rh-categories__icon {
    background: linear-gradient(135deg, #0071e3 0%, #38bdf8 100%) !important;
    box-shadow:
        0 16px 30px -18px rgba(0, 113, 227, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

html body .rh-categories .rh-categories__card:nth-child(5n + 3) .rh-categories__icon {
    background: linear-gradient(135deg, #12b886 0%, #38d9a9 100%) !important;
    box-shadow:
        0 16px 30px -18px rgba(18, 184, 134, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

html body .rh-categories .rh-categories__card:nth-child(5n + 4) .rh-categories__icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #67e8f9 100%) !important;
    box-shadow:
        0 16px 30px -18px rgba(14, 165, 233, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

html body .rh-categories .rh-categories__card:nth-child(5n + 5) .rh-categories__icon {
    background: linear-gradient(135deg, #0f766e 0%, #2dd4bf 100%) !important;
    box-shadow:
        0 16px 30px -18px rgba(15, 118, 110, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.55) !important;
}

html body .rh-categories .rh-categories__card:hover .rh-categories__icon {
    transform: translateY(-4px) rotate(-3deg) scale(1.04) !important;
}

/* ---------- Category card pointer sheen ---------- */
html body .rh-categories .rh-categories__card::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        radial-gradient(240px circle at var(--ac-px, 50%) var(--ac-py, 50%), rgba(255, 255, 255, 0.7) 0%, rgba(56, 189, 248, 0.16) 42%, rgba(56, 189, 248, 0) 70%);
    opacity: 0;
    transition: opacity 0.28s ease;
    pointer-events: none;
}

html body .rh-categories .rh-categories__card:hover::before {
    opacity: 1;
}

html body .rh-categories .rh-categories__card > * {
    position: relative;
    z-index: 1;
}

html body .rh-categories .rh-categories__card:hover {
    border-color: rgba(0, 168, 200, 0.35) !important;
}

/* ---------- Product packshots ---------- */
html body .rh-products .rh-products__media {
    background: #f8fafc !important;
    box-shadow: inset 0 -22px 32px -32px rgba(10, 37, 64, 0.1) !important;
}

html body .rh-products .rh-products__info small {
    display: inline-flex !important;
    align-self: flex-start;
    padding: 4px 9px;
    border: 1px solid rgba(0, 168, 200, 0.2);
    border-radius: 999px;
    background: rgba(0, 168, 200, 0.09);
    color: var(--ac-aqua-deep) !important;
    font-weight: 700 !important;
    letter-spacing: 0.055em;
    line-height: 1.4;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__visual {
    background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f5f7f9 100%) !important;
    box-shadow: inset 0 -22px 32px -32px rgba(10, 37, 64, 0.08) !important;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__badge {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    border-color: rgba(0, 168, 200, 0.28) !important;
    background: rgba(232, 250, 255, 0.82) !important;
    color: #006b8a !important;
}

html body .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__badge::before {
    content: '';
    width: 4px;
    height: 4px;
    flex: 0 0 4px;
    border-radius: 50%;
    background: #00a8c8;
    box-shadow: 0 0 0 0 rgba(0, 168, 200, 0.4);
    animation: ac-pulse-dot 2.8s ease-out infinite;
}

/* ---------- Product filters ---------- */
html body .rh-products .rh-products__filters button[aria-pressed="true"] {
    border-color: transparent !important;
    background: linear-gradient(135deg, #0a2540 0%, #007da8 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 22px -16px rgba(0, 113, 227, 0.55) !important;
}

html body .rh-products .rh-products__filters button:hover:not([aria-pressed="true"]) {
    border-color: rgba(0, 168, 200, 0.3) !important;
    color: var(--ac-aqua-deep) !important;
}

/* ---------- Hero CTA in the clean palette ---------- */
html body #content .rh-hero .rh-hero__cta {
    border-color: transparent !important;
    background: linear-gradient(135deg, #0a2540 0%, #007da8 100%) !important;
    box-shadow: 0 14px 28px -18px rgba(0, 113, 227, 0.55);
}

html body #content .rh-hero .rh-hero__cta:hover {
    background: linear-gradient(135deg, #0071e3 0%, #17c3a2 100%) !important;
}

/* ---------- Areas illustrations ---------- */
html body .rh-areas .rh-areas__illustration {
    box-shadow:
        0 24px 54px -34px rgba(0, 168, 200, 0.42),
        inset 0 0 42px rgba(23, 195, 162, 0.1) !important;
}

html body .rh-areas .rh-areas__illustration svg {
    filter: drop-shadow(0 10px 20px rgba(0, 113, 227, 0.16));
}

html body .rh-areas .rh-areas__entry[open] {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.74) 0%, rgba(232, 250, 255, 0.6) 100%) !important;
    border-color: rgba(0, 168, 200, 0.26) !important;
}

/* ---------- Stats numbers in aqua gradient ---------- */
html body .acto-stats__num {
    background: linear-gradient(110deg, #0a2540 0%, #0071e3 52%, #17c3a2 100%) !important;
    background-size: 180% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    animation: ac-number-wash 8s ease-in-out infinite alternate;
}

html body .acto-stats__num::after {
    -webkit-text-fill-color: #0071e3 !important;
    color: #0071e3 !important;
}

@keyframes ac-number-wash {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    html body .acto-stats__num {
        background: none !important;
        -webkit-text-fill-color: #0a2540 !important;
        color: #0a2540 !important;
        animation: none !important;
    }
}

/* ---------- Brand tiles ---------- */
html body .acto-brands .acto-brands__item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.66) 0%, rgba(232, 250, 255, 0.5) 100%) !important;
}

html body .acto-brands .acto-brands__item:hover {
    border-color: rgba(0, 168, 200, 0.32) !important;
}

/* ---------- Dark appearance ---------- */
html.ac-access-dark:not(.ac-access-contrast) #content .rh-categories .rh-categories__icon {
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-categories .rh-categories__card::before {
    background:
        radial-gradient(240px circle at var(--ac-px, 50%) var(--ac-py, 50%), rgba(120, 220, 255, 0.18) 0%, rgba(56, 189, 248, 0.1) 42%, rgba(56, 189, 248, 0) 70%);
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__media,
html.ac-access-dark:not(.ac-access-contrast) #content .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__visual {
    background: #f2f2f7 !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-products .rh-products__info small {
    border-color: rgba(10, 132, 255, 0.32);
    background: rgba(10, 132, 255, 0.14);
    color: #a9d8ff !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .actorein-catalog:not([data-view="list"]):not([data-view="compact"]) .ac-product__badge {
    border-color: rgba(255, 255, 255, 0.3) !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #006b8a !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .rh-areas .rh-areas__entry[open] {
    background: linear-gradient(135deg, rgba(34, 34, 36, 0.88) 0%, rgba(10, 44, 56, 0.82) 100%) !important;
    border-color: rgba(10, 132, 255, 0.3) !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .acto-stats__num {
    background: linear-gradient(110deg, #f5f5f7 0%, #7fd7ff 55%, #5eead4 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .acto-stats__num::after {
    -webkit-text-fill-color: #0a84ff !important;
    color: #0a84ff !important;
}

html.ac-access-dark:not(.ac-access-contrast) #content .acto-brands .acto-brands__item {
    background: rgba(255, 255, 255, 0.9) !important;
}

/* ---------- Forced contrast ---------- */
html.ac-access-contrast body .rh-categories .rh-categories__card::before,
html.ac-access-contrast body .rh-products .rh-products__media::before,
html.ac-access-contrast body .actorein-catalog .ac-product__visual::before {
    display: none !important;
}

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

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

html.ac-access-contrast body .acto-stats__num {
    background: none !important;
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
    animation: none !important;
}

html.ac-access-contrast body .acto-stats__num::after {
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
}

html.ac-access-contrast.ac-access-dark body .acto-stats__num,
html.ac-access-contrast.ac-access-dark body .acto-stats__num::after {
    -webkit-text-fill-color: #ffffff !important;
    color: #ffffff !important;
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
    html body .acto-stats__num,
    html body .actorein-catalog .ac-product__badge::before {
        animation: none !important;
    }
}

html.ac-access-motion body .acto-stats__num,
html.ac-access-motion body .actorein-catalog .ac-product__badge::before {
    animation: none !important;
}
