/*
Theme Name: Royal Ribbons Theme
Theme URI: https://royalribbons.in
Author: Antigravity
Author URI: https://royalribbons.in
Description: Premium, luxury tech eCommerce theme for Royal Ribbons.
Version: 1.0.0
Requires at least: 5.0
Tested up to: 6.4
Requires PHP: 7.4
Text Domain: royalribbons
*/

/* 
=========================================================
   GLOBAL VARIABLES & DESIGN SYSTEM
========================================================= 
*/
:root {
    --color-primary: #002366;
    /* Royal Navy */
    --color-secondary: #C0C0C0;
    /* Silver */
    --color-text-main: #1A1A1A;
    /* Deep Charcoal */
    --color-text-light: #555555;
    --color-bg-white: #FFFFFF;
    --color-bg-offwhite: #F8F9FA;

    --font-primary: 'Inter', 'Roboto', sans-serif;

    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 30px rgba(0, 35, 102, 0.15);
}

/* 
=========================================================
   RESET & FOUNDATION
========================================================= 
*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text-main);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    -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;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-text-main);
}

/* 
=========================================================
   HERO SECTION (BEM CONVENTION)
========================================================= 
*/
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--color-text-main);
    /* Fallback */
}

.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Desktop Banner */
.hero__bg-img--desktop {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Mobile Banner */
.hero__bg-img--mobile {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 100%);
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    animation: fadeInUp 1s var(--transition-smooth) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.hero__title {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-bg-white);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.hero__subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--color-secondary);
    margin-bottom: 35px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Premium Primary Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 18px 36px;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: none;
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: 0 6px 20px rgba(0, 35, 102, 0.4);
}

.btn--primary:hover {
    background-color: #001644;
    /* Darker Navy */
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    color: var(--color-bg-white);
}

.btn--primary:active {
    transform: translateY(0);
}

/* Keyframes */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
=========================================================
   MEDIA QUERIES
========================================================= 
*/
@media (min-width: 768px) {
    .hero__bg-img--mobile {
        display: none;
    }

    .hero__bg-img--desktop {
        display: block;
    }

    .hero__content {
        text-align: left;
        padding-left: 5%;
        margin: 0 auto;
        width: 100%;
    }

    .hero__title {
        font-size: 4.5rem;
        margin-bottom: 20px;
    }

    .hero__subtitle {
        font-size: 1.5rem;
        margin-bottom: 45px;
        max-width: 80%;
    }
}

/* 
=========================================================
   LAYOUT UTILITY
========================================================= 
*/
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 
=========================================================
   HERO — Eyebrow Tag
========================================================= 
*/
.hero__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-secondary);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(192,192,192,0.35);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 18px;
    backdrop-filter: blur(4px);
}

/* 
=========================================================
   PHASE 9 — SITE HEADER (Complete Rebuild)
   Flexbox: logo left · nav center · icons right
=========================================================
*/
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: transparent;
    transition:
        background   var(--transition-smooth),
        padding      var(--transition-smooth),
        box-shadow   var(--transition-smooth);
}

/* Scrolled state — glass morphism */
.is-scrolled .site-header {
    background: rgba(5, 10, 25, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.25);
}

/* Scrolled: also lock dark on non-hero pages */
body:not(.home) .site-header {
    background: rgba(5, 10, 25, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 14px 0;
}

/* Inner flex row */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

/* ---- LOGO ---- */
.site-header__logo,
.custom-logo-link {
    flex-shrink: 0;
    text-decoration: none;
    z-index: 2;
    display: flex;
    align-items: center;
    line-height: 0; /* removes ghost space below inline img */
}

/* The actual logo image */
.site-header__logo-img,
.custom-logo-link img {
    display: block;
    max-height: 80px;        /* tall enough for the arch logo to read clearly */
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: filter var(--transition-fast), opacity var(--transition-fast);
}

.site-header__logo:hover .site-header__logo-img,
.custom-logo-link:hover img {
    filter: brightness(1.1);
    opacity: 0.92;
}

@media (max-width: 767px) {
    /* Slightly smaller on mobile but still clearly legible */
    .site-header__logo-img,
    .custom-logo-link img {
        max-height: 56px;
        max-width: 150px;
    }
}

/* Keep text-logo rules hidden (mobile drawer logo still uses the text span) */
.site-header__logo-text {
    display: none;
}


/* ---- CENTER NAV (desktop only ≥ 1024px) ---- */
.site-header__nav {
    display: none; /* mobile: hidden; desktop: flex via media query */
    align-items: center;
    justify-content: center;
    flex: 1;
}

.site-header__nav-list {
    display: flex;
    align-items: center;
    gap: 30px;       /* exactly 30px as specified */
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-header__nav-link {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    position: relative;
    padding-bottom: 4px;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Animated underline on hover */
.site-header__nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    border-radius: 2px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header__nav-link:hover {
    color: var(--color-bg-white);
}

.site-header__nav-link:hover::after,
.site-header__nav-link--active::after {
    width: 100%;
}

.site-header__nav-link--active {
    color: var(--color-bg-white);
}

/* ---- RIGHT ICON GROUP ---- */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

/* Shared icon button style: works for both <a> and <button> */
.site-header__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.85);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    line-height: 1;
    transition:
        color      0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform  0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.site-header__action-btn:hover {
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* Cart icon + badge */
.site-header__cart {
    position: relative;
}

.site-header__cart-count {
    position: absolute;
    top: -7px;
    right: -9px;
    background: var(--color-primary); /* Royal Navy = #002366 */
    color: var(--color-bg-white);
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0,0,0,0.6);
    line-height: 1;
    pointer-events: none;
    transform: none;
}

/* Hide badge if count is 0 */
.site-header__cart-count:empty,
.site-header__cart-count[aria-label="Cart items"] {
    display: flex;
}

/* ---- HAMBURGER (mobile only) ---- */
.site-header__hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: background 0.2s ease;
    z-index: 2;
}

.site-header__hamburger:hover {
    background: rgba(255,255,255,0.08);
}

.site-header__hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-bg-white);
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
}

/* Hamburger → × morph */
.site-header__hamburger.is-active .site-header__hamburger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header__hamburger.is-active .site-header__hamburger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header__hamburger.is-active .site-header__hamburger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ---- DESKTOP BREAKPOINT ≥ 1024px ---- */
@media (min-width: 1024px) {
    .site-header__nav {
        display: flex; /* show center nav */
    }
    .site-header__hamburger {
        display: none; /* hide hamburger */
    }
}

/* -------- BODY LOCKS (when overlays are open) -------- */
body.menu-is-open,
body.search-is-open {
    overflow: hidden;
}

/* ==========================================================
   PHASE 9 — WOOCOMMERCE SEARCH OVERLAY
   Full-screen, blur backdrop, 24px massive input
========================================================== */
.rr-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-search-overlay.is-open {
    pointer-events: all;
    opacity: 1;
}

/* Blurred backdrop */
.rr-search-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 25, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

/* White panel sliding down from top */
.rr-search-overlay__panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--color-bg-white);
    padding: 28px 0 36px;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    max-width: 100%;
}

.rr-search-overlay.is-open .rr-search-overlay__panel {
    transform: translateY(0);
}

/* Close button (top right) */
.rr-search-overlay__close {
    position: absolute;
    top: 20px;
    right: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: var(--color-bg-offwhite);
    color: var(--color-text-main);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rr-search-overlay__close:hover {
    background: rgba(0, 35, 102, 0.08);
    color: var(--color-primary);
}

/* "Search Products" label */
.rr-search-overlay__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    text-align: center;
    margin: 0 0 24px;
}

/* Search form wrapper */
.rr-search-overlay__form {
    max-width: 760px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Input wrapper: icon + input side by side */
.rr-search-overlay__input-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.12);
    padding-bottom: 8px;
    margin-bottom: 24px;
    transition: border-color 0.3s ease;
}

.rr-search-overlay__input-wrap:focus-within {
    border-bottom-color: var(--color-primary);
}

.rr-search-overlay__icon {
    color: var(--color-text-light);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.rr-search-overlay__input-wrap:focus-within .rr-search-overlay__icon {
    color: var(--color-primary);
}

/* THE MASSIVE SEARCH INPUT (24px as specified) */
.rr-search-overlay__input {
    flex: 1;
    font-size: 1.5rem; /* 24px */
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--color-text-main);
    background: transparent;
    border: none;
    outline: none;
    padding: 8px 0;
    width: 100%;
    caret-color: var(--color-primary);
    -webkit-appearance: none;
    appearance: none;
}

.rr-search-overlay__input::placeholder {
    color: rgba(0, 0, 0, 0.2);
    font-weight: 300;
}

@media (min-width: 768px) {
    .rr-search-overlay__input {
        font-size: 2rem; /* even bigger on desktop */
    }
}

/* Submit button */
.rr-search-overlay__submit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin: 0 auto;
    transition:
        background  0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-search-overlay__submit:hover {
    background: #001644;
    transform: translateY(-1px);
}

/* Quick category browse links */
.rr-search-overlay__quick-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.rr-search-overlay__quick-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.rr-search-overlay__quick-links a {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid rgba(0, 35, 102, 0.2);
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-search-overlay__quick-links a:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-color: var(--color-primary);
}

/* Body scroll lock — toggled by JS as .lock-scroll */
body.lock-scroll {
    overflow: hidden !important;
}

/* Root container — occupies full viewport, pointer-events off by default */
.rr-mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 99997;          /* root layer */
    pointer-events: none;
    visibility: hidden;      /* completely hidden until .is-active */
    transition: visibility 0s 0.4s; /* delay matches slide duration */
}

.rr-mobile-drawer.is-active {
    pointer-events: all;
    visibility: visible;
    transition: visibility 0s 0s;
}

/* Dark blurred backdrop  z-index: 99998 */
.rr-mobile-drawer__overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.rr-mobile-drawer.is-active .rr-mobile-drawer__overlay {
    opacity: 1;
}

/* Drawer panel — position: fixed, z-index: 99999 (topmost layer) */
.rr-mobile-drawer__panel {
    position: fixed;          /* CRITICAL: fixed so it escapes stacking context */
    top: 0;
    right: 0;
    height: 100vh;
    width: 85%;              /* 85% of viewport as specified */
    max-width: 400px;        /* cap at 400px on large phones */
    background: #ffffff;
    z-index: 99999;          /* insanely high — overlaps header, side cart, everything */
    display: flex;
    flex-direction: column;
    transform: translateX(100%);   /* hidden off-screen to the right */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    box-shadow: -12px 0 60px rgba(0, 0, 0, 0.25);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Slide IN when .is-active is on the root */
.rr-mobile-drawer.is-active .rr-mobile-drawer__panel {
    transform: translateX(0);
}

/* Drawer head: logo + close */
.rr-mobile-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-shrink: 0;
    background: #ffffff;
}

.rr-mobile-drawer__logo {
    text-decoration: none;
}

/* Logo colours on white background */
.rr-mobile-drawer__logo .site-header__logo-text {
    color: var(--color-text-main);
}

.rr-mobile-drawer__logo .site-header__logo-text strong {
    color: var(--color-primary);
}

.rr-mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    border: none;
    background: var(--color-bg-offwhite);
    color: var(--color-text-main);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.rr-mobile-drawer__close:hover {
    background: rgba(0,35,102,0.08);
    color: var(--color-primary);
}

/* Nav links — 1.2rem (≈20px) bold, 18px 28px padding (highly clickable) */
.rr-mobile-drawer__links {
    list-style: none;
    padding: 12px 0;
    margin: 0;
    flex: 1;
}

.rr-mobile-drawer__item {
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rr-mobile-drawer__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 28px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-decoration: none;
    transition:
        color        0.3s cubic-bezier(0.16, 1, 0.3, 1),
        background   0.3s cubic-bezier(0.16, 1, 0.3, 1),
        padding-left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-tap-highlight-color: transparent;
}

.rr-mobile-drawer__link:hover,
.rr-mobile-drawer__link:active {
    color: var(--color-primary);
    background: rgba(0, 35, 102, 0.04);
    padding-left: 36px;
}

.rr-mobile-drawer__arrow {
    color: var(--color-text-light);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
}

.rr-mobile-drawer__link:hover .rr-mobile-drawer__arrow {
    transform: translateX(4px);
    color: var(--color-primary);
}

/* Drawer footer: account + cart shortcut buttons */
.rr-mobile-drawer__footer {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-shrink: 0;
    background: #ffffff;
}

