/* ==========================================================================
   Radian Theme — Core Styles
   ========================================================================== */

/* --- Reset & Base --- */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --color-primary:       #111827;
    --color-primary-hover: #1f2937;
    --color-accent:        #1B2A3B;
    --color-accent-light:  #A8C7E8;
    --color-text:          #374151;
    --color-text-muted:    #6B7280;
    --color-text-light:    #9CA3AF;
    --color-border:        #E5E7EB;
    --color-bg:            #FFFFFF;
    --color-bg-alt:        #F9FAFB;
    --color-bg-card:       #F6F7F8;
    --color-success:       #16A34A;
    --color-error:         #DC2626;
    --color-warning:       #854D0E;
    --color-primary-contrast: #FFFFFF;

    --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   12px;
    --radius-xl:   15px;
    --radius-full: 999px;
    --max-width:   1320px;
    --header-h:    72px;
}

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 18px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--color-primary);
    line-height: 1.2;
    margin-top: 0;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 600; }

/* --- Layout --- */

.radian-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}
@media (max-width: 640px) { .radian-container { padding: 0 1.25rem; } }

.site-main { min-height: 60vh; padding-top: calc(var(--header-h) + 15px); padding-bottom: 2rem; }

/* Front page: hero bleeds directly under header, cta-banner bleeds into footer */
body.home .site-main { padding-top: 0; padding-bottom: 0; }

/* WP Admin Bar offset
   Note: WP core already pushes the whole document down via `html { margin-top }`
   (32px, 46px under 782px) whenever the admin bar is showing, so .site-main
   (normal flow) shifts with it automatically — it must NOT also add the bar's
   height itself, or logged-in users get double the gap that guests get.
   Only genuinely `position:fixed` elements (header, mobile menu) need a
   manual offset here, since fixed positioning ignores the html margin. */
body.admin-bar .site-header { top: 32px; }
body.admin-bar .radian-mobile-menu { top: 32px; }
body.home.admin-bar .site-main { padding-top: 0; }
@media (max-width: 782px) {
    body.admin-bar .site-header { top: 46px; }
    body.admin-bar .radian-mobile-menu { top: 46px; }
    body.home.admin-bar .site-main { padding-top: 0; }
}
@media screen and (max-width: 600px) {
    /* WP core switches #wpadminbar to position:absolute below 600px so it scrolls
       away with the page. Our fixed .site-header assumes it stays put at top:46px,
       which leaves an empty gap once the bar scrolls out of view. Keep it fixed. */
    #wpadminbar { position: fixed !important; }
}

/* --- Page Header Banner (reusable dark hero — Contact page, and any Page with
   the "Show Header Banner" ACF toggle enabled, e.g. Privacy Policy) --- */

.site-main.has-page-header-banner { padding-top: 0; }

.radian-page-header {
    background: linear-gradient(135deg, #1B2A3B 0%, #2d3f52 60%, #3d5068 100%);
    padding: calc(var(--header-h) + 40px) 2rem 48px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.radian-page-header-content { position: relative; z-index: 2; }

.radian-page-header-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.75rem;
}

.radian-page-header h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.03em;
    margin: 0 auto 0.75rem;
}

.radian-page-header-sub {
    font-size: 1rem;
    color: rgba(255,255,255,0.65);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.65;
}

.radian-page-header-graphic {
    position: absolute;
    right: -20px;
    bottom: -20px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 1;
}

.radian-page-header-chevrons {
    width: 260px;
    height: 180px;
    color: #fff;
}

/* Uploaded background photo: fills the right side of the banner, faded via
   opacity + a left-edge mask so it blends into the gradient instead of the
   small fixed-size default chevron graphic above. */
.radian-page-header-graphic.has-image {
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: 45%;
    max-width: 480px;
    opacity: 0.5;
    -webkit-mask-image: linear-gradient(to left, #000 30%, transparent 95%);
            mask-image: linear-gradient(to left, #000 30%, transparent 95%);
}

.radian-page-header-graphic.has-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Header --- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-h);
}

