/*
 * Rysa Store unified visual theme patch
 * Scope: shared public pages that load includes/rysa-shared-header.php.
 * Changes only page backdrop, shared menu surfaces, and primary blue states.
 * Existing layout, content cards, images, functionality, payment and dispatch are untouched.
 */
:root {
    --rysa-unified-page-bg: #070b19;
    --rysa-unified-blue-start: #2f9ef2;
    --rysa-unified-blue-end: #2475ef;
    --rysa-unified-blue: #2475ef;
    --rysa-unified-blue-gradient: linear-gradient(105deg, #2f9ef2, #2475ef);

    /* Align common theme tokens to the exact Login button blue. */
    --purple: #2f9ef2 !important;
    --blue: #2475ef !important;
    --accent: #2f9ef2 !important;
    --primary: #2475ef !important;
    --primary-color: #2475ef !important;
    --shop-cyan: #2f9ef2 !important;
}

/* One solid page background, matching the Rysa footer. */
html,
body,
body.rysa-page-shell,
body.rysa-page-account,
body.rysa-page-shop,
body.rysa-page-check-order,
body.gift-public-page {
    background-color: #070b19 !important;
    background-image: none !important;
}

/* Prevent background decoration layers from reintroducing page gradients. */
body::before,
body::after {
    background-image: none !important;
}

/* Shared top bar and mobile/desktop navigation drawer: solid black, not gradient. */
header.rysa-shared-header {
    background: #070b19 !important;
    background-image: none !important;
}

header.rysa-shared-header .links,
header.rysa-shared-header .mobile-tools-submenu,
header.rysa-shared-header .profile-menu,
header.rysa-shared-header .search-results {
    background-color: #070b19 !important;
    background-image: none !important;
}

/* Global-shell menu fallback for any public route using the alternate shell. */
.rysa-global-navigation,
.rysa-global-profile-menu {
    background-color: #070b19 !important;
    background-image: none !important;
}

/* Current/selected navigation uses the same Login blue. */
header.rysa-shared-header .links > a.active,
header.rysa-shared-header .links .mobile-tools-dropdown.is-open > .mobile-tools-menu-toggle,
header.rysa-shared-header .mobile-tools-submenu a.mobile-tools-sub-link.active,
header.rysa-shared-header .mobile-tools-submenu a.mobile-tools-sub-link[aria-current="page"],
.rysa-global-menu-links a[aria-current="page"] {
    color: #ffffff !important;
    background: linear-gradient(105deg, #2f9ef2, #2475ef) !important;
    border-color: #2f9ef2 !important;
}

header.rysa-shared-header .links > a:hover,
header.rysa-shared-header .links > a:focus-visible,
header.rysa-shared-header .mobile-tools-submenu a.mobile-tools-sub-link:hover,
header.rysa-shared-header .mobile-tools-submenu a.mobile-tools-sub-link:focus-visible,
.rysa-global-menu-links a:hover,
.rysa-global-menu-links a:focus-visible {
    border-color: #2f9ef2 !important;
    background: linear-gradient(105deg, #2f9ef2, #2475ef) !important;
    color: #ffffff !important;
}

/* Primary actions, selected tabs and active filters share the Login blue. */
.rysa-auth-submit,
.rysa-wallet-submit,
.rysa-auth-tab[aria-selected="true"],
.rysa-id-login-notice-primary,
.starlight-submit-button,
.starlight-replay-draw,
.starlight-login-required-primary,
.shop-wallet a,
.shop-tabs a.active,
.shop-button.primary,
.shop-empty a,
.catalog-category-link[aria-current="page"],
.catalog-expand-button,
.catalog-option.active,
.product-filter.active,
#productFilters .product-filter.active,
.chooser-choice-option.active,
body.rysa-page-account .sidebar > .nav.active,
body.rysa-page-account .nav.active,
.transaction-filter.active,
.gift-personal-filter.active,
.pagination-actions .current-page,
.rysa-auth-banner .rysa-auth-submit,
.btn-primary,
.button-primary,
.primary-button,
.primary-btn,
button.primary,
a.primary-button,
input[type="submit"].primary,
.btn:not(.btn-secondary):not(.btn-light),
.offer,
.catalog-section-icon {
    color: #ffffff !important;
    background: linear-gradient(105deg, #2f9ef2, #2475ef) !important;
    border-color: #2f9ef2 !important;
}

/* Normalize blue emphasis used for prices, links, and small interface icons. */
.shop-price,
.shop-wallet strong,
.shop-eyebrow,
.text-action,
.catalog-tab-icon,
.catalog-category-link[aria-current="page"] .catalog-tab-icon,
header.rysa-shared-header .mobile-nav-icon,
header.rysa-shared-header .mobile-tools-submenu a.mobile-tools-sub-link svg,
.rysa-global-menu-links a svg {
    color: #2f9ef2 !important;
}

/* Standard blue focus treatment across forms and controls. */
:focus-visible {
    outline-color: #2f9ef2 !important;
}

/* The brand's own footer already uses this tone; keep it unchanged. */
#sokongan.rysa-footer {
    background: #070b19 !important;
    background-image: none !important;
}