.rr-mobile-drawer__account {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    background: var(--color-bg-offwhite);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.rr-mobile-drawer__account svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.rr-mobile-drawer__account:hover {
    background: rgba(0,35,102,0.08);
    color: var(--color-primary);
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
    .site-header__hamburger {
        display: none;
    }
}

/* 
=========================================================
   SITE FOOTER
========================================================= 
*/
.site-footer {
    background-color: #0A0F1E;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.site-footer__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 20px 48px;
}

/* Footer Logo */
.site-footer__logo {
    display: inline-block;
    margin-bottom: 18px;
    text-decoration: none;
}

.site-footer__logo-text {
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--color-bg-white);
    letter-spacing: 0.02em;
}

.site-footer__logo-text strong {
    font-weight: 700;
    color: var(--color-secondary);
}

.site-footer__about-text {
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    max-width: 320px;
    margin-bottom: 24px;
}

/* Social Icons */
.site-footer__social {
    display: flex;
    gap: 14px;
}

.site-footer__social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    color: rgba(255,255,255,0.6);
    transition: all var(--transition-smooth);
}

.site-footer__social-link:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-3px);
}

/* Column Headings */
.site-footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-bg-white);
    margin-bottom: 20px;
}

/* Link Lists */
.site-footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__links a {
    color: rgba(255,255,255,0.55);
    font-size: 0.9rem;
    transition: color var(--transition-fast), padding-left var(--transition-fast);
}

.site-footer__links a:hover {
    color: var(--color-bg-white);
    padding-left: 4px;
}

/* Newsletter Form */
.site-footer__newsletter-text {
    color: rgba(255,255,255,0.55);
    margin-bottom: 20px;
    line-height: 1.7;
}

.site-footer__newsletter-input-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-footer__newsletter-input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 4px;
    color: var(--color-bg-white);
    font-family: var(--font-primary);
    font-size: 0.9rem;
    transition: border-color var(--transition-fast);
    outline: none;
}

.site-footer__newsletter-input::placeholder {
    color: rgba(255,255,255,0.3);
}

.site-footer__newsletter-input:focus {
    border-color: var(--color-secondary);
}

.site-footer__newsletter-btn {
    padding: 14px 24px;
    font-size: 0.85rem;
    width: 100%;
}

/* Footer Bottom Bar */
.site-footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
}

.site-footer__bottom-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.site-footer__copyright {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
}

.site-footer__legal-links {
    display: flex;
    gap: 20px;
}

.site-footer__legal-links a {
    color: rgba(255,255,255,0.35);
    font-size: 0.8rem;
    transition: color var(--transition-fast);
}

.site-footer__legal-links a:hover {
    color: rgba(255,255,255,0.7);
}

/* Footer Responsive Grid */
@media (min-width: 640px) {
    .site-footer__main {
        grid-template-columns: 1fr 1fr;
    }

    .site-footer__newsletter-input-wrap {
        flex-direction: row;
    }

    .site-footer__newsletter-btn {
        width: auto;
        flex-shrink: 0;
    }
}

@media (min-width: 1024px) {
    .site-footer__main {
        grid-template-columns: 2fr 1fr 1fr 1.5fr;
        gap: 60px;
        padding: 80px 20px 60px;
    }

    .site-footer__bottom-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

/* 
=========================================================
   PHASE 3 — SECTION UTILITIES
   Shared layout, eyebrow, title, subtitle for every
   homepage section.
========================================================= 
*/
.section {
    padding: 80px 0;
}

.section--alt {
    background-color: var(--color-bg-offwhite);
}

.section__header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 60px;
}

.section__eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section__title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section__subtitle {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .section {
        padding: 100px 0;
    }

    .section__title {
        font-size: 2.75rem;
    }

    .section__subtitle {
        font-size: 1.05rem;
    }
}

/* 
=========================================================
   CATEGORY CARD GRID
   2 columns mobile / 4 columns desktop
   Hardware-accelerated hover: lift + shadow + image scale
========================================================= 
*/
.categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 1024px) {
    .categories__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
    }
}

/* Card Shell */
.category-card {
    border-radius: 12px;
    overflow: hidden;
    background: var(--color-bg-white);
    box-shadow: 0 2px 12px rgba(0,0,0,0.07);
    will-change: transform;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 35, 102, 0.14);
}

.category-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* Image Container */
.category-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--color-bg-offwhite);
}

.category-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.category-card:hover .category-card__img {
    transform: scale(1.05);
}

/* Card Body */
.category-card__body {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.category-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.category-card__desc {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-card__cta {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: gap var(--transition-fast), letter-spacing var(--transition-fast);
}

.category-card:hover .category-card__cta {
    letter-spacing: 0.08em;
}

@media (min-width: 768px) {
    .category-card__body {
        padding: 22px 20px 24px;
    }

    .category-card__title {
        font-size: 1.1rem;
    }

    .category-card__desc {
        font-size: 0.875rem;
    }
}

/* 
=========================================================
   PRODUCT CARD GRID — New Arrivals
   Clean, borderless cards on off-white bg
   Apple/Zebronics grade spacing and type
========================================================= 
*/
.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

@media (min-width: 640px) {
    .products__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .products__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* Product Card Shell */
.product-card {
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1),
                box-shadow 0.35s cubic-bezier(0.4,0,0.2,1);
    will-change: transform;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 35, 102, 0.12);
}

/* Image Block */
.product-card__img-link {
    display: block;
    text-decoration: none;
}

.product-card__img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #F2F4F8;
}

.product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* contain: keeps product image fully visible */
    object-position: center;
    padding: 12px;
    will-change: transform;
    transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.product-card:hover .product-card__img {
    transform: scale(1.04);
}

/* Placeholder if no image */
.product-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EEF0F5;
}

/* Sale / Featured Badge */
.product-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
    line-height: 1;
}

.product-card__badge--sale {
    background: #E8002D;
    color: #fff;
}

.product-card__badge--featured {
    background: var(--color-primary);
    color: #fff;
}

/* Card Body */
.product-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.product-card__title-link {
    text-decoration: none;
}

.product-card__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
    /* Clamp to 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--transition-fast);
}

.product-card__title-link:hover .product-card__title {
    color: var(--color-primary);
}

/* Price — WooCommerce injects its own markup */
.product-card__price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    line-height: 1;
    flex: 1;
    align-self: flex-start;
}

/* WC .woocommerce-Price-amount */
.product-card__price .woocommerce-Price-amount {
    color: var(--color-text-main);
}

/* Sale price layout */
.product-card__price del {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-light);
    margin-right: 4px;
    display: inline;
}

.product-card__price ins {
    font-weight: 700;
    text-decoration: none;
    color: #E8002D;
}

/* Add to Cart Button on product card */
.btn--atc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 6px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background var(--transition-fast),
                transform var(--transition-fast),
                box-shadow var(--transition-fast);
    margin-top: auto;
    width: 100%;
}

.btn--atc:hover {
    background: #001644;
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,35,102,0.3);
}

.btn--atc svg {
    flex-shrink: 0;
}

/* "View Options" variant for variable products */
.btn--atc-view {
    background: transparent;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--atc-view:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
    box-shadow: none;
}

/* Out of Stock State */
.product-card__atc--oos {
    display: block;
    margin-top: auto;
    padding: 12px 18px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-text-light);
    background: #F2F4F8;
    border-radius: 6px;
    cursor: not-allowed;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* WC Loading/Added state classes */
.product-card__atc.loading {
    opacity: 0.65;
    pointer-events: none;
}

.product-card__atc.added {
    background: #155724;
}

/* View All CTA Row */
.products__footer {
    text-align: center;
    margin-top: 56px;
}

/* Outline Button Variant */
.btn--outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
    transition: all var(--transition-smooth);
    text-decoration: none;
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Empty State / Fallback */
.products__empty {
    text-align: center;
    padding: 80px 20px;
    max-width: 480px;
    margin: 0 auto;
}

.products__empty-icon {
    margin-bottom: 24px;
    display: flex;
    justify-content: center;
    opacity: 0.5;
}

.products__empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.products__empty-text {
    font-size: 1rem;
    color: var(--color-text-light);
    line-height: 1.7;
    margin-bottom: 32px;
}

/* ==========================================================
   PHASE 4 — SCROLL ANIMATION BASE STATES
   .js-animate is the initial hidden state.
   .is-visible is applied by Intersection Observer (main.js)
   will-change: transform, opacity ensures GPU compositing.
========================================================== */
.js-animate {
    opacity: 0;
    transform: translateY(30px);
    will-change: transform, opacity;
    transition:
        opacity    0.65s cubic-bezier(0.4, 0, 0.2, 1),
        transform  0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.js-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
    /* transitionDelay is set inline by JS from data-delay */
}

/* ==========================================================
   SECTION: SECTION--DARK MODIFIER
   Deep charcoal background for the Trust section
========================================================== */
.section--dark {
    background-color: #0D1117; /* Near-black with a blue tint */
}

/* Light variants for headings inside dark sections */
.section__header--light {
    color: var(--color-bg-white);
}

.section__eyebrow--light {
    color: rgba(192, 192, 192, 0.8);
}

.section__title--light {
    color: var(--color-bg-white);
}

.section__subtitle--light {
    color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================
   SPLIT PROMO BANNERS
   2 col desktop / 1 col mobile
   Cards: border-radius 12px, overflow hidden, image zoom hover,
   gradient overlay, floating pill CTA button.
========================================================== */
.promo__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media (min-width: 768px) {
    .promo__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* Promo Card — the anchor tag is the card itself */
.promo-card {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    /* Card-level shadow */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform; /* already set via .js-animate */
}

.promo-card:hover {
    box-shadow: 0 20px 50px rgba(0, 35, 102, 0.18);
}

/* Image wrap clips the zooming image */
.promo-card__img-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-offwhite);
}

@media (min-width: 768px) {
    .promo-card__img-wrap {
        aspect-ratio: 2 / 1;
    }
}

/* The image zooms on hover independently — container clips it */
.promo-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    will-change: transform;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.promo-card:hover .promo-card__img {
    transform: scale(1.06);
}

/* Subtle gradient overlay for contrast */
.promo-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 35, 102, 0.25) 0%,
        rgba(0, 0, 0, 0) 60%
    );
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.promo-card:hover .promo-card__overlay {
    opacity: 0.8;
}

/* Pill CTA — floats at the bottom-left of the card */
.promo-card__cta-pill {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: var(--color-bg-white);
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    transition:
        background var(--transition-fast),
        color      var(--transition-fast),
        transform  var(--transition-fast);
    pointer-events: none; /* anchor parent handles clicks */
    white-space: nowrap;
}

.promo-card:hover .promo-card__cta-pill {
    background: var(--color-primary);
    color: var(--color-bg-white);
    transform: translateY(-2px);
}

/* ==========================================================
   TRUST BADGES SECTION
   4-col desktop · 2x2 tablet · 1-col mobile
   Inline SVG icons, bold 16px titles, 14px readable subtext
========================================================== */
.trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 640px) {
    .trust__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
}

@media (min-width: 1024px) {
    .trust__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 40px;
    }
}

/* Trust Card */
.trust-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* left-aligned premium look */
    gap: 14px;
    padding: 32px 28px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background var(--transition-smooth),
                border-color var(--transition-smooth);
}

.trust-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(192, 192, 192, 0.2);
}

/* SVG Icon Wrap */
.trust-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: rgba(0, 35, 102, 0.5); /* Muted Royal Navy */
    color: var(--color-secondary);      /* Silver icon colour */
    flex-shrink: 0;
    transition: background var(--transition-smooth);
}

.trust-card:hover .trust-card__icon {
    background: var(--color-primary);
}

/* Title: bold, 16px, white */
.trust-card__title {
    font-size: 1rem; /* 16px */
    font-weight: 700;
    color: var(--color-bg-white);
    letter-spacing: -0.01em;
    line-height: 1.25;
    margin: 0;
}