.radian-header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1.5rem;
}

/* Logo */
.radian-header-logo { flex-shrink: 0; }
.radian-logo-text,
.radian-footer-logo {
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    gap: 0;
}
.radian-logo-bold { font-weight: 800; }
.radian-logo-light { font-weight: 300; }
.custom-logo-link img { height: 38px; width: auto; }

/* Nav */
.radian-nav { flex: 1; display: flex; justify-content: center; }
.radian-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}
.radian-nav-list li a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text);
    padding: 0.25rem 0;
    transition: color 0.15s;
}
.radian-nav-list li a:hover,
.radian-nav-list li.current-menu-item > a { color: var(--color-primary); }

/* Header Actions */
.radian-header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
/* Fixed-size circular icon buttons must never be flex-shrunk — squishes
   them into ovals once the row runs out of room (narrow mobile widths). */
.radian-header-actions > * { flex-shrink: 0; }

.radian-header-account {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 0.4rem 1rem 0.4rem 0.7rem;
    transition: border-color 0.15s, background 0.15s;
}
.radian-header-account:hover {
    border-color: var(--color-text-light);
    background: var(--color-bg-alt);
    color: var(--color-primary);
}

.radian-header-darkmode,
.radian-header-cart,
.radian-header-favorites {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    color: var(--color-text);
    transition: border-color 0.15s, background 0.15s;
    position: relative;
}
.radian-header-darkmode:hover,
.radian-header-cart:hover,
.radian-header-favorites:hover {
    border-color: var(--color-text-light);
    background: var(--color-bg-alt);
}

/* ==========================================================================
   FiboSearch — Premium search (header trigger, floating panel, results)
   The suggestions dropdown is appended to <body> by the plugin, so those
   rules are global (not scoped under .radian-header-search) and lean on
   !important to win over the plugin's hard-coded colours regardless of the
   stylesheet load order. Everything reads from the theme's CSS variables so
   it adapts automatically to dark mode.
   ========================================================================== */

/* --- Header trigger icon --- */
.radian-header-search .dgwt-wcas-search-wrapp {
    min-width: unset;
    width: auto;
    margin: 0;
    color: var(--color-text);
}
html:not(.dgwt-wcas-overlay-mobile-on) .radian-header-search .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon {
    max-width: none;
    width: 40px;
}
.radian-header-search .dgwt-wcas-search-icon,
.radian-header-search li.menu-item a.dgwt-wcas-search-icon {
    width: 40px;
}
.radian-header-search .dgwt-wcas-search-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.radian-header-search .dgwt-wcas-search-icon:hover,
.radian-header-search .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon-open .dgwt-wcas-search-icon {
    border-color: var(--color-text-light);
    background: var(--color-bg-alt);
    color: var(--color-primary);
    opacity: 1;
}
.radian-header-search .dgwt-wcas-ico-magnifier-handler {
    width: 16px;
    height: 16px;
    margin-bottom: 0;
}
/* Kill the plugin's little pointer caret under the icon — cleaner */
.radian-header-search .dgwt-wcas-search-icon-arrow { display: none !important; }

