@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600&display=swap');

/* === JRB Design Tokens (added 2026-06: source of truth for page rhythm) ===
   Use these instead of magic numbers. Promote new tokens here as patterns repeat.
   When changing a value, every rule that consumes the token updates. */
:root {
  --page-max-width: min(90%, 1600px);  /* responsive, capped at 1600 — replaces fixed 1280 + cat override */
  --page-padding: 2rem 1.5rem 1.5rem;  /* top / sides / bottom — same on every page */
  --space-section: 40px;                /* heading -> content block rhythm */
  --space-cluster: 24px;                /* between related items within a section */
}

/* ============================================================
   JRB product page redesign — preview stylesheet
   Path: /home/ukcointernet/public_html/extension/mahardhi/catalog/view/stylesheet/customstyles.css

   Sized for older-user readability:
   - Body 16px base (was 14px)
   - Button text 16-17px
   - Touch targets ≥ 52px on size selectors
   - Generous line-height on prose

   Production description font (locked in):
   - Raleway weight 500 at 14.5px (matched against jrbnew "About this style")
   ============================================================ */


* { box-sizing: border-box; }

html, body {
        margin: 0; padding: 0;
        background: #fff;
        color: #1a1a1a;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
        font-size: 16px;
        line-height: 1.625;
        -webkit-font-smoothing: antialiased;
        /* Force lining (uniform-height) + tabular (uniform-width) digits everywhere.
           No-op for system fonts (already lining); prevents Raleway's default
           old-style figure bounce in prices, chest sizes, review counts, etc. */
        font-variant-numeric: lining-nums tabular-nums;
}

/* ── Preview banner (dev tool, stays small) ─────────────── */
.preview-banner {
        background: #1a1a1a; color: #ccc;
        padding: 6px 16px; font-size: 12px; letter-spacing: 0.04em;
}
.preview-banner code { color: #fff; }

/* ── Page shell ─────────────────────────────────────────── */
.page {
        max-width: var(--page-max-width); margin: 0 auto;
        padding: var(--page-padding);
}

/* ── Breadcrumbs (jrbnew pattern: text trail above the grid) ── */
.breadcrumbs {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 500;
        color: #1a1a1a;
        margin: 0 0 1.5rem 0;
}
.breadcrumbs a {
        color: #1a1a1a;
        text-decoration: none;
}
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumb-sep {
        color: #1a1a1a;
        margin: 0 6px;
}

/* JRB: match preview's visible breadcrumb (Home / Category only).
   Hide the product-name crumb and its trailing separator. Markup stays in HTML so the
   trail remains crawlable for SEO (BreadcrumbList JSON-LD is the primary signal anyway);
   we just stop rendering it visually. Scoped under #product-product so it does NOT
   affect category/search/contact/blog breadcrumbs, which share the .breadcrumbs class. */
#product-product .breadcrumbs > span:last-child                  { display: none; }
#product-product .breadcrumbs > .breadcrumb-sep:nth-last-child(2) { display: none; }


.grid {
        display: grid;
        grid-template-columns: 1.8fr 1fr;
        gap: 3rem;
        align-items: start;
}

/* ── Hero image (elevateZoom target) ─────────────────────── */
.hero { background: #f5f5f3; overflow: hidden; }
.hero a { display: block; }
.hero-img { width: 100%; height: auto; display: block; }
.hero-placeholder {
        aspect-ratio: 1/1;
        display: flex; align-items: center; justify-content: center;
        color: #999;
}

/* ── Additional images grid (under hero) ─────────────────── */
/* jrbnew pattern: two thumbs side-by-side, each ~½ width of the hero,
   sitting directly below the main image. Shares the Magnific gallery
   so clicking any image opens the lightbox with prev/next across all. */
.additional-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px;
        margin-top: 4px;
}
.additional-thumb {
        display: block;
        background: #f5f5f3;
        aspect-ratio: 1/1;
        overflow: hidden;
}
.additional-thumb img {
        width: 100%; height: 100%;
        object-fit: cover; display: block;
}

/* ── Zoom hint legend (under hero image) ─────────────────── */
.zoom-hint {
        margin: 12px 0 0 0;
        font-size: 14px;
        color: #1a1a1a;
        text-align: center;
        letter-spacing: 0.01em;
}
.zoom-hint i {
        font-size: 18px;
        vertical-align: -4px;
        margin-right: 6px;
        color: #1a1a1a;
}
.zoom-hint-mobile { display: none; }

@media (max-width: 991px) {
        .zoom-hint-desktop { display: none; }
        .zoom-hint-mobile { display: inline; }
}

/* ── Product details / description (full width) ──────────── */
.description {
        margin: 1.5rem 0 0 0;
        padding: 1rem 0 0 0;
}
.description-heading {
        font-family: 'Raleway', sans-serif;
        font-size: 16px; font-weight: 600;
        margin: 0 0 12px 0;
}
.description-body {
        font-family: 'Raleway', sans-serif;
        font-weight: 500;
        font-size: 14.5px;
        line-height: 1.5714;
        color: #1a1a1a;
}
.description-body p { margin: 0 0 12px 0; }
.description-body ul, .description-body ol { padding-left: 20px; margin: 0 0 12px 0; }
.description-body li { margin-bottom: 4px; }
.description-body img { max-width: 100%; height: auto; }
.description-body h2,
.description-body h3,
.description-body h4 {
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px; font-weight: 600;
        margin: 1rem 0 6px 0;
}

/* ── Related products ───────────────────────────────────── */
.related-section {
        margin-top: 1.5rem;
        padding-top: 0;
}
.related-heading {
        font-family: 'Raleway', sans-serif;
        font-size: 16px; font-weight: 600;
        margin: 0 0 1.25rem 0;
}
.related-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
}
.related-card {
        text-decoration: none; color: inherit;
        display: block;
}
.related-img {
        background: #f5f5f3;
        aspect-ratio: 1/1;
        overflow: hidden;
}
.related-img img {
        width: 100%; height: 100%;
        object-fit: cover; display: block;
}
.related-name {
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
        font-weight: 500;
        line-height: 1.5714;
        color: #1a1a1a;
        margin: 10px 0 4px 0;
}
.related-price {
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
        font-weight: 500;
        line-height: 1.5714;
        margin: 0;
}

/* ── Tags row at page foot (SEO + simple navigation hint) ── */
.product-tags {
        font-family: 'Raleway', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #666;
        margin: 2.5rem 0 0 0;
}

/* ── Product info column ────────────────────────────────── */
.brand {
        font-size: 12px;
        color: #555;
        margin: 0 0 10px 0;
        letter-spacing: 0.04em;
        text-transform: uppercase;
}
.title {
        font-family: 'Raleway', sans-serif;
        font-size: 22px;
        font-weight: 400;
        margin: 0 0 16px 0;
        line-height: 1.3;
}