/* Subtext: 14px, muted */
.trust-card__text {
    font-size: 0.875rem; /* 14px */
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================
   PHASE 5 — SINGLE PRODUCT PAGE
   Sticky split-screen layout: gallery left · buy zone right
========================================================== */

/* Page wrapper offset (fixed header) */
.site-main--product {
    padding-top: 80px; /* compensate for fixed site-header height */
    padding-bottom: 80px;
}

/* Breadcrumb */
.rr-product__breadcrumb {
    padding: 20px 0 0;
}

.rr-product__breadcrumb .woocommerce-breadcrumb {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

.rr-product__breadcrumb .woocommerce-breadcrumb a {
    color: var(--color-text-light);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.rr-product__breadcrumb .woocommerce-breadcrumb a:hover {
    color: var(--color-primary);
}

/* —————————————————————————————————————————
   SPLIT-SCREEN PRODUCT GRID
   1 col mobile / 2 col (55/45 split) desktop 1024px+
————————————————————————————————————————— */
.rr-product__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 60px;
}

@media (min-width: 1024px) {
    .rr-product__grid {
        grid-template-columns: 55fr 45fr;
        gap: 64px;
        align-items: start; /* critical for sticky to work */
    }
}

/* —————————————————————————————————————————
   LEFT COLUMN — Sticky Gallery
   Sticks at 100px from the top (below fixed nav).
   Subtle gray background makes white products pop.
————————————————————————————————————————— */
.rr-product__gallery {
    position: sticky;
    top: 100px; /* height of fixed header + some gap */
}

/* WooCommerce gallery image container */
.rr-product__gallery .woocommerce-product-gallery {
    border-radius: 16px;
    overflow: hidden;
    background: #F8F9FA; /* subtle gray — makes cartridge/ink artwork pop */
    border: none !important;
    box-shadow: var(--shadow-soft);
}

/* Main gallery image */
.rr-product__gallery .woocommerce-product-gallery__image a {
    display: block;
}

.rr-product__gallery .woocommerce-product-gallery__image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #F8F9FA;
    border: none !important;
    border-radius: 0;
    max-height: 520px;
    padding: 24px;
    box-sizing: border-box;
}

/* Thumbnail strip */
.rr-product__gallery .flex-control-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px 16px;
    background: #F8F9FA;
    border-top: 1px solid rgba(0,0,0,0.06);
    margin: 0;
    list-style: none;
    overflow-x: auto;
}

.rr-product__gallery .flex-control-thumbs li {
    flex-shrink: 0;
}

.rr-product__gallery .flex-control-thumbs img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color var(--transition-fast), opacity var(--transition-fast);
    padding: 4px;
    background: #fff;
    opacity: 0.6;
}

.rr-product__gallery .flex-control-thumbs .flex-active img,
.rr-product__gallery .flex-control-thumbs img:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

/* Hide WooCommerce default image border */
.woocommerce-product-gallery__trigger {
    display: none; /* hide the magnifier icon if using zoom */
}

/* —————————————————————————————————————————
   RIGHT COLUMN — Buy Zone
————————————————————————————————————————— */
.rr-product__buy-zone {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Product Title (WC outputs an h1) */
.rr-product__buy-zone .product_title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin: 24px 0 12px;
}

@media (min-width: 768px) {
    .rr-product__buy-zone .product_title {
        font-size: 2.25rem;
        margin-top: 0; /* no extra top gap on desktop */
    }
}

/* Star Rating */
.rr-product__buy-zone .woocommerce-product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.rr-product__buy-zone .star-rating {
    color: #F5A623;
    font-size: 0.85rem;
}

.rr-product__buy-zone .woocommerce-review-link {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

/* Price Block */
.rr-product__price-wrap {
    margin-bottom: 16px;
}

.rr-product__price-wrap .price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary); /* Royal Navy price */
    line-height: 1;
}

/* Regular (crossed-out) price on sale */
.rr-product__price-wrap .price del {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--color-text-light);
    opacity: 0.75;
    text-decoration: line-through;
}

/* Sale (active) price */
.rr-product__price-wrap .price ins {
    text-decoration: none;
    color: var(--color-primary);
}

/* WC currency symbol */
.rr-product__price-wrap .woocommerce-Price-currencySymbol {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: super;
    line-height: 0;
}

/* Stock Status Badges */
.rr-product__stock {
    margin-bottom: 20px;
}

.rr-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 6px 14px;
    border-radius: 50px;
}

.rr-stock--in {
    background: rgba(22, 163, 74, 0.1);
    color: #15803D; /* emerald green */
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.rr-stock--out {
    background: rgba(220, 38, 38, 0.08);
    color: #B91C1C;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Divider */
.rr-product__divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0 0 24px;
}

/* Short Description */
.rr-product__excerpt {
    margin-bottom: 28px;
}

.rr-product__excerpt p,
.rr-product__excerpt li {
    font-size: 1rem; /* 16px exactly as specified */
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 0 0 8px;
}

/* —————————————————————————————————————————
   ADD TO CART WRAP — Qty + Button in one row
————————————————————————————————————————— */
.rr-product__atc-wrap {
    margin-bottom: 24px;
}

/* WC outputs form.cart — we flex it */
.rr-product__atc-wrap form.cart {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 480px) {
    .rr-product__atc-wrap form.cart {
        flex-direction: row;
        align-items: stretch;
        gap: 12px;
    }
}

/* Custom Quantity Stepper — .rr-qty */
.rr-qty {
    display: flex;
    align-items: center;
    border: 1.5px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: var(--color-bg-white);
    flex-shrink: 0;
    height: 58px;
}

.rr-qty__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text-main);
    transition: background var(--transition-fast), color var(--transition-fast);
    flex-shrink: 0;
}

.rr-qty__btn:hover {
    background: var(--color-bg-offwhite);
    color: var(--color-primary);
}

.rr-qty__btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.rr-qty__btn:disabled:hover {
    background: none;
    color: var(--color-text-main);
}

.rr-qty__input {
    width: 52px;
    height: 100%;
    border: none;
    border-left: 1px solid rgba(0,0,0,0.08);
    border-right: 1px solid rgba(0,0,0,0.08);
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-main);
    background: var(--color-bg-white);
    outline: none;
    -moz-appearance: textfield; /* Firefox: remove default number arrows */
    appearance: textfield;       /* Standard property for compatibility */
}

/* Chrome/Safari: remove default number arrows */
.rr-qty__input::-webkit-inner-spin-button,
.rr-qty__input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* MASSIVE Add to Cart Button — Highly Clickable */
.rr-product__atc-wrap .single_add_to_cart_button,
.rr-product__atc-wrap button[type="submit"] {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 32px;
    height: 58px;
    min-height: 58px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition:
        background   var(--transition-fast),
        transform    var(--transition-smooth),
        box-shadow   var(--transition-smooth);
    white-space: nowrap;
    width: 100%;
}

.rr-product__atc-wrap .single_add_to_cart_button:hover,
.rr-product__atc-wrap button[type="submit"]:hover {
    background: #001644;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 35, 102, 0.2);
}

.rr-product__atc-wrap .single_add_to_cart_button:active {
    transform: translateY(0);
    box-shadow: none;
}

/* Loading state (WC adds .loading class) */
.rr-product__atc-wrap .single_add_to_cart_button.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Trust Micro-Badges below the ATC button */
.rr-product__micro-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.rr-micro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg-offwhite);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.07);
    white-space: nowrap;
}

.rr-micro-badge svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Product Meta (SKU, Category, Tags) */
.rr-product__meta {
    border-top: 1px solid rgba(0,0,0,0.07);
    padding-top: 20px;
}

.rr-product__meta .sku_wrapper,
.rr-product__meta .posted_in,
.rr-product__meta .tagged_as {
    font-size: 0.8rem;
    color: var(--color-text-light);
    line-height: 1.8;
    display: block;
}

.rr-product__meta .sku_wrapper span,
.rr-product__meta .posted_in a,
.rr-product__meta .tagged_as a {
    color: var(--color-text-main);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.rr-product__meta .posted_in a:hover,
.rr-product__meta .tagged_as a:hover {
    color: var(--color-primary);
}

/* ==========================================================
   PRODUCT DATA TABS — Description / Specs / Reviews
   Strips WC default ugly borders. Clean underline nav.
========================================================== */
.rr-product__tabs-section {
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.07);
    margin-bottom: 60px;
}

/* Tab Navigation List */
.woocommerce-tabs .tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0 0 -1px; /* pull down to sit on the border */
    border-bottom: 2px solid rgba(0,0,0,0.08);
}

.woocommerce-tabs .tabs li {
    margin: 0;
    padding: 0;
}

.woocommerce-tabs .tabs li a {
    display: inline-block;
    padding: 14px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px; /* aligns with the nav border */
    transition: color var(--transition-fast), border-color var(--transition-fast);
    letter-spacing: 0.03em;
    text-transform: none;
}

.woocommerce-tabs .tabs li a:hover {
    color: var(--color-text-main);
}

/* Active Tab — bold, Royal Navy underline */
.woocommerce-tabs .tabs li.active a {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    font-weight: 700;
}

/* Tab Panels */
.woocommerce-tabs .panel {
    padding: 36px 0;
    /* Remove WC's default border/padding */
    border: none !important;
    background: transparent;
}

/* Strip WC default panel border from :before/:after */
.woocommerce-tabs .woocommerce-Tabs-panel {
    border: none !important;
    padding: 0;
    border-top: none !important;
}

/* Description tab typography */
.woocommerce-tabs .panel h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 16px;
    display: none; /* WC adds a redundant heading inside panel */
}

.woocommerce-tabs .panel p,
.woocommerce-tabs .panel li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 10px;
}

/* Additional Info / Specs table */
.woocommerce-tabs .shop_attributes {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-tabs .shop_attributes th,
.woocommerce-tabs .shop_attributes td {
    padding: 12px 16px;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    text-align: left;
    vertical-align: top;
}

.woocommerce-tabs .shop_attributes th {
    font-weight: 700;
    color: var(--color-text-main);
    width: 38%;
    background: var(--color-bg-offwhite);
}

.woocommerce-tabs .shop_attributes td {
    color: var(--color-text-light);
}

/* Reviews tab */
#reviews .woocommerce-Reviews-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 24px;
}

.comment-form-rating label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-main);
}

/* ==========================================================
   RELATED PRODUCTS / UPSELLS
   Re-use our product grid classes for consistency.
========================================================== */
.related.products > h2,
.upsells.products > h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.related.products ul.products,
.upsells.products ul.products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

@media (min-width: 768px) {
    .related.products ul.products,
    .upsells.products ul.products {
        grid-template-columns: repeat(4, 1fr);
        gap: 28px;
    }
}

/* WC outputs <li class="product"> — reuse product-card styling */
.related.products li.product,
.upsells.products li.product {
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.related.products li.product:hover,
.upsells.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 36px rgba(0, 35, 102, 0.12);
}

.related.products li.product a img,
.upsells.products li.product a img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: #F2F4F8;
    padding: 16px;
}

.related.products li.product .woocommerce-loop-product__title,
.upsells.products li.product .woocommerce-loop-product__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 12px 16px 4px;
    line-height: 1.4;
}

.related.products li.product .price,
.upsells.products li.product .price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 0 16px 12px;
    display: block;
}

.related.products li.product .button,
.upsells.products li.product .button {
    display: block;
    margin: 0 16px 16px;
    padding: 10px;
    text-align: center;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-radius: 6px;
    text-decoration: none;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.related.products li.product .button:hover,
.upsells.products li.product .button:hover {
    background: #001644;
    transform: translateY(-1px);
}

/* ==========================================================
   PHASE 6 — PART 1: RELATED PRODUCTS GRID FIX
   Force a proper auto-fit CSS Grid.
   Strictly targets section.related.products only.
========================================================== */
section.related.products,
section.upsells.products {
    padding: 60px 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    clear: both;
    width: 100%;
}

section.related.products h2,
section.upsells.products h2 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 36px;
    letter-spacing: -0.02em;
}

/* Force-fix the broken grid */
section.related.products ul.products,
section.upsells.products ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 28px !important;
    width: 100% !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Each product li fills its grid cell fully */
section.related.products li.product,
section.upsells.products li.product {
    width: 100% !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

section.related.products li.product:hover,
section.upsells.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px -10px rgba(0, 35, 102, 0.18);
}

/* Thumbnail: full-width, no squishing */
section.related.products li.product a img,
section.upsells.products li.product a img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    background: #F2F4F8;
    padding: 20px;
    box-sizing: border-box;
    display: block;
}

/* Title */
section.related.products li.product .woocommerce-loop-product__title,
section.upsells.products li.product .woocommerce-loop-product__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 14px 16px 4px;
    line-height: 1.4;
    flex: 1;
}