/* --- Floating search panel (the form popover) --- */
html:not(.dgwt-wcas-overlay-mobile-on) .radian-header-search .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon .dgwt-wcas-search-form {
    left: auto;
    right: 0;
    min-width: 440px;
    max-width: calc(100vw - 2rem);
    padding: 8px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06),
                0 20px 50px rgba(15, 23, 42, 0.18);
}
/* Entrance animation — tied to the open state so it replays on every open */
html:not(.dgwt-wcas-overlay-mobile-on) .radian-header-search .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon-open .dgwt-wcas-search-form {
    animation: radian-search-pop 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes radian-search-pop {
    from { opacity: 0; transform: translateY(-8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Input pill (retheme of FiboSearch's "pirx" style to match Radian) ---
   The plugin ships the "pirx" preset (.dgwt-wcas-style-pirx): its sf-wrapp is a
   white padded box and its "submit" button is actually a magnifier that slides
   from left→right as you type. We flatten the inner box, retheme the pill, pin
   the magnifier to the left as a static field marker, and keep the × on the
   right. Everything is scoped tightly + !important'd to win over the plugin's
   pixel-specific pirx rules regardless of stylesheet load order. */
.radian-header-search .dgwt-wcas-sf-wrapp { position: relative; }

/* Flatten pirx's inner white box so the floating card is the only panel */
.radian-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp {
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

.radian-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input,
.radian-header-search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    box-sizing: border-box;
    width: 100%;
    height: 52px;
    line-height: normal;
    font-size: 15px;
    font-family: var(--font-primary) !important;
    color: var(--color-text) !important;
    background: var(--color-bg-alt) !important;
    border: 1.5px solid var(--color-border) !important;
    border-radius: var(--radius-lg) !important;
    padding: 0 46px !important;
    box-shadow: none;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
    -webkit-appearance: none;
}
.radian-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input::placeholder,
.radian-header-search .dgwt-wcas-search-input::placeholder {
    color: var(--color-text-light) !important;
    opacity: 1 !important;
    font-weight: 400;
}
.radian-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:hover {
    border-color: var(--color-text-light) !important;
}
.radian-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus,
.radian-header-search .dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    background: var(--color-bg) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08) !important;
    outline: none;
}
body.dark-mode .radian-header-search .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus,
body.dark-mode .radian-header-search .dgwt-wcas-style-pirx.dgwt-wcas-search-focused .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input {
    box-shadow: 0 0 0 3px rgba(243, 244, 246, 0.10) !important;
}

/* Leading magnifier — pin pirx's sliding submit icon to the left as a static
   field marker and recolour it (both empty + filled states) */
.radian-header-search .dgwt-wcas-sf-wrapp button.dgwt-wcas-search-submit {
    left: 16px !important;
    right: auto !important;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    width: 20px !important;
    min-width: 20px !important;
    height: 20px !important;
    min-height: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.radian-header-search .dgwt-wcas-search-submit svg { width: 18px; height: 18px; }
.radian-header-search .dgwt-wcas-search-submit svg path { fill: var(--color-text-muted) !important; }
.radian-header-search .dgwt-wcas-search-submit:hover svg path { fill: var(--color-primary) !important; }

/* Close (×) — the preloader element re-tasked when text exists; keep it flush
   right (pirx + JS otherwise push it left to clear the sliding magnifier) */
.radian-header-search .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader) {
    right: 14px !important;
    left: auto !important;
    margin-right: 0 !important;
    width: 20px !important;
}
.radian-header-search .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader) path { fill: var(--color-text-muted) !important; }
.radian-header-search .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader):hover { opacity: 1; }
.radian-header-search .dgwt-wcas-close:not(.dgwt-wcas-inner-preloader):hover path { fill: var(--color-primary) !important; }

/* --- Results dropdown (appended to <body>) --- */
.dgwt-wcas-suggestions-wrapp {
    background: var(--color-bg) !important;
    border: 1px solid var(--color-border) !important;
    border-radius: var(--radius-xl) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06),
                0 20px 50px rgba(15, 23, 42, 0.18) !important;
    padding: 6px !important;
    margin-top: 8px !important;
    overflow-y: auto;
    overscroll-behavior: contain;
    animation: radian-search-pop 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Thin, unobtrusive scrollbar */
.dgwt-wcas-suggestions-wrapp { scrollbar-width: thin; scrollbar-color: var(--color-border) transparent; }
.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar { width: 8px; }
.dgwt-wcas-suggestions-wrapp::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 999px; border: 2px solid var(--color-bg); }