.price-row {
        display: flex; align-items: baseline; justify-content: space-between;
        margin-bottom: 1.25rem;
}
.price, .price-new { font-family: 'Raleway', sans-serif; font-size: 22px; font-weight: 400; }
.price-stack { display: flex; flex-direction: column; gap: 2px; }
.price-old {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 400;
        color: #666;
        text-decoration: line-through;
        line-height: 1.2;
}
.reviews { font-size: 14px; }
.reviews .stars { color: #1a1a1a; }
.reviews a { color: #1a1a1a; text-decoration: underline; margin-left: 6px; }

.section { margin-bottom: 1.5rem; }
.section-label {
        font-size: 14px;
        margin: 0 0 8px 0;
}
.section-label strong { font-weight: 600; }

.fit-note { font-size: 14px; margin: 0 0 12px 0; }
.fit-note .muted { color: #666; }
.fit-note a { color: #1a1a1a; text-decoration: underline; }

.size-group-label {
        font-size: 14px; font-weight: 500;
        margin: 12px 0 6px 0;
        color: #1a1a1a;
}
.size-group-label:first-of-type { margin-top: 0; }

/* ── Boxed groups for compound options (fieldset + legend) ── */
.size-fieldset {
        border: 1px solid #ccc;
        border-radius: 2px;
        padding: 12px 14px 14px;
        margin: 0 0 12px 0;
        min-width: 0;
}
.size-fieldset:last-child { margin-bottom: 4px; }

.size-legend {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
        padding: 0 6px;
        margin: 0;
        width: auto;
}

.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }

/* ── Size buttons — match jrbnew compact square ── */
.size-btn {
        min-width: 48px; height: 48px;
        padding: 0 12px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 2px;
        font-size: 16px;
        font-family: inherit;
        cursor: pointer;
}
.size-btn:hover { border-color: #1a1a1a; }
.size-btn.selected {
        background: #1a1a1a; color: #fff; border-color: #1a1a1a;
}
/* Cross-axis incompatibility for dual-axis selectors: incompatible
   options are hidden (not just greyed) so the user only sees valid
   combinations after their first selection. */
.size-btn.hidden { display: none; }
/* ── Out-of-stock variant (jrbnew-style): shown, greyed, with a corner-to-
   corner X. Replaces the old hide behaviour for single-axis variants and
   for cross-axis pairings. Stays clickable so selecting it can warn. ── */
.size-btn.oos {
        background-color: #efefef;
        border-color: #dadada;
        background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20100%20100'%3E%3Cpath%20d='M0%200L100%20100M100%200L0%20100'%20stroke='%23bfbfbf'%20stroke-width='1.5'%20vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
}
.size-btn.oos:hover { border-color: #dadada; }
.size-btn.oos.selected {
        background-color: #e6e6e6;
        color: #1a1a1a;
        border-color: #1a1a1a;
        background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20preserveAspectRatio='none'%20viewBox='0%200%20100%20100'%3E%3Cpath%20d='M0%200L100%20100M100%200L0%20100'%20stroke='%23a8a8a8'%20stroke-width='1.5'%20vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
        background-size: 100% 100%;
}
/* Out-of-stock warning shown beneath the size selector */
.oos-warning {
        margin: 10px 0 0;
        color: #d82028;
        font-size: 13.5px;
        font-weight: 600;
        line-height: 1.4;
}

/* ── Sleeve length button row ────────────────────────────── */
.sleeve-options { display: flex; gap: 10px; margin-bottom: 6px; }
.sleeve-btn {
        flex: 1;
        padding: 14px 18px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 2px;
        font-size: 16px;
        font-family: inherit;
        cursor: pointer;
}
.sleeve-btn:hover { border-color: #1a1a1a; }
.sleeve-btn.selected {
        background: #1a1a1a; color: #fff; border-color: #1a1a1a;
}

/* ── Add-to-bag actions row ─────────────────────────────── */
.actions { display: flex; gap: 10px; align-items: stretch; }

.qty-select {
        width: 72px;
        padding: 10px 8px;
        font-size: 14px;
        font-family: inherit;
        border: 1px solid #ccc;
        border-radius: 2px;
        background: #fff;
}

.add-btn {
        flex: 1;
        padding: 12px 22px;
        background: #1a1a1a;
        color: #fff;
        border: 0;
        border-radius: 2px;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
        font-family: inherit;
}
.add-btn:hover { background: #333; }
.add-btn:disabled { background: #999; cursor: not-allowed; }

.heart-btn {
        width: 56px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 50%;
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
}
.heart-btn:hover { border-color: #1a1a1a; }
.heart-btn i { font-size: 22px; }

/* ── No-variants notice ─────────────────────────────────── */
.no-variants-note {
        background: #fff7d6;
        border: 1px solid #f0d96b;
        padding: 12px 16px;
        margin-bottom: 1.25rem;
        font-size: 14px;
        border-radius: 2px;
}

/* ── Size guide button + modal ──────────────────────────── */
.size-guide-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: #fff;
        border: 1px solid #ccc;
        border-radius: 2px;
        padding: 8px 14px;
        margin: 4px 0 16px 0;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        color: #1a1a1a;
        cursor: pointer;
}
.size-guide-btn:hover { border-color: #1a1a1a; }
.size-guide-btn i { font-size: 18px; }
.size-guide-ruler {
        width: 22px;
        height: 11px;
        flex-shrink: 0;
        vertical-align: -2px;
}

.modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 1000;
        display: none;
        align-items: flex-start;
        justify-content: center;
        padding: 4vh 1rem;
        overflow-y: auto;
}
.modal-overlay.open { display: flex; }

/* Side-panel variant: anchors the modal to the right edge, full height.
   Used by the Delivery & returns modal; size guide stays centered. */
.modal-overlay.side-panel {
        align-items: stretch;
        justify-content: flex-end;
        padding: 0;
        overflow: hidden;
}
.modal-overlay.side-panel .modal {
        max-width: 460px;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
        border-radius: 0;
        padding: 32px 28px 24px;
}
@media (max-width: 600px) {
        .modal-overlay.side-panel .modal { max-width: 100%; }
}

.modal-overlay .modal {
        /* JRB-modal-bs-overrides: Bootstrap's .modal sets display:none + height:100% +
           overflow-y:auto on a position:fixed full-viewport modal. Our higher-specificity
           rule overrides position/background/width/padding, but cascade is per-property
           so display/height/overflow fall through unless explicitly set here. */
        display: block;
        height: auto;
        overflow: visible;
        background: #fff;
        max-width: 720px;
        width: 100%;
        border-radius: 2px;
        padding: 28px 24px 24px;
        position: relative;
        font-family: 'Raleway', sans-serif;
}
.modal-overlay .modal-close {
        position: absolute;
        top: 8px; right: 10px;
        background: none;
        border: 0;
        font-size: 28px;
        cursor: pointer;
        line-height: 1;
        color: #1a1a1a;
        padding: 4px 10px;
}

.modal-overlay .modal-title {
        font-family: 'Raleway', sans-serif;
        font-size: 18px;
        font-weight: 600;
        margin: 0 0 16px 0;
}

.unit-toggle {
        display: inline-flex;
        border: 1px solid #1a1a1a;
        border-radius: 2px;
        overflow: hidden;
        margin-bottom: 18px;
}
.unit-toggle button {
        background: #fff;
        border: 0;
        padding: 8px 20px;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        cursor: pointer;
        color: #1a1a1a;
        min-width: 56px;
}
.unit-toggle button.active {
        background: #1a1a1a;
        color: #fff;
}

.size-chart {
        width: 100%;
        border-collapse: collapse;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
}
.size-chart th,
.size-chart td {
        border: 1px solid #e5e5e5;
        padding: 10px 12px;
        text-align: center;
}
.size-chart th {
        background: #f5f5f3;
        font-weight: 600;
}
.size-chart th:first-child,
.size-chart td:first-child {
        text-align: left;
        font-weight: 600;
}

/* Inch-conversion charts: heading per measurement, stacked tables. */
.size-chart-heading {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 600;
        margin: 18px 0 8px 0;
}
.size-chart-heading:first-of-type { margin-top: 0; }

/* Subtitle shown beneath a measurement row label (e.g. "top of waistband
   to bottom of hem" under "Length of skort"). */
.size-row-subtitle {
        display: block;
        font-weight: 400;
        font-size: 12px;
        color: #555;
        margin-top: 3px;
        line-height: 1.35;
}

/* Notes below the size chart for measurements that don't vary by size
   (e.g. "Overall length: 61 cm", "Inside leg: 38 cm" on city shorts). */
.size-chart-notes {
        margin-top: 18px;
        padding-top: 14px;
        border-top: 1px solid #e5e5e5;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
}
.size-chart-notes-intro {
        margin: 0 0 8px 0;
        font-weight: 600;
        font-size: 14px;
        color: #1a1a1a;
}
.size-chart-note {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        padding: 6px 0;
        gap: 16px;
}
.size-chart-note-label {
        font-weight: 500;
}
.size-chart-note-value {
        font-weight: 500;
        white-space: nowrap;
}

/* ── Info row (jrbnew accordion-style trigger under product details) ─ */
.info-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        background: none;
        border: 0;
        border-top: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        padding: 16px 0;
        margin-top: 1.5rem;
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
        cursor: pointer;
        text-align: left;
}
.info-row:hover { color: #555; }
.info-row i { font-size: 20px; }

/* Sections inside info modal */
.info-section h3 {
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 600;
        margin: 1.25rem 0 10px 0;
        color: #1a1a1a;
}
.info-section h3:first-child { margin-top: 0; }
.info-section p {
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
        font-weight: 500;
        line-height: 1.5714;
        color: #1a1a1a;
        margin: 0 0 12px 0;
}
.info-section a {
        color: #1a1a1a;
        text-decoration: underline;
}

.info-table {
        width: 100%;
        border-collapse: collapse;
        margin-bottom: 12px;
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
}
.info-table td {
        padding: 10px 0;
        border-bottom: 1px solid #e5e5e5;
        font-weight: 500;
        color: #1a1a1a;
}
.info-table td:last-child {
        text-align: right;
        font-weight: 600;
}
.info-table tr:last-child td { border-bottom: 0; }

/* ── Magnific Popup lightbox overrides ──────────────────── */
/* Default Magnific uses a near-black backdrop. Switch to a clean
   white background so product photos show cleanly without the
   dark cinema feel. Controls flipped to dark to stay visible. */
.mfp-bg {
        background: #fff;
        opacity: 1;
}
.mfp-close,
.mfp-counter,
.mfp-preloader {
        color: #1a1a1a;
}

/* Strip the "frame" effect Magnific draws around figures — it's a
   dark backdrop strip designed for cinema-style dark lightboxes and
   shows as a grey border on our white background. */
.mfp-figure:after { background: transparent; box-shadow: none; }
.mfp-figure { box-shadow: none; }
.mfp-img { box-shadow: none; padding: 0; }

.mfp-arrow-left:after  { border-right-color: #1a1a1a; }
.mfp-arrow-right:after { border-left-color:  #1a1a1a; }
.mfp-arrow-left:before  { border-right-color: rgba(0,0,0,0.15); }
.mfp-arrow-right:before { border-left-color:  rgba(0,0,0,0.15); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
        .grid { grid-template-columns: 1fr; gap: 2rem; }
        .page { padding: 1rem 1rem 3rem; }
        .related-grid { grid-template-columns: repeat(2, 1fr); }
        .title { font-size: 20px; }
        .price, .price-new { font-size: 20px; }
}

/* Narrow phones: tighter modal + size-button sizing */
@media (max-width: 600px) {
        .modal-overlay .modal { padding: 22px 16px 18px; }
        .modal-overlay .modal-title { font-size: 16px; }
        .size-fieldset { padding: 10px 12px 12px; }
        .sizes { gap: 6px; }
        .size-btn { min-width: 44px; height: 44px; font-size: 15px; }
        .size-chart { font-size: 13px; }
        .size-chart th, .size-chart td { padding: 8px 6px; }
}

/* Size guide chart: wrap in a horizontally scrollable container so the
   wide table can scroll within the modal on narrow screens. */
.size-chart-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 0 -8px;
}

/* Back-to-top floating action button: white circle with black outline,
   black arrow inside. Fixed bottom-right, appears after scrolling past
   ~400px, smooth-scrolls on click. Inverts on hover for clear feedback. */
.fab-back-to-top {
        position: fixed;
        bottom: 24px;
        right: 24px;
        width: 48px;
        height: 48px;
        background: #fff;
        color: #1a1a1a;
        border: 2px solid #1a1a1a;
        border-radius: 50%;
        cursor: pointer;
        display: none;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
        z-index: 999;
}
.fab-back-to-top.visible { display: flex; }
.fab-back-to-top:hover { background: #1a1a1a; color: #fff; }
.fab-back-to-top i { font-size: 22px; line-height: 1; }


/* ═══════════════════════════════════════════════════════════
   Category preview page (cat-preview.php) — jrbnew-style header
   ═══════════════════════════════════════════════════════════ */

.cat-title {
        font-family: 'Raleway', sans-serif;
        font-weight: 400;
        font-size: 32px;
        line-height: 1.2;
        margin: 0 0 18px 0;
        color: #1a1a1a;
}

/* Top-level browse landings (Mens / Womens) — title and card text centred */
.page-centered .cat-title,
.page-centered .product-card-name,
.page-centered .product-card-price {
        text-align: center;
}

/* ── Category description (full text, full width) ── */
.cat-description {
        font-family: 'Raleway', sans-serif;
        font-weight: 500;
        font-size: 14.5px;
        line-height: 1.5714;
        color: #1a1a1a;
        margin: 0 0 32px 0;
}
.cat-description p { margin: 0 0 8px 0; }
.cat-description p:last-child { margin-bottom: 0; }

/* ── Product grid container ── */
.cat-products-placeholder {
        margin-top: 8px;
}
.product-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
}
.product-card {
        display: block;
        text-decoration: none;
        color: inherit;
}
.product-card img,
.product-card-img-empty {
        width: 100%;
        aspect-ratio: 1/1;
        object-fit: cover;
        background: #f5f5f3;
        display: block;
}
.product-card-name {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 500;
        margin: 10px 0 4px 0;
        line-height: 1.4;
        color: #1a1a1a;
}
.product-card-price {
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        color: #1a1a1a;
}
.product-card-price .price-old {
        color: #888;
        text-decoration: line-through;
        margin-right: 6px;
        font-size: 13px;
}
.product-card-price .price-new {
        color: #c00;
        font-weight: 500;
}
.cat-no-products {
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
        color: #666;
        font-style: italic;
}

@media (max-width: 900px) {
        .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
        .cat-title { font-size: 26px; }
        .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}


/* ═══════════════════════════════════════════════════════════
   Inline body-text size mini-chart (under Product details)
   3-row compact: Label | sizes / Inches / cm
   Size guide popup is separate and unaffected.
   ═══════════════════════════════════════════════════════════ */

.body-size-charts {
        margin: 18px 0 0 0;
        overflow-x: auto;
}
.body-size-chart {
        border-collapse: collapse;
        background: #fff;
        border: 1px solid #d5d5d5;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        color: #1a1a1a;
        margin: 0 0 12px 0;
}
.body-size-chart th,
.body-size-chart td {
        padding: 9px 16px;
        text-align: center;
        border-right: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        font-weight: 500;
        min-width: 52px;
        white-space: nowrap;
}
.body-size-chart tr:last-child th,
.body-size-chart tr:last-child td { border-bottom: none; }
.body-size-chart th:last-child,
.body-size-chart td:last-child { border-right: none; }

/* Top row (size codes) — dark header */
.body-size-chart tr:first-child th {
        background: #1a1a1a;
        color: #fff;
        font-weight: 600;
        font-size: 13px;
        letter-spacing: 0.4px;
        border-bottom: 1px solid #1a1a1a;
}

/* Row labels (Inches, cm) — left-aligned, lightly tinted */
.body-size-chart tr:not(:first-child) th {
        background: #f7f7f4;
        text-align: left;
        font-weight: 600;
        padding-left: 16px;
}

/* Top-left label cell (e.g. "Chest") — sits in the dark row */
.body-size-chart .body-size-chart-label {
        text-align: left !important;
        padding-left: 16px;
        background: #1a1a1a !important;
        color: #fff !important;
}

.body-size-chart-sub {
        margin: -4px 0 16px 0;
        font-size: 12px;
        color: #555;
        font-style: italic;
        font-weight: 400;
}

/* Single-value note (e.g. "Overall length: 24" / 61 cm") */
.body-size-note {
        margin: 10px 0 0 0;
        padding: 10px 14px;
        background: #f7f7f4;
        border-left: 3px solid #1a1a1a;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 500;
}
.body-size-note strong { font-weight: 600; }
.body-size-note-sub {
        color: #555;
        font-size: 12px;
        font-weight: 400;
        font-style: italic;
}


/* ═══════════════════════════════════════════════════════════
   Shared site header (includes/header.php)
   - Logo (text): JRB (red) + GOLF / CLOTHING (dark navy)
   - Centred search with dark submit button
   - Account + bag icons on the right
   - Nav row below, driven by oc_category.top = 1 flag
   ═══════════════════════════════════════════════════════════ */

.site-header {
        background: #fff;
        border-bottom: 1px solid #e5e5e5;
        padding: 31px 20px 0;
        font-family: 'Raleway', sans-serif;
}
.site-header-row {
        max-width: var(--page-max-width);
        margin: 0 auto;
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 28px;
}

/* ── Logo (image) ───────────────────────────────────────── */
.site-logo {
        display: inline-flex;
        align-items: center;
        text-decoration: none;
}
.site-logo-img {
        max-height: 76px;
        width: auto;
        display: block;
}

/* ── Search ─────────────────────────────────────────────── */
.site-search {
        display: flex;
        background: #fff;
        border: 1px solid #d5d5d5;
        border-radius: 3px;
        overflow: hidden;
        max-width: 280px;
        width: 100%;
        margin-left: auto;
        margin-right: 0;
}
.site-search input {
        flex: 1;
        border: 0;
        padding: 9px 12px;
        font-family: 'Raleway', sans-serif;
        font-size: 14px;
        font-weight: 500;
        outline: none;
        color: #1a1a1a;
        min-width: 0;
}
.site-search input::placeholder { color: #888; font-weight: 400; }
.site-search button {
        background: #1a1a1a;
        color: #fff;
        border: 0;
        padding: 0 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
}
.site-search button:hover { background: #000; }
.site-search button i { font-size: 18px; }

/* ── Actions (account + bag) ────────────────────────────── */
.site-actions {
        display: flex;
        gap: 12px;
        align-items: center;
}
.site-action {
        color: #1a1a1a;
        text-decoration: none;
        min-width: 56px;
        padding: 6px 8px;
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        position: relative;
        border-radius: 3px;
}
.site-action i { font-size: 30px; line-height: 1; }
.site-action-label {
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.6px;
        text-transform: uppercase;
        color: #1a1a1a;
        line-height: 1;
}
.site-action:hover { background: #f7f7f4; }
.site-action:hover .site-action-label { color: #555; }
.bag-count, .wishlist-count {
        position: absolute;
        top: 0;
        right: 6px;
        background: #d82028;
        color: #fff;
        border-radius: 10px;
        min-width: 18px;
        height: 18px;
        padding: 0 5px;
        font-size: 10px;
        font-weight: 700;
        line-height: 18px;
        text-align: center;
        box-sizing: border-box;
}

/* ── Nav row ────────────────────────────────────────────── */
.site-nav {
        max-width: var(--page-max-width);
        margin: 14px auto 0;
        padding-bottom: 0;
}
.site-nav ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        gap: 44px;
        flex-wrap: wrap;
}
.site-nav-item {
        position: relative;
        /* padding-bottom extends the hover zone down to the grey line
           so the mouse doesn't drop the hover state when crossing into
           the dropdown — keeps the dropdown open during the transit */
        padding-bottom: 7px;
}
.site-nav a {
        color: #1a1a1a;
        text-decoration: none;
        font-family: 'Raleway', sans-serif;
        font-size: 17px;
        font-weight: 500;
        padding: 6px 0;
        display: inline-block;
        transition: color 0.15s;
}
/* .site-nav a:hover { color: #d82028; }  -- JRB: red nav hover disabled */

/* ── Dropdown panels ────────────────────────────────────── */
.site-nav-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        background: #fff;
        border: 1px solid #e5e5e5;
        min-width: 240px;
        padding: 8px 0;
        z-index: 100;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.site-nav-item.has-children:hover .site-nav-dropdown,
.site-nav-item.has-children:focus-within .site-nav-dropdown {
        display: block;
}
.site-nav-dropdown ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: block;
        gap: 0;
}
.site-nav-dropdown li { display: block; }
.site-nav-dropdown a {
        display: block;
        padding: 9px 22px;
        white-space: nowrap;
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: none;
}
.site-nav-dropdown a:hover {
        background: #f7f7f4;
        /* color: #d82028;  -- JRB: red nav dropdown hover disabled */
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
        .site-header { padding-top: 14px; }
        .site-header-row {
                grid-template-columns: auto auto;
                grid-template-areas:
                        "logo actions"
                        "search search";
                gap: 14px;
        }
        .site-logo { grid-area: logo; }
        .site-actions { grid-area: actions; }
        .site-search { grid-area: search; }
        .logo-jrb { font-size: 28px; }
        .logo-golf { font-size: 20px; }
        .logo-clothing { font-size: 10px; }
        .site-nav ul { gap: 24px; font-size: 14px; }
}


/* ═══════════════════════════════════════════════════════════
   Shared site footer (includes/footer.php)
   - Light grey upper: 4 columns of links (jrbnew inspired)
   - Black bottom band: trust badges, social, company info, legal
   ═══════════════════════════════════════════════════════════ */

.site-footer {
        font-family: 'Raleway', sans-serif;
        margin-top: 60px;
}

/* ── Upper: column links ────────────────────────────────── */
.footer-cols-wrap {
        background: #f7f7f4;
        padding: 48px 20px 56px;
        border-top: 1px solid #e5e5e5;
}
.footer-cols {
        max-width: var(--page-max-width);
        margin: 0 auto;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 32px;
}
.footer-col-title {
        font-family: 'Raleway', sans-serif;
        font-size: 17px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 18px 0;
        letter-spacing: 0.2px;
}
.footer-col ul {
        list-style: none;
        margin: 0;
        padding: 0;
}
.footer-col li {
        margin-bottom: 11px;
}
.footer-col a {
        color: #1a1a1a;
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.4;
}
.footer-col a:hover {
        /* color: #d82028;  -- JRB: red footer hover disabled */
        text-decoration: underline;
}

/* ── Bottom band ────────────────────────────────────────── */
.footer-bottom-band {
        background: #000;
        color: #fff;
        padding: 30px 20px 24px;
}
.footer-bottom-inner {
        max-width: var(--page-max-width);
        margin: 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        text-align: center;
}
.footer-trust {
        display: flex;
        align-items: center;
        gap: 28px;
        flex-wrap: wrap;
        justify-content: center;
}
.footer-worldpay { max-height: 56px; width: auto; }
.footer-cards    { max-height: 32px; width: auto; }

.footer-social {
        display: flex;
        gap: 10px;
}
.footer-social a {
        color: #fff;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.10);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: background 0.15s;
}
.footer-social a:hover { background: rgba(255, 255, 255, 0.20); }
.footer-social i { font-size: 18px; }

.footer-meta {
        width: 100%;
        padding-top: 0;
}
.footer-company {
        font-size: 12px;
        color: #ccc;
        line-height: 1.55;
        margin: 0 0 14px 0;
        max-width: none;
}
.footer-bottom-row {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 24px;
        flex-wrap: wrap;
}
.footer-copy {
        font-size: 13px;
        color: #ccc;
        margin: 0;
}
.footer-legal {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        gap: 18px;
        flex-wrap: wrap;
}
.footer-legal a {
        color: #ccc;
        text-decoration: none;
        font-size: 13px;
}
.footer-legal a:hover {
        color: #fff;
        text-decoration: underline;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 800px) {
        .footer-cols {
                grid-template-columns: 1fr 1fr;
                gap: 28px;
        }
}
@media (max-width: 500px) {
        .footer-cols {
                grid-template-columns: 1fr;
        }
}


/* ═══════════════════════════════════════════════════════════
   Added-to-bag modal (product-preview.php)
   ═══════════════════════════════════════════════════════════ */

.bag-added-modal { align-items: center; }
.bag-added-content {
        background: #fff;
        width: 100%;
        max-width: 1040px;
        position: relative;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
        border-radius: 4px;
        overflow: hidden;
}
.bag-added-close {
        position: absolute;
        top: 14px;
        right: 14px;
        width: 36px;
        height: 36px;
        background: transparent;
        border: 0;
        cursor: pointer;
        color: #1a1a1a;
        z-index: 10;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
}
.bag-added-close:hover { background: rgba(0, 0, 0, 0.06); }
.bag-added-close i { font-size: 22px; }

/* ── Top: confirmation + product summary ────────────────── */
.bag-added-top {
        display: flex;
        gap: 32px;
        background: #f5f5f3;
        padding: 40px 40px 36px;
}
.bag-added-thumb { flex: 0 0 170px; }
.bag-added-thumb img {
        width: 100%;
        height: auto;
        display: block;
        border: 1px solid #e5e5e5;
        background: #fff;
}
.bag-added-info { flex: 1; min-width: 0; padding-right: 36px; }
.bag-added-confirm {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        color: #1a1a1a;
        font-weight: 500;
        margin-bottom: 16px;
}
.bag-added-tick i { font-size: 24px; color: #1aa758; display: block; }
.bag-added-greeting {
        font-family: 'Raleway', sans-serif;
        font-size: 28px;
        font-weight: 700;
        margin: 0 0 18px;
        color: #1a1a1a;
        line-height: 1.15;
}
.bag-added-brand {
        font-size: 13px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: #1a1a1a;
        margin: 0 0 6px;
}
.bag-added-name {
        font-size: 16px;
        color: #1a1a1a;
        margin: 0 0 6px;
        font-weight: 600;
        line-height: 1.35;
}
.bag-added-variant {
        font-size: 15px;
        color: #1a1a1a;
        margin: 0 0 16px;
}
.bag-added-stock {
        background: #eef3fb;
        border-left: 4px solid #2d5db8;
        padding: 10px 14px;
        font-size: 13px;
        color: #1a1a1a;
}

/* ── Related carousel ───────────────────────────────────── */
.bag-added-related {
        padding: 24px 32px 8px;
        position: relative;
}
.bag-added-related-title {
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 700;
        margin: 0 0 16px;
        color: #1a1a1a;
}
.bag-added-related-track {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        -ms-overflow-style: none;
}
.bag-added-related-track::-webkit-scrollbar { display: none; }

.bag-added-related-card {
        flex: 0 0 calc((100% - 14px * 3) / 4);
        text-decoration: none;
        color: inherit;
        scroll-snap-align: start;
        display: block;
}
.bag-added-related-img {
        aspect-ratio: 1 / 1;
        background: #f7f7f4;
        margin-bottom: 8px;
        overflow: hidden;
}
.bag-added-related-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
}
.bag-added-related-price {
        font-size: 14px;
        font-weight: 600;
        margin: 0 0 2px;
        color: #1a1a1a;
}
.bag-added-related-brand {
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: #1a1a1a;
        margin: 0 0 2px;
}
.bag-added-related-name {
        font-size: 13px;
        color: #1a1a1a;
        margin: 0;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
}

.bag-added-related-arrow {
        position: absolute;
        top: 50%;
        transform: translateY(-25%);
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid #d5d5d5;
        cursor: pointer;
        z-index: 5;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1a1a1a;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.bag-added-related-arrow:hover { background: #f7f7f4; }
.bag-added-related-arrow i { font-size: 18px; }
.bag-added-related-prev { left: 14px; }
.bag-added-related-next { right: 14px; }

/* ── CTAs ───────────────────────────────────────────────── */
.bag-added-ctas {
        display: flex;
        gap: 14px;
        padding: 20px 32px 28px;
        background: #fff;
}
.bag-added-cta {
        flex: 1;
        padding: 14px 20px;
        font-family: 'Raleway', sans-serif;
        font-size: 15px;
        font-weight: 600;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
        border: 1px solid #1a1a1a;
        transition: background 0.15s, color 0.15s;
        display: inline-flex;
        align-items: center;
        justify-content: center;
}
.bag-added-cta-secondary { background: #fff; color: #1a1a1a; }
.bag-added-cta-secondary:hover { background: #f7f7f4; }
.bag-added-cta-primary { background: #1a1a1a; color: #fff; }
.bag-added-cta-primary:hover { background: #000; }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 700px) {
        .bag-added-top { flex-direction: column; }
        .bag-added-thumb { max-width: 140px; }
        .bag-added-info { padding-right: 0; }
        .bag-added-related-card { flex-basis: calc((100% - 14px) / 2); }
        .bag-added-related { padding: 20px 24px 8px; }
        .bag-added-ctas { flex-direction: column-reverse; padding: 16px 24px 24px; }
}


/* ═══════════════════════════════════════════════════════════
   Cart page (cart-preview.php) — jrbnew inspired
   ═══════════════════════════════════════════════════════════ */

.cart-page {
        max-width: var(--page-max-width);
        margin: 0 auto;
        padding: 40px 24px 80px;
        font-family: 'Raleway', sans-serif;
}

/* ── Header ─────────────────────────────────────────────── */
.cart-header { margin-bottom: 28px; }
.cart-title {
        font-family: 'Raleway', sans-serif;
        font-size: 32px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 6px 0;
}
.cart-subtitle {
        font-size: 14.5px;
        color: #555;
        margin: 0;
}

/* ── Two-column layout ──────────────────────────────────── */
.cart-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 360px;
        gap: 40px;
        align-items: start;
}

/* ── Items column ───────────────────────────────────────── */
.cart-items {
        border-top: 1px solid #e5e5e5;
}
.cart-item {
        display: grid;
        grid-template-columns: 140px 1fr auto auto;
        column-gap: 24px;
        row-gap: 14px;
        padding: 24px 0;
        border-bottom: 1px solid #e5e5e5;
        align-items: start;
}
.cart-item-img {
        display: block;
        width: 140px;
        text-decoration: none;
        grid-row: 1 / span 2;
}
.cart-item-img img {
        width: 100%;
        height: auto;
        display: block;
        background: #f7f7f4;
        border: 1px solid #e5e5e5;
}
.cart-item-info {
        min-width: 0;
        grid-row: 1;
}
.cart-item-brand {
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.6px;
        color: #1a1a1a;
        margin: 0 0 6px;
}
.cart-item-name {
        display: block;
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
        text-decoration: none;
        margin: 0 0 6px;
        line-height: 1.35;
}
.cart-item-name:hover {
        color: #1a1a1a;
        text-decoration: none;
}
.cart-item-variant {
        font-size: 14px;
        color: #444;
        margin: 0;
}
.cart-item-qty {
        grid-row: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        min-width: 84px;
        padding-top: 2px;
}
.cart-item-qty-label {
        color: #555;
        font-size: 12px;
        text-transform: uppercase !important;
        letter-spacing: 0.5px;
        margin-bottom: 6px;
}
.cart-item-qty-select {
        font-family: 'Raleway', sans-serif;
        font-size: 19px;
        font-weight: 600;
        line-height: normal;
        padding: 10px 36px 10px 16px;
        border: 1px solid #1a1a1a;
        background-color: #fff;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 16px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        cursor: pointer;
        color: #1a1a1a;
        min-width: 82px;
}
.cart-item-qty-select:focus {
        outline: 2px solid #1a1a1a;
        outline-offset: 1px;
}
.cart-item-qty-select:disabled {
        opacity: 0.5;
        cursor: wait;
}
.cart-item-price {
        grid-row: 1;
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
        padding-top: 28px;
        text-align: right;
        min-width: 84px;
}
.cart-item-actions {
        grid-row: 2;
        grid-column: 2 / -1;
        display: flex;
        gap: 16px;
        align-items: center;
}
.cart-item-remove {
        background: transparent;
        border: 0;
        cursor: pointer;
        width: 44px;
        height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #1a1a1a;
        border-radius: 50%;
        padding: 0;
        transition: background 0.15s;
        margin-left: -8px;
}
.cart-item-remove:hover { background: #f0f0ec; }
.cart-item-remove:disabled { opacity: 0.4; cursor: wait; }
.cart-item-remove i { font-size: 28px; }

/* ── Summary sidebar ────────────────────────────────────── */
.cart-summary {
        background: #fff;
        border: 1px solid #e5e5e5;
        padding: 24px 28px 28px;
        position: sticky;
        top: 24px;
}
.cart-summary-title {
        font-family: 'Raleway', sans-serif;
        font-size: 22px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
}
.cart-summary-divider {
        border: 0;
        border-top: 1px solid #e5e5e5;
        margin: 16px 0;
}
.cart-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 17px;
        color: #1a1a1a;
}
.cart-summary-label {
        font-weight: 500;
}
.cart-summary-amount {
        font-weight: 700;
}
.cart-summary-note {
        font-size: 13px;
        color: #666;
        margin: 6px 0 22px;
}
.cart-summary-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        width: 100%;
        padding: 14px 18px;
        background: #1a1a1a;
        color: #fff;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
        font-family: 'Raleway', sans-serif;
        border: 1px solid #1a1a1a;
        cursor: pointer;
        transition: background 0.15s;
}
.cart-summary-cta:hover {
        background: #000;
}
.cart-summary-cta i {
        font-size: 18px;
}

/* ── Empty cart state ───────────────────────────────────── */
.cart-empty {
        text-align: center;
        padding: 60px 20px 80px;
        max-width: 480px;
        margin: 0 auto;
}
.cart-empty-title {
        font-family: 'Raleway', sans-serif;
        font-size: 28px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 12px;
}
.cart-empty-text {
        font-size: 15px;
        color: #555;
        margin: 0 0 28px;
}
.cart-empty-cta {
        display: inline-block;
        padding: 14px 28px;
        background: #1a1a1a;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        font-size: 15px;
        border: 1px solid #1a1a1a;
        transition: background 0.15s;
}
.cart-empty-cta:hover { background: #000; }

/* ── Responsive ─────────────────────────────────────────── */
/* Stack the page layout earlier so item rows aren't squeezed.
   Below 1100px the sidebar falls under the items list and the
   summary box centers itself with a sensible max-width. */
@media (max-width: 1100px) {
        .cart-layout {
                grid-template-columns: 1fr;
        }
        .cart-summary {
                position: static;
                max-width: 480px;
                margin: 24px auto 0;
                width: 100%;
        }
}

/* At narrower widths the item row collapses: image left, info
   takes the right column, then qty / price / remove stack below
   the info instead of fighting for horizontal space. */
@media (max-width: 700px) {
        .cart-item {
                grid-template-columns: 100px 1fr;
                column-gap: 16px;
                row-gap: 10px;
        }
        .cart-item-img {
                width: 100px;
                grid-row: 1 / span 4;
        }
        .cart-item-info { grid-row: 1; }
        .cart-item-qty {
                grid-row: 2;
                grid-column: 2;
                flex-direction: row;
                gap: 10px;
                align-items: center;
                padding-top: 0;
                min-width: 0;
        }
        .cart-item-qty-label { margin: 0; }
        .cart-item-price {
                grid-row: 3;
                grid-column: 2;
                padding-top: 0;
                text-align: left;
                font-size: 17px;
        }
        .cart-item-actions {
                grid-row: 4;
                grid-column: 2;
        }
        .cart-page { padding: 24px 16px 60px; }
        .cart-title { font-size: 26px; }
}


/* ── Cart trust block (Website Security under checkout) ── */
.cart-trust {
        margin-top: 24px;
}
.cart-trust-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: 'Raleway', sans-serif;
        font-size: 13px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 12px;
        text-transform: uppercase;
        letter-spacing: 0.6px;
}
.cart-trust-title i {
        font-size: 18px;
        color: #1aa758;
}
.cart-trust-text {
        font-size: 12.5px;
        color: #555;
        line-height: 1.55;
        margin: 0 0 10px;
}
.cart-trust-text:last-of-type {
        margin-bottom: 14px;
}
.cart-trust-cards {
        display: block;
        max-width: 100%;
        height: auto;
        margin: 4px 0 12px;
}
.cart-trust-logo {
        display: block;
        max-width: 100%;
        height: auto;
        margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════
   Checkout page (checkout-preview.php) — jrbnew inspired
   ═══════════════════════════════════════════════════════════ */

.checkout-page {
        max-width: var(--page-max-width);
        margin: 0 auto;
        padding: 32px 24px 80px;
        font-family: 'Raleway', sans-serif;
}
.checkout-breadcrumbs {
        font-size: 13px;
        color: #555;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
}
.checkout-breadcrumbs a {
        color: #555;
        text-decoration: none;
}
.checkout-breadcrumbs a:hover { text-decoration: underline; }
.checkout-breadcrumbs .breadcrumb-sep { color: #999; }
.checkout-title {
        font-family: 'Raleway', sans-serif;
        font-size: 32px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 28px 0;
}

/* ── Two-column layout ──────────────────────────────────── */
.checkout-layout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 40px;
        align-items: start;
}

/* ── Form column / steps ────────────────────────────────── */
.checkout-form-col {
        min-width: 0;
}
.checkout-step {
        background: #fff;
        padding: 28px 28px 32px;
        margin-bottom: 16px;
        border: 1px solid #e5e5e5;
}
.checkout-step-title {
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: 'Raleway', sans-serif;
        font-size: 22px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0 0 24px 0;
}
.checkout-step-num {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: #1a1a1a;
        color: #fff;
        border-radius: 50%;
        font-size: 16px;
        font-weight: 700;
        flex-shrink: 0;
}

/* ── Form fields (single column jrbnew style) ─────────────── */
.checkout-form {
        display: block;
        max-width: 440px;
}
.form-field {
        display: flex;
        flex-direction: column;
        margin-bottom: 14px;
        min-width: 0;
}
.form-field label {
        font-size: 13.5px;
        font-weight: 600;
        color: #1a1a1a;
        margin-bottom: 6px;
}
.form-required { color: #d82028; }
.form-optional {
        font-weight: 400;
        color: #888;
        font-size: 12.5px;
}
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select {
        padding: 11px 14px;
        border: 1px solid #c5c5c5;
        background: #fff;
        font-family: 'Raleway', sans-serif;
        font-size: 15px;
        color: #1a1a1a;
        outline: none;
        transition: border-color 0.15s;
        width: 100%;
}
.form-field select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 10px center;
        background-size: 14px;
        padding-right: 36px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        cursor: pointer;
}
.form-field input:focus,
.form-field select:focus {
        border-color: #1a1a1a;
        box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.04);
}
.form-checkbox-row {
        display: flex;
        align-items: center;
        gap: 10px;
        cursor: pointer;
        font-size: 14.5px;
        color: #1a1a1a;
        font-weight: 500;
        padding: 8px 0;
        margin-top: 6px;
}
.form-checkbox-row input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        accent-color: #1a1a1a;
}
.form-subhead {
        font-family: 'Raleway', sans-serif;
        font-size: 17px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 16px 0 16px;
        padding-top: 16px;
        border-top: 1px solid #e5e5e5;
}
.form-billing[hidden] { display: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.checkout-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 14px 28px;
        border: 1px solid #1a1a1a;
        background: #1a1a1a;
        color: #fff;
        font-family: 'Raleway', sans-serif;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.15s, transform 0.15s;
}
.checkout-btn:hover:not(:disabled) { background: #000; }
.checkout-btn:disabled {
        opacity: 0.4;
        cursor: not-allowed;
}
.checkout-btn-secondary {
        background: #d82028;
        border-color: #d82028;
        color: #fff;
        margin-top: 8px;
}
.checkout-btn-secondary:hover:not(:disabled) {
        background: #b41a20;
        border-color: #b41a20;
}
.checkout-btn-primary {
        background: #4caf50;
        border: 3px solid #4caf50;
        color: #fff;
        padding: 14px 30px;
        font-size: 16px;
        font-weight: 700;
}
.checkout-btn-primary:hover:not(:disabled) {
        background: #43a047;
        border-color: #43a047;
        color: #fff;
}
.checkout-btn-primary:disabled {
        background: #e0e0e0;
        border-color: #e0e0e0;
        color: #999;
        cursor: not-allowed;
}
.checkout-btn i { font-size: 18px; }

/* Pulse animation — trust-green to match buttons */
@keyframes checkout-pulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
        50%      { box-shadow: 0 0 0 12px rgba(76, 175, 80, 0.4); }
}
.checkout-btn-pulse {
        animation: checkout-pulse 2s ease-in-out infinite;
}

/* ── Step locked notes ──────────────────────────────────── */
.step-locked-note {
        padding: 14px 16px;
        background: #f7f7f4;
        border-left: 3px solid #c5c5c5;
        color: #555;
        font-size: 14px;
        margin: 0 0 20px;
}

/* ── Payment row (Total + Place order side by side) ────── */
.checkout-pay-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 18px 0 12px;
        flex-wrap: wrap;
}
.checkout-pay-total {
        display: flex;
        flex-direction: column;
}
.checkout-pay-label {
        font-size: 13px;
        color: #555;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
}
.checkout-pay-amount {
        font-size: 24px;
        font-weight: 700;
        color: #1a1a1a;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1100px) {
        .checkout-layout {
                grid-template-columns: 1fr;
        }
        .checkout-summary {
                position: static;
                max-width: 480px;
                margin: 0 auto;
                width: 100%;
        }
}
@media (max-width: 768px) {
        /* Hide the desktop sidebar; show the mobile collapsing bag */
        .checkout-summary { display: none; }
        .checkout-mobile-bag { display: block; }
        .checkout-page { padding: 24px 16px 60px; }
        .checkout-title { font-size: 26px; }
        .checkout-step { padding: 22px 18px 26px; }
        .checkout-pay-row {
                align-items: stretch;
                flex-direction: column;
                gap: 14px;
        }
        .checkout-btn-primary { width: 100%; }
}

/* ── Summary sidebar (desktop) ──────────────────────────── */
.checkout-summary {
        background: #fff;
        border: 1px solid #e5e5e5;
        padding: 24px 24px 28px;
        position: sticky;
        top: 24px;
}
.summary-heading {
        margin-bottom: 16px;
        border-bottom: 1px solid #e5e5e5;
        padding-bottom: 16px;
}
.summary-title {
        font-family: 'Raleway', sans-serif;
        font-size: 18px;
        font-weight: 700;
        color: #1a1a1a;
        margin: 0;
}
.summary-count {
        font-size: 13px;
        color: #555;
        margin: 4px 0 0;
}
.summary-items {
        display: flex;
        flex-direction: column;
        gap: 16px;
        max-height: 360px;
        overflow-y: auto;
        margin-bottom: 16px;
        padding-right: 4px;
}
.summary-item {
        display: grid;
        grid-template-columns: 56px 1fr auto;
        gap: 12px;
        align-items: start;
}
.summary-item-img {
        width: 56px;
        height: 56px;
        object-fit: cover;
        background: #f7f7f4;
        border: 1px solid #e5e5e5;
        display: block;
}
.summary-item-body { min-width: 0; }
.summary-item-brand {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #1a1a1a;
        margin: 0 0 2px;
}
.summary-item-name {
        font-size: 13px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0 0 2px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
}
.summary-item-variant {
        font-size: 12px;
        color: #555;
        margin: 0 0 2px;
}
.summary-item-qty {
        font-size: 12px;
        color: #555;
        margin: 0;
}
.summary-item-price {
        font-size: 14px;
        font-weight: 600;
        color: #1a1a1a;
        white-space: nowrap;
}
.summary-totals {
        border-top: 1px solid #e5e5e5;
        padding-top: 16px;
}
.summary-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        font-size: 14px;
        color: #1a1a1a;
        margin-bottom: 8px;
}
.summary-row-total {
        font-size: 18px;
        font-weight: 700;
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid #e5e5e5;
}
.summary-note {
        font-size: 12.5px;
        color: #555;
        margin: 6px 0 12px;
        font-style: italic;
}

/* ── Mobile bag bar (collapsing) ────────────────────────── */
.checkout-mobile-bag {
        display: none;
        background: #f7f7f4;
        border: 1px solid #e5e5e5;
        margin-bottom: 24px;
        overflow: hidden;
}
.mobile-bag-toggle {
        width: 100%;
        background: transparent;
        border: 0;
        padding: 16px 20px;
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 600;
        color: #1a1a1a;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        cursor: pointer;
}
.mobile-bag-count { flex: 1; text-align: left; }
.mobile-bag-total { font-weight: 700; }
.mobile-bag-chevron {
        font-size: 22px;
        transition: transform 0.2s;
}
.checkout-mobile-bag.expanded .mobile-bag-chevron {
        transform: rotate(180deg);
}
.mobile-bag-content {
        display: none;
        padding: 0 20px 20px;
        background: #fff;
        border-top: 1px solid #e5e5e5;
}
.checkout-mobile-bag.expanded .mobile-bag-content { display: block; }
.mobile-bag-content .summary-item { padding: 16px 0; border-bottom: 1px solid #f0f0ec; }
.mobile-bag-content .summary-item:last-child { border-bottom: 0; }
.mobile-bag-content .summary-totals { border-top: 1px solid #e5e5e5; }

/* ─── Checkout — inline error + success states (Phase 2 Step 1) ─── */
.form-field.has-error input[type="text"],
.form-field.has-error input[type="email"],
.form-field.has-error input[type="tel"],
.form-field.has-error select {
        border-color: #d82028;
        background-color: #fff8f8;
}
.form-error {
        color: #d82028;
        font-size: 12.5px;
        line-height: 1.4;
        margin-top: 5px;
        font-weight: 500;
}
.form-error-banner {
        background: #fdecee;
        border-left: 3px solid #d82028;
        padding: 12px 14px;
        margin: 0 0 18px 0;
}
.form-error-banner p {
        color: #1a1a1a;
        font-size: 13.5px;
        margin: 0;
        line-height: 1.5;
}
.form-error-banner p + p { margin-top: 4px; }

/* Saved-address success state on the primary button */
.checkout-btn-success,
.checkout-btn-success:disabled {
        background: #f3f7f3;
        color: #1a1a1a;
        border: 3px solid #4caf50;
        cursor: default;
        opacity: 1;
}
.checkout-btn-success i { color: #4caf50; }

/* Edit address link next to the locked button */
.checkout-edit-link {
        background: none;
        border: none;
        color: #1a1a1a;
        text-decoration: underline;
        font-family: inherit;
        font-size: 13.5px;
        cursor: pointer;
        padding: 0;
        margin-left: 14px;
        font-weight: 500;
}
.checkout-edit-link:hover { color: #d82028; }

/* ─── Checkout — Step 2 shipping method rows (Phase 2) ─── */
.step-loading-note {
        font-size: 14px;
        color: #666;
        padding: 16px 18px;
        background: #fafaf8;
        border: 1px solid #ececec;
        margin: 0;
}
.shipping-group + .shipping-group { margin-top: 18px; }
.shipping-group-title {
        font-size: 12.5px;
        font-weight: 600;
        color: #666;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin: 0 0 8px 0;
}
.shipping-method {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border: 1px solid #d5d5d5;
        background: #fff;
        cursor: pointer;
        transition: border-color 0.15s, background-color 0.15s;
        margin-bottom: 8px;
}
.shipping-method:hover {
        border-color: #1a1a1a;
}
.shipping-method input[type="radio"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
        flex-shrink: 0;
        margin: 0;
}
.shipping-method.is-selected {
        border-color: #1a1a1a;
        background: #fafaf8;
        box-shadow: inset 0 0 0 1px #1a1a1a;
}
.shipping-method-title {
        flex: 1;
        font-size: 14.5px;
        font-weight: 500;
        color: #1a1a1a;
        line-height: 1.4;
}
.shipping-method-cost {
        font-size: 14.5px;
        font-weight: 600;
        color: #1a1a1a;
        white-space: nowrap;
}
.shipping-method-cost.is-free { color: #2a8c4a; }

/* ─── Checkout — Step 3 confirm.confirm container (Phase 2.3) ─── */
#step-confirm:empty { display: none; }
#step-confirm:not(:empty) {
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1px solid #e5e5e5;
}

/* Style OC4's loaded #button-confirm to match our green primary CTA */
#step-confirm #button-confirm,
#step-confirm .btn-primary,
#step-confirm button[type="submit"] {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        background: #4caf50;
        color: #fff;
        border: 3px solid #4caf50;
        border-radius: 0;
        padding: 14px 28px;
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 600;
        text-transform: none;
        letter-spacing: 0;
        cursor: pointer;
        transition: background-color 0.15s;
        min-width: 220px;
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4);
        animation: checkout-pulse 1.6s ease-in-out infinite;
}
#step-confirm #button-confirm:hover,
#step-confirm .btn-primary:hover,
#step-confirm button[type="submit"]:hover {
        background: #43a047;
        border-color: #43a047;
}

/* ─── Checkout — confirm.confirm fragment styling ────────────────
   The loaded OC4 fragment carries Bootstrap defaults (blue links,
   bordered tables) and a Sub-Total/Total table that duplicates
   the right-rail summary. Normalise it. ───────────────────────── */
#step-confirm a {
        color: #1a1a1a;
        text-decoration: none;
        font-weight: 500;
}
#step-confirm a:hover {
        color: #d82028;
        text-decoration: underline;
}
#step-confirm table {
        /* Hidden — totals already shown in the right-rail Order summary
           and on mobile in the collapsible bag bar. */
        display: none;
}
#step-confirm small,
#step-confirm .small {
        color: #666;
        font-size: 12.5px;
}
#step-confirm .text-end,
#step-confirm .text-right { text-align: left; }

/* ─── Information page (info-preview.php) ───────────────── */
.info-page {
        max-width: var(--page-max-width);
        margin: 0 auto;
        padding: 24px 20px 64px;
}

.info-title {
        font-family: 'Raleway', sans-serif;
        font-size: 32px;
        font-weight: 400;
        color: #1a1a1a;
        margin: 16px 0 28px;
        line-height: 1.25;
}

/* Prose fills the .info-page container (1280px). Matches cat-preview's
   .cat-description behaviour — body text uses the page width same as
   product grids. */
.info-content {
        color: #1a1a1a;
        font-family: 'Raleway', sans-serif;
        font-size: 15px;
        line-height: 1.7;
}

/* ── Headings inside the content ── */
.info-content h1 {
        font-size: 28px;
        font-weight: 400;
        margin: 40px 0 16px;
        line-height: 1.3;
}
.info-content h2 {
        font-size: 22px;
        font-weight: 600;
        margin: 36px 0 12px;
        line-height: 1.35;
}
.info-content h3 {
        font-size: 18px;
        font-weight: 600;
        margin: 28px 0 10px;
        line-height: 1.4;
}
.info-content h4,
.info-content h5,
.info-content h6 {
        font-size: 15.5px;
        font-weight: 600;
        margin: 22px 0 8px;
}
.info-content h2:first-child,
.info-content h3:first-child {
        margin-top: 0;
}

/* ── Body text ── */
.info-content p {
        margin: 0 0 16px;
}
.info-content strong,
.info-content b { font-weight: 600; }
.info-content em,
.info-content i { font-style: italic; }
.info-content small { font-size: 13px; color: #555; }

/* ── Links ── */
.info-content a {
        color: #1a1a1a;
        text-decoration: underline;
        text-underline-offset: 2px;
}
.info-content a:hover { color: #d82028; }

/* ── Lists ── */
.info-content ul,
.info-content ol {
        margin: 0 0 18px;
        padding-left: 22px;
}
.info-content li {
        margin-bottom: 6px;
}
.info-content li > ul,
.info-content li > ol {
        margin: 6px 0 0;
}

/* ── Tables (size guides etc) — break out of the 800px prose
       column up to the page container width if they want to ── */
.info-content table {
        width: 100%;
        max-width: 1240px;
        border-collapse: collapse;
        margin: 20px 0 28px;
        font-size: 14px;
        background: #fff;
}
.info-content thead th,
.info-content th {
        background: #f5f5f3;
        text-align: left;
        font-weight: 600;
        padding: 10px 14px;
        border-bottom: 1px solid #d5d5d5;
        color: #1a1a1a;
}
.info-content td {
        padding: 10px 14px;
        border-bottom: 1px solid #ececec;
        vertical-align: top;
}
.info-content tr:last-child td { border-bottom: 0; }
.info-content table caption {
        text-align: left;
        font-weight: 600;
        padding: 0 0 8px;
        color: #1a1a1a;
}

/* Wrap wide tables in a horizontal scroller on small screens */
@media (max-width: 700px) {
        .info-content table { display: block; overflow-x: auto; }
}

/* ── Images ── */
.info-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 16px 0;
}

/* ── Blockquote & hr ── */
.info-content blockquote {
        margin: 16px 0;
        padding: 12px 18px;
        border-left: 3px solid #d82028;
        background: #fafaf8;
        color: #1a1a1a;
}
.info-content hr {
        border: 0;
        border-top: 1px solid #ececec;
        margin: 28px 0;
}

/* ── Strip inline TinyMCE leftovers that mess with our layout ── */
.info-content [style*="font-family"] { font-family: inherit !important; }
.info-content [style*="font-size"]   { /* allow — sometimes intentional in size guides */ }

/* Breadcrumbs already styled by .breadcrumbs (used on cat-preview).
   Confirm sep colour and spacing carry over here too. */

/* ─── Size Guide (info-preview.php?information_id=6) ─────────
   Responsive pills design: each size+measurement is a small
   card that wraps in a flex row. Scales from 320px to 1280px
   without overflow. All selectors prefixed with .size-guide so
   they outweigh the generic .info-content typography rules. ── */

.size-guide-intro {
        text-align: center;
        color: #555;
        font-style: italic;
        font-size: 14.5px;
        margin: 0 0 24px;
        padding: 14px 20px;
        background: #fafaf8;
        border-left: 3px solid #d82028;
}

.size-guide-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin: 0 0 28px;
        padding: 16px 0;
        border-top: 1px solid #ececec;
        border-bottom: 1px solid #ececec;
}
.size-guide-nav a {
        background: #fff;
        color: #1a1a1a;
        text-decoration: none;
        padding: 8px 14px;
        font-size: 13.5px;
        font-weight: 500;
        border: 1px solid #d5d5d5;
        transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.size-guide-nav a:hover,
.size-guide-nav a:focus {
        background: #1a1a1a;
        color: #fff;
        border-color: #1a1a1a;
}

.size-guide .size-section {
        padding: 20px 0 24px;
        border-bottom: 1px solid #ececec;
        scroll-margin-top: 24px;
}
.size-guide .size-section:last-child { border-bottom: 0; }

.size-guide .size-section-title {
        font-family: 'Raleway', sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: #1a1a1a;
        margin: 0 0 14px;
        line-height: 1.3;
}

.size-guide .size-measure-label {
        font-size: 12px;
        color: #666;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        margin: 0 0 10px;
}
.size-guide .size-pills + .size-measure-label { margin-top: 18px; }

.size-guide .size-pills {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
}
.size-guide .size-pill {
        background: #fff;
        border: 1px solid #d5d5d5;
        padding: 12px 14px;
        min-width: 84px;
        text-align: center;
        font-family: 'Raleway', sans-serif;
}
.size-guide .size-pill strong {
        display: block;
        font-size: 16px;
        color: #1a1a1a;
        font-weight: 600;
        font-variant-numeric: tabular-nums lining-nums;
}
.size-guide .size-pill span {
        display: block;
        font-size: 13px;
        color: #666;
        margin-top: 2px;
        font-variant-numeric: tabular-nums lining-nums;
}

.size-guide .size-section-meta {
        margin: 14px 0 0;
        font-size: 13.5px;
        color: #666;
}

/* Tablet — pills tighten slightly */
@media (max-width: 700px) {
        .size-guide .size-pill        { min-width: 72px; padding: 10px 12px; }
        .size-guide .size-pill strong { font-size: 15px; }
        .size-guide .size-pill span   { font-size: 12.5px; }
        .size-guide .size-section-title { font-size: 18px; }
        .size-guide-nav a { padding: 7px 12px; font-size: 12.5px; }
}

/* Narrow phones — pills get smaller and gap tightens */
@media (max-width: 400px) {
        .size-guide .size-pills { gap: 6px; }
        .size-guide .size-pill  { min-width: 64px; padding: 9px 10px; }
}

/* ═══════════════════════════════════════════════════════════════
   ACCOUNT DASHBOARD — jrbnew-style category grid
   used by: account-preview.php
   ═══════════════════════════════════════════════════════════════ */

.account-page {
        max-width: var(--page-max-width);
        margin: 0 auto;
        padding: var(--page-padding);
        font-family: 'Raleway', sans-serif;
}

.account-header {
        text-align: center;
        margin: var(--space-cluster) 0 var(--space-section);
}

.account-title {
        font-family: 'Raleway', sans-serif;
        font-weight: 400;
        font-size: 36px;
        color: #1a1a1a;
        margin: 0;
        letter-spacing: -0.01em;
}

.account-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 56px 80px;
        max-width: 1080px;
        margin: 0 auto;
}

.account-section-title {
        font-family: 'Raleway', sans-serif;
        font-weight: 400;
        font-size: 26px;
        color: #1a1a1a;
        margin: 0 0 12px;
        letter-spacing: -0.005em;
}

.account-list {
        list-style: none;
        padding: 0;
        margin: 0;
}

.account-list li {
        border-bottom: 1px solid #ececec;
}

.account-list li a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 22px 8px 22px 4px;
        color: #1a1a1a;
        text-decoration: none;
        font-family: 'Raleway', sans-serif;
        font-size: 15px;
        font-weight: 500;
        transition: background-color .15s, padding-left .15s;
}

.account-list li a:hover {
        background-color: #fafafa;
        padding-left: 12px;
}

.account-list li a i {
        font-size: 20px;
        color: #b0b0b0;
        flex-shrink: 0;
        transition: color .15s;
}

.account-list li a:hover i {
        color: #1a1a1a;
}

.account-footer {
        margin: 36px auto 0;
        max-width: 1080px;
        padding-top: 24px;
        border-top: 1px solid #ececec;
        text-align: center;
}

a.account-logout, button.account-logout {
	display: inline-block;
	font-family: 'Raleway', sans-serif;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: #c62828;
	text-decoration: none;
	padding: 10px 22px;
	border-radius: 4px;
	transition: background-color 0.15s ease;
}
a.account-logout:hover, button.account-logout:hover {
	background: #a81f1f;
	color: #ffffff;
	text-decoration: none;
}


@media (max-width: 768px) {
        .account-page { padding: 16px 20px 24px; }
        .account-header { margin: 16px 0 16px; }
        .account-title { font-size: 28px; }
        .account-grid { grid-template-columns: 1fr; gap: 40px; max-width: 100%; }
        .account-section-title { font-size: 22px; }
        .account-footer { margin-top: 56px; padding-top: 24px; }
}


/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES — login / register / forgotten password
   jrbnew-style centered card with focused single form.
   used by: login-preview.php, register-preview.php, forgotten-preview.php
   ═══════════════════════════════════════════════════════════════ */

.auth-page {
        max-width: var(--page-max-width);
        margin: 0 auto;
        padding: 24px 40px 96px;
        font-family: 'Raleway', sans-serif;
}

.auth-card {
        max-width: 460px;
        margin: 32px auto 0;
        padding: 8px 0 0;
}

.auth-card-wide {
        max-width: 640px;
}

.auth-title {
        font-family: 'Raleway', sans-serif;
        font-weight: 400;
        font-size: 32px;
        color: #1a1a1a;
        margin: 0 0 8px;
        letter-spacing: -0.01em;
        text-align: center;
}

.auth-subtitle {
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
        font-weight: 400;
        color: #666;
        line-height: 1.5;
        margin: 0 0 32px;
        text-align: center;
}

.auth-section-title {
        font-family: 'Raleway', sans-serif;
        font-weight: 500;
        font-size: 14px;
        color: #1a1a1a;
        margin: 28px 0 14px;
        text-transform: uppercase;
        letter-spacing: 0.05em;
}

.auth-section-title:first-child {
        margin-top: 0;
}

.auth-form {
        display: flex;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 24px;
}

.auth-form .form-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
}

.auth-form .form-field label {
        font-family: 'Raleway', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #1a1a1a;
}

.auth-form .form-field input[type="email"],
.auth-form .form-field input[type="text"],
.auth-form .form-field input[type="password"],
.auth-form .form-field input[type="tel"] {
        font-family: 'Raleway', sans-serif;
        font-size: 14.5px;
        padding: 12px 14px;
        border: 1px solid #d4d4d4;
        border-radius: 2px;
        background: #fff;
        color: #1a1a1a;
        transition: border-color .15s;
}

.auth-form .form-field input:focus {
        outline: none;
        border-color: #1a1a1a;
}

.auth-form .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
}

.auth-form .form-required {
        color: #d82028;
        font-weight: 500;
}

.auth-form .form-checkbox {
        margin-top: 4px;
}

.auth-form .form-checkbox label {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        font-family: 'Raleway', sans-serif;
        font-size: 13.5px;
        font-weight: 400;
        color: #333;
        line-height: 1.5;
        cursor: pointer;
}

.auth-form .form-checkbox input[type="checkbox"] {
        margin-top: 2px;
        flex-shrink: 0;
}

.auth-form .form-checkbox a {
        color: #1a1a1a;
        text-decoration: underline;
        text-underline-offset: 2px;
}

.auth-row-between {
        display: flex;
        justify-content: flex-end;
        margin-top: -8px;
}

.auth-link {
        font-family: 'Raleway', sans-serif;
        font-size: 13px;
        font-weight: 500;
        color: #1a1a1a;
        text-decoration: underline;
        text-underline-offset: 3px;
}

.auth-link:hover {
        text-decoration: none;
}

.auth-form .checkout-btn {
        margin-top: 8px;
        width: 100%;
}

.auth-divider {
        position: relative;
        margin: 32px 0 20px;
        text-align: center;
}

.auth-divider:before {
        content: "";
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        height: 1px;
        background: #ececec;
}

.auth-divider span {
        position: relative;
        background: #fff;
        padding: 0 16px;
        font-family: 'Raleway', sans-serif;
        font-size: 13px;
        color: #666;
}

.auth-card .checkout-btn-secondary {
        width: 100%;
        background: #fff;
        color: #1a1a1a;
        border: 1px solid #1a1a1a;
        text-decoration: none;
        text-align: center;
        display: block;
        padding: 12px 18px;
        font-family: 'Raleway', sans-serif;
        font-weight: 500;
        font-size: 14.5px;
        transition: background-color .15s;
}

.auth-card .checkout-btn-secondary:hover {
        background: #1a1a1a;
        color: #fff;
}

.auth-back {
        margin-top: 24px;
        text-align: center;
}

.auth-alert {
        padding: 12px 16px;
        margin: 0 0 20px;
        border-radius: 2px;
        font-family: 'Raleway', sans-serif;
        font-size: 13.5px;
        line-height: 1.5;
}

.auth-alert-error {
        background: #fdecea;
        border: 1px solid #f5c6c0;
        color: #8b1a1a;
}

.auth-alert-success {
        background: #e9f7ef;
        border: 1px solid #b8e0c8;
        color: #1e6f3b;
}

@media (max-width: 768px) {
        .auth-page { padding: 16px 20px 64px; }
        .auth-card { margin-top: 16px; max-width: 100%; }
        .auth-title { font-size: 26px; }
        .auth-form .form-row { grid-template-columns: 1fr; gap: 18px; }
}

/* === Show/hide password toggle (append) ============================== */

.pw-wrap {
    position: relative;
}

.pw-wrap input[type="password"],
.pw-wrap input[type="text"] {
    width: 100% !important;
    box-sizing: border-box;
    padding-right: 56px;
}

.pw-toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: #333;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 6px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pw-toggle:hover {
    color: #1a1a1a;
}

.pw-toggle:focus-visible {
    outline: 2px solid #d82028;
    outline-offset: 2px;
    border-radius: 2px;
}

.pw-toggle i {
    line-height: 1;
}
/* === Orders list (append) ============================================ */

.orders-loading,
.orders-empty {
    padding: 48px 20px;
    text-align: center;
    color: #666;
}

.orders-empty p {
    margin: 0 0 16px;
    font-size: 15px;
}

.orders-list {
    margin: 24px 0 16px;
    border-top: 1px solid #e8e8e8;
}

.orders-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 4px;
    border-bottom: 1px solid #e8e8e8;
    color: inherit;
    text-decoration: none;
    transition: background-color 0.15s;
}

.orders-row:hover {
    background-color: #fafafa;
    text-decoration: none;
    color: inherit;
}

.orders-row-main { flex: 1; min-width: 0; }
.orders-row-id { font-weight: 600; font-size: 16px; color: #1a1a1a; margin-bottom: 6px; }
.orders-row-meta { font-size: 13px; color: #666; display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.orders-meta-sep { margin: 0 8px; color: #ccc; }

.orders-status {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}
.status-green { background: #e8f5e9; color: #2e7d32; }
.status-blue  { background: #e3f2fd; color: #1565c0; }
.status-grey  { background: #f0f0f0; color: #555; }
.status-red   { background: #ffebee; color: #c62828; }

.orders-row-side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.orders-total { font-weight: 600; font-size: 16px; color: #1a1a1a; }
.orders-chevron { font-size: 22px; color: #999; line-height: 1; }

@media (max-width: 640px) {
    .orders-row { padding: 16px 4px; }
    .orders-row-meta { font-size: 12px; }
    .orders-total { font-size: 15px; }
}
/* === Order detail (append) =========================================== */

.order-header { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 16px 0 28px; }
.order-header .account-title { margin: 0; }
.order-header .orders-status { font-size: 13px; padding: 4px 12px; }

.order-section { margin: 0 0 36px; }
.order-section-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid #e8e8e8; }

.order-meta { margin: 0; }
.order-meta-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.order-meta-row:last-child { border-bottom: 0; }
.order-meta-row dt { color: #666; font-weight: 500; }
.order-meta-row dd { margin: 0; color: #1a1a1a; }

.order-addresses { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.order-address { padding: 16px 18px; background: #fafafa; border: 1px solid #e8e8e8; border-radius: 4px; }
.order-address h3 { font-size: 13px; font-weight: 600; color: #666; margin: 0 0 10px; text-transform: uppercase; letter-spacing: 0.04em; }
.order-address address { font-style: normal; line-height: 1.5; color: #1a1a1a; }

.order-items { list-style: none; margin: 0; padding: 0; border-top: 1px solid #e8e8e8; }
.order-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid #e8e8e8; }
.order-item-main { flex: 1; min-width: 0; }
.order-item-name { font-weight: 500; color: #1a1a1a; margin-bottom: 6px; }
.order-item-name a { color: inherit; text-decoration: none; }
.order-item-name a:hover { text-decoration: underline; }
.order-item-name small { display: block; color: #666; font-weight: 400; margin-top: 4px; font-size: 13px; }
.order-item-meta { font-size: 13px; color: #666; }
.order-item-total { font-weight: 600; color: #1a1a1a; flex-shrink: 0; text-align: right; }
.order-items-empty { padding: 24px 4px; color: #666; font-style: italic; }

.order-totals { margin: 0; padding: 16px 18px; background: #fafafa; border: 1px solid #e8e8e8; border-radius: 4px; }
.order-totals-row { display: flex; justify-content: space-between; padding: 6px 0; color: #1a1a1a; }
.order-totals-row dt { color: #666; font-weight: 400; margin: 0; }
.order-totals-row dd { margin: 0; font-weight: 500; }
.order-totals-grand { margin-top: 6px; padding-top: 12px; border-top: 1px solid #d8d8d8; font-size: 17px; }
.order-totals-grand dt, .order-totals-grand dd { font-weight: 600; color: #1a1a1a; }

.order-history { list-style: none; margin: 0; padding: 0; }
.order-history-row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.order-history-row:last-child { border-bottom: 0; }
.order-history-when { color: #1a1a1a; font-size: 15px; }
.order-history-what .orders-status { margin-bottom: 6px; }
.order-history-note { color: #1a1a1a; font-size: 15px; line-height: 1.5; margin: 6px 0 0; }

@media (max-width: 640px) {
    .order-addresses { grid-template-columns: 1fr; }
    .order-meta-row { grid-template-columns: 1fr; gap: 2px; }
    .order-history-row { grid-template-columns: 1fr; gap: 4px; }
}
/* === Address book (append) ============================================ */

.address-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin: 24px 0; }
.address-card { padding: 18px 20px; background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; display: flex; flex-direction: column; transition: border-color 0.15s; }
.address-card:hover { border-color: #999; }
.address-card-body { font-style: normal; line-height: 1.55; color: #1a1a1a; margin: 0 0 16px; flex: 1; }
.address-card-actions { display: flex; gap: 14px; padding-top: 14px; border-top: 1px solid #f0f0f0; }
.address-action { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #1a1a1a; text-decoration: none; padding: 4px 0; }
.address-action:hover { color: #d82028; text-decoration: underline; }
.address-action i { font-size: 16px; }
.address-action-delete { color: #666; margin-left: auto; }
.address-action-delete:hover { color: #c62828; }

.address-empty { padding: 32px 20px; background: #fafafa; border: 1px dashed #ccc; border-radius: 4px; text-align: center; color: #666; margin: 24px 0; }
.address-empty p { margin: 0; }
.address-actions { margin: 8px 0 24px; }
.address-actions .checkout-btn { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 10px 20px; }
.address-actions .checkout-btn i { font-size: 18px; }
/* === Address form (append) ============================================ */

.form-optional { font-weight: 400; color: #999; font-size: 12px; margin-left: 4px; }

.form-buttons { display: flex; gap: 12px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid #e8e8e8; }
.form-buttons .checkout-btn { flex: 1; text-align: center; }
.form-buttons .checkout-btn-secondary { flex: 0 0 auto; min-width: 120px; background: #fff; color: #1a1a1a; border: 1px solid #1a1a1a; }
.form-buttons .checkout-btn-secondary:hover { background: #f8f8f8; }

/* JRB D-AddrForm: balanced equal-width buttons (scoped to address form) */
#form-address .form-buttons { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
#form-address .form-buttons .checkout-btn { display: flex; align-items: center; justify-content: center; line-height: 1.2; }
#form-address .form-buttons .checkout-btn-secondary { margin-top: 0; padding: 16px 28px; }
#form-address .form-buttons .checkout-btn-secondary:hover { background: #f8f8f8; color: #1a1a1a; text-decoration: none; }

.form-check-label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 400; color: #1a1a1a; }
.form-check-label input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }

#form-address select { width: 100%; padding: 10px 12px; border: 1px solid #d8d8d8; border-radius: 2px; font: inherit; font-size: 14.5px; background: #fff; cursor: pointer; }
#form-address select:focus { outline: 2px solid #d82028; outline-offset: -1px; border-color: #d82028; }
#form-address select:disabled { background: #f5f5f5; cursor: wait; }
/* === Address default badge (append) =================================== */

.address-default-badge { display: inline-block; background: #e8f5e9; color: #2e7d32; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 10px; border-radius: 12px; margin-bottom: 12px; }
.address-card-default { border-color: #4caf50; box-shadow: 0 0 0 1px #4caf50 inset; }
.address-card-default:hover { border-color: #43a047; box-shadow: 0 0 0 1px #43a047 inset; }
/* === Wishlist (append) ================================================ */

.wishlist-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 300px)); justify-content: center; gap: var(--space-cluster); margin: var(--space-section) 0; }
.wishlist-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e8e8e8; border-radius: 4px; overflow: hidden; transition: border-color 0.15s; }
.wishlist-card:hover { border-color: #999; }
.wishlist-thumb { display: block; aspect-ratio: 1 / 1; background: #f5f5f5; overflow: hidden; }
.wishlist-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s; }
.wishlist-card:hover .wishlist-thumb img { transform: scale(1.03); }
.wishlist-thumb-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 48px; }
.wishlist-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.wishlist-name { display: block; font-size: 14.5px; font-weight: 500; color: #1a1a1a; line-height: 1.4; margin-bottom: 6px; text-decoration: none; min-height: 2.8em; }
.wishlist-name:hover { color: #d82028; text-decoration: underline; }
.wishlist-meta { font-size: 12px; color: #888; margin-bottom: 4px; }
.wishlist-stock { font-size: 12px; font-weight: 500; margin-bottom: 8px; }
.wishlist-stock-in { color: #2e7d32; }
.wishlist-stock-out { color: #c62828; }
.wishlist-stock-other { color: #666; }
.wishlist-price { font-size: 16px; font-weight: 600; color: #1a1a1a; margin: 4px 0 14px; }
.wishlist-actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.wishlist-btn-view { width: 100%; text-align: center; padding: 9px 0; font-size: 14px; }
.wishlist-btn-remove { align-self: center; margin-left: 0 !important; font-size: 13px; padding-top: 4px; }

@media (max-width: 480px) {
    .wishlist-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .wishlist-card-body { padding: 10px 12px 12px; }
    .wishlist-name { font-size: 13px; min-height: 2.6em; }
    .wishlist-price { font-size: 14px; }
}
/* === Wishlist toast + filled heart (append) =========================== */

.heart-btn-active i.ti-heart-filled,
.heart-btn-active i {
    color: #d82028;
}

.wishlist-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    z-index: 9999;
    display: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.wishlist-toast-success { background: #2e7d32; color: #fff; }
.wishlist-toast-error   { background: #c62828; color: #fff; }
/* === Wishlist toast (brand red, anchored to heart) =================== */

.wishlist-toast {
    background: #d82028 !important;
    color: #fff !important;
    padding: 12px 14px 12px 18px !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    display: none;
    z-index: 9999;
    max-width: 320px;
    line-height: 1.4;
}

.wishlist-toast.wishlist-toast-success,
.wishlist-toast.wishlist-toast-error {
    background: #d82028 !important;
}

.wishlist-toast-msg {
    flex: 1;
}

.wishlist-toast .wishlist-toast-close {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    opacity: 0.85;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
    margin-left: 12px;
    font-weight: 300;
    box-shadow: none !important;
}

.wishlist-toast .wishlist-toast-close:hover {
    opacity: 1;
    background: transparent !important;
}
/* === Wishlist toast (brand red, anchored to heart) =================== */

.wishlist-toast {
    background: #d82028 !important;
    color: #fff !important;
    padding: 12px 14px 12px 18px !important;
    border-radius: 6px !important;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18);
    display: none;
    z-index: 9999;
    max-width: 320px;
    line-height: 1.4;
}

.wishlist-toast.wishlist-toast-success,
.wishlist-toast.wishlist-toast-error {
    background: #d82028 !important;
}

.wishlist-toast-msg {
    flex: 1;
}

.wishlist-toast .wishlist-toast-close {
    background: transparent !important;
    border: 0 !important;
    color: #fff !important;
    opacity: 0.85;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    padding: 0 4px;
    margin-left: 12px;
    font-weight: 300;
    box-shadow: none !important;
}

.wishlist-toast .wishlist-toast-close:hover {
    opacity: 1;
    background: transparent !important;
}
/* === Wishlist toast — flex layout + mobile (append) =================== */

.wishlist-toast {
    display: flex !important;            /* always flex; visibility hides it */
    align-items: flex-start;
    gap: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, visibility 0.18s ease;
    max-width: 360px;
}

.wishlist-toast.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wishlist-toast .wishlist-toast-msg {
    flex: 1 1 auto;
    line-height: 1.4;
    padding-top: 2px;
}

.wishlist-toast .wishlist-toast-close {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18) !important;
    color: #fff !important;
    font-size: 18px !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    opacity: 1 !important;
}

.wishlist-toast .wishlist-toast-close:hover {
    background: rgba(255,255,255,0.32) !important;
}

@media (max-width: 768px) {
    .wishlist-toast {
        position: fixed !important;
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;
        top: auto !important;
        max-width: none !important;
        transform: none !important;
    }
}
/* === Bag count: hide when zero (append) ============================== */
.bag-count.bag-count-empty, .wishlist-count.wishlist-count-empty { display: none; }

/* ─── Contact page (contact-preview.php) ──────────────────────
   Two-column jrbnew layout: form left, info panel right with red
   accent. Stacks on <860px. Form inputs match the project's
   square-cornered minimal style. */
.contact-page {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.contact-h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 32px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 16px 0 8px;
    line-height: 1.25;
}

.contact-intro {
    color: #555;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    max-width: 720px;
    margin: 0 0 32px;
    line-height: 1.6;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    align-items: start;
}

@media (max-width: 860px) {
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Form ── */
.contact-field { margin: 0 0 18px; }

.contact-field label {
    display: block;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 6px;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    background: #fff;
    border: 1px solid #d5d5d5;
    padding: 12px 14px;
    line-height: 1.4;
    border-radius: 0;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.contact-field textarea {
    resize: vertical;
    min-height: 160px;
    font-family: 'Raleway', sans-serif;
}

.contact-error {
    color: #d82028;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    margin: 6px 0 0;
}
.contact-error:empty { display: none; }

.contact-form-foot {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.contact-submit {
    background: #1a1a1a;
    color: #fff;
    border: 0;
    padding: 14px 32px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: background-color 0.15s;
}

.contact-submit:hover:not(:disabled) { background: #d82028; }
.contact-submit:disabled             { background: #888; cursor: not-allowed; }

.contact-form-status {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    line-height: 1.5;
}
.contact-form-status--ok  { color: #1a7d3e; }
.contact-form-status--err { color: #d82028; }

/* ── Info panel ── */
.contact-info {
    background: #fafaf8;
    padding: 28px 24px;
    border-left: 3px solid #d82028;
}

.contact-info-block            { margin: 0 0 24px; }
.contact-info-block:last-child { margin-bottom: 0; }

.contact-info-block h2 {
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-info-block h2 i { font-size: 18px; color: #d82028; }

.contact-info-block address,
.contact-info-block p {
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    line-height: 1.6;
    font-style: normal;
    margin: 0;
}

.contact-info-block a {
    color: #1a1a1a;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.contact-info-block a:hover { color: #d82028; }

/* === Checkout Success / Failure Pages (shadow build, 2026-05-29) === */

.success-page,
.failure-page {
  padding: 60px 20px;
  background: #f7f7f7;
  min-height: 60vh;
}

.success-container,
.failure-container {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 50px 40px;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  text-align: center;
}

.success-icon,
.failure-icon {
  margin-bottom: 24px;
}

.success-h1,
.failure-h1 {
  font-family: Raleway, Calibri, Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #1a2b4a;
  margin: 0 0 12px;
}

.success-order-no {
  font-size: 17px;
  color: #555;
  margin: 0 0 32px;
}

.success-order-no strong {
  color: #1a2b4a;
  font-weight: 700;
}

.failure-reassurance {
  display: inline-block;
  background: #fff4e8;
  color: #8a4a00;
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 17px;
  font-weight: 600;
  margin: 0 0 28px;
  border-left: 4px solid #d18a3b;
}

.success-message,
.failure-message {
  text-align: left;
  font-size: 17px;
  line-height: 1.6;
  color: #333;
  margin: 0 auto 32px;
  max-width: 480px;
}

.success-message p,
.failure-message p {
  margin: 0 0 14px;
}

.success-message p:last-child,
.failure-message p:last-child {
  margin-bottom: 0;
}

.failure-message ul {
  margin: 0 0 14px 24px;
  padding: 0;
}

.failure-message li {
  margin-bottom: 6px;
}

.success-message a,
.failure-message a {
  color: #c8102e;
  text-decoration: underline;
}

.success-message a:hover,
.failure-message a:hover {
  color: #a30d24;
}

.success-actions,
.failure-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.success-btn,
.failure-btn-primary,
.failure-btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  font-family: Raleway, Calibri, Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
  min-width: 180px;
  text-align: center;
}

.success-btn,
.failure-btn-primary {
  background: #c8102e;
  color: #fff;
}

.success-btn:hover,
.failure-btn-primary:hover {
  background: #a30d24;
  color: #fff;
}

.failure-btn-secondary {
  background: #fff;
  color: #1a2b4a;
  border: 1px solid #1a2b4a;
}

.failure-btn-secondary:hover {
  background: #1a2b4a;
  color: #fff;
}

@media (max-width: 600px) {
  .success-container,
  .failure-container {
    padding: 32px 20px;
  }
  .success-h1,
  .failure-h1 {
    font-size: 22px;
  }
  .success-btn,
  .failure-btn-primary,
  .failure-btn-secondary {
    min-width: 0;
    width: 100%;
  }
}

/* === Centering fix for success/failure pages (2026-05-29) === */
.success-page,
.failure-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.success-page .breadcrumbs,
.failure-page .breadcrumbs {
    width: 100%;
    max-width: var(--page-max-width);
    align-self: center;
}

/* === Success/Failure polish (2026-05-29) === */

/* Plain white page, breadcrumbs sit higher (match the rest of the shadow site) */
.success-page,
.failure-page {
    background: transparent;
    padding-top: 20px;
    padding-bottom: 40px;
}

/* Very fine brand-coloured border on each panel; drop the shadow (white-on-white doesn't read) */
.success-container {
    border: 1px solid #1a8a3a;
    box-shadow: none;
}
.failure-container {
    border: 1px solid #c8102e;
    box-shadow: none;
}

/* Continue Shopping → green (success cue, not alarm) */
.success-btn {
    background: #1a8a3a;
}
.success-btn:hover {
    background: #146a2c;
}
/* Failure "Try Again" stays red — that's still on-brand for the retry action */

/* === Page wrapper consistency: success/failure/contact match cat-preview (2026-05-29) === */
.success-page,
.failure-page,
.contact-page {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    display: block;             /* clear earlier flex on success/failure */
    background: transparent;
}

.success-page .breadcrumbs,
.failure-page .breadcrumbs,
.contact-page .breadcrumbs {
    width: auto;
    max-width: none;
}

/* === Info page wrapper consistency: match .page (2026-05-29) === */
.info-page {
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}

/* === Checkout summary "Edit bag" CTA — green block button (2026-05-29) === */
.summary-edit {
    display: block;
    width: 100%;
    margin: 18px 0 0 0;
    padding: 14px 20px;
    background: #1a8a3a;
    color: #fff;
    text-decoration: none;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Raleway', 'Calibri', sans-serif;
    border-radius: 4px;
    border: none;
    box-sizing: border-box;
    transition: background-color 0.15s ease;
}
.summary-edit:hover,
.summary-edit:focus {
    background: #146a2c;
    color: #fff;
    text-decoration: none;
}

/* === Wishlist guest banner — plain prose, no callout box (2026-06) === */
.wishlist-guest-banner {
    margin: 16px 0 0;
}
.wishlist-guest-banner p { margin: 0; }

/* === Wishlist empty-state "Start shopping" CTA — green button (2026-05-29) === */
.wishlist-empty-cta {
    display: inline-block;
    margin-top: 8px;
    padding: 14px 32px;
    background: #1a8a3a;
    color: #fff !important;
    text-decoration: none;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Raleway', 'Calibri', sans-serif;
    border-radius: 4px;
    border: none;
    transition: background-color 0.15s ease;
}
.wishlist-empty-cta:hover,
.wishlist-empty-cta:focus {
    background: #146a2c;
    color: #fff !important;
    text-decoration: none;
}


/* === Magnific Popup close button — v3: beats the .mfp-image-holder .mfp-close rule at line 653 (2026-05-30) === */
.mfp-wrap button.mfp-close,
.mfp-wrap .mfp-close {
    width: 44px !important;
    height: 44px !important;
    background: #fff !important;
    border: 1.5px solid #1a1a1a !important;
    border-radius: 2px !important;
    text-shadow: none !important;
    padding: 0 !important;
    top: 12px !important;
    right: 12px !important;
    opacity: 1 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
    cursor: pointer !important;
    transition: background-color 0.15s ease, transform 0.15s ease;
    text-indent: -9999px !important;
    overflow: hidden !important;
    text-align: left !important;
    color: transparent !important;
    font-size: 0 !important;
}
.mfp-wrap button.mfp-close::before,
.mfp-wrap .mfp-close::before {
    content: '\00d7';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a !important;
    font-family: Arial, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    text-indent: 0 !important;
    transition: color 0.15s ease;
}
.mfp-wrap button.mfp-close:hover,
.mfp-wrap button.mfp-close:focus,
.mfp-wrap .mfp-close:hover,
.mfp-wrap .mfp-close:focus {
    background: #1a1a1a !important;
    transform: scale(1.05);
    outline: none;
    color: transparent !important;
}
.mfp-wrap button.mfp-close:hover::before,
.mfp-wrap button.mfp-close:focus::before,
.mfp-wrap .mfp-close:hover::before,
.mfp-wrap .mfp-close:focus::before {
    color: #fff !important;
}

/* ============================================================
   HOME PAGE — home-preview.php
   ============================================================ */

/* Full-width hero image */
.home-hero {
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.home-hero__img {
    display: block;
    width: 100%;
    height: 265px;
    object-fit: cover;
    object-position: center center;
}

/* Home page generic container (wider pages use this instead of .container) */
.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Spring / Summer section */
.home-season {
    text-align: center;
    padding: 48px 0 40px;
    text-align: center;
}

.home-season__heading {
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a2b4a;
    margin: 0 0 20px;
}

.home-season__intro {
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 17px;
    color: #333333;
    line-height: 1.7;
    max-width: 860px;
    margin: 0 auto;
}

/* Hero responsive */
@media (max-width: 768px) {
    .home-hero__img {
        height: 180px;
    }
    .home-season__heading {
        font-size: 22px;
    }
    .home-season {
    text-align: center;
        padding: 32px 0 28px;
    }
}

@media (max-width: 480px) {
    .home-hero__img {
        height: 140px;
    }
    .home-season__heading {
        font-size: 20px;
    }
}

/* ============================================================
   END HOME PAGE
   ============================================================ */

/* ------------------------------------------------------------
   HOME — Women's category cards (top row of 3)
   ------------------------------------------------------------ */
.home-cats-top {
    display: flex;
    gap: 8px;
    width: 100%;
}

.home-cat-card {
    display: block;
    flex: 1;
    overflow: hidden;
    line-height: 0;
}

.home-cat-card__img {
    aspect-ratio: 660 / 754;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-cat-card:hover .home-cat-card__img {
    aspect-ratio: 660 / 754;
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .home-cats-top {
        flex-direction: column;
        gap: 6px;
    }
}

/* ------------------------------------------------------------
   HOME — Women's category cards (bottom row of 5)
   ------------------------------------------------------------ */
.home-cats-bottom {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow: hidden;
    margin-top: 8px;
}

.home-cat-card-sm {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.home-cat-card-sm__img {
    display: block;
    width: 100%;
    aspect-ratio: 400 / 536;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-cat-card-sm:hover .home-cat-card-sm__img {
    transform: scale(1.03);
}

@media (max-width: 640px) {
    .home-cats-bottom {
        flex-wrap: wrap;
        gap: 6px;
    }
    .home-cat-card-sm {
        flex: 1 1 100%;
    }
    .home-cat-card-sm__img {
        aspect-ratio: 400 / 536;
        height: auto;
    }
}

/* ------------------------------------------------------------
   HOME — category card text overlays
   ------------------------------------------------------------ */
.home-cat-card,
.home-cat-card-sm {
    position: relative;
}

.home-cat-card__overlay,
.home-cat-card-sm__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.0) 100%);
    padding: 28px 18px 18px;
    pointer-events: none;
}

.home-cat-card__title,
.home-cat-card-sm__title {
    display: block;
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 6px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.home-cat-card__link,
.home-cat-card-sm__link {
    display: inline-block;
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    pointer-events: auto;
}

.home-cat-card:hover .home-cat-card__overlay,
.home-cat-card-sm:hover .home-cat-card-sm__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.0) 100%);
}

/* Slightly smaller text on the bottom 5 as cards are narrower */
.home-cat-card-sm__title {
    font-size: 15px;
}

.home-cat-card-sm__link {
    font-size: 13px;
}

@media (max-width: 768px) {
    .home-cat-card__title {
        font-size: 15px;
    }
    .home-cat-card-sm__title {
        font-size: 13px;
    }
}

/* ------------------------------------------------------------
   HOME — overlay refinement (jrbnew style)
   ------------------------------------------------------------ */
.home-cat-card__overlay,
.home-cat-card-sm__overlay {
    padding: 60px 20px 22px;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.0) 100%);
}

.home-cat-card__title {
    font-size: 22px;
    margin: 0 0 10px;
    font-weight: 700;
}

.home-cat-card-sm__title {
    font-size: 17px;
    margin: 0 0 10px;
    font-weight: 700;
}

.home-cat-card__link,
.home-cat-card-sm__link {
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* ------------------------------------------------------------
   HOME — force title/link gap
   ------------------------------------------------------------ */
.home-cat-card__overlay .home-cat-card__title,
.home-cat-card-sm__overlay .home-cat-card-sm__title {
    display: block;
    margin-bottom: 12px !important;
}

.home-cat-card__overlay .home-cat-card__link,
.home-cat-card-sm__overlay .home-cat-card-sm__link {
    display: block;
    margin-top: 0;
}

/* ------------------------------------------------------------
   HOME — Men's category cards (row of 4)
   ------------------------------------------------------------ */
.home-cats-mens {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    overflow: hidden;
    margin-top: 8px;
}

.home-cat-card-mens {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: block;
    overflow: hidden;
    line-height: 0;
}

.home-cat-card-mens__img {
    display: block;
    width: 100%;
    aspect-ratio: 480 / 640;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.home-cat-card-mens:hover .home-cat-card-mens__img {
    transform: scale(1.03);
}

.home-cat-card-mens__overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.0) 100%);
    padding: 60px 20px 22px;
    pointer-events: none;
}

.home-cat-card-mens:hover .home-cat-card-mens__overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.0) 100%);
}

.home-cat-card-mens__title {
    display: block;
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.home-cat-card-mens__link {
    display: block;
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 4px;
    pointer-events: auto;
}

@media (max-width: 640px) {
    .home-cats-mens {
        flex-wrap: wrap;
        gap: 6px;
    }
    .home-cat-card-mens {
        flex: 1 1 100%;
    }
    .home-cat-card-mens__img {
        aspect-ratio: 480 / 640;
        height: auto;
    }
}

/* ------------------------------------------------------------
   HOME — Men's section heading + force desktop row
   ------------------------------------------------------------ */
.home-mens-heading {
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a2b4a;
    text-align: center;
    max-width: 1200px;
    margin: 40px auto 16px;
    padding: 0 20px;
}

@media (min-width: 641px) {
    .home-cats-mens {
        flex-wrap: nowrap !important;
    }
    .home-cat-card-mens {
        flex: 1 1 0 !important;
        min-width: 0 !important;
    }
    .home-cat-card-mens__img {
        aspect-ratio: 480 / 640 !important;
        height: auto !important;
    }
}
/* ============================================================
   CAT PAGE + PRODUCT CARDS — consolidated (cleanup 2026-05-31)
   Replaces ~370 lines of stacked session overrides.
   ============================================================ */

/* Page width: token-driven — same on every page, no category exception */
.page { max-width: var(--page-max-width) !important; }

/* Product grid — 3 across, full-width spread, cards capped at 475px */
.product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    justify-content: stretch !important;
    gap: 48px !important;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 768px)  { .product-grid { grid-template-columns: 1fr !important; } }
@media (max-width: 480px)  { .product-grid { grid-template-columns: 1fr !important; } }

/* Product card — white, framed, lifted at rest; lifts more on hover */
.product-card {
    background: #ffffff !important;
    border: 1px solid transparent !important;
    border-radius: 3px;
    padding: 0 !important;
    overflow: hidden;
    max-width: 475px;
    width: 100%;
    margin: 0 auto;
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.14) !important;
    transition: transform 0.25s ease, box-shadow 0.25s ease !important;
}
.product-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 38px rgba(0,0,0,0.18) !important;
}

/* Product card image — square, white */
.product-card img,
.product-card-img-empty {
    aspect-ratio: 1 / 1 !important;
    background: #ffffff !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Card text */
.product-card-name {
    font-size: 16px !important;
    font-weight: 600 !important;
    background: transparent !important;
    padding: 16px 16px 6px !important;
    margin: 0 !important;
}
.product-card-price {
    font-size: 16px !important;
    background: transparent !important;
    padding: 0 16px 16px !important;
    margin: 0 !important;
}

/* Category title — plain navy h1 (no red box) */
.cat-title-bar {
    background: transparent !important;
    padding: 0 !important;
    margin: 18px 0 14px !important;
    border-radius: 0 !important;
}
.cat-title-bar__heading {
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a2b4a !important;
    margin: 0;
    padding: 0;
}
h1.cat-title { display: none; }

/* Gap between description and product grid */
.cat-description { margin-bottom: 40px !important; }

/* Home intro paragraph width */
.home-season__intro { max-width: 1100px !important; }

/* Header action icons spacing */
.site-actions {
    gap: 18px !important;
    margin-left: 8px;
}

/* CHECKOUT — mobile bag visibility (preserved from session fix;
   base display:none earlier in file was beating the L2110 media query) */
@media (max-width: 768px) {
    .checkout-mobile-bag { display: block !important; }
}

/* ------------------------------------------------------------
   CHECKOUT — mobile bag bar: "Bag" heading + count beneath
   ------------------------------------------------------------ */
.mobile-bag-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-bag-label {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.3;
}
.mobile-bag-heading {
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #1a1a1a;
}
.mobile-bag-count {
    flex: none !important;
    font-size: 16px;
    color: #1a1a1a;
}
.mobile-bag-total {
    font-weight: 700;
    font-variant-numeric: tabular-nums lining-nums;
}

/* ------------------------------------------------------------
   CHECKOUT — mobile bag bar: clean flex (overrides absolute attempt)
   Centred BAG heading row, then count-left / price+chevron-right row
   ------------------------------------------------------------ */
.mobile-bag-toggle {
    display: block !important;
    width: 100%;
}
.mobile-bag-heading {
    display: block;
    position: static !important;
    text-align: center;
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    letter-spacing: 0.4px;
}
.mobile-bag-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.mobile-bag-count {
    position: static !important;
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1a1a1a;
}
.mobile-bag-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-bag-total {
    position: static !important;
    font-family: 'Raleway', Calibri, sans-serif;
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums lining-nums;
}
.mobile-bag-chevron {
    position: static !important;
}

/* CHECKOUT — mobile bag: consistent font across heading, count, price */
.mobile-bag-heading,
.mobile-bag-count,
.mobile-bag-total {
    font-family: 'Raleway', Calibri, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
}

/* CHECKOUT — mobile bag count: match price number rendering */
.mobile-bag-count {
    font-variant-numeric: tabular-nums lining-nums;
}

/* ------------------------------------------------------------
   CHECKOUT — mobile bag: COMPACT single row (overrides stacked layout)
   ------------------------------------------------------------ */
.mobile-bag-toggle {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 20px !important;
}
.mobile-bag-count {
    position: static !important;
    font-family: 'Raleway', Calibri, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-variant-numeric: tabular-nums lining-nums;
    text-align: left;
}
.mobile-bag-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.mobile-bag-total {
    position: static !important;
    font-family: 'Raleway', Calibri, sans-serif !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    font-variant-numeric: tabular-nums lining-nums;
}
.mobile-bag-chevron {
    position: static !important;
}

/* ============================================================
   BACK-TO-TOP button (shared via footer.php)
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cfcfcf;
    color: #1a2b4a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease, background 0.15s ease;
    z-index: 1000;
    padding: 0;
}
.back-to-top.back-to-top-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top i {
    font-size: 24px;
    line-height: 1;
}
.back-to-top:hover {
    background: #f4f4f4;
}

/* ============================================================
   MOBILE HEADER (≤800px) — hamburger + collapsing search
   Overrides the earlier 800px grid reflow. Desktop (>800px)
   is untouched. Added 2026-06-01.
   ============================================================ */

/* Toggle buttons hidden on desktop */
.mobile-nav-toggle,
.mobile-search-toggle {
    display: none;
}

@media (max-width: 800px) {

    /* --- Header row: single row, logo left, icons + toggles right --- */
    .site-header-row {
        display: flex !important;
        grid-template-areas: none !important;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }
    .site-logo { flex: 1; }

    /* Show the toggle buttons */
    .mobile-nav-toggle,
    .mobile-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: none;
        border: 0;
        padding: 6px;
        cursor: pointer;
        color: #1a1a1a;
    }
    .mobile-nav-toggle i,
    .mobile-search-toggle i { font-size: 28px; line-height: 1; }

    /* Hide the desktop inline search box; icon takes its place */
    .site-search { display: none; }

    /* When search is toggled open, show it as a full-width bar under the row */
    .site-header.search-open .site-search {
        display: flex;
        order: 99;
        width: 100%;
        flex: 1 1 100%;
        margin-top: 12px;
    }

    /* Slim down the action icons a touch to make room */
    .site-actions { gap: 10px; margin-left: 0; }
    .site-action { min-width: 0; padding: 4px 6px; }
    .site-action-label { display: none; } /* hide Login/Saved/Bag labels on mobile to save width */

    /* --- The nav becomes an off-canvas overlay panel --- */
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 82%;
        max-width: 360px;
        background: #ffffff;
        box-shadow: -4px 0 24px rgba(0,0,0,0.18);
        transform: translateX(100%);
        transition: transform 0.28s ease;
        z-index: 1200;
        overflow-y: auto;
        padding: 70px 0 40px;
    }
    .site-nav.nav-open { transform: translateX(0); }

    /* Backdrop behind the panel */
    .mobile-nav-backdrop {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.45);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0.28s ease;
        z-index: 1100;
    }
    .mobile-nav-backdrop.show { opacity: 1; visibility: visible; }

    /* Nav list inside the panel — vertical */
    .site-nav ul {
        display: block;
        gap: 0;
        font-size: 16px;
    }
    .site-nav-item {
        display: block;
        border-bottom: 1px solid #eee;
    }
    .site-nav a,
    .site-nav-parent-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 22px;
        font-size: 16px;
    }

    /* Accordion: children hidden by default, shown when parent .open */
    .site-nav-dropdown {
        display: none !important;
        position: static !important;
        box-shadow: none !important;
        background: #f7f7f7;
        opacity: 1 !important;
        visibility: visible !important;
    }
    .site-nav-item.open .site-nav-dropdown {
        display: block !important;
    }
    .site-nav-dropdown ul { padding: 0; }
    .site-nav-dropdown a {
        padding: 13px 22px 13px 36px;
        font-size: 15px;
        color: #333;
    }

    /* Chevron rotates when open */
    .site-nav-chevron {
        transition: transform 0.2s ease;
        font-size: 20px;
    }
    .site-nav-item.open .site-nav-chevron {
        transform: rotate(180deg);
    }

    /* Close (X) button inside the panel */
    .mobile-nav-close {
        position: absolute;
        top: 16px;
        right: 18px;
        background: none;
        border: 0;
        font-size: 30px;
        line-height: 1;
        color: #1a1a1a;
        cursor: pointer;
        padding: 4px;
    }

    /* Lock body scroll when nav open */
    body.nav-locked { overflow: hidden; }
}

/* ============================================================
   MOBILE HEADER FIXES — dropdown positioning + overflow scroll
   ============================================================ */

/* Stop the off-canvas nav panel from creating horizontal scroll */
html, body { overflow-x: hidden; }

@media (max-width: 800px) {
    /* Cancel ALL desktop dropdown positioning inside the panel */
    .site-nav-dropdown {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        min-width: 0 !important;
        width: 100% !important;
        border: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
    }
    .site-nav-dropdown a {
        white-space: normal !important;   /* allow wrapping, no nowrap push-out */
    }

    /* Keep the header row strictly within viewport */
    .site-header {
        padding-left: 14px !important;
        padding-right: 14px !important;
        overflow: hidden;
    }
    .site-header-row {
        max-width: 100% !important;
        gap: 8px !important;
    }
    .site-logo { flex: 0 1 auto !important; min-width: 0; }
    .site-logo-img { max-height: 56px; }  /* smaller logo on mobile to save width */
}

/* ============================================================
   MOBILE HEADER — drop search, tighten logo + icons, no overlap
   ============================================================ */
@media (max-width: 800px) {
    /* Remove search entirely on mobile */
    .mobile-search-toggle { display: none !important; }
    .site-search { display: none !important; }

    /* Row: logo left, icons + hamburger pushed right, no wrap, no overlap */
    .site-header-row {
        display: flex !important;
        align-items: center;
        flex-wrap: nowrap !important;
        gap: 4px !important;
    }
    .site-logo {
        flex: 0 1 auto !important;
        min-width: 0;
        margin-right: auto;   /* pushes everything else to the right */
    }
    .site-logo-img { max-height: 48px !important; }

    /* Action icons smaller and tighter */
    .site-actions {
        gap: 4px !important;
        margin-left: 0 !important;
        flex: 0 0 auto;
    }
    .site-action {
        min-width: 0 !important;
        padding: 4px !important;
    }
    .site-action i { font-size: 22px !important; }
    .site-action-label { display: none !important; }

    /* Hamburger */
    .mobile-nav-toggle {
        flex: 0 0 auto;
        padding: 4px !important;
    }
    .mobile-nav-toggle i { font-size: 26px !important; }
}

/* MOBILE HEADER — drop logo a touch more */
@media (max-width: 800px) {
    .site-logo-img { max-height: 40px !important; }
}

/* MOBILE HEADER — hide close button + backdrop on desktop (>800px) */
.mobile-nav-close { display: none; }
.mobile-nav-backdrop { display: none; }
@media (max-width: 800px) {
    .mobile-nav-close { display: block; }
    .mobile-nav-backdrop { display: block; }
}

/* ============================================================
   MOBILE NAV PANEL — snagging: 90% width, black text, tighter
   top gap, bigger X
   ============================================================ */
@media (max-width: 800px) {
    .site-nav {
        width: 90% !important;
        max-width: none !important;
        padding-top: 56px !important;
    }
    .site-nav a,
    .site-nav-parent-link,
    .site-nav-dropdown a {
        color: #1a1a1a !important;
    }
    .mobile-nav-close {
        font-size: 38px !important;
        top: 12px !important;
        right: 16px !important;
    }
}

/* ============================================================
   SAFARI FIX — size + heart buttons rendered link-blue because
   no explicit color was set (Safari UA default on <button>).
   Force dark text/icon; -webkit-text-fill-color needed as Safari
   overrides plain color on form controls.
   ============================================================ */
.size-btn {
    color: #1a1a1a;
    -webkit-text-fill-color: #1a1a1a;
}
.heart-btn {
    color: #1a1a1a;
}
.heart-btn i {
    color: #1a1a1a;
    -webkit-text-fill-color: #1a1a1a;
}

/* Preserve the selected (dark bg / white text) state */
.size-btn.selected {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

/* MOBILE HEADER — breathing space under logo/icons before the grey border */
@media (max-width: 800px) {
    .site-header {
        padding-bottom: 14px !important;
    }
}

/* ============================================================
   WISHLIST TOAST — Option A: white bg, thick coloured border,
   dark text (legible). Overrides earlier brand-red blocks.
   Success = green border, error/remove = red border.
   ============================================================ */
.wishlist-toast,
.wishlist-toast.wishlist-toast-success,
.wishlist-toast.wishlist-toast-error {
    background: #ffffff !important;
    color: #1a1a1a !important;
    border-radius: 6px !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.18) !important;
}
.wishlist-toast.wishlist-toast-success {
    border: 3px solid #1a8a3a !important;
}
.wishlist-toast.wishlist-toast-error {
    border: 3px solid #c62828 !important;
}
.wishlist-toast .wishlist-toast-msg {
    color: #1a1a1a !important;
}
.wishlist-toast .wishlist-toast-close {
    color: #1a1a1a !important;
}

/* ACCOUNT — remove trailing border on last list item (was doubling up
   with the .account-footer border-top above the sign-out button) */
.account-list li:last-child {
    border-bottom: none;
}

/* BACK-NAVIGATION links → outlined navy button (only .auth-link-btn,
   not inline text auth-links like "Forgotten your password?") */
.auth-link-btn {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #1a2b4a !important;
    background: #ffffff;
    border: 1px solid #1a2b4a;
    border-radius: 4px;
    padding: 10px 22px;
    text-decoration: none !important;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.auth-link-btn:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #ffffff !important;
}

/* ============================================================
   ACCOUNT PAGE REDESIGN — cards, icons, clickable rows (jrbnew black)
   ============================================================ */

/* Tighter grid rhythm */
.account-grid {
    gap: 28px !important;
    max-width: 1080px;
    margin: 0 auto;
}

/* Each section becomes a card */
.account-section {
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 24px 24px 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Section title with icon */
.account-section-title {
    display: flex !important;
    align-items: center;
    gap: 12px;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 14px !important;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a1a1a;
}
.account-section-icon {
    font-size: 24px;
    color: #1a1a1a;
    flex-shrink: 0;
}

/* Clickable rows — clearer, no trailing border (card edge handles it) */
.account-list li {
    border-bottom: 1px solid #f0f0f0;
}
.account-list li:last-child {
    border-bottom: none;
}
.account-list li a {
    padding: 16px 6px !important;
    font-size: 15px;
    border-radius: 4px;
}
.account-list li a:hover {
    background-color: #f7f7f4;
    padding-left: 12px;
}
.account-list li a i {
    color: #999;
    transition: color .15s, transform .15s;
}
.account-list li a:hover i {
    color: #1a1a1a;
    transform: translateX(3px);
}

/* ============================================================
   HOME — unify card text in 1-per-row mobile view (≤640px)
   Match bottom-5 + mens TITLES to the top-3 women's size (22px).
   ============================================================ */
@media (max-width: 640px) {
    .home-cat-card-sm__title,
    .home-cat-card-mens__title {
        font-size: 22px !important;
    }
    .home-cat-card-sm__link,
    .home-cat-card-mens__link {
        font-size: 15px !important;
    }
}

/* ============================================================
   HOME — TABLET stage (641–1100px): reduce columns so cards
   aren't cramped and titles stop wrapping into the shop link.
   Row 1 (3 women's): stays 3-across
   Row 2 (5 women's): 3-across  (3 + 2)
   Row 3 (4 men's):   2-across  (2 + 2)
   Phone (≤640px) still stacks all to 1-across via existing rules.
   ============================================================ */
@media (min-width: 641px) and (max-width: 1100px) {

    /* Row 2 — 5 women's cards → 3 across */
    .home-cats-bottom {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .home-cat-card-sm {
        flex: 1 1 calc(33.333% - 6px) !important;
        max-width: calc(33.333% - 6px);
    }

    /* Row 3 — 4 men's cards → 2 across */
    .home-cats-mens {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }
    .home-cat-card-mens {
        flex: 1 1 calc(50% - 4px) !important;
        max-width: calc(50% - 4px);
        min-width: 0 !important;
    }
}

/* ============================================================
   HOME CARD GRID — clean 3-band responsive system (2026-06-01)
   Desktop  (>1100px): 3 big women's / 5 small women's / 4 mens (as-is)
   Laptop   (641-1100): 8 women's pooled into 2x4 grid; mens 2x2
   Mobile   (<=640px): all 1-per-row
   Wrapper .home-cats-women-tablet-grid is display:contents except
   in the laptop band, where it becomes the grid that pools all 8.
   ============================================================ */

/* Desktop: wrapper is invisible to layout — existing sections render as-is */
.home-cats-women-tablet-grid { display: contents; }

/* ---- LAPTOP / TABLET band: 641–1100px ---- */
@media (min-width: 641px) and (max-width: 1100px) {

    /* Wrapper becomes a single 2-column grid for all 8 women's cards */
    .home-cats-women-tablet-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    /* The two inner sections dissolve so their cards join the wrapper grid */
    .home-cats-top,
    .home-cats-bottom {
        display: contents;
    }
    /* All women's cards uniform; cancel any flex sizing */
    .home-cat-card,
    .home-cat-card-sm {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
    }

    /* Mens → 2x2 grid */
    .home-cats-mens {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        flex-wrap: initial;
    }
    .home-cat-card-mens {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }
}

/* ---- MOBILE band: <=640px — all 1-per-row ---- */
@media (max-width: 640px) {
    .home-cats-women-tablet-grid { display: contents; }
    .home-cats-top,
    .home-cats-bottom,
    .home-cats-mens {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 8px;
    }
    .home-cat-card,
    .home-cat-card-sm,
    .home-cat-card-mens {
        flex: none !important;
        max-width: none !important;
        width: auto !important;
        margin: 0 !important;
    }
}

/* HOME — laptop band: unify all card text to one size (titles 22px, links 15px)
   now that big/small/mens cards share the same physical width in the grid */
@media (min-width: 641px) and (max-width: 1100px) {
    .home-cat-card__title,
    .home-cat-card-sm__title,
    .home-cat-card-mens__title {
        font-size: 22px !important;
    }
    .home-cat-card__link,
    .home-cat-card-sm__link,
    .home-cat-card-mens__link {
        font-size: 15px !important;
    }
}


/* MOBILE — bag/wishlist count badge: nudge to top-right corner of the
   smaller mobile icon so it doesn't sit on top of the glyph */
@media (max-width: 800px) {
    .bag-count, .wishlist-count {
        top: -6px;
        right: -4px;
        min-width: 16px;
        height: 16px;
        line-height: 16px;
        font-size: 9px;
        padding: 0 4px;
    }
}

/* Nudge bag action 3px right (desktop only) */
@media (min-width: 801px) {
    .site-action-bag { margin-left: 6px; }
}

/* WISHLIST badge — neutral (white bg, black outline, black number) to
   distinguish it from the red BAG badge. Bag stays red (primary action). */
.wishlist-count {
    background: #ffffff;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    /* line-height nudged to keep the number centred inside the border */
    line-height: 15px;
}

/* ============================================================
   CATEGORY DESCRIPTION — mobile "Read more" clamp (≤640px)
   Clamps ONLY the first <p> of .cat-description to 3 lines.
   The jrb-trousers-guide panel (separate sibling) is untouched.
   JS adds the toggle ONLY when the text actually overflows, so
   short descriptions (e.g. Socks) show in full with no toggle.
   Desktop: full text, no clamp.
   ============================================================ */
@media (max-width: 640px) {
    .cat-description .cat-desc-textblock.cat-desc-clamped {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .cat-description .cat-desc-textblock.cat-desc-expanded {
        -webkit-line-clamp: unset;
        overflow: visible;
    }
    .cat-desc-toggle {
        display: inline-block;
        margin: 10px 0 4px;
        font-family: 'Raleway', sans-serif;
        font-size: 16px;
        font-weight: 700;
        color: #1a2b4a;
        background: none;
        border: 0;
        padding: 8px 0;
        cursor: pointer;
        text-decoration: underline;
        text-underline-offset: 4px;
    }
    .cat-desc-toggle .cat-desc-chevron {
        display: inline-block;
        margin-left: 4px;
        transition: transform 0.2s ease;
    }
    .cat-desc-toggle.is-open .cat-desc-chevron {
        transform: rotate(180deg);
    }
}
/* Toggle never shows on desktop */
.cat-desc-toggle { display: none; }
@media (max-width: 640px) {
    .cat-desc-toggle.cat-desc-toggle-show { display: inline-block; }
}

/* JRB: header back into normal flow (Mahardhi theme sets header position:absolute, which hid breadcrumb/title under it) */
.site-header { position: relative !important; }

/* JRB: when a category has no description, give the grid the same 40px breathing room the description block would (14px title margin + 26px = 40px) */
.cat-title-bar + .product-grid { margin-top: 40px !important; }

/* Bag-modal related carousel - sale pricing (subtle/traditional; decision #8.2) */
.bag-added-related-price-old { text-decoration: line-through; color: #8a8a8a; font-weight: 400; margin-right: 5px; }
.bag-added-related-price-new { font-weight: 600; }


/* JRB Stage C.3: subtitle on account-header */
.account-subtitle {
  color: #666;
  font-size: 0.95rem;
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

/* JRB: Logout (common/success) page — Website security subheading */
.success-subheading {
  font-family: Raleway, Calibri, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1a2b4a;
  margin: 28px 0 10px 0;
}

/* JRB Stage C.4-A: desktop/mobile body-size-chart swap.
   The renderer outputs each chart twice -- once with .body-size-chart-desktop
   (horizontal layout, signed-off design) and once with .body-size-chart-mobile
   (transposed vertical, one row per size). CSS picks which is visible per
   viewport, so no horizontal scrolling is needed on phones. */
.body-size-chart-mobile { display: none; }
.body-size-chart-desktop { display: table; }
@media (max-width: 768px) {
  .body-size-chart-desktop { display: none; }
  .body-size-chart-mobile { display: table; width: 100%; }
  .body-size-charts { max-width: 100%; }
  .body-size-chart th,
  .body-size-chart td {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/* JRB D-success: breathing room between breadcrumbs and success container */
.success-container { margin-top: var(--space-section); }

/* === Error / Not found (JRB D-NotFound) =============================== */
.error-not-found {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    padding: 100px 20px 32px;
}
.error-not-found .error-lead {
    font-size: 18px;
    color: #1a1a1a;
    margin: 0 0 10px;
    line-height: 1.5;
}
.error-not-found .error-help {
    font-size: 15px;
    color: #555;
    margin: 0 0 28px;
}
.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.error-actions .auth-link-btn {
    flex: 0 1 auto;
    min-width: 170px;
}
@media (max-width: 640px) {
    .error-actions .auth-link-btn { flex: 1 1 100%; min-width: 0; }
}

/* === D-NotFound: kill any leftover category hero on the 404 page =========== */
body.jrb-page-error main,
body.jrb-page-error main::before,
body.jrb-page-error main::after,
body.jrb-page-error > main:first-of-type::before {
    background: none !important;
    background-image: none !important;
}
body.jrb-page-error main::before,
body.jrb-page-error > main:first-of-type::before {
    content: none !important;
    display: none !important;
}



/* JRB: kill underline on footer link hover/focus */
footer a:hover,
footer a:focus,
.footer-col a:hover,
.footer-col a:focus {
    text-decoration: none;
}

/* JRB: centre-align content within each footer column (responsive intact) */
.footer-col {
    text-align: center;
}
.footer-col ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* JRB cart on stacked layouts (≤1100px): close items-to-summary gap,
   remove the trailing divider below the last item to save real estate. */
@media (max-width: 1100px) {
    .cart-layout { gap: 16px; }
    .cart-item:last-child { border-bottom: none; }
}


/* ── Cart login prompt (guest-only nudge under "Your secure bag" heading) ── */
.cart-login-prompt {
    margin: 12px 0 0;
    font-size: 14px;
    color: #555;
    text-align: center;
}
.cart-login-prompt a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 500;
}
.cart-login-prompt a:hover {
    text-decoration: none;
}


/* ── Cart / Checkout content width — preview spec (1280px content while page chrome stays wide) ──
   Page container kept at --page-max-width so any breadcrumbs/chrome sit at full site width.
   Direct content children are explicitly constrained to the preview's 1280px. */
.cart-page > .cart-empty,
.cart-page > .cart-header,
.cart-page > .cart-layout,
.checkout-page > .checkout-title,
.checkout-page > .checkout-mobile-bag,
.checkout-page > .checkout-layout {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ── TEST: semi-bold trust paragraphs (delete this whole block to revert) ── */
.cart-trust-text {
    font-weight: 600;
}


/* ── Cart item option-name label (UI clarity, e.g. "Waist: 36"") ── */
.cart-item-variant .cart-option-label {
    color: #888;
    font-weight: 500;
    margin-right: 2px;
}

/* JRB account-page primary button override (2026-06-22)
   .checkout-btn-primary is shared between checkout flow (green CTAs) and
   account-section pages (login/register/forgotten/address/edit/password/
   wishlist). Scope to .account-page wrapper to switch only those to brand
   black. Checkout buttons keep the green for traffic-light "go" semantics.
   Higher specificity (0,0,2,0 vs 0,0,1,0) means these rules win inside
   .account-page without using !important. */
.account-page .checkout-btn-primary {
    background: #1a1a1a;
    border-color: #1a1a1a;
}
.account-page .checkout-btn-primary:hover:not(:disabled) {
    background: #000;
    border-color: #000;
}

/* JRB auth-page primary button override (2026-06-22)
   Sister rule to .account-page above. The 6 auth-flow templates
   (login, register, forgotten, forgotten_reset, edit, password) all
   use .auth-page as their top-level wrapper instead of .account-page.
   Same brand-black treatment as account pages — kept as separate rule
   (rather than combined selector) so each wrapper convention stays
   independently discoverable when grepping. */
.auth-page .checkout-btn-primary {
    background: #1a1a1a;
    border-color: #1a1a1a;
}
.auth-page .checkout-btn-primary:hover:not(:disabled) {
    background: #000;
    border-color: #000;
}

/* JRB Stage G: success + failure page button — solid brand black, no hover change.
   Higher specificity (.success-page .success-btn) beats earlier .success-btn rules
   in the file without needing !important. Both /checkout/success and /checkout/failure
   use the .success-page wrapper (common/success template), so this covers both. */
.success-page .success-btn,
.success-page .success-btn:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
  color: #fff;
}