/* Price */
section.related.products li.product .price,
section.upsells.products li.product .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 4px 16px 12px;
    display: block;
    line-height: 1;
}

section.related.products li.product .price del,
section.upsells.products li.product .price del {
    font-weight: 400;
    font-size: 0.8rem;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-right: 4px;
}

/* Add to Cart */
section.related.products li.product .button,
section.upsells.products li.product .button {
    display: block;
    margin: 0 16px 16px;
    padding: 12px 16px;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-bg-white) !important;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                transform  0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: auto;
    border: none;
    cursor: pointer;
}

section.related.products li.product .button:hover,
section.upsells.products li.product .button:hover {
    background: #001644;
    transform: translateY(-2px);
    color: var(--color-bg-white) !important;
}

/* ==========================================================
   PHASE 6 — PREMIUM WC FORM INPUTS
   Applies site-wide to all WC form pages (cart, checkout).
   SaaS-grade: #f5f5f7 bg, smooth Royal Navy focus ring.
   Custom easing: cubic-bezier(0.16, 1, 0.3, 1).
========================================================== */

/* Base input reset & restyle */
.woocommerce-input-wrapper input,
.woocommerce-input-wrapper select,
.woocommerce-input-wrapper textarea,
.woocommerce-page input[type="text"],
.woocommerce-page input[type="email"],
.woocommerce-page input[type="tel"],
.woocommerce-page input[type="number"],
.woocommerce-page input[type="password"],
.woocommerce-page select,
.woocommerce-page textarea,
.rr-input {
    width: 100%;
    padding: 16px 18px;
    background: #F5F5F7; /* Apple-inspired light gray */
    border: 1.5px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text-main);
    outline: none;
    transition:
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background   0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow   0.4s cubic-bezier(0.16, 1, 0.3, 1);
    -webkit-appearance: none;
    appearance: none;
}

.woocommerce-input-wrapper input:focus,
.woocommerce-input-wrapper select:focus,
.woocommerce-input-wrapper textarea:focus,
.woocommerce-page input[type="text"]:focus,
.woocommerce-page input[type="email"]:focus,
.woocommerce-page input[type="tel"]:focus,
.woocommerce-page input[type="number"]:focus,
.woocommerce-page input[type="password"]:focus,
.woocommerce-page select:focus,
.woocommerce-page textarea:focus,
.rr-input:focus {
    border-color: var(--color-primary);
    background: var(--color-bg-white);
    box-shadow: 0 0 0 4px rgba(0, 35, 102, 0.08);
}

/* WC form-row label */
.woocommerce-checkout .form-row label,
.woocommerce-page .form-row label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: block;
}

/* WC form-row required star */
.woocommerce-checkout .required,
.woocommerce-page .required {
    color: #E8002D;
    font-size: 0.8em;
    margin-left: 2px;
}

/* Woocommerce field wrapper */
.woocommerce-checkout .form-row,
.woocommerce-page .form-row {
    margin-bottom: 20px;
    padding: 0;
}

/* Error state */
.woocommerce-checkout .form-row.woocommerce-invalid input,
.woocommerce-page .form-row.woocommerce-invalid input {
    border-color: #E8002D;
    box-shadow: 0 0 0 3px rgba(232, 0, 45, 0.08);
}

/* ==========================================================
   PHASE 6 — CART PAGE LAYOUT
========================================================== */

/* Cart page main container */
.rr-cart {
    padding: 40px 0 80px;
}

.rr-cart__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 1024px) {
    .rr-cart__grid {
        grid-template-columns: 1fr 380px;
        gap: 48px;
        align-items: start;
    }
}

/* Cart heading */
.rr-cart__heading {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.rr-cart__count {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg-offwhite);
    padding: 4px 10px;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

/* Cart Item Row */
.rr-cart-item {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    transition: background 0.2s ease;
}

.rr-cart-item:first-of-type {
    border-top: 1px solid rgba(0,0,0,0.07);
}

/* Image */
.rr-cart-item__img {
    width: 88px;
    height: 88px;
    border-radius: 10px;
    overflow: hidden;
    background: #F2F4F8;
    flex-shrink: 0;
}

.rr-cart-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

/* Name */
.rr-cart-item__name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.4;
    margin-bottom: 4px;
}

.rr-cart-item__name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-cart-item__name a:hover {
    color: var(--color-primary);
}

.rr-cart-item__unit-price {
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
}

/* Actions row: qty + remove */
.rr-cart-item__actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Qty (reuse .rr-qty from Phase 5) but smaller */
.rr-cart-item .rr-qty {
    height: 40px;
}

.rr-cart-item .rr-qty__btn {
    width: 36px;
}

.rr-cart-item .rr-qty__input {
    width: 40px;
    font-size: 0.85rem;
}

.rr-cart-item__qty-lock {
    font-size: 0.82rem;
    color: var(--color-text-light);
}

/* Remove link */
.rr-cart-item__remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.02em;
}

.rr-cart-item__remove:hover {
    color: #E8002D;
}

/* Line Subtotal */
.rr-cart-item__subtotal {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    white-space: nowrap;
    text-align: right;
}

/* Cart Actions: coupon + update */
.rr-cart__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 24px 0;
}

.rr-cart__coupon {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 1;
    min-width: 240px;
}

.rr-cart__coupon .rr-input {
    flex: 1;
    padding: 12px 16px;
    font-size: 0.875rem;
}

/* Smaller outline button */
.btn--sm {
    padding: 12px 22px;
    font-size: 0.78rem;
}

/* Ghost/transparent button */
.btn--ghost {
    background: transparent;
    border: 1.5px solid rgba(0,0,0,0.15);
    color: var(--color-text-light);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 11px 22px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: var(--font-primary);
}

.btn--ghost:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* ==========================================================
   CART TOTALS (Right Column / Summary Box)
========================================================== */
.rr-cart__totals-box {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 32px;
    /* Layered optical shadow (not generic) */
    box-shadow:
        0 10px 40px -10px rgba(0, 35, 102, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 100px;
}

.rr-cart__totals-heading {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.01em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

/* Receipt rows */
.rr-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rr-totals-row:last-of-type {
    border-bottom: none;
}

.rr-totals-row__label {
    font-size: 0.85rem;
    color: var(--color-text-light);
    flex: 1;
}

.rr-totals-row__value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-align: right;
}

.rr-totals-row__value--discount {
    color: #15803D;
}

.rr-totals-row__free {
    color: #15803D;
    font-weight: 700;
}

.rr-totals-row--coupon .rr-totals-row__label {
    font-size: 0.78rem;
}

.rr-totals-row__remove-coupon {
    color: var(--color-text-light);
    font-size: 1rem;
    margin-left: 4px;
    text-decoration: none;
    transition: color 0.2s;
}

.rr-totals-row__remove-coupon:hover {
    color: #E8002D;
}

/* Grand Total row */
.rr-totals-row--total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 2px solid rgba(0,0,0,0.08);
}

.rr-totals-row--total .rr-totals-row__label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.rr-totals-row--total .rr-totals-row__value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* WC core .woocommerce-Price-amount inside totals */
.rr-cart__totals-box .woocommerce-Price-amount {
    font-weight: inherit;
    color: inherit;
}

/* Proceed to Checkout button (WC core outputs this) */
.rr-cart__checkout-cta {
    margin-top: 24px;
}

.rr-cart__checkout-cta .checkout-button {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    text-align: center;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition:
        background  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-cart__checkout-cta .checkout-button:hover {
    background: #001644;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -6px rgba(0, 35, 102, 0.35);
    color: var(--color-bg-white);
}

/* Trust copy under Checkout btn */
.rr-cart__trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    font-size: 0.73rem;
    color: var(--color-text-light);
    text-align: center;
    line-height: 1.5;
}

.rr-cart__trust svg {
    color: #15803D;
    flex-shrink: 0;
}

/* ==========================================================
   PHASE 6 — DISTRACTION-FREE CHECKOUT HEADER
   body.woocommerce-checkout: hide site nav + footer
========================================================== */
body.woocommerce-checkout .site-header__nav,
body.woocommerce-checkout .site-header__hamburger,
body.woocommerce-checkout .site-header__actions .site-header__action-btn:not(.site-header__cart) {
    display: none !important;
}

body.woocommerce-checkout .site-footer {
    display: none !important;
}

/* Custom minimal checkout header */
.rr-checkout-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 32px;
}

.rr-checkout-header__logo .site-header__logo-text {
    color: var(--color-text-main);
    font-size: 1.2rem;
}

.rr-checkout-header__logo .site-header__logo-text strong {
    color: var(--color-primary);
}

.rr-checkout-header__secure {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #15803D;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rr-checkout-header__back {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-checkout-header__back:hover {
    color: var(--color-primary);
}

/* Checkout breadcrumb steps */
.rr-checkout__steps {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 24px 28px;
    max-width: 1280px;
    margin: 0 auto;
}

.rr-step {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

.rr-step--done {
    color: var(--color-primary);
    opacity: 0.6;
}

.rr-step--active {
    color: var(--color-primary);
    font-weight: 700;
}

.rr-step__sep {
    color: rgba(0,0,0,0.2);
    font-size: 0.9rem;
}

/* ==========================================================
   CHECKOUT 2-COLUMN GRID
========================================================== */
.rr-checkout {
    display: block;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.rr-checkout__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

@media (min-width: 1024px) {
    .rr-checkout__grid {
        grid-template-columns: 1fr 420px;
        gap: 56px;
    }
}

/* Section box */
.rr-checkout__section {
    background: var(--color-bg-white);
    border-radius: 14px;
    padding: 28px;
    margin-bottom: 20px;
    box-shadow:
        0 10px 40px -10px rgba(0, 35, 102, 0.06),
        0 1px 4px rgba(0, 0, 0, 0.04);
}

.rr-checkout__section:last-child {
    margin-bottom: 0;
}

.rr-checkout__section-title {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-main);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.rr-checkout__section-title svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

.rr-checkout__optional {
    font-weight: 400;
    font-size: 0.7rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-text-light);
}

/* ==========================================================
   PAYMENT GATEWAY STYLING
   Active gateway gets Royal Navy border highlight.
========================================================== */
.rr-checkout__payment-wrap #payment {
    background: none;
    border: none;
    padding: 0;
}

/* Gateway list */
.woocommerce-checkout #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin: 0;
    padding: 0;
}

/* Each gateway row */
.woocommerce-checkout #payment ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 1.5px solid rgba(0,0,0,0.1);
    border-radius: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    transition:
        border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background   0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow   0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: var(--color-bg-white);
}

/* Radio input */
.woocommerce-checkout #payment ul.payment_methods input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

/* Active gateway: Royal Navy border highlight */
.woocommerce-checkout #payment ul.payment_methods li:has(input[type="radio"]:checked) label {
    border-color: var(--color-primary);
    background: rgba(0, 35, 102, 0.03);
    box-shadow: 0 0 0 3px rgba(0, 35, 102, 0.08);
}

/* Gateway icons (images output by WC) */
.woocommerce-checkout #payment ul.payment_methods img {
    max-height: 22px;
    width: auto;
    margin-left: auto;
}

/* Payment box content (gateway form fields) */
.woocommerce-checkout #payment .payment_box {
    background: #F9FAFB;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* Place Order button */
.woocommerce-checkout #payment #place_order {
    display: block;
    width: 100%;
    padding: 20px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition:
        background  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow  0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 20px;
}

.woocommerce-checkout #payment #place_order:hover {
    background: #001644;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -6px rgba(0, 35, 102, 0.4);
}

/* Trust micro-copy below Place Order */
.rr-checkout__trust-copy {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 16px;
    font-size: 0.73rem;
    color: var(--color-text-light);
    line-height: 1.55;
    text-align: center;
    justify-content: center;
}

.rr-checkout__trust-copy svg {
    color: #15803D;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Order review table (WC outputs a table inside #order_review) */
.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.woocommerce-checkout-review-order-table th {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    text-align: left;
}

.woocommerce-checkout-review-order-table th:last-child,
.woocommerce-checkout-review-order-table td:last-child {
    text-align: right;
}

.woocommerce-checkout-review-order-table tbody td {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--color-text-main);
    font-weight: 500;
}

.woocommerce-checkout-review-order-table tfoot td,
.woocommerce-checkout-review-order-table tfoot th {
    padding: 12px 0;
    border-top: 1.5px solid rgba(0,0,0,0.1);
    font-weight: 600;
}