/* Result row */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion {
    border: none !important;
    border-radius: var(--radius-md);
    padding: 9px 12px !important;
    gap: 12px;
    transition: background 0.13s ease !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion:hover,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion.dgwt-wcas-suggestion-selected {
    background: var(--color-bg-alt) !important;
}

/* Thumbnail */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si {
    width: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-si img {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 3px;
}

/* Title + description */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-content-wrapp { min-width: 0; flex: 1; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st { min-width: 0; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title {
    font-size: 14.5px;
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
    letter-spacing: 0.01em;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-title strong,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion strong {
    font-weight: 700;
    color: var(--color-primary);
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sd {
    font-size: 12px;
    color: var(--color-text-muted);
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Price */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp {
    font-size: 14px;
    line-height: 1.3;
    text-align: right;
    padding-left: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    color: var(--color-primary);
}
/* Keep a "$min – $max" range on one line. The plugin forces .dgwt-wcas-sp > *
   to display:block (so sale del/ins stack vertically), which wrongly stacks a
   range's two amounts + dash onto separate lines. Re-inline only the direct
   amount children — sale prices (amounts nested in del/ins) stay stacked. */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp > .woocommerce-Price-amount { display: inline !important; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp del {
    color: var(--color-text-light);
    font-size: 12px;
    opacity: 1;
    text-decoration: line-through;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp ins {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp .woocommerce-Price-amount { font-weight: 700; color: var(--color-primary); }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-sp del .woocommerce-Price-amount { font-weight: 400; color: var(--color-text-light); }

/* Section headings (categories / brands etc.) */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-headline {
    padding: 10px 12px 4px !important;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* "Show all results" footer row */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more {
    justify-content: center !important;
    margin-top: 4px;
    padding: 12px !important;
    border-top: 1px solid var(--color-border) !important;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    font-weight: 600;
    color: var(--color-primary) !important;
}
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-more:hover { background: var(--color-bg-alt) !important; }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-more { color: var(--color-primary); }
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-st-more-total { color: var(--color-text-muted); font-weight: 500; }

/* No results */
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-suggestion-nores,
.dgwt-wcas-suggestions-wrapp .dgwt-wcas-nores {
    padding: 22px 16px !important;
    text-align: center;
    color: var(--color-text-muted);
    font-size: 14px;
}

@media (max-width: 480px) {
    html:not(.dgwt-wcas-overlay-mobile-on) .radian-header-search .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon .dgwt-wcas-search-form {
        min-width: 280px;
    }
}

.radian-cart-count,
.radian-favorites-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--color-primary);
    color: var(--color-primary-contrast);
    font-size: 0.65rem;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Mobile Toggle */
.radian-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid var(--color-border);
    background: transparent;
    cursor: pointer;
    color: var(--color-text);
    transition: border-color 0.15s, background 0.15s;
}
.radian-mobile-toggle:hover {
    border-color: var(--color-text-light);
    background: var(--color-bg-alt);
}

@media (max-width: 768px) {
    .radian-nav { display: none; }
    .radian-header-account span { display: none; }
    .radian-header-account { padding: 0.3rem; }
    .radian-mobile-toggle { display: inline-flex; }

    /* Logo + search + account + darkmode + favorites + cart + hamburger
       all fit in one row at full desktop size only above ~500px. Below
       768px, tighten padding/gaps and shrink the icon buttons so the row
       doesn't overflow (which forces flexbox to squish everything). */
    .radian-header-inner { padding: 0 0.75rem; gap: 0.5rem; }
    .radian-header-actions { gap: 0.3rem; }
    .custom-logo-link img { height: 30px; }

    .radian-header-darkmode,
    .radian-header-cart,
    .radian-header-favorites,
    html:not(.dgwt-wcas-overlay-mobile-on) .radian-header-search .dgwt-wcas-search-wrapp.dgwt-wcas-layout-icon,
    .radian-header-search .dgwt-wcas-search-icon {
        width: 32px;
        height: 32px;
    }
    .radian-mobile-toggle { width: 30px; height: 30px; }
}

/* Mobile Menu */
.radian-mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.radian-mobile-menu.is-open {
    opacity: 1;
    visibility: visible;
}
.radian-mobile-menu-inner {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--color-bg);
    padding: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}
.radian-mobile-menu.is-open .radian-mobile-menu-inner {
    transform: translateX(0);
}
.radian-mobile-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--color-text);
    margin-left: auto;
    margin-bottom: 1rem;
}
.radian-mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.radian-mobile-nav-list li a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
}

/* --- Buttons --- */

.radian-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-primary);
    color: var(--color-primary-contrast);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: background 0.18s, transform 0.18s;
    letter-spacing: 0.01em;
}
.radian-btn:hover {
    background: var(--color-primary-hover);
    color: var(--color-primary-contrast);
    transform: translateY(-1px);
}
.radian-btn svg { width: 15px; height: 15px; flex-shrink: 0; }

.radian-btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}
.radian-btn-outline:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border-color: var(--color-text-light);
}

/* --- Footer --- */

.radian-footer-main {
    border-top: 1px solid var(--color-border);
    padding: 3.5rem 0;
}

.radian-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
}
@media (max-width: 768px) {
    .radian-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .radian-footer-grid { grid-template-columns: 1fr; }
}