.woocommerce-checkout-review-order-table .order-total td {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* WooCommerce notices on cart/checkout */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    border-radius: 10px;
    border: none;
    padding: 16px 20px;
    margin-bottom: 20px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.woocommerce-message {
    background: rgba(22, 163, 74, 0.08);
    color: #15803D;
    border-left: 3px solid #16A34A;
}

.woocommerce-info {
    background: rgba(0, 35, 102, 0.06);
    color: var(--color-primary);
    border-left: 3px solid var(--color-primary);
}

.woocommerce-error {
    background: rgba(220, 38, 38, 0.06);
    color: #B91C1C;
    border-left: 3px solid #DC2626;
    list-style: none;
}

/* Cart page padding from fixed header */
.woocommerce-cart .site-main {
    padding-top: 80px;
}

/* ==========================================================
   PHASE 7 — SHOP ARCHIVE PAGE
========================================================== */

/* Archive header: centered, generous padding */
.rr-archive__header {
    background: var(--color-bg-white);
    text-align: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.rr-archive__title {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin: 10px 0 14px;
}

.rr-archive__desc {
    font-size: 1rem;
    color: var(--color-text-light);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.75;
}

/* Shop main: padding from fixed header */
.site-main--shop {
    padding-bottom: 80px;
}

/* ==========================================================
   2-COLUMN SHOP LAYOUT
   Left: 250px sticky sidebar | Right: product grid
========================================================== */
.rr-shop {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 40px;
    align-items: start;
}

@media (min-width: 1024px) {
    .rr-shop {
        grid-template-columns: 250px 1fr;
        gap: 48px;
    }
}

/* ==========================================================
   LEFT SIDEBAR
========================================================== */
.rr-shop__sidebar {
    display: none; /* hidden on mobile by default */
}

@media (min-width: 1024px) {
    .rr-shop__sidebar {
        display: block;
        position: sticky;
        top: 100px;
    }
}

/* Sidebar inner padding */
.rr-shop__sidebar-inner {
    background: var(--color-bg-white);
    border-radius: 14px;
    padding: 24px;
    box-shadow:
        0 10px 40px -10px rgba(0, 35, 102, 0.06),
        0 1px 4px rgba(0,0,0,0.04);
}

/* Sidebar heading */
.rr-sidebar__heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-main);
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.rr-sidebar__heading svg {
    color: var(--color-primary);
    flex-shrink: 0;
}

/* Filter Group */
.rr-filter-group {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.rr-filter-group:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.rr-filter-group__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 14px;
}

.rr-filter-group__hint {
    font-size: 0.78rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

.rr-filter-group__hint a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

/* Category List */
.rr-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rr-category-list__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-main); /* deep charcoal */
    text-decoration: none;
    transition:
        background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        color      0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-category-list__link:hover {
    background: rgba(0, 35, 102, 0.05);
    color: var(--color-primary);
}

/* Active category: Royal Navy highlight */
.rr-category-list__item--active .rr-category-list__link {
    background: rgba(0, 35, 102, 0.08);
    color: var(--color-primary);
    font-weight: 700;
}

.rr-category-list__count {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-light);
    background: var(--color-bg-offwhite);
    padding: 2px 8px;
    border-radius: 50px;
    line-height: 1.6;
}

.rr-category-list__item--active .rr-category-list__count {
    background: rgba(0, 35, 102, 0.12);
    color: var(--color-primary);
}

/* Strip default WooCommerce widget borders/backgrounds in sidebar */
.rr-shop__sidebar .widget_price_filter .price_slider_wrapper,
.rr-shop__sidebar .widget ul,
.rr-shop__sidebar .widgettitle {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* WC Price Filter slider — Royal Navy accent */
.rr-shop__sidebar .price_slider .ui-slider-range {
    background: var(--color-primary) !important;
}

.rr-shop__sidebar .price_slider .ui-slider-handle {
    background: var(--color-primary) !important;
    border: 2px solid var(--color-bg-white) !important;
    box-shadow: 0 2px 8px rgba(0,35,102,0.3) !important;
}

/* ==========================================================
   RIGHT: SHOP TOOLBAR + PRODUCT GRID
========================================================== */
.rr-shop__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 28px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
    flex-wrap: wrap;
}

.rr-shop__result-count p {
    font-size: 0.82rem;
    color: var(--color-text-light);
    margin: 0;
}

/* WC Ordering dropdown */
.rr-shop__ordering select,
.woocommerce-ordering select {
    padding: 10px 36px 10px 14px;
    background: var(--color-bg-white);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1.5px solid rgba(0,0,0,0.12);
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.82rem;
    color: var(--color-text-main);
    cursor: pointer;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color 0.3s ease;
}

.rr-shop__ordering select:focus,
.woocommerce-ordering select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0,35,102,0.07);
}

/* Product Grid (WC outputs ul.products) */
.rr-shop__content ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 28px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.rr-shop__content ul.products li.product {
    margin: 0 !important;
    float: none !important;
    width: 100% !important;
    background: var(--color-bg-white);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.rr-shop__content ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 40px -10px rgba(0, 35, 102, 0.16);
}

.rr-shop__content ul.products li.product a img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    background: #F2F4F8;
    padding: 20px;
    box-sizing: border-box;
    display: block;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-shop__content ul.products li.product:hover a img {
    transform: scale(1.04);
}

.rr-shop__content ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 14px 16px 4px;
    line-height: 1.4;
    flex: 1;
}

.rr-shop__content ul.products li.product .price {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    padding: 4px 16px 12px;
    display: block;
    line-height: 1;
}

.rr-shop__content ul.products li.product .price del {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--color-text-light);
    text-decoration: line-through;
    margin-right: 4px;
}

.rr-shop__content ul.products li.product .button {
    display: block;
    margin: 0 16px 16px;
    padding: 12px 16px;
    text-align: center;
    font-family: var(--font-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-bg-white) !important;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin-top: auto;
    transition:
        background  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-shop__content ul.products li.product .button:hover {
    background: #001644;
    transform: translateY(-2px);
}

/* WC Pagination */
.woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.woocommerce-pagination ul {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1.5px solid rgba(0,0,0,0.1);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce-pagination ul li a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(0,35,102,0.05);
}

.woocommerce-pagination ul li span.current {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: var(--color-bg-white);
}

/* ==========================================================
   PHASE 7 — OFF-CANVAS SIDE CART DRAWER
========================================================== */

/* Body scroll lock when cart is open */
body.side-cart-open {
    overflow: hidden;
}

/* Root container */
.rr-side-cart {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none; /* inactive by default */
}

.rr-side-cart.is-open {
    pointer-events: all; /* clickable when open */
}

/* Backdrop overlay */
.rr-side-cart__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.rr-side-cart.is-open .rr-side-cart__overlay {
    opacity: 1;
}

/* Drawer panel */
.rr-side-cart__drawer {
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    width: 400px;
    max-width: 100vw;
    background: var(--color-bg-white);
    display: flex;
    flex-direction: column;
    /* Slide out by default */
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    box-shadow: -10px 0 60px rgba(0, 35, 102, 0.15);
    overflow: hidden;
}

.rr-side-cart.is-open .rr-side-cart__drawer {
    transform: translateX(0);
}

/* Drawer Header */
.rr-side-cart__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.rr-side-cart__title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0;
}

.rr-side-cart__title svg {
    color: var(--color-primary);
}

.rr-side-cart__head-count {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.rr-side-cart__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: none;
    background: var(--color-bg-offwhite);
    color: var(--color-text-main);
    cursor: pointer;
    transition:
        background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        color      0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-side-cart__close:hover {
    background: rgba(0, 35, 102, 0.08);
    color: var(--color-primary);
}

/* Scrollable body */
.rr-side-cart__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Inner fragment wrapper */
.rr-side-cart__inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* Empty state */
.rr-side-cart__empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 48px 24px;
    text-align: center;
}

.rr-side-cart__empty-text {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0;
}

.rr-side-cart__shop-cta {
    font-size: 0.82rem;
    padding: 12px 24px;
}

/* Items list */
.rr-side-cart__items {
    padding: 8px 0;
}

/* Individual cart item */
.rr-sc-item {
    display: grid;
    grid-template-columns: 72px 1fr 28px;
    gap: 14px;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: opacity 0.3s ease;
}

.rr-sc-item__img {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    background: #F2F4F8;
    flex-shrink: 0;
}

.rr-sc-item__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 6px;
}

.rr-sc-item__details {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.rr-sc-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-main);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rr-sc-item__name a {
    color: inherit;
    text-decoration: none;
}

.rr-sc-item__name a:hover {
    color: var(--color-primary);
}

.rr-sc-item__qty-price {
    font-size: 0.75rem;
    color: var(--color-text-light);
}

.rr-sc-item__subtotal {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--color-primary);
}

.rr-sc-item__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: color 0.3s ease, background 0.3s ease;
    flex-shrink: 0;
}

.rr-sc-item__remove:hover {
    color: #E8002D;
    background: rgba(232,0,45,0.06);
}

/* Sticky footer */
.rr-side-cart__footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0,0,0,0.08);
    background: var(--color-bg-white);
    flex-shrink: 0;
}

.rr-side-cart__subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.rr-side-cart__subtotal span {
    font-size: 0.82rem;
    color: var(--color-text-light);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.rr-side-cart__subtotal strong {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
}

.rr-side-cart__tax-note {
    font-size: 0.72rem;
    color: var(--color-text-light);
    margin: 0 0 16px;
    line-height: 1.5;
}

/* CTA buttons row */
.rr-side-cart__ctas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.rr-side-cart__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 12px;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition:
        background  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        color       0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Outline: View Cart */
.rr-side-cart__btn--outline {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
}

.rr-side-cart__btn--outline:hover {
    background: rgba(0,35,102,0.06);
    transform: translateY(-1px);
    color: var(--color-primary);
}

/* Solid: Checkout  */
.rr-side-cart__btn--solid {
    background: var(--color-primary);
    color: var(--color-bg-white);
    border: 1.5px solid transparent;
}

.rr-side-cart__btn--solid:hover {
    background: #001644;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,35,102,0.3);
    color: var(--color-bg-white);
}

/* ==========================================================
   PHASE 8 — MY ACCOUNT DASHBOARD
   Luxury Tech SaaS aesthetic: 2-col, pill nav, card content.
========================================================== */

/* Account page padding from fixed header */
.woocommerce-account .site-main {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* 2-Column account layout */
.rr-account {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}

@media (min-width: 1024px) {
    .rr-account {
        grid-template-columns: 250px 1fr;
        gap: 36px;
    }
}

/* -----------------------------------------------
   LEFT: Pill Navigation
----------------------------------------------- */
.rr-account__nav {
    position: sticky;
    top: 100px;
}

.rr-account-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    background: var(--color-bg-white);
    border-radius: 14px;
    padding: 10px;
    box-shadow:
        0 10px 40px -10px rgba(0, 35, 102, 0.06),
        0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

/* On mobile: horizontal scrolling row */
@media (max-width: 1023px) {
    .rr-account__nav {
        position: static;
    }
    .rr-account-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 4px;
        padding: 8px;
        -webkit-overflow-scrolling: touch;
    }
    .rr-account-nav__item {
        flex-shrink: 0;
    }
}

.rr-account-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-main); /* deep charcoal */
    text-decoration: none;
    transition:
        background 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        color      0.3s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.rr-account-nav__link svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.rr-account-nav__link:hover {
    background: rgba(0, 35, 102, 0.05);
    color: var(--color-primary);
}

.rr-account-nav__link:hover svg {
    opacity: 1;
}

/* Active nav item: Royal Navy pill */
.rr-account-nav__item.is-active .rr-account-nav__link,
.woocommerce-MyAccount-navigation-link--is-active .rr-account-nav__link {
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 35, 102, 0.25);
}

.rr-account-nav__item.is-active .rr-account-nav__link svg,
.woocommerce-MyAccount-navigation-link--is-active .rr-account-nav__link svg {
    opacity: 1;
}

/* Logout link: subtle red on hover */
.woocommerce-MyAccount-navigation-link--customer-logout .rr-account-nav__link:hover {
    background: rgba(232, 0, 45, 0.06);
    color: #B91C1C;
}

/* -----------------------------------------------
   RIGHT: White Card Content Area
----------------------------------------------- */
.rr-account__content {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 36px 40px;
    box-shadow:
        0 10px 40px -10px rgba(0, 35, 102, 0.05),
        0 1px 4px rgba(0,0,0,0.04);
    min-height: 320px;
}

/* Account dashboard section headings */
.rr-account__content h2,
.woocommerce-MyAccount-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.rr-account__content h3,
.woocommerce-MyAccount-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 16px;
}

/* WC account page paragraphs */
.woocommerce-MyAccount-content p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin-bottom: 12px;
}

/* —————————————————————————————————————————
   ORDERS TABLE — Premium data grid
————————————————————————————————————————— */
.woocommerce-orders-table,
.woocommerce-MyAccount-downloads table,
.woocommerce-MyAccount-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.woocommerce-orders-table th,
.woocommerce-MyAccount-downloads table th,
.woocommerce-MyAccount-content table th {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    padding: 0 12px 14px;
    border-bottom: 2px solid rgba(0,0,0,0.08);
    text-align: left;
    white-space: nowrap;
}

.woocommerce-orders-table td,
.woocommerce-MyAccount-downloads table td,
.woocommerce-MyAccount-content table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    color: var(--color-text-main);
    vertical-align: middle;
}

.woocommerce-orders-table tr:last-child td,
.woocommerce-MyAccount-downloads table tr:last-child td,
.woocommerce-MyAccount-content table tr:last-child td {
    border-bottom: none;
}

.woocommerce-orders-table tr:hover td,
.woocommerce-MyAccount-content table tr:hover td {
    background: rgba(0,35,102,0.02);
}

/* View Order button in the table */
.woocommerce-orders-table__cell-order-actions .button,
.woocommerce-MyAccount-content table .button {
    padding: 7px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: var(--color-primary);
    color: var(--color-bg-white);
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    transition: background 0.3s ease, transform 0.3s ease;
}

.woocommerce-orders-table__cell-order-actions .button:hover,
.woocommerce-MyAccount-content table .button:hover {
    background: #001644;
    transform: translateY(-1px);
}

/* Order Status Badges */
.woocommerce-orders-table__cell-order-status mark,
.order-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    background: transparent; /* Override WC defaults */
}

/* Completed: soft green */
.woocommerce-orders-table__cell-order-status mark.completed,
.order-status.status-completed {
    background: rgba(22, 163, 74, 0.1);
    color: #15803D;
}

/* Processing: soft blue/navy */
.woocommerce-orders-table__cell-order-status mark.processing,
.order-status.status-processing {
    background: rgba(0, 35, 102, 0.08);
    color: var(--color-primary);
}

/* On-hold: soft amber */
.woocommerce-orders-table__cell-order-status mark.on-hold,
.order-status.status-on-hold {
    background: rgba(245, 158, 11, 0.1);
    color: #B45309;
}

/* Cancelled / Failed: soft red */
.woocommerce-orders-table__cell-order-status mark.cancelled,
.woocommerce-orders-table__cell-order-status mark.failed,
.order-status.status-cancelled,
.order-status.status-failed {
    background: rgba(220, 38, 38, 0.08);
    color: #B91C1C;
}

/* Refunded: gray */
.woocommerce-orders-table__cell-order-status mark.refunded,
.order-status.status-refunded {
    background: rgba(0,0,0,0.06);
    color: var(--color-text-light);
}

/* Pending: soft gray-blue */
.woocommerce-orders-table__cell-order-status mark.pending,
.order-status.status-pending {
    background: rgba(99, 102, 241, 0.08);
    color: #4338CA;
}

/* —————————————————————————————————————————
   MY ACCOUNT EDIT FORMS
   Reuses Phase 6 premium input styles within account context.
————————————————————————————————————————— */
.woocommerce-MyAccount-content .woocommerce-address-fields,
.woocommerce-MyAccount-content .woocommerce-EditAccountForm {
    max-width: 600px;
}

/* Save Button in account edit forms */
.woocommerce-MyAccount-content .woocommerce-Button,
.woocommerce-MyAccount-content button[type="submit"],
.woocommerce-MyAccount-content input[type="submit"] {
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition:
        background  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.woocommerce-MyAccount-content .woocommerce-Button:hover,
.woocommerce-MyAccount-content button[type="submit"]:hover,
.woocommerce-MyAccount-content input[type="submit"]:hover {
    background: #001644;
    transform: translateY(-2px);
}

/* ==========================================================
   PHASE 8 — LOGIN / REGISTER CARD GRID
========================================================== */

/* Account login page main container */
.woocommerce-account:not(.logged-in) .site-main {
    background: var(--color-bg-offwhite);
}

/* 2-column card grid */
.rr-login-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 60px 0;
    max-width: 960px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .rr-login-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* Each login/register card */
.rr-login-card {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 36px;
    box-shadow:
        0 10px 40px -10px rgba(0, 35, 102, 0.06),
        0 1px 4px rgba(0,0,0,0.04);
}

/* Card header */
.rr-login-card__header {
    margin-bottom: 28px;
}

.rr-login-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(0, 35, 102, 0.07);
    color: var(--color-primary);
    margin-bottom: 16px;
}

.rr-login-card__header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
    padding: 0;
    border: none;
}

.rr-login-card__header p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin: 0;
    line-height: 1.5;
}

/* Auth form fields */
.rr-form-group {
    margin-bottom: 18px;
    padding: 0;
}

.rr-auth-form label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.rr-auth-form__forgot {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    text-transform: none;
    letter-spacing: 0;
    transition: opacity 0.2s ease;
}

.rr-auth-form__forgot:hover {
    opacity: 0.75;
}

/* Remember me checkbox */
.rr-auth-form__remember {
    display: flex !important;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 400 !important;
    color: var(--color-text-light);
    letter-spacing: 0 !important;
    text-transform: none !important;
    margin-bottom: 16px;
    cursor: pointer;
}

.rr-auth-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-primary);
}

/* Submit buttons */
.rr-auth-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 24px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition:
        background  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow  0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-auth-form__submit:hover {
    background: #001644;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 35, 102, 0.3);
    color: var(--color-bg-white);
}

/* Outline variant for register */
.rr-auth-form__submit--outline {
    background: var(--color-bg-white);
    color: var(--color-primary);
    border: 1.5px solid var(--color-primary);
    box-shadow: none;
}

.rr-auth-form__submit--outline:hover {
    background: rgba(0, 35, 102, 0.06);
    color: var(--color-primary);
    box-shadow: none;
}

/* Auto-generated password note */
.rr-auth-form__autogen-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    background: var(--color-bg-offwhite);
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 18px;
    line-height: 1.5;
}

.rr-auth-form__autogen-note svg {
    color: #15803D;
    flex-shrink: 0;
}

/* ============================================================
   PHASE 11 — ABOUT PAGE (page-about.php)
   Hero · Mission Split · Values Grid · CTA
============================================================ */

/* ——— ABOUT HERO ——— */
.rr-about__hero {
    position: relative;
    background: var(--color-text-main); /* deep charcoal #0D1117 */
    overflow: hidden;
    padding: clamp(100px, 14vw, 160px) 0 clamp(80px, 10vw, 120px);
    text-align: center;
}

.rr-about__hero-inner {
    position: relative;
    z-index: 2;
}

/* Decorative glowing orb */
.rr-about__hero-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,35,102,0.55) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.rr-about__hero-eyebrow {
    color: var(--color-secondary); /* silver */
}

.rr-about__hero-headline {
    font-size: clamp(2.2rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--color-bg-white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 12px 0 20px;
}

.rr-about__hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.6);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ——— MISSION SPLIT LAYOUT ——— */
.rr-about__mission {
    padding: clamp(64px, 8vw, 100px) 0;
    background: var(--color-bg-white);
}

.rr-about__mission-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
}

@media (min-width: 900px) {
    .rr-about__mission-grid {
        grid-template-columns: 1fr 1fr;
        gap: 72px;
    }
}

.rr-about__mission-headline {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    line-height: 1.35;
    margin: 12px 0 20px;
}

.rr-about__mission-body {
    font-size: 0.95rem;
    color: var(--color-text-light);
    line-height: 1.8;
    margin-bottom: 32px;
}

/* Stats row */
.rr-about__mission-stats {
    display: flex;
    gap: 36px;
    list-style: none;
    padding: 28px 0 0;
    margin: 0;
    border-top: 1px solid rgba(0,0,0,0.07);
    flex-wrap: wrap;
}

.rr-about__mission-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rr-about__mission-stats strong {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -0.04em;
    line-height: 1;
}

.rr-about__mission-stats span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
}

/* Image wrapper */
.rr-about__mission-img-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.rr-about__mission-img {
    width: 100%;
    height: clamp(320px, 50vw, 520px);
    object-fit: cover;
    display: block;
    border-radius: 20px;
}

/* Floating "Royal Guarantee" badge */
.rr-about__mission-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-bg-white);
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 50px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ——— CORE VALUES GRID ——— */
.rr-about__values {
    background: var(--color-bg-offwhite);
    padding: clamp(64px, 8vw, 100px) 0;
}

.rr-about__values-header {
    text-align: center;
    max-width: 540px;
    margin: 0 auto 56px;
}

.rr-about__values-headline {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin: 10px 0 0;
}

.rr-about__values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .rr-about__values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Individual value card */
.rr-value-card {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 36px 32px;
    box-shadow:
        0 10px 40px -10px rgba(0,35,102,0.06),
        0 1px 4px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-value-card:hover {
    transform: translateY(-6px);
    box-shadow:
        0 20px 50px -12px rgba(0,35,102,0.12),
        0 4px 12px rgba(0,0,0,0.06);
}

.rr-value-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(0,35,102,0.07);
    color: var(--color-primary);
    margin-bottom: 20px;
}

.rr-value-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.rr-value-card__desc {
    font-size: 0.875rem;
    color: var(--color-text-light);
    line-height: 1.75;
    margin: 0;
}

/* ——— ABOUT CTA STRIP ——— */
.rr-about__cta {
    background: var(--color-primary);
    padding: clamp(56px, 7vw, 80px) 0;
    text-align: center;
}

.rr-about__cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

@media (min-width: 640px) {
    .rr-about__cta-inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.rr-about__cta-headline {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--color-bg-white);
    letter-spacing: -0.02em;
    margin: 0;
    flex: 1;
}

.rr-about__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    background: var(--color-bg-white);
    color: var(--color-primary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 8px;
    text-decoration: none;
    flex-shrink: 0;
    transition:
        background  0.3s cubic-bezier(0.16, 1, 0.3, 1),
        color       0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform   0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-about__cta-btn:hover {
    background: var(--color-bg-offwhite);
    transform: translateY(-2px);
}


/* ============================================================
   PHASE 11 — CONTACT PAGE (page-contact.php)
   Header · 2-column body · Info card · Premium form
============================================================ */

/* ——— CONTACT PAGE HEADER ——— */
.rr-contact__header {
    background: var(--color-text-main);
    padding: clamp(100px, 14vw, 140px) 0 clamp(56px, 8vw, 80px);
    text-align: center;
}

.rr-contact__headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-bg-white);
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 12px 0 16px;
}

.rr-contact__sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.6);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ——— 2-COLUMN CONTACT BODY ——— */
.rr-contact__body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding-top: 60px;
    padding-bottom: 80px;
    align-items: start;
}

@media (min-width: 900px) {
    .rr-contact__body {
        grid-template-columns: 380px 1fr;
        gap: 48px;
    }
}

/* ——— INFO CARD (LEFT) ——— */
.rr-contact-info-card {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 36px;
    box-shadow:
        0 10px 40px -10px rgba(0,35,102,0.06),
        0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.rr-contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.rr-contact-detail__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(0,35,102,0.07);
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.rr-contact-detail__label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin: 0 0 6px;
}

.rr-contact-detail__value {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    text-decoration: none;
    transition: color 0.2s ease;
}

a.rr-contact-detail__value:hover {
    color: var(--color-primary);
}

.rr-contact-detail__meta {
    display: block;
    font-size: 0.78rem;
    color: var(--color-text-light);
    margin-top: 4px;
}

/* ——— FORM WRAP (RIGHT) ——— */
.rr-contact__form-wrap {
    background: var(--color-bg-white);
    border-radius: 16px;
    padding: 40px;
    box-shadow:
        0 10px 40px -10px rgba(0,35,102,0.06),
        0 1px 4px rgba(0,0,0,0.04);
}