.radian-footer-brand .radian-footer-logo { margin-bottom: 0.75rem; display: block; }

.radian-footer-tagline {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.radian-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 0.5rem 1rem;
    transition: border-color 0.15s;
}
.radian-whatsapp-btn:hover { border-color: var(--color-text-light); color: var(--color-primary); }

.radian-footer-links h4 {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}
.radian-footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.radian-footer-menu li { margin-bottom: 0.6rem; }
.radian-footer-menu li a {
    font-size: 0.88rem;
    color: var(--color-text);
    transition: color 0.15s;
}
.radian-footer-menu li a:hover { color: var(--color-primary); }

.radian-footer-disclaimer {
    border-top: 1px solid var(--color-border);
    padding: 1.75rem 0;
}
.radian-footer-disclaimer p {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: 0 0 0.75rem;
}
.radian-footer-disclaimer p:last-child { margin-bottom: 0; }
.radian-footer-disclaimer strong { color: var(--color-text); }

.radian-footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 1.25rem 0;
}
.radian-footer-bottom p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
}

/* --- Page Titles --- */

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

.entry-content {
    line-height: 1.75;
    margin-bottom: 2rem;
}
.entry-content p { margin-bottom: 1rem; }

/* --- Technical Specs --- */

.radian-tech-specs {
    margin-top: 0; /* the product flex row-gap spaces sections */
    clear: both;
}

.radian-spec-card {
    background: var(--color-bg-card);
    border-radius: var(--radius-xl);
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid var(--color-border);
}
.radian-spec-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.75rem;
}
.radian-spec-card p { margin-bottom: 0.35rem; color: var(--color-text); }

.radian-spec-card-warning {
    border-left: 3px solid var(--color-accent);
}

.radian-spec-row {
    display: flex;
    gap: 25px;
    margin-bottom: 0;
}
.radian-spec-col-half { flex: 1; min-width: 0; }
.radian-spec-col-full { width: 100%; }
@media (max-width: 768px) {
    .radian-spec-row { flex-direction: column; }
}

/* --- Utility --- */

.radian-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
    display: block;
}

/* --- Dark Mode --- */

body.dark-mode {
    --color-primary:       #F3F4F6;
    --color-primary-hover: #E5E7EB;
    --color-primary-contrast: #111827;
    --color-text:          #D1D5DB;
    --color-text-muted:    #9CA3AF;
    --color-text-light:    #6B7280;
    --color-border:        #374151;
    --color-bg:            #111827;
    --color-bg-alt:        #1F2937;
    --color-bg-card:       #1F2937;
}
body.dark-mode .site-header { background: #111827; }
body.dark-mode .radian-icon-moon { display: none; }
body.dark-mode .radian-icon-sun { display: block !important; }
body.dark-mode .custom-logo-link img { filter: brightness(0) invert(1); }

/* --- Breadcrumbs --- */

.woocommerce-breadcrumb {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
    padding: 0;
}
.woocommerce-breadcrumb a {
    color: var(--color-text-muted);
    transition: color 0.15s;
}
.woocommerce-breadcrumb a:hover { color: var(--color-primary); }