/* Split row for Name + Email */
.rr-contact__form-row--split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

@media (min-width: 600px) {
    .rr-contact__form-row--split {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* Label above each field */
.rr-contact__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-light);
    margin-bottom: 8px;
}

.rr-contact__label .required {
    color: #B91C1C;
    margin-left: 2px;
}

/* Textarea inherits .rr-input but also needs explicit height */
.rr-contact__textarea {
    min-height: 140px;
    resize: vertical;
    font-family: var(--font-primary);
    line-height: 1.6;
}

/* SUBMIT — large, lift on hover, exactly like Add-to-Cart */
.rr-contact__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 18px 32px;
    background: var(--color-primary);
    color: var(--color-bg-white);
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 8px;
    transition:
        background   0.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform    0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow   0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.rr-contact__submit:hover {
    background: #001644;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,35,102,0.3);
}

/* Privacy note below submit */
.rr-contact__privacy {
    display: flex;
    align-items: center;
    gap: 6px;
    text-align: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--color-text-light);
    margin: 14px 0 0;
    padding: 0;
}

/* Error notice */
.rr-contact__error {
    margin-bottom: 24px;
    padding: 14px 18px;
    border-radius: 8px;
    border-left: 3px solid #B91C1C;
    background: rgba(220,38,38,0.06);
    color: #B91C1C;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Success state */
.rr-contact__success {
    text-align: center;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rr-contact__success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin: 0;
}

.rr-contact__success p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    max-width: 360px;
    line-height: 1.7;
}

/* ============================================================
   PHASE 13 — ELITE MOBILE UI OVERHAUL
   All rules scoped to max-width: 767px unless noted.
   Desktop layout zero affected.
============================================================ */

/* ——— GLOBAL MOBILE FOUNDATIONS ——— */
@media (max-width: 767px) {

    /* Prevent any element from causing horizontal overflow */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* All interactive elements: minimum 44×44px touch target */
    a, button, input[type="submit"], input[type="button"],
    .btn, .rr-contact__submit, .single_add_to_cart_button,
    .rr-mobile-cat {
        min-height: 44px;
    }

    /* Reduce all heavyweight section paddings to mobile-friendly values */
    .section { padding: 40px 0; }
    .rr-shop.container { padding-left: 12px; padding-right: 12px; }

    /* Container tighter on mobile */
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ============================================================
   PART 1 — SHOP ARCHIVE MOBILE
============================================================ */

/* ——— MOBILE CATEGORY PILL STRIP ——— */

/* Hidden on desktop, visible on mobile */
.rr-shop__mobile-cats {
    display: none;
}

@media (max-width: 767px) {

    /* Show the pill strip above the product grid */
    .rr-shop__mobile-cats {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 16px 12px;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        /* Hide the scrollbar — cross-browser */
        scrollbar-width: none;          /* Firefox */
        -ms-overflow-style: none;       /* IE/Edge */
        /* Spans full width of the viewport, not constrained by rr-shop grid */
        margin: 0 -16px;
        width: calc(100% + 32px);
        max-width: calc(100% + 32px);
    }

    .rr-shop__mobile-cats::-webkit-scrollbar { display: none; }

    /* Individual pill */
    .rr-mobile-cat {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
        padding: 8px 16px;
        border-radius: 50px;
        border: 1.5px solid rgba(0,35,102,0.18);
        background: #ffffff;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--color-text-main);
        text-decoration: none;
        scroll-snap-align: start;
        transition:
            background  0.25s ease,
            color       0.25s ease,
            border-color 0.25s ease;
        -webkit-tap-highlight-color: transparent;
    }

    .rr-mobile-cat--active,
    .rr-mobile-cat:active {
        background: var(--color-primary);
        color: #ffffff;
        border-color: var(--color-primary);
    }

    /* ——— HIDE THE DESKTOP SIDEBAR ——— */
    .rr-shop__sidebar { display: none !important; }

    /* ——— SHOP LAYOUT: single-column, pill on top ——— */
    .rr-shop {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding-top: 0;
    }

    .rr-shop__content {
        width: 100%;
    }

    /* ——— TOOLBAR (Sort + Count) ——— */
    .rr-shop__toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 0;
        margin-bottom: 12px;
    }

    .rr-shop__result-count p,
    .woocommerce-result-count {
        font-size: 0.75rem;
        color: var(--color-text-light);
        margin: 0;
    }

    .rr-shop__ordering select,
    .woocommerce-ordering select {
        font-size: 0.75rem;
        padding: 6px 10px;
        border-radius: 6px;
    }

    /* ——— STRICT 2-COLUMN PRODUCT GRID ——— */
    .rr-shop__grid,
    ul.products,
    .woocommerce ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* ——— COMPACT PREMIUM PRODUCT CARDS ——— */
    .rr-product-card,
    .woocommerce ul.products li.product {
        border-radius: 10px;
        overflow: hidden;
        padding: 0 !important;          /* image edge-to-edge */
        box-shadow: 0 2px 12px rgba(0,35,102,0.07);
    }

    /* Edge-to-edge product image */
    .rr-product-card__img-wrap,
    .woocommerce ul.products li.product a img {
        border-radius: 0;
        width: 100% !important;
        margin: 0 !important;
        display: block;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* Body padding inside card */
    .rr-product-card__body {
        padding: 8px 10px 12px;
    }

    /* Scale-down title */
    .rr-product-card__title,
    .woocommerce ul.products li.product .woocommerce-loop-product__title {
        font-size: 0.8rem !important;
        font-weight: 600;
        line-height: 1.35;
        margin-bottom: 4px;
        /* Clamp to 2 lines */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* Bold price */
    .rr-product-card__price,
    .woocommerce ul.products li.product .price {
        font-size: 0.9rem !important;
        font-weight: 700;
        color: var(--color-primary);
        margin-bottom: 8px;
    }

    /* 100% width ATC button on cards */
    .rr-product-card__atc,
    .woocommerce ul.products li.product .add_to_cart_button,
    .woocommerce ul.products li.product .button {
        width: 100% !important;
        text-align: center !important;
        padding: 10px 0 !important;
        font-size: 0.78rem !important;
        border-radius: 6px !important;
        min-height: 40px;
    }

    /* ——— ARCHIVE PAGE HEADER ——— */
    .rr-archive__header {
        padding: 80px 0 24px;
        text-align: left;
    }

    .rr-archive__title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }
}


/* ============================================================
   PART 2 — SINGLE PRODUCT MOBILE
============================================================ */

@media (max-width: 767px) {

    /* ——— CONTAINER: no side padding on product page for edge-to-edge gallery ——— */
    .site-main--product .container {
        padding-left: 0;
        padding-right: 0;
    }

    /* ——— SPLIT GRID → single column stack ——— */
    .rr-product__grid {
        display: flex !important;
        flex-direction: column;
        gap: 0;
    }

    /* ——— LEFT COLUMN: DISABLE STICKY, FULL BLEED IMAGE ——— */
    .rr-product__gallery {
        position: relative !important;  /* Override desktop position:sticky */
        top: auto !important;
        width: 100%;
        /* Negative margins break out of container to span viewport */
        margin-left: 0;
        margin-right: 0;
    }

    /* WooCommerce product gallery — edge to edge on mobile */
    .rr-product__gallery .woocommerce-product-gallery {
        margin: 0 !important;
        border-radius: 0;
    }

    .rr-product__gallery .woocommerce-product-gallery__wrapper,
    .rr-product__gallery .woocommerce-product-gallery__image img {
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /*
     * GALLERY FIX — Do NOT put aspect-ratio on .woocommerce-product-gallery__image.
     * FlexSlider toggles display:none on individual slides (.woocommerce-product-gallery__image).
     * If aspect-ratio is on that element it reserves space even for hidden slides,
     * causing the visible slide to appear blank during transitions.
     *
     * CORRECT target: .woocommerce-product-gallery__wrapper (always visible, contains all slides).
     */
    .woocommerce-product-gallery__wrapper {
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border-radius: 0;
    }

    /* Individual slide — take full height of the wrapper, do NOT force aspect-ratio again */
    .woocommerce-product-gallery__image {
        height: 100%;
    }

    /* Main image inside the slide */
    .woocommerce-product-gallery__image img {
        object-fit: cover;
        width: 100% !important;
        height: 100% !important; /* fills the wrapper's aspect-ratio box */
        display: block;
    }

    /* Ensure FlexSlider's canvas / clip do not collapse height */
    .woocommerce-product-gallery .flex-viewport {
        height: 100% !important;
    }

    /* Extra bottom padding on the gallery section so thumbnails clear the sticky ATC bar */
    .rr-product__gallery {
        padding-bottom: 8px;
    }

    /* Thumbnail strip below the main image — horizontal scroll */
    .flex-control-thumbs {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 8px 16px;
        scrollbar-width: none;
    }

    .flex-control-thumbs::-webkit-scrollbar { display: none; }

    .flex-control-thumbs li {
        flex-shrink: 0;
        width: 60px;
        height: 60px;
    }

    .flex-control-thumbs li img {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 6px;
        border: 2px solid transparent;
        transition: border-color 0.2s;
    }

    .flex-control-thumbs li img.flex-active {
        border-color: var(--color-primary);
    }

    /* ——— BUY ZONE: padding + tight spacing ——— */
    .rr-product__buy-zone {
        padding: 20px 16px 120px; /* bottom padding = sticky ATC bar height */
    }

    .rr-product__buy-zone .product_title,
    .rr-product__buy-zone h1 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
        margin-bottom: 8px;
    }

    .rr-product__price-wrap .price {
        font-size: 1.4rem;
        font-weight: 800;
    }

    .rr-product__stock { margin: 8px 0 12px; }

    .rr-product__divider { margin: 16px 0; }

    .rr-product__excerpt { font-size: 0.875rem; line-height: 1.7; }

    /* ——— STICKY ATC BAR AT BOTTOM ——— */
    /*
     * Wraps the quantity selector + button in a fixed bottom bar.
     * On mobile this mimics a native-app checkout interaction.
     */
    .rr-product__atc-wrap {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 8888;
        background: rgba(255,255,255,0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        padding: 12px 16px env(safe-area-inset-bottom, 12px); /* iPhone notch-safe */
        box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
        border-top: 1px solid rgba(0,0,0,0.06);
    }

    /* Quantity + button side by side */
    .rr-product__atc-wrap form.cart {
        display: flex;
        gap: 10px;
        align-items: center;
        margin: 0;
    }

    /* Quantity stepper — fixed width */
    .rr-product__atc-wrap .quantity {
        flex-shrink: 0;
        width: 110px;
    }

    .rr-product__atc-wrap .rr-qty { width: 100%; }

    /* ATC button — takes remaining width, massive */
    .rr-product__atc-wrap .single_add_to_cart_button {
        flex: 1;
        font-size: 0.9rem;
        padding: 14px 16px !important;
        min-height: 52px;
        border-radius: 8px !important;
        box-shadow: 0 6px 20px rgba(0,35,102,0.35) !important;
    }

    /* ——— HIDE TRUST BADGES (shown in ATC bar context already visible) ——— */
    .rr-product__micro-trust {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
    }

    .rr-micro-badge {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    /* ——— BREADCRUMB on product page ——— */
    .rr-product__breadcrumb {
        padding: 12px 16px 0;
    }

    /* ——— PRODUCT TABS AS CLEAN ACCORDION ——— */
    /*
     * On mobile the default WC horizontal tabs break the layout.
     * We convert them to an accordion-style using native <details>/<summary>
     * behaviour simulated via CSS: hide the tab nav row, show each panel
     * as an expandable block with a visible heading toggle.
     *
     * How it works: WooCommerce outputs .woocommerce-tabs > ul.tabs (nav)
     * and the panels as .woocommerce-Tabs-panel. We hide the ul.tabs on
     * mobile and relabel each panel's heading as the accordion trigger.
     */

    /* Hide horizontal tab nav */
    .woocommerce-tabs ul.tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 0;
        border-bottom: 1px solid rgba(0,0,0,0.08);
        padding: 0;
        list-style: none;
        margin: 0;
        scrollbar-width: none;
    }

    .woocommerce-tabs ul.tabs::-webkit-scrollbar { display: none; }

    .woocommerce-tabs ul.tabs li {
        flex-shrink: 0;
        border: none;
        background: transparent;
        border-radius: 0;
    }

    .woocommerce-tabs ul.tabs li a {
        display: block;
        padding: 12px 18px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--color-text-light);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        text-decoration: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
    }

    .woocommerce-tabs ul.tabs li.active a {
        color: var(--color-primary);
        border-bottom-color: var(--color-primary);
    }

    /* Tab panels: full-width, padding */
    .woocommerce-Tabs-panel {
        padding: 20px 16px;
        border-top: none;
        font-size: 0.875rem;
        line-height: 1.8;
    }

    .rr-product__tabs-section {
        margin-top: 0;
        padding: 0;
    }

    /* ——— RELATED PRODUCTS on mobile: horizontal scroll row ——— */
    section.related.products,
    section.upsells.products {
        padding: 24px 16px;
        overflow: hidden;
    }

    section.related.products h2,
    section.upsells.products h2 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    section.related.products ul.products,
    section.upsells.products ul.products {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* ——— SINGLE PRODUCT META ——— */
    .rr-product__meta { padding: 12px 0; font-size: 0.8rem; }
}

/* ============================================================
   PART 3 — GLOBAL MOBILE WOOCOMMERCE POLISH
============================================================ */

@media (max-width: 767px) {

    /* Cart page */
    .rr-cart { flex-direction: column; gap: 24px; }
    .rr-cart__table th { font-size: 0.72rem; }
    .rr-cart__table td { padding: 12px 8px; }

    /* Checkout */
    .rr-checkout-grid { flex-direction: column; }

    /* Hero section reduced padding */
    .hero { min-height: 70vh; }
    .hero__title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
    .hero__subtitle { font-size: 0.9rem; }

    /* My Account portal */
    .rr-account-layout { flex-direction: column; gap: 0; }
    .rr-account-nav { position: static; width: 100%; }

    /* About page */
    .rr-about__mission-grid { gap: 28px; }
    .rr-about__mission-stats { gap: 20px; }
    .rr-about__cta-inner { flex-direction: column; text-align: center; }

    /* Contact page */
    .rr-contact__body { padding-top: 28px; padding-bottom: 48px; }
    .rr-contact__form-wrap { padding: 24px 16px; }
    .rr-contact-info-card { padding: 24px 16px; }
}

/* ============================================================
   PHASE 14 — GALLERY DEBUG & PREMIUM TOAST NOTIFICATIONS
============================================================ */

/* ——— 1. SUPPRESS DEFAULT WOOCOMMERCE NOTICE BANNERS ———
 * The green/yellow/red top-of-page banners disrupt the premium layout.
 * We replace them with the toast system below.
 * Exception: keep error messages visible on cart/checkout pages
 * (where .woocommerce-error provides critical validation feedback).
 */
.woocommerce-message {
    display: none !important;
}

/* Also hide the "Continue Shopping" notice WC appends after add-to-cart */
.woocommerce-info {
    display: none !important;
}

/* Keep checkout/cart errors visible — they are critical */
.woocommerce-cart .woocommerce-error,
.woocommerce-checkout .woocommerce-error {
    display: block !important;
}

/* ——— 2. PREMIUM DARK-PILL TOAST NOTIFICATION ———
 * Slides up from above the sticky ATC bar (or from viewport bottom on other pages).
 * Triggered by JS on the WooCommerce `added_to_cart` jQuery event.
 */
.rr-toast {
    position: fixed;
    bottom: 96px;           /* above the sticky ATC bar (≈80px tall) */
    left: 50%;
    transform: translateX(-50%) translateY(24px);
    z-index: 99999;         /* above everything including mobile drawer */

    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: #1a1a1a;
    color: #ffffff;
    border-radius: 30px;
    padding: 12px 24px;
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.12);

    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;   /* non-blocking — clicks pass through */
    user-select: none;

    /* Start invisible & slightly below */
    opacity: 0;
    transition:
        opacity   0.35s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    will-change: opacity, transform;
}

/* Toast visible state (added by JS) */
.rr-toast.is-visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Checkmark icon inside the toast */
.rr-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #15803D;    /* green check circle */
    flex-shrink: 0;
    color: #ffffff;
}

/* On desktop, position above viewport bottom without accounting for ATC bar */
@media (min-width: 768px) {
    .rr-toast {
        bottom: 32px;
    }
}

/* ============================================================
   PHASE 16 — SWIPER.JS SLIDER STYLES
   Brand-specific overrides on top of Swiper's bundled CSS.
============================================================ */

/* ——— HERO SLIDER ——— */
.hero-slider {
    width: 100%;
    /* Push below the fixed header without obscuring the banner */
    margin-top: var(--header-height, 80px);
    overflow: hidden;
}

.swiper-hero {
    width: 100%;
    /* Do NOT set a fixed height — autoHeight handles it */
}

/* Each hero slide link spans the full width */
.hero-slider__link {
    display: block;
    width: 100%;
    line-height: 0;   /* removes ghost space under inline images */
}

/* The hero banner image — NEVER crop, always full width */
.hero-slider__img {
    width: 100%;
    height: auto;       /* intrinsic aspect ratio preserved */
    display: block;
    object-fit: contain;
}

/* Pagination dots — white, centered below the image */
.swiper-hero__pagination {
    bottom: 16px !important;
}

.swiper-hero .swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    width: 8px;
    height: 8px;
    transition: background 0.3s, transform 0.3s;
}

.swiper-hero .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.35);
}

/* Nav arrows — Royal Navy pill buttons */
.swiper-hero__btn {
    width: 44px;
    height: 44px;
    background: rgba(0, 35, 102, 0.75);
    border-radius: 50%;
    backdrop-filter: blur(6px);
    transition: background 0.25s;
}

.swiper-hero__btn:hover {
    background: rgba(0, 35, 102, 1);
}

.swiper-hero__btn::after {
    font-size: 16px;
    color: #ffffff;
    font-weight: 700;
}

/* Hide arrows on small screens — swipe gesture is enough */
@media (max-width: 767px) {
    .swiper-hero__btn { display: none; }
    .hero-slider { margin-top: 70px; }  /* mobile header is slightly shorter */
}


/* ——— PROMO SLIDER ——— */
.swiper-promo {
    width: 100%;
    overflow: hidden;           /* clips peeked slides, prevents h-scroll */
    padding: 20px 0 40px;       /* top: room for scale effect · bottom: pagination */
}

/* Each promo slide link */
.promo-slide__link {
    display: block;
    width: 100%;
    line-height: 0;
    border-radius: 12px;
    overflow: hidden;
    /* Replaces the old promo-card box-shadow */
    box-shadow: 0 8px 32px rgba(0, 35, 102, 0.10);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-slide__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 35, 102, 0.18);
}

/* ——— INACTIVE SLIDE: dimmed + scaled down ——— */
.swiper-promo .swiper-slide {
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.5;
    transform: scale(0.92);
}

/* ——— ACTIVE (centred) SLIDE: full size & opacity ——— */
.swiper-promo .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.promo-slide__link:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 35, 102, 0.18);
}

/* The promo banner image — NEVER crop */
.promo-slide__img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

/* Pagination dots for promo */
.swiper-promo__pagination {
    bottom: 8px !important;
}

.swiper-promo .swiper-pagination-bullet {
    background: rgba(0, 35, 102, 0.3);
    opacity: 1;
    width: 7px;
    height: 7px;
    transition: background 0.3s, transform 0.3s;
}

.swiper-promo .swiper-pagination-bullet-active {
    background: var(--color-primary);
    transform: scale(1.3);
}

/* On desktop the promo slider lives inside .container, so it respects padding */
@media (min-width: 768px) {
    .swiper-promo {
        overflow: hidden;   /* clip on desktop */
    }
}

/* ============================================================
   PHASE 19 — SLIDER LAYOUT SHIFT & TOUCH JUMP FIX
   1. Smooth autoHeight transitions  — stops the page snap/jump
      when slides of different heights change.
   2. touch-action: pan-y            — lets the browser handle
      vertical scroll normally while Swiper owns horizontal drags.
   3. Image drag suppression         — prevents accidental ghost-
      drag of <img> elements from interrupting a swipe gesture.
============================================================ */

/* 1. Animate autoHeight changes instead of snapping */
.swiper-hero .swiper-wrapper,
.swiper-promo .swiper-wrapper {
    transition: height 0.4s ease-in-out !important;
}

/* 2. Lock touch axis — horizontal swipes only, vertical = page scroll */
.swiper-hero,
.swiper-promo {
    touch-action: pan-y !important;
}

/* 3. Prevent image ghost-drag from interrupting swipe gestures */
.swiper-slide img {
    -webkit-user-drag: none;
    user-select: none;
}


/* ============================================================
   PHASE 17 — IMAGE-ONLY CATEGORY CARDS
============================================================ */

/* The card is now just a link + image — no text underneath */
.category-card {
    /* Reset: remove any padding added for the body text */
    overflow: visible;
}

.category-card-link {
    display: block;
    line-height: 0;         /* removes ghost gap under inline img */
    border-radius: 16px;
    overflow: hidden;
}

/* Safety net: hide body text if it ever reappears (e.g., cached HTML) */
.category-card__body,
.category-card__title,
.category-card__desc,
.category-card__cta {
    display: none !important;
}

/* The image */
.category-card-link img,
.category-card__link .category-card__img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    transition:
        transform  0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Hover — premium lift effect */
.category-card-link:hover img,
.category-card__link:hover .category-card__img {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.10);
}


/* ============================================================
   PHASE 20 — HEADER & GLOBAL QA
   1. .site-header   — sticky white navbar (was entirely absent)
   2. Global QA      — overflow-x, cursor: pointer, btn transitions
============================================================ */

/* ——— 1. STICKY WHITE HEADER ——— */
.site-header {
    position: sticky;
    top: 0;
    z-index: 99999;
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
}

/* Inner row: logo · nav · icons */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 24px;
}

/* Logo */
.site-header__logo { flex-shrink: 0; line-height: 0; }
.site-header__logo-img {
    height: 48px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Desktop nav list */
.site-header__nav { display: flex; align-items: center; }
.site-header__nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
    margin: 0;
    padding: 0;
}

/* Nav links — navy on white */
.site-header__nav-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition:
        color        var(--transition-fast),
        border-color var(--transition-fast);
}
.site-header__nav-link:hover {
    color: var(--color-text-main);
    border-bottom-color: var(--color-text-main);
}
.site-header__nav-link--active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
}

/* Icon action row */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
.site-header__action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    color: var(--color-primary);
    transition:
        color      var(--transition-fast),
        background var(--transition-fast),
        transform  var(--transition-fast);
    text-decoration: none;
}
.site-header__action-btn:hover {
    color: var(--color-text-main);
    background: rgba(0, 35, 102, 0.06);
    transform: scale(1.08);
}

/* Cart count bubble */
.site-header__cart { position: relative; }
.site-header__cart-count {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #E63946;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
    line-height: 1;
    pointer-events: none;
    border: 1.5px solid #ffffff;
}

/* Hamburger — hidden on desktop */
.site-header__hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}
.site-header__hamburger:hover { background: rgba(0, 35, 102, 0.06); }
.site-header__hamburger-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ≤ 1023px: hide desktop nav, show hamburger */
@media (max-width: 1023px) {
    .site-header__nav  { display: none; }
    .site-header__hamburger { display: flex; }
    .site-header__inner { height: 60px; }
    .site-header__logo-img { height: 40px; }
}

/* Ensure hero slider clears the newly sticky header */
.hero-slider {
    margin-top: 0 !important;   /* sticky header = no extra margin needed */
}
@media (max-width: 767px) {
    .hero-slider { margin-top: 0 !important; }
}


/* ——— 2. GLOBAL QA — Horizontal overflow & interactive element polish ——— */

/* Prevent horizontal scroll on any viewport */
html,
body {
    overflow-x: hidden;
}

/* All custom interactive anchors + buttons get explicit cursor and transition */
.btn,
.btn--primary,
.btn--outline,
.btn--atc,
.product-card__atc,
.rr-mobile-drawer__link,
.rr-mobile-drawer__account,
.rr-search-overlay__submit,
.category-card-link,
.category-card__link,
.hero-slider__link,
.promo-slide__link,
.site-header__action-btn,
.site-header__hamburger {
    cursor: pointer;
    transition:
        background   var(--transition-fast),
        color        var(--transition-fast),
        transform    var(--transition-fast),
        box-shadow   var(--transition-fast),
        border-color var(--transition-fast);
}