/* ============================================================
   editorial.css
   Design system for the public storefront (home, listing,
   product detail, cart), scoped under body.editorial.

   Scope warning: the dashboards also carry `editorial` on
   <body>, so this file does reach them. See the "v0.1 dashboard
   re-point" block at the foot of this file for how the
   dashboard tokens are retargeted away from the storefront
   cream/serif/indigo direction.

   Direction: keep the existing blue brand accent, but reframe
   it as quiet and premium rather than bright and saturated --
   a warm neutral canvas, a refined serif for headlines and
   product names, generous whitespace, and hairline structure
   instead of shadows and gradient chrome.
   ============================================================ */

body.editorial {
  --ed-ink: #1c1d22;
  --ed-ink-soft: #5a5c64;
  --ed-ink-faint: #8b8d94;
  --ed-paper: #faf8f4;
  --ed-paper-alt: #f1eee6;
  --ed-surface: #ffffff;
  --ed-line: #e4e0d6;
  --ed-line-soft: #ece9e0;

  /* Same hue family as the existing brand blue, pulled slightly
       toward indigo and desaturated a touch so it reads as an
       accent rather than a UI-chrome color. */
  --ed-accent: #23408f;
  --ed-accent-ink: #172b63;
  --ed-accent-tint: #eef1f8;

  /* Deep-navy hero band + a warm gold accent for contrast on it --
       same hue family as --ed-accent, just pushed dark enough to
       carry a full-bleed colored section instead of a UI accent. */
  --ed-navy-deep: #0d1836;
  --ed-navy-mid: #16255a;
  --ed-gold: #d7a13b;
  --ed-gold-ink: #8a6423;
  --ed-on-navy: #f3efe4;
  --ed-on-navy-soft: rgba(243, 239, 228, 0.72);

  --ed-danger: #ea4335;

  --ed-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --ed-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --ed-space-xs: 0.5rem;
  --ed-space-sm: 1rem;
  --ed-space-md: 1.75rem;
  --ed-space-lg: 3rem;
  --ed-space-xl: clamp(3.5rem, 7vw, 6.5rem);

  --ed-radius: 3px;
  --ed-radius-md: 7px;
  --ed-radius-xl: 7px;

  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-sans);
}

body.editorial * {
  box-sizing: border-box;
}

body.editorial .container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--ed-space-md);
}

body.editorial ::selection {
  background: var(--ed-accent-tint);
  color: var(--ed-accent-ink);
}

body.editorial .nav-icon-mobile { display: none; }
@media (max-width: 768px) { body.editorial .nav-icon-mobile { display: inline-flex; } }

/* ============================================================
   MOBILE NAV — search toggle, slide-in drawer, compact top row
   Only fires ≤ 768px. Desktop is completely untouched.

   Key rules:
     • Desktop: mobile icons & panel & drawer all hidden
     • Mobile:  desktop-only elements hidden, mobile icons shown
     • Wishlist + cart ALWAYS visible (both breakpoints)
     • Notifications + user menu + login buttons = desktop-only
     • Container padding is preserved on every breakpoint
   ============================================================ */

/* ============================================================
   MOBILE NAV — search toggle, slide-in drawer, compact top row
   Only fires ≤ 768px. Desktop is completely untouched.
   ============================================================ */

/* ── Desktop defaults: hide all mobile-only UI ────────────── */
body.editorial .nav-icon-mobile,
body.editorial .mobile-search-panel,
body.editorial .mobile-drawer,
body.editorial .mobile-drawer-backdrop {
    display: none !important;
}
body.editorial .mobile-menu-btn { display: none; }


/* ═══════════════════════════════════════════════════════════
   MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

    /* ── Container padding restored on both navbar rows ───── */
    body.editorial .navbar > .container,
    body.editorial .nav-category-bar > .container {
        padding-left: var(--ed-space-md) !important;
        padding-right: var(--ed-space-md) !important;
    }

    /* ── Top row ──────────────────────────────────────────── */
    body.editorial .nav-wrapper {
        padding: 0.55rem 0;
        gap: 0.5rem;
        align-items: center;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    /* ── Logo: shrink, single-line, ellipsis ──────────────── */
    body.editorial .logo {
        font-size: 1rem;
        gap: 0.4rem;
        min-width: 0;
        flex: 0 1 auto;
    }
    body.editorial .logo img {
        width: 28px !important;
        height: 28px;
        flex-shrink: 0;
    }
    body.editorial .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 50vw;
    }

    /* ── Desktop search bar hidden ────────────────────────── */
    body.editorial .search-bar-desktop { display: none !important; }

    /* ── Right icon cluster ───────────────────────────────── */
    body.editorial .nav-icons {
        margin-left: auto;
        gap: 0.4rem;
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    /* Desktop-only items hidden */
    body.editorial .nav-icon-desktop { display: none !important; }

    /* Icon button sizing */
    body.editorial .nav-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    /* Mobile-only search icon — force visible */
    body.editorial .nav-icon-mobile {
        display: inline-flex !important;
        width: 38px;
        height: 38px;
    }

    /* ── Hamburger ────────────────────────────────────────── */
    body.editorial .mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        background: transparent;
        border: none;
        color: var(--ed-on-navy);
        font-size: 1.15rem;
        cursor: pointer;
        border-radius: 50%;
        transition: background-color .15s ease;
        flex-shrink: 0;
    }
    body.editorial .mobile-menu-btn:hover,
    body.editorial .mobile-menu-btn:active {
        background: rgba(243, 239, 228, 0.1);
    }

    /* ── Category bar ─────────────────────────────────────── */
    body.editorial .nav-category-bar-inner {
        padding: 0.5rem 0;
        gap: 0.75rem;
        justify-content: space-between;
        display: flex;
        align-items: center;
    }
    body.editorial .nav-category-bar .nav-links {
        display: none !important;
    }
    body.editorial .all-categories-btn {
        font-size: 0.78rem;
        padding: 0.4rem 0.85rem;
        flex-shrink: 0;
    }
    body.editorial .nav-location {
        font-size: 0.78rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* ── Mobile search overlay ────────────────────────────── */
    body.editorial .mobile-search-panel {
        display: block !important;
        background: var(--ed-navy-deep);
        border-top: 1px solid rgba(243, 239, 228, 0.1);
        padding: 0.7rem 0 0.9rem;
        animation: ed-search-drop .18s ease;
    }
    body.editorial .mobile-search-panel[hidden] { display: none !important; }

    @keyframes ed-search-drop {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    body.editorial .mobile-search-inner {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        background: rgba(243, 239, 228, 0.1);
        border: 1px solid rgba(243, 239, 228, 0.18);
        border-radius: 999px;
        padding: 0.55rem 0.9rem;
    }
    body.editorial .mobile-search-inner:focus-within {
        border-color: var(--ed-gold);
        background: rgba(243, 239, 228, 0.16);
    }
    body.editorial .mobile-search-inner > i {
        color: var(--ed-on-navy-soft);
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    body.editorial .mobile-search-inner input {
        flex: 1;
        border: none;
        background: transparent;
        font-family: var(--ed-sans);
        font-size: 0.95rem;
        color: var(--ed-on-navy);
        outline: none;
        min-width: 0;
    }
    body.editorial .mobile-search-inner input::placeholder {
        color: var(--ed-on-navy-soft);
    }
    body.editorial .mobile-search-close {
        background: transparent;
        border: none;
        color: var(--ed-on-navy-soft);
        font-size: 0.95rem;
        padding: 0.2rem 0.3rem;
        cursor: pointer;
        flex-shrink: 0;
    }
    body.editorial .mobile-search-close:hover { color: var(--ed-gold); }

    body.editorial .mobile-search-results {
        margin-top: 0.5rem;
        background: var(--ed-surface);
        border-radius: var(--ed-radius-md);
        max-height: 55vh;
        overflow-y: auto;
    }

    /* ── Slide-in drawer ─────────────────────────────────── */
    body.editorial .mobile-drawer-backdrop {
        display: block !important;
        position: fixed;
        inset: 0;
        background: rgba(13, 24, 54, 0.55);
        z-index: 1200;
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
    }
    body.editorial .mobile-drawer-backdrop.active {
        opacity: 1;
        pointer-events: auto;
    }
    body.editorial .mobile-drawer-backdrop[hidden] { display: none !important; }

    body.editorial .mobile-drawer {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 85vw);
        height: 100vh;
        background: linear-gradient(180deg, var(--ed-navy-mid) 0%, var(--ed-navy-deep) 100%);
        color: var(--ed-on-navy);
        z-index: 1201;
        transform: translateX(100%);
        transition: transform .25s cubic-bezier(0.22, 0.61, 0.36, 1);
        box-shadow: -20px 0 40px rgba(3, 7, 22, 0.4);
        overflow-y: auto;
    }
    body.editorial .mobile-drawer.active { transform: translateX(0); }

    body.editorial .mobile-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(243, 239, 228, 0.12);
        position: sticky;
        top: 0;
        background: var(--ed-navy-mid);
        z-index: 1;
    }
    body.editorial .mobile-drawer-title {
        font-family: var(--ed-serif);
        font-size: 1.05rem;
        font-weight: 500;
        color: var(--ed-on-navy);
    }
    body.editorial .mobile-drawer-close {
        background: transparent;
        border: none;
        color: var(--ed-on-navy-soft);
        font-size: 1.1rem;
        width: 34px;
        height: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        cursor: pointer;
        transition: background-color .15s ease, color .15s ease;
    }
    body.editorial .mobile-drawer-close:hover {
        background: rgba(243, 239, 228, 0.1);
        color: var(--ed-gold);
    }

    body.editorial .mobile-drawer-body { padding: 0.75rem 0 2rem; flex: 1; }
    body.editorial .mobile-drawer-section {
        padding: 0.75rem 1.25rem;
        border-bottom: 1px solid rgba(243, 239, 228, 0.08);
    }
    body.editorial .mobile-drawer-section:last-child { border-bottom: none; }

    body.editorial .mobile-drawer-heading {
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--ed-gold);
        margin-bottom: 0.5rem;
    }

    body.editorial .mobile-drawer-account {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }
    body.editorial .mobile-drawer-account > i {
        font-size: 2rem;
        color: var(--ed-gold);
    }
    body.editorial .mobile-drawer-account strong {
        display: block;
        font-family: var(--ed-serif);
        font-weight: 500;
        font-size: 0.95rem;
        color: var(--ed-on-navy);
    }
    body.editorial .mobile-drawer-account small {
        font-size: 0.72rem;
        color: var(--ed-on-navy-soft);
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    body.editorial .mobile-drawer-link {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.7rem 0;
        color: var(--ed-on-navy-soft);
        font-size: 0.95rem;
        transition: color .15s ease, padding-left .15s ease;
    }
    body.editorial .mobile-drawer-link:hover,
    body.editorial .mobile-drawer-link:active {
        color: var(--ed-gold);
        padding-left: 0.3rem;
    }
    body.editorial .mobile-drawer-link i {
        width: 18px;
        text-align: center;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    body.editorial .mobile-drawer-logout { color: #ff9b8a; }
    body.editorial .mobile-drawer-logout:hover { color: #ff8b78; }

    body.editorial .mobile-drawer-badge {
        margin-left: auto;
        background: var(--ed-gold);
        color: var(--ed-navy-deep);
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.1rem 0.45rem;
        border-radius: 999px;
        min-width: 1.3rem;
        text-align: center;
    }

    /* ── Buttons INSIDE the navy drawer ───────────────────
       The drawer is a dark navy surface, so the button
       variants need their dark-page treatment, NOT the
       light-page .btn-primary/.btn-secondary used elsewhere. */
    body.editorial .mobile-drawer-section .btn {
        margin-bottom: 0.5rem;
        width: 100%;
        justify-content: center;
    }
    body.editorial .mobile-drawer-section .btn:last-child { margin-bottom: 0; }

    body.editorial .mobile-drawer .btn-primary {
        background: var(--ed-gold);
        border-color: var(--ed-gold);
        color: var(--ed-navy-deep);
    }
    body.editorial .mobile-drawer .btn-primary:hover {
        background: #c4912f;
        border-color: #c4912f;
    }
    body.editorial .mobile-drawer .btn-secondary {
        background: transparent;
        color: var(--ed-on-navy);
        border: 1px solid rgba(243, 239, 228, 0.35);
    }
    body.editorial .mobile-drawer .btn-secondary:hover {
        border-color: var(--ed-gold);
        color: var(--ed-gold);
        background: rgba(243, 239, 228, 0.06);
    }

    body.editorial.drawer-open { overflow: hidden; }

    /* Mobile search results items */
    body.editorial .mobile-search-results a {
        display: flex;
        align-items: center;
        gap: 0.7rem;
        padding: 0.6rem 0.9rem;
        color: var(--ed-ink);
        font-size: 0.9rem;
        border-bottom: 1px solid var(--ed-line-soft);
    }
    body.editorial .mobile-search-results a:last-child { border-bottom: none; }
    body.editorial .mobile-search-results a:hover {
        background: var(--ed-accent-tint);
        color: var(--ed-accent-ink);
    }
    body.editorial .mobile-search-results img {
        width: 40px;
        height: 40px;
        object-fit: cover;
        border-radius: var(--ed-radius);
        background: var(--ed-paper-alt);
    }
    body.editorial .mobile-search-results strong {
        display: block;
        font-family: var(--ed-serif);
        font-weight: 500;
        font-size: 0.9rem;
    }
    body.editorial .mobile-search-results span {
        color: var(--ed-ink-faint);
        font-size: 0.8rem;
    }
}

/* Very narrow screens — hide brand text, keep logo icon */
@media (max-width: 380px) {
    body.editorial .logo span { display: none; }
    body.editorial .logo img { width: 32px !important; height: 32px; }
}
/* Auth (login / register / forgot password) styling lives in one place
   further down this file -- see "Auth pages" below. (This used to be
   defined twice, with the two copies disagreeing on several properties;
   keeping only one avoids relying on cascade order to sort it out.) */

body.editorial .alert {
    border-radius: var(--ed-radius);
    border: 1px solid var(--ed-line);
    font-size: 0.88rem;
}
body.editorial .alert-error   { background: #fdf2f2; border-color: #f3d4d4; color: #9a2f2f; }
body.editorial .alert-success { background: var(--ed-accent-tint); border-color: #d7e0f5; color: var(--ed-accent-ink); }

@media (max-width: 600px) {
    body.editorial .auth-card { padding: var(--ed-space-md); }
}

/* ---------------------------------------------------------
   Navigation
   --------------------------------------------------------- */
body.editorial .navbar {
  background: linear-gradient(180deg, var(--ed-navy-mid) 0%, var(--ed-navy-deep) 100%);
  box-shadow: 0 1px 0 rgba(215, 161, 59, 0.25);
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 999;
}

/* Back-to-top button */
body.editorial .back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--ed-navy-deep);
  color: var(--ed-gold);
  border: 1px solid rgba(243, 239, 228, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 10px 28px rgba(13, 24, 54, 0.3);
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
body.editorial .back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
body.editorial .back-to-top:hover {
  background: var(--ed-navy-mid);
  color: #fff;
}

body.editorial .nav-wrapper {
  padding: 0.55rem 0;
  gap: var(--ed-space-sm);
}

body.editorial .logo {
  font-family: var(--ed-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ed-on-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.editorial .logo strong {
  font-weight: 600;
  color: var(--ed-gold);
}
body.editorial .logo img {
  width: 26px !important;
}

body.editorial .search-bar {
  flex: 1;
  max-width: 260px;
  background: rgba(243, 239, 228, 0.1);
  border: 1px solid rgba(243, 239, 228, 0.18);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
body.editorial .search-bar:focus-within {
  border-color: var(--ed-gold);
  background: rgba(243, 239, 228, 0.16);
}
body.editorial .search-bar i {
  color: var(--ed-on-navy-soft);
  font-size: 0.85rem;
  margin: 0 -.5em;

}
body.editorial .search-bar input {
  border: none;
  background: transparent;
  font-family: var(--ed-sans);
  font-size: 0.95rem;
  color: var(--ed-on-navy);
  width: 100%;
  outline: none;
}
body.editorial .search-bar input:focus{
  border:none;
  outline: none;
  box-shadow: none;
}
/* Chrome/Edge tint remembered/autofillable text inputs with a pale blue
   fill (and what can look like a surrounding border) via this pseudo-
   class, completely separate from any border/outline rule above -- the
   usual fix is overriding the huge inset shadow it paints. autocomplete="off"
   on the input (see public-header.php) already discourages this; this is
   the belt-and-braces CSS half of the same fix. */
body.editorial .search-bar input:-webkit-autofill,
body.editorial .search-bar input:-webkit-autofill:hover,
body.editorial .search-bar input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--ed-navy-deep) inset;
  box-shadow: 0 0 0 1000px var(--ed-navy-deep) inset;
  -webkit-text-fill-color: var(--ed-on-navy);
  caret-color: var(--ed-on-navy);
  transition: background-color 9999s ease-in-out 0s;
}
body.editorial .search-bar input::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--ed-gold);
  transform: scaleX(0);
  transition: transform 0.2s ease;
} 
body.editorial .search-bar input::placeholder {
  color: var(--ed-on-navy-soft);
}
body.editorial .search-results {
  border-radius: var(--ed-radius-md);
  border: 1px solid var(--ed-line);
  box-shadow: 0 12px 32px rgba(13, 24, 54, 0.18);
}

body.editorial .nav-links {
  gap: var(--ed-space-sm);
  align-items: center;
}
body.editorial .nav-link {
  font-size: 0.88rem;
  color: var(--ed-on-navy-soft);
  font-weight: 500;
  letter-spacing: 0.01em;
  background: transparent !important;
  padding: 0;
  border-radius: 0;
}
body.editorial .nav-link:hover {
  color: var(--ed-gold);
}
body.editorial .nav-link.active {
  color: var(--ed-on-navy);
  background: transparent;
}
body.editorial .nav-link i {
  color: inherit;
}

body.editorial .cart-btn .cart-badge {
  background: var(--ed-gold);
  color: var(--ed-navy-deep);
  font-weight: 700;
  border-radius: 999px;
}

/* Search bar's attached category dropdown */
body.editorial .nav-search-category {
  background: transparent;
  border: none;
  color: var(--ed-on-navy-soft);
  font-family: var(--ed-sans);
  font-size: 0.82rem;
  max-width: 130px;
  outline: none;
  cursor: pointer;
}
body.editorial .nav-search-category option {
  color: var(--ed-ink);
  background: var(--ed-surface);
}
body.editorial .nav-search-divider {
  width: 1px;
  align-self: stretch;
  background: rgba(243, 239, 228, 0.18);
}

/* Notification / wishlist / cart icon buttons */
body.editorial .nav-icons {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
body.editorial .nav-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: var(--ed-on-navy-soft);
  font-size: 1.05rem;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
body.editorial .nav-icon-btn:hover {
  color: var(--ed-gold);
  background: rgba(243, 239, 228, 0.08);
}
body.editorial .nav-icon-btn .icon-badge {
  position: absolute;
  top: -0.15rem;
  right: -0.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--ed-gold);
  color: var(--ed-navy-deep);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

body.editorial .user-menu-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}
body.editorial .user-menu-text small {
  color: var(--ed-gold);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Category mega-bar (second navbar row) */
body.editorial .nav-category-bar {
  background: var(--ed-navy-deep);
  border-top: 1px solid rgba(243, 239, 228, 0.1);
}
body.editorial .nav-category-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--ed-space-md);
  padding: 0.55rem 0;
}
body.editorial .all-categories-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ed-navy-deep);
  background: var(--ed-gold);
  border-radius: var(--ed-radius);
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}
body.editorial .all-categories-btn:hover { background: #c4912f; }

body.editorial .nav-category-bar .nav-links {
  display: flex;
  flex: 1;
  gap: var(--ed-space-md);
  overflow-x: auto;
  scrollbar-width: none;
}
body.editorial .nav-category-bar .nav-links::-webkit-scrollbar { display: none; }
body.editorial .nav-category-bar .nav-link {
  white-space: nowrap;
  font-size: 0.85rem;
}

body.editorial .nav-more { position: relative; }
body.editorial .nav-more-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: var(--ed-sans);
}
body.editorial .nav-more-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.5rem;
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  box-shadow: 0 12px 32px rgba(13, 24, 54, 0.22);
  min-width: 180px;
  padding: 0.4rem 0;
  z-index: 20;
}
body.editorial .nav-more:hover .nav-more-dropdown,
body.editorial .nav-more:focus-within .nav-more-dropdown {
  display: block;
}
body.editorial .nav-more-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--ed-ink);
  font-size: 0.85rem;
}
body.editorial .nav-more-dropdown a:hover {
  background: var(--ed-accent-tint);
  color: var(--ed-accent-ink);
}

body.editorial .nav-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ed-on-navy-soft);
  font-size: 0.82rem;
  white-space: nowrap;
  flex-shrink: 0;
}
body.editorial .nav-location i { color: var(--ed-gold); }

/* Notifications page */
.notification-list { list-style: none; padding: 0; margin: 0; }
.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ed-line, #e4e0d6);
}
.notification-item:last-child { border-bottom: none; }
.notification-icon {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--ed-accent-tint, #eef1f8);
  color: var(--ed-accent, #23408f);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notification-item p { margin: 0.2rem 0; color: var(--ed-ink-soft, #5a5c64); font-size: 0.9rem; }
.notification-time { font-size: 0.78rem; color: var(--ed-ink-faint, #8b8d94); }

body.editorial .btn {
  font-family: var(--ed-sans);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 10px;
  padding: 0.3rem 1.1rem;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
body.editorial .btn-primary {
  background: var(--ed-accent);
  border: 1px solid var(--ed-accent);
  color: #fff;
}
body.editorial .btn-primary:hover {
  background: var(--ed-accent-ink);
  border-color: var(--ed-accent-ink);
  box-shadow: none;
}
body.editorial .btn-secondary,
body.editorial .btn-outline {
  background: transparent;
  color: var(--ed-ink);
  border: 1px solid var(--ed-line);
}
body.editorial .btn-secondary:hover,
body.editorial .btn-outline:hover {
  border-color: var(--ed-ink);
  background: transparent;
}

/* Navbar sits on the navy field now, so its own Login/Sign Up buttons
   need the same dark-background contrast treatment as .hero's buttons
   -- the base .btn-primary/.btn-secondary above stay tuned for the
   light paper background used everywhere else on the page. */
body.editorial .navbar .btn-primary {
  background: var(--ed-gold);
  border-color: var(--ed-gold);
  color: var(--ed-navy-deep);
}
body.editorial .navbar .btn-primary:hover {
  background: #c4912f;
  border-color: #c4912f;
}
body.editorial .navbar .btn-secondary {
  color: var(--ed-on-navy);
  border-color: rgba(243, 239, 228, 0.35);
}
body.editorial .navbar .btn-secondary:hover {
  border-color: var(--ed-on-navy);
  background: rgba(243, 239, 228, 0.08);
}

body.editorial .btn-large {
  padding: 0.95rem 1.9rem;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------
   Hero -- full-bleed navy band so it reads as a distinct,
   premium "stage" instead of blending into the paper page.
   --------------------------------------------------------- */
body.editorial .hero {
  position: relative;
  background: radial-gradient(120% 160% at 85% -10%, var(--ed-navy-mid) 0%, var(--ed-navy-deep) 55%) var(--ed-navy-deep);
  padding: calc(var(--ed-space-xl) + 1rem) 0 calc(var(--ed-space-xl) + 3.5rem);
  overflow: hidden;
  isolation: isolate;
}
/* Subtle texture so the navy field isn't a flat block: a faint dot
     grid plus a soft gold glow behind the copy. Pure CSS/SVG data-uri
     on a pseudo-element, so no image asset can go missing and no
     markup change is needed (the .hero-bg div some older markup
     expects is handled too, in case it's ever added back). */
body.editorial .hero::before,
body.editorial .hero-bg {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 20%, rgba(215, 161, 59, 0.16) 0%, transparent 45%),
    url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="28" height="28"%3E%3Ccircle cx="1.5" cy="1.5" r="1.5" fill="%23ffffff" fill-opacity="0.06"/%3E%3C/svg%3E');
  background-repeat: no-repeat, repeat;
  pointer-events: none;
  z-index: 0;
}
body.editorial .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--ed-space-lg);
  align-items: center;
}
body.editorial .hero-text .badge {
  background: rgba(243, 239, 228, 0.08);
  color: var(--ed-on-navy);
  padding: 0.4rem 0.9rem 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: none;
  border-left: 2px solid var(--ed-gold);
  border-radius: 999px;
  display: inline-block;
  margin-bottom: 1.5rem;
}
body.editorial .hero-title {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: clamp(2.5rem, 4.4vw, 3.75rem);
  line-height: 1.1;
  color: var(--ed-on-navy);
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
body.editorial .hero-title .gradient-text {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--ed-gold);
  font-style: italic;
}
body.editorial .hero-subtitle {
  font-size: 1.08rem;
  line-height: 1.7;
  color: var(--ed-on-navy-soft);
  max-width: 46ch;
  margin-bottom: var(--ed-space-md);
}
body.editorial .hero-buttons {
  gap: 1rem;
  margin-bottom: var(--ed-space-lg);
}
/* Buttons need their own contrast pass on the dark field -- the
     shared .btn-primary/.btn-outline rules are tuned for the light
     paper background elsewhere on the page. */
body.editorial .hero .btn-primary {
  background: var(--ed-gold);
  border-color: var(--ed-gold);
  color: var(--ed-surface);
}
body.editorial .hero .btn-primary:hover {
  background: #c4912f;
  border-color: #c4912f;
}
body.editorial .hero .btn-outline {
  color: var(--ed-on-navy);
  border-color: rgba(243, 239, 228, 0.35);
}
body.editorial .hero .btn-outline:hover {
  border-color: var(--ed-on-navy);
  background: rgba(243, 239, 228, 0.06);
}

body.editorial .hero-stats {
  display: flex;
  gap: var(--ed-space-lg);
  padding-top: var(--ed-space-md);
  border-top: 1px solid rgba(243, 239, 228, 0.16);
}
body.editorial .hero-stats .stat {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 0.15rem;
  background: none;
  padding: 0;
  border-radius: 0;
}
body.editorial .hero-stats .stat i {
  display: none;
}
body.editorial .hero-stats .stat strong {
  font-family: var(--ed-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ed-on-navy);
  display: block;
}
body.editorial .hero-stats .stat span {
  font-size: 0.82rem;
  color: var(--ed-on-navy-soft);
}

/* Floating product cards: sized and positioned so every card's full
     height stays inside .hero-image's own box. Previously card-3 sat
     far enough down (top:340px in a 460px box) that it spilled below
     the hero and was sliced off by the section that follows -- fixed
     here by giving the container enough room for the lowest card and
     keeping every card's top + its own height within that room. */
body.editorial .hero-image {
  position: relative;
  height: 520px;
}
body.editorial .floating-card {
  position: absolute;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  border-radius: var(--ed-radius-md);
  box-shadow: 0 25px 50px rgba(3, 7, 22, 0.45);
  overflow: hidden;
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  width: 190px;
  animation: ed-float 5s ease-in-out infinite;
}
body.editorial .floating-card img {
  height: 130px;
  width: 100%;
  object-fit: cover;
}
body.editorial .floating-card .card-info {
  padding: 0.65rem 0.85rem;
}
body.editorial .floating-card .card-info strong {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 0.95rem;
}
body.editorial .floating-card.card-1 {
  top: 0;
  right: 10px;
  animation-delay: 1s;
  z-index: 3;
}
body.editorial .floating-card.card-2 {
  top: 165px;
  right: 210px;
  animation-delay: 2.2s;
  z-index: 2;
}
body.editorial .floating-card.card-3 {
  top: 325px;
  right: 40px;
  animation-delay: 2.4s;
  z-index: 1;
}

@keyframes ed-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.editorial .floating-card {
    animation: none;
  }
}

/* ---------------------------------------------------------
   Section headers
   --------------------------------------------------------- */
body.editorial section {
  padding: var(--ed-space-xl) 0;
}
body.editorial .section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  text-align: left;
  margin-bottom: var(--ed-space-lg);
  gap: var(--ed-space-md);
  border-radius: 10px;
}
body.editorial .section-title {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  color: var(--ed-accent);
  letter-spacing: -0.01em;
}
body.editorial .section-subtitle {
  color: var(--ed-ink-soft);
  font-size: 1rem;
  margin-top: 0.35rem;
}
body.editorial .view-all {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ed-ink);
  white-space: nowrap;
  border-bottom: 1px solid var(--ed-ink);
  padding-bottom: 2px;
}
body.editorial .view-all:hover {
  color: var(--ed-accent);
  border-color: var(--ed-accent);
}

/* ---------------------------------------------------------
   Categories
   --------------------------------------------------------- */
body.editorial .categories-section {
  background: var(--ed-paper-alt);
  border-radius: 10px;
}
body.editorial .categories-grid {
  display: flex;
  /* grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); */
  gap: 1px;
  background: var(--ed-line);
  border: 1px solid var(--ed-line);
  padding: 10px;

}
body.editorial .category-card {
  background: var(--ed-paper-alt);
  padding: var(--ed-space-md) var(--ed-space-sm);
  text-align: center;
  transition: background-color 0.18s ease;
  width: 100% !important;
}
body.editorial .category-card:hover {
  background: var(--ed-surface);
}
body.editorial .category-icon {
  background: none;
  width: auto;
  height: auto;
  margin: 0 0 1rem;
  font-size: 1.3rem;
  color: var(--ed-accent);
  transform: translateY(4px);
}
body.editorial .category-card .card-title {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ed-ink);
  margin-bottom: 0.2rem;
}
body.editorial .category-card p {
  color: var(--ed-ink-faint);
  font-size: 0.85rem;
}

/* ---------------------------------------------------------
   Product grid + cards -- ONE shared card look used by the
   homepage featured grid (.products-grid / .product-info) and
   the shop grid (.product-grid / .product-body). Both markups
   render to the same visual card.
   --------------------------------------------------------- */
body.editorial .featured-products {
  background: var(--ed-paper);
  border-radius: 10px;
}
body.editorial .products-grid,
body.editorial .product-grid {
  display: grid;
  /* auto-fit (not auto-fill): with fewer products than fit a row, auto-fill
     was reserving empty tracks that had nothing to render into, leaving a
     block of dead white space next to the last card. auto-fit collapses
     those empty tracks -- but a bare "1fr" max let the single remaining
     track then stretch to the *entire* row width (visible as one small
     320px-capped card sitting in an otherwise-empty full-width row when
     there's only one result). Capping the max keeps every column a
     sensible card width regardless of how many items there are. */
  grid-template-columns: repeat(auto-fit, minmax(230px, 300px));
  gap: var(--ed-space-md) var(--ed-space-sm);

}
body.editorial .product-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-md);
  box-shadow: 0 2px 10px rgba(28, 29, 34, 0.05);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
  width: 100%;
}
body.editorial .product-card:hover {
  box-shadow: 0 14px 32px rgba(28, 29, 34, 0.10);
  border-color: var(--ed-line-soft);
  transform: translateY(-2px);
}
body.editorial .product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--ed-radius);
  overflow: hidden;
  background: var(--ed-paper-alt);
  margin-bottom: 0.85rem;
  display: block;
}
body.editorial .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
body.editorial .product-card:hover .product-image img {
  transform: scale(1.04);
}
body.editorial .product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ed-surface);
  color: var(--ed-ink);
  border: 1px solid var(--ed-line);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--ed-radius);
  padding: 0.25rem 0.6rem;
  box-shadow: none;
}
/* body.editorial .product-overlay {
  position: relative;
} */
body.editorial .product-overlay .btn-icon {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-surface);
  color: var(--ed-ink);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(28,29,34,0.14);
}
body.editorial .product-overlay .btn-icon:hover {
  background: var(--ed-accent);
  color: var(--ed-surface);
}
body.editorial .product-info,
body.editorial .product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}
body.editorial .product-vendor {
  color: var(--ed-ink);
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}
body.editorial .product-title {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 0.3rem;
}
body.editorial .product-title a {
  color: var(--ed-ink);
}
body.editorial .product-title span {
  color: var(--ed-ink-faint);
  font-family: var(--ed-sans);
  font-weight: 400;
  font-size: 0.85rem;
}
body.editorial .product-description {
  font-size: 0.85rem;
  color: var(--ed-ink-faint);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.editorial .product-description a {
  color: inherit;
}
body.editorial .product-rating {
  color: var(--ed-ink-faint);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.5rem;
}
body.editorial .product-rating .fa-star,
body.editorial .product-rating .fa-star-half-alt {
  color: var(--ed-accent);
}
body.editorial .product-footer,
body.editorial .product-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
body.editorial .product-price,
body.editorial .current-price {
  font-family: var(--ed-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ed-ink);
}
body.editorial .old-price {
  color: var(--ed-ink-faint);
  text-decoration: line-through;
  font-size: 0.85rem;
  margin-left: 0.35rem;
}
body.editorial .product-actions .btn {
  flex: 1;
}
body.editorial .add-to-cart,
body.editorial .product-actions .add-to-cart {
  background: var(--ed-ink);
  border: 1px solid var(--ed-ink);
  color: var(--ed-surface);
  border-radius: var(--ed-radius);
  padding: 0.5rem 0.9rem;
}
body.editorial .add-to-cart:hover,
body.editorial .product-actions .add-to-cart:hover {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
}

/* ---------------------------------------------------------
   How it works (a genuine sequence, so numbering stays --
   just quieter than a filled circle badge)
   --------------------------------------------------------- */
body.editorial .how-it-works {
  background: var(--ed-paper-alt);
}
body.editorial .steps-grid {
  gap: var(--ed-space-md);
}
body.editorial .step-card {
  /* background: var(--ed-accent); */
  box-shadow: none;
  border: none;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}
body.editorial .step-card:hover{
    background: var(--ed-paper);
    box-shadow: 0 2px 12px rgba(28, 29, 34, 0.08);
}
body.editorial .step-number {
  font-family: var(--ed-serif);
  font-size: 2.4rem;
  font-weight: 500;
  color: var(--ed-surface);
  -webkit-text-stroke: 1px var(--ed-gold);
  background: none;
  width: auto;
  height: auto;
  line-height: 1;
  margin-bottom: 0.75rem;
}
body.editorial .step-icon {
  display: block;
}
body.editorial .step-card .card-title {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--ed-accent-ink);
}
body.editorial .step-card p {
  color: var(--ed-ink);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
body.editorial .footer {
  background: linear-gradient(180deg, var(--ed-navy-deep) 0%, #0a1329 100%);
  color: var(--ed-on-navy-soft);
  padding: var(--ed-space-xl) 0 var(--ed-space-md);
}
body.editorial .footer-logo {
  font-family: var(--ed-serif);
  color: var(--ed-on-navy);
  font-size: 1.2rem;
}
body.editorial .footer-logo strong {
  color: var(--ed-gold);
}
body.editorial .footer-column h4 {
  color: var(--ed-on-navy);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
body.editorial .footer-column a {
  color: var(--ed-on-navy-soft);
}
body.editorial .footer-column a:hover {
  color: var(--ed-gold);
}
body.editorial .footer-links a {
  color: var(--ed-on-navy-soft);
}
body.editorial .footer-links a:hover {
  color: var(--ed-gold);
}
body.editorial .footer-bottom {
  border-top: 1px solid rgba(243, 239, 228, 0.12);
  color: var(--ed-on-navy-soft);
}
body.editorial .social-links a {
  border: 1px solid rgba(243, 239, 228, 0.18);
  color: var(--ed-on-navy-soft);
}
body.editorial .social-links a:hover {
  background: var(--ed-gold);
  border-color: var(--ed-gold);
  color: var(--ed-navy-deep);
}

/* ---------------------------------------------------------
   Cart modal
   --------------------------------------------------------- */
body.editorial .cart-modal .cart-content {
  border-radius: var(--ed-radius);
}
body.editorial .cart-header h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
}
body.editorial .cart-total strong {
  font-family: var(--ed-serif);
  color: var(--ed-ink);
}

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  body.editorial .hero-content {
    grid-template-columns: 1fr;
  }
  body.editorial .hero-image {
    display: none;
  }
  body.editorial .search-bar {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.editorial * {
    animation: none !important;
    transition: none !important;
  }
}
/* ============================================================
   Storefront extension -- products, product detail, cart,
   checkout. Same body.editorial scope, same design tokens.
   Also neutralises the dashboard-shell chrome (fixed nav +
   off-canvas account sidebar) on these pages so they read as
   a storefront, not a back-office screen.
   ============================================================ */

/* ---------------------------------------------------------
   Dashboard-shell neutralisation (nav + sidebar + main)
   --------------------------------------------------------- */
body.editorial .dashboard-nav {
  position: sticky;
  height: auto;
  padding: 0;
  box-shadow: none;
}
body.editorial .dashboard-sidebar {
  display: none !important;
}
body.editorial .dashboard-main {
  position: static;
  left: 0;
  top: 0;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: var(--ed-space-lg) var(--ed-space-md) var(--ed-space-xl);
}

/* ---------------------------------------------------------
   Real back-office pages opt back OUT of the neutralisation
   above via a second body class (`dashboard-shell`, set by
   header.php/admin-header.php) -- they want the new topbar's
   look (search bar, icons) WITHOUT losing their actual sidebar
   nav or fixed-header spacing. These re-assert dashboard.css's
   original, un-neutralised values; the extra class on the body
   selector gives them higher specificity than the rules above
   regardless of source order. See dashboard.css for the values
   being restored here.
   --------------------------------------------------------- */
body.editorial.dashboard-shell .dashboard-nav,
body.editorial.vendor-shell .dashboard-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 64px;
  width: 100%;
  padding: 0;
  box-shadow: none;
}
body.editorial.dashboard-shell .dashboard-sidebar,
body.editorial.vendor-shell .dashboard-sidebar {
  display: block !important;
  grid-column: 1;
  width: 100%;
  /* background/border intentionally NOT set here. This rule used to hardcode
     background:#fff + a light border-right, which has the exact same selector
     specificity (three classes) as dashboard.css's sidebar rule -- so whichever
     stylesheet loaded LAST won outright, with no visual indication why. Since
     this file loads after dashboard.css in every layout, its #fff was silently
     winning while the sidebar's text was still styled for navy, rendering as
     low-contrast cream-on-white. The light sidebar is now stated once, in
     dashboard.css, from shared tokens. */
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  overflow-y: auto;
  z-index: 10;
}
body.editorial.dashboard-shell .dashboard-main,
body.editorial.vendor-shell .dashboard-main {
  grid-column: 2;
  position: static;
  left: 0;
  top: 0;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}
@media (max-width: 991px) {
  body.editorial.dashboard-shell .dashboard-sidebar,
body.editorial.vendor-shell .dashboard-sidebar {
    position: fixed;
    left: 0;
    top: 64px;
    height: calc(100vh - 64px);
    width: 260px;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  body.editorial.dashboard-shell .dashboard-sidebar.active,
body.editorial.vendor-shell .dashboard-sidebar.active {
    transform: translateX(0);
  }
  body.editorial.dashboard-shell .dashboard-main,
body.editorial.vendor-shell .dashboard-main {
    grid-column: 1;
  }
}
@media (min-width: 992px) {
  body.editorial .dashboard-sidebar {
    display: none !important;
  }
  body.editorial .dashboard-main {
    margin: 0 auto;
    left: 0;
  }
}
body.editorial .user-menu-btn {
  border-color: rgba(243, 239, 228, 0.3);
  border-radius: var(--ed-radius);
  color: var(--ed-accent);
}
body.editorial .user-menu-btn:hover {
  border-color: var(--ed-gold);
  background: rgba(243, 239, 228, 0.08);
  color: var(--ed-line-soft);

}
body.editorial .user-dropdown {
  border: 1px solid var(--ed-line);
  box-shadow: 0 12px 32px rgba(13, 24, 54, 0.22);
  border-radius: var(--ed-radius);
  background: var(--ed-surface);
}
body.editorial .user-dropdown a:hover {
  background: var(--ed-accent-tint);
  color: var(--ed-accent-ink);
}
body.editorial .mobile-menu-btn {
  color: var(--ed-on-navy);
}

/* ---------------------------------------------------------
   Page header banner (replaces "dashboard-header" look)
   --------------------------------------------------------- */
body.editorial .dashboard-header,
body.editorial .featured-products > .container > div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--ed-space-md);
  padding-bottom: var(--ed-space-md);
  margin-bottom: var(--ed-space-lg);
  border-bottom: 1px solid var(--ed-line);
}
/* Consoles are dense: the rule under the title only needs one gap, not two. */
body.editorial.dashboard-shell .dashboard-header {
  margin-bottom: var(--ed-space-md);
}
/* Inside a .card, .card-body already adds its own top padding, so the
   header's own margin-bottom doesn't need to add a second full helping
   of space on top of it -- that was the empty band on the shop page. */
body.editorial .card > .dashboard-header {
  margin-bottom: var(--ed-space-md);
  padding: var(--ed-space-md) var(--ed-space-md) var(--ed-space-md);
  margin: 0;
}
body.editorial .card > .card-body {
  padding-top: var(--ed-space-sm);
}
body.editorial .dashboard-header h1 {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  color: var(--ed-ink);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: -0.01em;
}
body.editorial .dashboard-header h1 i {
  color: var(--ed-accent);
  font-size: 0.85em;
}
body.editorial .dashboard-header p {
  color: var(--ed-ink-soft);
  font-size: 0.95rem;
  margin-top: 0.2rem;
}

/* ---------------------------------------------------------
   Generic panel ("card") + alerts + badges
   --------------------------------------------------------- */
body.editorial .card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  box-shadow: none;
  overflow: visible; /* overflow:hidden here breaks position:sticky on the
                         products sidebar nested inside it */
}
body.editorial .card-body {
  padding: var(--ed-space-md);
}

body.editorial .alert {
  border-radius: var(--ed-radius);
  border: 1px solid var(--ed-line);
  background: var(--ed-surface);
  color: var(--ed-ink);
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
body.editorial .alert-success {
  border-color: #bfd8c8;
  background: #f2f8f4;
  color: #1e5631;
}
body.editorial .alert-error {
  border-color: #e7c3bd;
  background: #fbf0ee;
  color: var(--danger, #ea4335);
}
body.editorial .alert-warning {
  border-color: #e8dcb0;
  background: #fbf6e6;
  color: #8a6d1d;
}
body.editorial .alert-info {
  border-color: var(--ed-line);
  background: var(--ed-accent-tint);
  color: var(--ed-accent-ink);
}

body.editorial .badge {
  border-radius: var(--ed-radius);
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.72rem;
  padding: 0.25rem 0.55rem;
}
body.editorial .badge-required {
  background: var(--ed-accent-tint);
  color: var(--ed-accent-ink);
}
body.editorial .badge-info {
  background: var(--ed-paper-alt);
  color: var(--ed-ink-soft);
}

body.editorial .empty-state {
  padding: var(--ed-space-xl) var(--ed-space-md);
  text-align: center;
}
body.editorial .empty-state i {
  font-size: 2.4rem;
  color: var(--ed-line);
  margin-bottom: 1rem;
}
body.editorial .empty-state h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ed-ink);
  margin-bottom: 0.4rem;
}
body.editorial .empty-state p {
  color: var(--ed-ink-soft);
  margin-bottom: 1.25rem;
}

body.editorial .btn-danger {
  background: transparent;
  color: var(--danger, #ea4335);
  border: 1px solid #e7c3bd;
  border-radius: var(--ed-radius);
}
body.editorial .btn-danger:hover {
  background: var(--danger, #ea4335);
  color: #fff;
  border-color: var(--danger, #ea4335);
}
body.editorial .btn-block {
  width: 100%;
}

/* ---------------------------------------------------------
   Forms
   --------------------------------------------------------- */
body.editorial .form-group {
  margin-bottom: var(--ed-space-sm);
}
body.editorial .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--ed-space-sm);
}
body.editorial .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ed-ink);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
body.editorial .form-label i {
  color: var(--ed-ink-faint);
}
body.editorial .form-input,
body.editorial .form-select,
body.editorial .form-textarea {
  width: 100%;
  font-family: var(--ed-sans);
  font-size: 0.95rem;
  color: var(--ed-ink);
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.18s ease;
}
body.editorial .form-input:focus,
body.editorial .form-select:focus,
body.editorial .form-textarea:focus {
  outline: none;
  border-color: var(--ed-accent);
}
body.editorial .form-hint {
  color: var(--ed-ink-faint);
  font-size: 0.8rem;
  margin-top: 0.3rem;
  display: block;
}
body.editorial .form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--ed-ink-soft);
}
body.editorial .form-checkbox a {
  color: var(--ed-accent);
  border-bottom: 1px solid var(--ed-accent-tint);
}
body.editorial .form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: var(--ed-space-md);
}
/* Console forms run their actions side by side, Cancel first, the way the
   rest of the dashboard already does; narrow screens keep the stack. */
@media (min-width: 481px) {
  body.editorial.dashboard-shell .form-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}
body.editorial .search-inline {
  display: flex;
  gap: 0.5rem;
}
body.editorial .search-inline input {
  border-bottom: 1px solid var(--ed-line);
  /* border-radius: var(--ed-radius); */
  padding: 0.6rem 0.9rem;
  font-family: var(--ed-sans);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}
body.editorial .search-inline input:focus {
  border-color: var(--ed-accent);
}

/* ---------------------------------------------------------
   Shop: category sidebar + product grid (products.php,
   customer/products.php)
   --------------------------------------------------------- */
body.editorial .products-grid-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--ed-space-lg);
  align-items: start;
}
body.editorial .products-sidebar {
  width: auto;
  background: none;
  padding: 0;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: none;
  height: auto;
  position: sticky;
  top: 90px;
}
body.editorial .products-sidebar h4 {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ed-ink);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--ed-line);
}
body.editorial .sidebar-list {
  list-style: none;
  margin: 0 0 var(--ed-space-md);
  padding: 0;
}
body.editorial .sidebar-list li {
  margin: 0;
}
body.editorial .sidebar-list a.catigories {
  display: block;
  background: none !important;
  color: var(--ed-ink-soft) !important;
  padding: 0.5rem 0 !important;
  font-size: 0.9rem;
  text-transform: capitalize;
  border-bottom: 1px solid var(--ed-line-soft);
  border-radius: 0 !important;
  transition:
    color 0.18s ease,
    padding-left 0.18s ease;
}
body.editorial .sidebar-list a.catigories:hover {
  color: var(--ed-accent) !important;
  padding-left: 0.3rem !important;
}

body.editorial .product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-ink-faint);
  font-size: 1.6rem;
  background: var(--ed-paper-alt);
}

body.editorial .pagination {
  display: flex;
  gap: 0.4rem;
  margin-top: var(--ed-space-lg);
  justify-content: center;
}
body.editorial .page-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  color: var(--ed-ink-soft);
  font-size: 0.9rem;
}
body.editorial .page-link:hover {
  border-color: var(--ed-ink);
  color: var(--ed-ink);
}
body.editorial .page-link.active {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: var(--ed-surface);
}

@media (max-width: 800px) {
  body.editorial .products-grid-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Cart page (table + summary)
   --------------------------------------------------------- */
body.editorial .table {
  width: 100%;
  border-collapse: collapse;
}
body.editorial .table thead th {
  text-align: left;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid var(--ed-line);
}
body.editorial .table td {
  padding: 1rem 0.5rem;
  border-bottom: 1px solid var(--ed-line-soft);
  vertical-align: middle;
}
body.editorial .table tbody tr:hover {
  background: var(--ed-paper-alt);
}
body.editorial .table .product-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
body.editorial .table .product-info img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: var(--ed-radius);
  background: var(--ed-paper-alt);
}
body.editorial .table .product-info strong {
  font-family: var(--ed-serif);
  font-weight: 500;
  color: var(--ed-ink);
  display: block;
}
body.editorial .table .product-info small {
  color: var(--ed-ink-faint);
  font-size: 0.8rem;
}

body.editorial .qty-stepper .qty-btn {
  border: 1px solid var(--ed-line) !important;
  background: var(--ed-surface) !important;
  border-radius: var(--ed-radius) !important;
  color: var(--ed-ink);
}
body.editorial .qty-stepper .qty-btn:hover {
  border-color: var(--ed-ink) !important;
}
body.editorial .qty-stepper .qty-input {
  border: 1px solid var(--ed-line) !important;
  border-radius: var(--ed-radius) !important;
}

body.editorial .cart-summary {
  margin-top: var(--ed-space-md);
  padding-top: var(--ed-space-md);
  border-top: 1px solid var(--ed-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ed-space-md);
}
body.editorial .cart-summary h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.2rem;
}
body.editorial .cart-summary strong {
  font-family: var(--ed-serif);
  font-size: 1.1rem;
  color: var(--ed-ink);
}

body.editorial .modal-content {
  background: var(--ed-surface) !important;
  border-radius: var(--ed-radius) !important;
  border: 1px solid var(--ed-line);
}
body.editorial .modal-content h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
}

/* ---------------------------------------------------------
   Checkout
   --------------------------------------------------------- */
body.editorial .checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--ed-space-lg);
}
body.editorial .progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--ed-ink-faint);
}
body.editorial .progress-step span {
  font-size: 0.78rem;
  font-weight: 600;
}
body.editorial .progress-step .step-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ed-line);
  background: var(--ed-surface);
  color: var(--ed-ink-faint);
}
body.editorial .progress-step.completed .step-icon {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: var(--ed-surface);
}
body.editorial .progress-step.completed span {
  color: var(--ed-ink);
}
body.editorial .progress-step.active .step-icon {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
  color: #fff;
}
body.editorial .progress-step.active span {
  color: var(--ed-ink);
}
body.editorial .progress-line {
  width: 48px;
  height: 1px;
  background: var(--ed-line);
}
body.editorial .progress-line.completed {
  background: var(--ed-ink);
}

body.editorial .checkout-container {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--ed-space-lg);
  align-items: start;
}
body.editorial .checkout-section {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  margin-bottom: var(--ed-space-md);
  overflow: hidden;
}
body.editorial .checkout-section .section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ed-line);
  margin-bottom: 0;
}
body.editorial .checkout-section .section-header h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ed-ink);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.editorial .checkout-section .section-header i {
  color: var(--ed-accent);
}
body.editorial .section-body {
  padding: 1.25rem;
}

body.editorial .payment-methods {
  display: grid;
  gap: 0.75rem;
}
body.editorial .payment-option {
  display: block;
  cursor: pointer;
}
body.editorial .payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
body.editorial .payment-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  transition: border-color 0.18s ease;
}
body.editorial .payment-option input:checked + .payment-card {
  border-color: var(--ed-accent);
  background: var(--ed-accent-tint);
}
body.editorial .payment-option.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
body.editorial .payment-availability-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--ed-ink-soft, #5a5c64);
}
body.editorial .payment-availability-note i {
  margin-right: 0.35rem;
  color: var(--ed-ink-soft, #5a5c64);
}
body.editorial .payment-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--ed-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ed-paper-alt) !important;
  color: var(--ed-ink);
  flex-shrink: 0;
}
body.editorial .payment-details strong {
  font-family: var(--ed-serif);
  font-weight: 500;
  color: var(--ed-ink);
  display: block;
}
body.editorial .payment-details p {
  color: var(--ed-ink-faint);
  font-size: 0.82rem;
}
body.editorial .payment-check {
  color: var(--ed-accent);
  opacity: 0;
}
body.editorial .payment-option input:checked + .payment-card .payment-check {
  opacity: 1;
}
body.editorial .payment-details-section {
  margin-top: 1rem;
}

body.editorial .order-summary-sidebar .summary-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  padding: 1.25rem;
}
body.editorial .summary-card.sticky {
  position: sticky;
  top: 90px;
}
body.editorial .summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ed-line);
  margin-bottom: 0.9rem;
}
body.editorial .summary-header h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
body.editorial .summary-header i {
  color: var(--ed-accent);
}
body.editorial .item-count {
  font-size: 0.78rem;
  color: var(--ed-ink-faint);
}
body.editorial .summary-item {
  display: flex;
  gap: 0.7rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--ed-line-soft);
  align-items: center;
}
body.editorial .item-image img,
body.editorial .item-placeholder {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--ed-radius);
  background: var(--ed-paper-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ed-ink-faint);
}
body.editorial .item-details {
  flex: 1;
  min-width: 0;
}
body.editorial .item-details strong {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 0.92rem;
  display: block;
  color: var(--ed-ink);
}
body.editorial .item-details small {
  color: var(--ed-ink-faint);
  font-size: 0.78rem;
}
body.editorial .item-qty {
  display: block;
  font-size: 0.78rem;
  color: var(--ed-ink-faint);
}
body.editorial .item-price strong {
  font-family: var(--ed-serif);
  color: var(--ed-ink);
  font-size: 0.92rem;
}
body.editorial .summary-calculations {
  margin-top: 0.75rem;
}
body.editorial .calc-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.88rem;
  color: var(--ed-ink-soft);
}
body.editorial .summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--ed-line);
  font-weight: 600;
}
body.editorial .summary-total .total-amount {
  font-family: var(--ed-serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ed-ink);
}
body.editorial .trust-badges {
  display: flex;
  justify-content: space-between;
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--ed-line);
}
body.editorial .trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--ed-ink-faint);
  text-align: center;
}
body.editorial .trust-badge i {
  color: var(--ed-accent);
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  body.editorial .checkout-container {
    grid-template-columns: 1fr;
  }
  body.editorial .summary-card.sticky {
    position: static;
  }
  body.editorial .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------------
   Product detail page (product-page / product-detail-container)
   --------------------------------------------------------- */
body.editorial .product-page {
  margin: 0;
  padding: var(--ed-space-lg) 0;
}
body.editorial .product-detail-container {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  box-shadow: none;
  border-radius: var(--ed-radius);
  padding: var(--ed-space-lg);
  gap: var(--ed-space-lg);
}
body.editorial .main-image-container {
  border-color: var(--ed-line);
  border-radius: var(--ed-radius);
  background: var(--ed-paper-alt);
}
body.editorial .thumbnail-gallery img {
  border-radius: var(--ed-radius);
}
body.editorial .thumbnail-gallery img:hover,
body.editorial .thumbnail-gallery img.active {
  border-color: var(--ed-accent);
}
body.editorial .product-details h1 {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  color: var(--ed-ink);
}
body.editorial .product-vendor,
body.editorial .product-vendor a {
  color: var(--ed-ink-soft);
  font-size: 0.95rem;
}
body.editorial .product-vendor a:hover {
  color: var(--ed-accent);
}
body.editorial .product-rating {
  color: var(--ed-accent);
}
body.editorial .product-rating span {
  color: var(--ed-ink-faint);
}
/* The sold figure is the one number on a card that argues for the product, so
   it takes the gold the brand reserves for commerce instead of the grey the
   review count sits in. Scoped through the rating container because
   `body.editorial .product-rating span` above already claims every span in
   that row, and a bare `.card-proof` loses to it on specificity. */
body.editorial .product-rating .card-proof,
body.editorial .pd-rating .pd-sold {
  color: var(--ed-gold-ink);
  font-size: 0.78rem;
  gap: 0.3rem;
}
body.editorial .product-rating .card-proof i,
body.editorial .pd-rating .pd-sold i {
  color: var(--ed-gold-ink);
  font-size: 0.68rem;
}
body.editorial .product-details .product-price {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 2rem;
  color: var(--ed-ink);
  margin: 0.75rem 0;
}
body.editorial .product-description h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
  color: var(--ed-ink);
  border-color: var(--ed-line);
}
body.editorial .product-description p {
  color: var(--ed-ink-soft);
}
body.editorial .product-options {
  border-color: var(--ed-line);
}
body.editorial .option-group select {
  border-color: var(--ed-line);
  border-radius: var(--ed-radius);
}
body.editorial .quantity-control {
  border-color: var(--ed-line);
  border-radius: var(--ed-radius);
  overflow: hidden;
}
body.editorial .quantity-control button {
  background: var(--ed-paper-alt);
  color: var(--ed-ink);
}
body.editorial .quantity-control button:hover {
  background: var(--ed-line-soft);
}
body.editorial .btn-add-to-cart {
  background: var(--ed-ink);
  border: 1px solid var(--ed-ink);
  border-radius: var(--ed-radius);
}
body.editorial .btn-add-to-cart:hover {
  background: var(--ed-accent);
  border-color: var(--ed-accent);
}

/* ---------------------------------------------------------
   Auth pages (login, register, forgot/reset password)
   --------------------------------------------------------- */
body.editorial .auth-container {
  min-height: 60vh;
  background: var(--ed-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--ed-space-xl) var(--ed-space-md);
}
body.editorial .auth-card {
  background: var(--ed-surface);
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius-md);
  box-shadow: 0 24px 60px rgba(28, 29, 34, 0.08);
  max-width: 460px;
  width: 100%;
  padding: 2.75rem;
}
body.editorial .auth-header { text-align: center; margin-bottom: 1.75rem; }
body.editorial .auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ed-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ed-ink);
  margin-bottom: 1.25rem;
}
body.editorial .auth-logo img { width: 36px; height: 36px; }
body.editorial .auth-logo strong { font-weight: 600; }
body.editorial .auth-title {
  font-family: var(--ed-serif);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--ed-ink);
  margin-bottom: 0.35rem;
}
body.editorial .auth-subtitle { color: var(--ed-ink-soft); font-size: 0.95rem; }
body.editorial .auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ed-line);
  color: var(--ed-ink-soft);
  font-size: 0.9rem;
}
body.editorial .auth-footer p { margin: 0.35rem 0; }
body.editorial .auth-footer a { color: var(--ed-accent); font-weight: 600; }
body.editorial .auth-footer a:hover { color: var(--ed-ink); }

body.editorial .error-message {
  color: var(--danger, #ea4335);
  font-size: 0.8rem;
  margin-top: 0.35rem;
}

body.editorial .role-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
body.editorial .role-option {
  border: 1px solid var(--ed-line);
  border-radius: var(--ed-radius);
  padding: 1.1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}
body.editorial .role-option:hover { border-color: var(--ed-accent); }
body.editorial .role-option input { display: none; }
body.editorial .role-content i { font-size: 1.6rem; color: var(--ed-ink-faint); margin-bottom: 0.5rem; display: block; }
body.editorial .role-content h3 { font-family: var(--ed-serif); font-weight: 500; font-size: 1.02rem; color: var(--ed-ink); margin-bottom: 0.2rem; }
body.editorial .role-content p { color: var(--ed-ink-faint); font-size: 0.8rem; }
body.editorial .role-option input:checked ~ .role-content i,
body.editorial .role-option input:checked ~ .role-content h3 { color: var(--ed-accent); }
body.editorial .role-option:has(input:checked) { border-color: var(--ed-accent); background: var(--ed-accent-tint); }

body.editorial .vendor-fields {
  border-top: 1px solid var(--ed-line);
  margin-top: 0.5rem;
  padding-top: 1.25rem;
}
body.editorial .vendor-fields h3 {
  font-family: var(--ed-serif);
  font-weight: 500;
  color: var(--ed-ink) !important;
  font-size: 1.05rem;
  margin-bottom: 1rem !important;
}

@media (max-width: 560px) {
  body.editorial .auth-card { padding: 1.75rem 1.5rem; }
  body.editorial .role-selector { grid-template-columns: 1fr; }
}
/* ============================================================
   Mobile navigation — CONSOLIDATED, single source of truth
   for storefront pages.

   main.css (shared with the dashboards) hides .nav-links at
   768px and shows .mobile-menu-btn, but its .nav-links.active
   "open" rule only exists inside a separate max-width:567px
   block -- so on anything between 568px and 768px (a huge
   range: most phones in landscape, small tablets), tapping the
   hamburger toggled a class that had no visible effect at all.

   Everything below is scoped to body.editorial so it can't
   affect the admin/vendor dashboard nav, and uses one clean
   breakpoint instead of the old two-tier 567/768 split.
   ============================================================ */
@media (max-width: 768px) {
    body.editorial .search-bar { display: none; }

    body.editorial .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        transition: background-color .15s ease;
    }
    body.editorial .mobile-menu-btn:hover,
    body.editorial .mobile-menu-btn:active {
        background: var(--ed-paper-alt);
    }

    body.editorial .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--ed-surface);
        border-top: 1px solid var(--ed-line);
        box-shadow: 0 20px 40px rgba(28, 29, 34, 0.12);
        padding: var(--ed-space-xs) 0;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        z-index: 500;

        animation: ed-nav-drop .18s ease;
    }
    body.editorial .nav-links.active { display: flex; }

    @keyframes ed-nav-drop {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    body.editorial .nav-links .nav-link,
    body.editorial .nav-links .cart-btn {
        width: 100%;
        justify-content: flex-start;
        padding: 0.95rem var(--ed-space-md);
        border-radius: 0;
        font-size: 1rem;
        gap: 0.75rem;
        /* The dropdown itself is a white surface (see .nav-links above),
           unlike the navy desktop bar these links normally sit on -- so
           they need the light-page ink color here, not --ed-on-navy-soft. */
        color: var(--ed-ink-soft);
    }
    body.editorial .nav-links .nav-link:hover {
        color: var(--ed-accent);
    }
    body.editorial .nav-links .nav-link:active,
    body.editorial .nav-links .cart-btn:active { background: var(--ed-paper-alt); }
    body.editorial .nav-links .nav-link + .nav-link,
    body.editorial .nav-links > * + * {
        border-top: 1px solid var(--ed-line-soft);
    }

    body.editorial .nav-links .cart-btn .cart-badge {
        position: static;
        margin-left: auto;
    }

    body.editorial .nav-links .btn {
        margin: 0.6rem var(--ed-space-md) 0.2rem;
        width: calc(100% - 2 * var(--ed-space-md));
        justify-content: center;
    }
    /* Same reasoning as .nav-link above: this dropdown is a white
       surface, so the outline button needs dark-page contrast, not the
       light-on-navy treatment .navbar .btn-secondary uses on desktop. */
    body.editorial .nav-links .btn-secondary {
        color: var(--ed-ink);
        border-color: var(--ed-line);
    }
    body.editorial .nav-links .btn-secondary:hover {
        border-color: var(--ed-ink);
        background: transparent;
    }

    body.editorial .nav-links .user-menu {
        width: 100%;
        padding: 0;
    }
    body.editorial .nav-links .user-menu-btn {
        width: 100%;
        justify-content: space-between;
        padding: 0.95rem var(--ed-space-md);
        border-radius: 0;
        /* White/paper dropdown here, not the navy desktop bar -- needs
           dark-page contrast like .nav-link above. */
        color: var(--ed-ink-soft);
        border-color: transparent;
    }
    body.editorial .nav-links .user-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        width: 100%;
        background: var(--ed-paper-alt);
    }
    body.editorial .nav-links .user-dropdown a {
        padding: 0.85rem var(--ed-space-md) 0.85rem calc(var(--ed-space-md) + 0.5rem);
    }


}

@media (max-width: 420px) {
    body.editorial .logo span:last-child { font-size: 0.95rem; }
}


/* ============================================================
   PRODUCT DETAIL PAGE — editorial
   Breadcrumb, media + details split, vendor credit card,
   reviews grid, related products.
   ============================================================ */

/* ── Breadcrumb ──────────────────────────────────────────── */
body.editorial .pd-breadcrumb-wrap {
    padding: var(--ed-space-md) 0 0;
}
body.editorial .pd-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--ed-ink-faint);
    padding-bottom: var(--ed-space-sm);
}
body.editorial .pd-breadcrumb a {
    color: var(--ed-ink-soft);
    transition: color .15s ease;
}
body.editorial .pd-breadcrumb a:hover { color: var(--ed-accent); }
body.editorial .pd-breadcrumb i {
    font-size: 0.65rem;
    color: var(--ed-line);
}
body.editorial .pd-breadcrumb span {
    color: var(--ed-ink);
    font-weight: 500;
}

/* ── Main panel ──────────────────────────────────────────── */
body.editorial .product-page {
    padding: 0 0 var(--ed-space-xl);
}
body.editorial .product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--ed-space-lg);
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    padding: var(--ed-space-lg);
    margin-top: var(--ed-space-sm);
}
@media (max-width: 900px) {
    body.editorial .product-detail-container {
        grid-template-columns: 1fr;
        padding: var(--ed-space-md);
        gap: var(--ed-space-md);
    }
}

/* ── Media column ────────────────────────────────────────── */
body.editorial .main-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    overflow: hidden;
    background: var(--ed-paper-alt);
}
body.editorial .main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
body.editorial .pd-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--ed-ink-faint);
    font-size: 3rem;
}
body.editorial .pd-sale-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--ed-danger);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: var(--ed-radius);
    letter-spacing: 0.02em;
}

body.editorial .thumbnail-gallery {
    display: flex;
    gap: 0.55rem;
    margin-top: 0.9rem;
    overflow-x: auto;
    scrollbar-width: thin;
}
body.editorial .thumbnail-gallery img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border: 2px solid transparent;
    border-radius: var(--ed-radius);
    cursor: pointer;
    transition: border-color .18s ease, transform .18s ease;
    flex-shrink: 0;
    background: var(--ed-paper-alt);
}
body.editorial .thumbnail-gallery img:hover,
body.editorial .thumbnail-gallery img.active {
    border-color: var(--ed-accent);
}

/* Delivery info list under media */
body.editorial .pd-delivery-list {
    list-style: none;
    padding: 0;
    margin: var(--ed-space-md) 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
body.editorial .pd-delivery-list li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    color: var(--ed-ink-soft);
}
body.editorial .pd-delivery-list li i {
    color: var(--ed-accent);
    width: 18px;
    text-align: center;
    font-size: 0.85rem;
}

/* ── Details column ──────────────────────────────────────── */
body.editorial .pd-meta-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}
body.editorial .pd-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--ed-paper-alt);
    color: var(--ed-ink-soft);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    text-transform: uppercase;
}
body.editorial .pd-chip i { font-size: 0.7rem; }
body.editorial .pd-chip-category {
    background: var(--ed-accent-tint);
    color: var(--ed-accent-ink);
}
body.editorial .pd-chip-new {
    background: #e7f4ec;
    color: #1e5631;
}
body.editorial .pd-chip-used {
    background: #fbf3e2;
    color: #8a6423;
}

body.editorial .pd-title {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    line-height: 1.2;
    color: var(--ed-ink);
    letter-spacing: -0.01em;
    margin: 0 0 0.75rem;
}

body.editorial .pd-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
    margin-bottom: 1.1rem;
}
body.editorial .pd-rating .fa-star,
body.editorial .pd-rating .fa-star-half-alt {
    color: var(--ed-gold);
}
body.editorial .pd-rating > span:first-of-type {
    font-weight: 600;
    color: var(--ed-ink);
}
body.editorial .pd-rating em {
    font-style: normal;
    color: var(--ed-ink-faint);
}
body.editorial .pd-dot { color: var(--ed-line); }
body.editorial .pd-views { color: var(--ed-ink-faint); font-size: 0.82rem; }

/* Price block */
body.editorial .pd-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem 0;
    margin-bottom: 1rem;
    border-top: 1px solid var(--ed-line-soft);
    border-bottom: 1px solid var(--ed-line-soft);
}
body.editorial .pd-price-current {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 2.1rem;
    color: var(--ed-ink);
    letter-spacing: -0.01em;
}
body.editorial .pd-price-old {
    font-size: 1.05rem;
    color: var(--ed-ink-faint);
    text-decoration: line-through;
}
body.editorial .pd-price-discount {
    background: var(--ed-danger);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    border-radius: var(--ed-radius);
    letter-spacing: 0.02em;
}

/* Stock */
body.editorial .pd-stock {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
body.editorial .pd-stock.in-stock { color: #1e5631; }
body.editorial .pd-stock.in-stock i { color: #34a853; }
body.editorial .pd-stock.out-of-stock { color: #9a2f2f; }
body.editorial .pd-stock.out-of-stock i { color: var(--ed-danger); }
body.editorial .pd-stock strong { font-weight: 600; }

/* Short description */
body.editorial .pd-short-description {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--ed-ink-soft);
    margin-bottom: 1.4rem;
}

/* Actions row */
body.editorial .product-actions {
    display: flex;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
body.editorial .quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius);
    overflow: hidden;
    height: 46px;
    background: var(--ed-surface);
}
body.editorial .quantity-control button {
    background: transparent;
    border: none;
    width: 40px;
    height: 100%;
    cursor: pointer;
    font-size: 1.15rem;
    color: var(--ed-ink);
    transition: background .15s ease;
}
body.editorial .quantity-control button:hover { background: var(--ed-paper-alt); }
body.editorial .quantity-control input {
    width: 52px;
    height: 100%;
    text-align: center;
    border: none;
    background: transparent;
    font-family: var(--ed-sans);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ed-ink);
    outline: none;
    -moz-appearance: textfield;
}
body.editorial .quantity-control input::-webkit-outer-spin-button,
body.editorial .quantity-control input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.editorial .btn-add-to-cart {
    flex: 1;
    min-height: 46px;
    justify-content: center;
    font-size: 0.95rem;
    padding: 0 1.5rem;
    border-radius: var(--ed-radius);
}
body.editorial .btn-add-to-cart:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.editorial .pd-wishlist-btn {
    width: 46px;
    height: 46px;
    border-radius: var(--ed-radius);
    border: 1px solid var(--ed-line);
    background: var(--ed-surface);
    color: var(--ed-ink);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .15s ease, color .15s ease;
}
body.editorial .pd-wishlist-btn:hover {
    border-color: var(--ed-danger);
    color: var(--ed-danger);
}

/* Buyer protection strip */
body.editorial .pd-protection {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding: 0.9rem 1rem;
    background: var(--ed-accent-tint);
    border: 1px solid #d7e0f5;
    border-radius: var(--ed-radius);
    margin-bottom: 1.25rem;
    font-size: 0.85rem;
    color: var(--ed-accent-ink);
}
body.editorial .pd-protection > i {
    color: var(--ed-accent);
    font-size: 1.05rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
body.editorial .pd-protection strong {
    display: block;
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}
body.editorial .pd-protection span { display: block; line-height: 1.5; }

/* Vendor credit card (NO contact info) */
body.editorial .pd-vendor-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1rem;
    background: var(--ed-paper-alt);
    border-radius: var(--ed-radius);
    margin-bottom: 1.5rem;
}
body.editorial .pd-vendor-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ed-accent), var(--ed-accent-ink));
    color: var(--ed-on-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}
body.editorial .pd-vendor-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.editorial .pd-vendor-meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}
body.editorial .pd-vendor-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ed-ink-faint);
}
body.editorial .pd-vendor-meta strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ed-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.editorial .pd-vendor-sub {
    display: flex;
    gap: 0.7rem;
    font-size: 0.78rem;
    color: var(--ed-ink-faint);
}
body.editorial .pd-vendor-sub i { color: var(--ed-gold); margin-right: 0.15rem; }
body.editorial .pd-vendor-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--ed-accent);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
body.editorial .pd-vendor-link:hover { color: var(--ed-accent-ink); }

/* Full description */
body.editorial .pd-description {
    padding-top: 1.25rem;
    border-top: 1px solid var(--ed-line-soft);
    margin-bottom: 1.5rem;
}
body.editorial .pd-description h2 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--ed-ink);
    margin: 0 0 0.7rem;
}
body.editorial .pd-description-body {
    font-size: 0.92rem;
    line-height: 1.75;
    color: var(--ed-ink-soft);
}

/* Specs grid */
body.editorial .pd-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.6rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ed-line-soft);
}
body.editorial .pd-spec {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.7rem 0.9rem;
    background: var(--ed-paper-alt);
    border-radius: var(--ed-radius);
}
body.editorial .pd-spec span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ed-ink-faint);
}
body.editorial .pd-spec strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ed-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Reviews section ─────────────────────────────────────── */
body.editorial .pd-reviews-section {
    padding: var(--ed-space-xl) 0;
    background: var(--ed-paper);
}
body.editorial .pd-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--ed-space-md);
}
body.editorial .pd-review-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    padding: 1.25rem;
}
body.editorial .pd-review-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}
body.editorial .pd-review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ed-accent-tint);
    color: var(--ed-accent-ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1rem;
    flex-shrink: 0;
}
body.editorial .pd-review-meta {
    flex: 1;
    min-width: 0;
}
body.editorial .pd-review-meta strong {
    display: block;
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--ed-ink);
}
body.editorial .pd-review-meta span {
    font-size: 0.75rem;
    color: var(--ed-ink-faint);
}
body.editorial .pd-review-stars {
    font-size: 0.75rem;
    color: var(--ed-gold);
}
body.editorial .pd-review-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ed-ink-soft);
    margin: 0;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 640px) {
    body.editorial .pd-price-current { font-size: 1.7rem; }
    body.editorial .pd-vendor-card { flex-wrap: wrap; }
    body.editorial .pd-vendor-link { width: 100%; justify-content: flex-end; }
    body.editorial .product-actions { flex-direction: column; }
    body.editorial .quantity-control { width: 100%; justify-content: space-between; }
    body.editorial .pd-wishlist-btn { width: 100%; }
}



/* ============================================================
   STOREFRONT CART, CHECKOUT, PAYMENT-PENDING, CONFIRMATION
   Appended at the end of editorial.css. Nothing above is modified.
   ============================================================ */

body.editorial .container-narrow {
    max-width: 720px;
    margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════
   CART PAGE
   ═══════════════════════════════════════════════════════════ */
body.editorial .cart-page {
    padding: var(--ed-space-lg) var(--ed-space-md) var(--ed-space-xl);
    max-width: 1180px;
    margin: 0 auto;
}
body.editorial .cart-header-block {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--ed-space-md);
    padding-bottom: var(--ed-space-md);
    margin-bottom: var(--ed-space-lg);
    border-bottom: 1px solid var(--ed-line);
    flex-wrap: wrap;
}
body.editorial .cart-title {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: var(--ed-ink);
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}
body.editorial .cart-subtitle {
    color: var(--ed-ink-soft);
    font-size: 0.95rem;
    margin: 0;
}
body.editorial .cart-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: var(--ed-space-lg);
    align-items: start;
}
@media (max-width: 860px) {
    body.editorial .cart-layout { grid-template-columns: 1fr; }
}

body.editorial .cart-empty {
    text-align: center;
    padding: var(--ed-space-xl) var(--ed-space-md);
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
}
body.editorial .cart-empty i {
    font-size: 3rem;
    color: var(--ed-ink-faint);
    margin-bottom: 1rem;
}
body.editorial .cart-empty h2 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--ed-ink);
    margin: 0 0 0.4rem;
}
body.editorial .cart-empty p {
    color: var(--ed-ink-soft);
    margin: 0 0 1.25rem;
}

/* Cart item rows */
body.editorial .cart-items-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--ed-line);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    overflow: hidden;
}
body.editorial .cart-row {
    display: grid;
    grid-template-columns: 96px 1fr auto auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--ed-surface);
    transition: background .15s ease;
}
body.editorial .cart-row:hover { background: #fdfcfa; }

body.editorial .cart-row-image {
    width: 96px;
    height: 96px;
    border-radius: var(--ed-radius);
    overflow: hidden;
    background: var(--ed-paper-alt);
    flex-shrink: 0;
}
body.editorial .cart-row-image img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
body.editorial .cart-row-info { min-width: 0; }
body.editorial .cart-row-vendor {
    font-size: 0.75rem;
    color: var(--ed-ink-faint);
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
body.editorial .cart-row-vendor i { color: var(--ed-accent); font-size: 0.7rem; }
body.editorial .cart-row-title {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--ed-ink);
    margin: 0 0 0.3rem;
}
body.editorial .cart-row-title a { color: inherit; }
body.editorial .cart-row-title a:hover { color: var(--ed-accent); }
body.editorial .cart-row-price {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
}
body.editorial .cart-stock-warning {
    color: #8a6423;
    background: #fbf3e2;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 500;
}
body.editorial .cart-stock-warning.out {
    background: #fbeaea;
    color: #9a2f2f;
}

body.editorial .cart-row-qty { display: flex; justify-content: center; }
body.editorial .qty-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius);
    overflow: hidden;
    background: var(--ed-surface);
    height: 38px;
}
body.editorial .qty-stepper .qty-btn {
    border: none;
    background: transparent;
    width: 34px;
    height: 100%;
    cursor: pointer;
    font-size: 1rem;
    color: var(--ed-ink);
    transition: background .15s ease;
}
body.editorial .qty-stepper .qty-btn:hover { background: var(--ed-paper-alt); }
body.editorial .qty-stepper .qty-input {
    width: 44px;
    border: none;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ed-ink);
    background: transparent;
    outline: none;
    -moz-appearance: textfield;
}
body.editorial .qty-stepper .qty-input::-webkit-outer-spin-button,
body.editorial .qty-stepper .qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.editorial .cart-row-subtotal {
    min-width: 100px;
    text-align: right;
}
body.editorial .cart-row-subtotal strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ed-ink);
}
body.editorial .cart-row-remove {
    display: flex;
    justify-content: flex-end;
}
body.editorial .cart-row-remove .remove-btn {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: transparent;
    border: none;
    color: var(--ed-ink-faint);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .15s ease, background .15s ease;
}
body.editorial .cart-row-remove .remove-btn:hover {
    color: var(--ed-danger);
    background: #fbeaea;
}

@media (max-width: 640px) {
    body.editorial .cart-row {
        grid-template-columns: 72px 1fr;
        gap: 0.75rem;
        padding: 0.85rem;
        position: relative;
    }
    body.editorial .cart-row-image { width: 72px; height: 72px; }
    body.editorial .cart-row-qty,
    body.editorial .cart-row-subtotal {
        grid-column: 2;
        text-align: left;
        justify-content: flex-start;
        min-width: 0;
    }
    body.editorial .cart-row-subtotal {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    body.editorial .cart-row-remove {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
    }
}

body.editorial .cart-actions-bar {
    padding: 1rem;
    background: var(--ed-paper-alt);
    display: flex;
    justify-content: flex-start;
}

/* Cart summary card */
body.editorial .cart-summary-col {
    display: flex;
    flex-direction: column;
    gap: var(--ed-space-md);
    position: sticky;
    top: 90px;
}
@media (max-width: 860px) {
    body.editorial .cart-summary-col { position: static; }
}
body.editorial .cart-summary-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    padding: 1.4rem;
}
body.editorial .cart-summary-card h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--ed-ink);
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ed-line);
}
body.editorial .cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--ed-ink-soft);
}
body.editorial .cart-summary-row strong {
    color: var(--ed-ink);
    font-weight: 600;
}
body.editorial .cart-summary-row.muted {
    font-size: 0.82rem;
    color: var(--ed-ink-faint);
    font-style: italic;
}
body.editorial .cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.9rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid var(--ed-line);
    font-weight: 600;
}
body.editorial .cart-summary-total strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--ed-ink);
}
body.editorial .cart-summary-card .btn-large {
    margin-top: 0.75rem;
}
body.editorial .cart-trust-row {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-line-soft);
    font-size: 0.72rem;
    color: var(--ed-ink-faint);
    text-align: center;
}
body.editorial .cart-trust-row span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    flex: 1;
}
body.editorial .cart-trust-row i {
    color: var(--ed-accent);
    font-size: 0.95rem;
}

body.editorial .cart-help-card {
    background: var(--ed-paper-alt);
    border-radius: var(--ed-radius-md);
    padding: 1rem 1.1rem;
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--ed-ink-soft);
}
body.editorial .cart-help-card > i {
    color: var(--ed-accent);
    font-size: 1.05rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
body.editorial .cart-help-card strong {
    display: block;
    font-family: var(--ed-serif);
    font-weight: 500;
    color: var(--ed-ink);
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

/* Cart remove modal (the "Remove this item?" confirmation dialog on
   the standalone cart page, app/views/cart.php) -- previously named
   .cart-modal, which collided with the site-wide cart DRAWER's own
   #cartModal (present on every page via public-footer.php). Both
   elements picked up both components' conflicting rule sets wherever
   they coexisted: the drawer's off-canvas positioning fight against
   this dialog's always-flex/center-screen positioning left the drawer
   pinned open on the left edge of the viewport instead of sliding
   off-screen when closed, since the two rule sets' `left`/`right`
   values, both explicit, overconstrained the browser's layout and it
   fell back to `left` -- ignoring the intended `right: -110%` hide. */
body.editorial .remove-confirm-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(13, 24, 54, 0.55);
    z-index: 1300;
    opacity: 0;
    transition: opacity .18s ease;
}
body.editorial .remove-confirm-backdrop.active { opacity: 1; }
body.editorial .remove-confirm-backdrop[hidden] { display: none; }
body.editorial .remove-confirm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1301;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    pointer-events: none;
}
body.editorial .remove-confirm-modal[hidden] { display: none; }
body.editorial .remove-confirm-box {
    background: var(--ed-surface);
    border-radius: var(--ed-radius-md);
    padding: 1.5rem 1.75rem;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(3, 7, 22, 0.3);
    opacity: 0;
    transform: scale(0.95);
    transition: opacity .18s ease, transform .18s ease;
    pointer-events: auto;
}
body.editorial .remove-confirm-modal.active .remove-confirm-box {
    opacity: 1;
    transform: scale(1);
}
body.editorial .remove-confirm-box h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.2rem;
    color: var(--ed-ink);
    margin: 0 0 0.5rem;
}
body.editorial .remove-confirm-box p {
    color: var(--ed-ink-soft);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
body.editorial .remove-confirm-actions {
    display: flex;
    gap: 0.6rem;
    justify-content: flex-end;
}

/* ═══════════════════════════════════════════════════════════
   CHECKOUT PAGE
   ═══════════════════════════════════════════════════════════ */
body.editorial .checkout-page {
    padding: var(--ed-space-lg) var(--ed-space-md) var(--ed-space-xl);
    max-width: 1180px;
    margin: 0 auto;
}
body.editorial .checkout-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--ed-space-md);
    padding-bottom: var(--ed-space-md);
    margin-bottom: var(--ed-space-md);
    border-bottom: 1px solid var(--ed-line);
    flex-wrap: wrap;
}
body.editorial .checkout-header h1 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: var(--ed-ink);
    margin: 0 0 0.25rem;
    letter-spacing: -0.01em;
}
body.editorial .checkout-header p {
    color: var(--ed-ink-soft);
    font-size: 0.95rem;
    margin: 0;
}

body.editorial .checkout-empty {
    text-align: center;
    padding: var(--ed-space-xl) var(--ed-space-md);
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
}
body.editorial .checkout-empty i {
    font-size: 3rem;
    color: var(--ed-ink-faint);
    margin-bottom: 1rem;
}
body.editorial .checkout-empty h2 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--ed-ink);
    margin: 0 0 0.4rem;
}
body.editorial .checkout-empty p {
    color: var(--ed-ink-soft);
    margin: 0 0 1.25rem;
}

body.editorial .checkout-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: var(--ed-space-lg);
    align-items: start;
}
@media (max-width: 900px) {
    body.editorial .checkout-layout { grid-template-columns: 1fr; }
}

body.editorial .checkout-forms {
    display: flex;
    flex-direction: column;
    gap: var(--ed-space-md);
}
body.editorial .checkout-section {
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    overflow: hidden;
}
body.editorial .checkout-section .section-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--ed-line);
    background: var(--ed-paper-alt);
}
body.editorial .checkout-section .section-header h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ed-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
body.editorial .checkout-section .section-header i {
    color: var(--ed-accent);
    font-size: 0.95rem;
}
body.editorial .checkout-section .section-body {
    padding: 1.25rem;
}
body.editorial .checkout-section-terms .section-body {
    padding: 1rem 1.25rem;
}

body.editorial .checkout-submit-bar {
    margin-top: var(--ed-space-sm);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
body.editorial .checkout-submit-bar .btn-large {
    min-height: 52px;
    font-size: 1rem;
}
body.editorial .checkout-back-link {
    text-align: center;
    color: var(--ed-ink-soft);
    font-size: 0.88rem;
    text-decoration: underline;
}
body.editorial .checkout-back-link:hover { color: var(--ed-ink); }

body.editorial .checkout-summary {
    display: flex;
    flex-direction: column;
    gap: var(--ed-space-md);
    position: sticky;
    top: 90px;
}
@media (max-width: 900px) {
    body.editorial .checkout-summary { position: static; }
}
body.editorial .checkout-summary .summary-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    padding: 1.4rem;
}
body.editorial .checkout-summary .summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.9rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--ed-line);
}
body.editorial .checkout-summary .summary-header h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--ed-ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
body.editorial .checkout-summary .summary-header i { color: var(--ed-accent); }
body.editorial .checkout-summary .item-count {
    font-size: 0.78rem;
    color: var(--ed-ink-faint);
}
body.editorial .checkout-summary .summary-item {
    display: flex;
    gap: 0.7rem;
    padding: 0.6rem 0;
    align-items: center;
    border-bottom: 1px solid var(--ed-line-soft);
}
body.editorial .checkout-summary .summary-item:last-child { border-bottom: none; }
body.editorial .checkout-summary .item-image img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: var(--ed-radius);
    background: var(--ed-paper-alt);
}
body.editorial .checkout-summary .item-details { flex: 1; min-width: 0; }
body.editorial .checkout-summary .item-details strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.9rem;
    display: block;
    color: var(--ed-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
body.editorial .checkout-summary .item-details small {
    color: var(--ed-ink-faint);
    font-size: 0.76rem;
}
body.editorial .checkout-summary .item-qty {
    display: block;
    font-size: 0.76rem;
    color: var(--ed-ink-faint);
}
body.editorial .checkout-summary .item-price strong {
    font-family: var(--ed-serif);
    color: var(--ed-ink);
    font-size: 0.9rem;
}
body.editorial .checkout-summary .summary-calculations {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ed-line);
}
body.editorial .checkout-summary .calc-row {
    display: flex;
    justify-content: space-between;
    padding: 0.35rem 0;
    font-size: 0.88rem;
    color: var(--ed-ink-soft);
}
body.editorial .checkout-summary .calc-row strong { color: var(--ed-ink); font-weight: 600; }
body.editorial .checkout-summary .summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.9rem;
    border-top: 1px solid var(--ed-line);
    font-weight: 600;
}
body.editorial .checkout-summary .summary-total strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--ed-ink);
}
body.editorial .checkout-summary .trust-badges {
    display: flex;
    justify-content: space-between;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--ed-line);
}
body.editorial .checkout-summary .trust-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.7rem;
    color: var(--ed-ink-faint);
    flex: 1;
    text-align: center;
}
body.editorial .checkout-summary .trust-badge i {
    color: var(--ed-accent);
    font-size: 1rem;
}

body.editorial .checkout-protection-note {
    background: var(--ed-accent-tint);
    border: 1px solid #d7e0f5;
    border-radius: var(--ed-radius-md);
    padding: 0.9rem 1.1rem;
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.85rem;
    color: var(--ed-accent-ink);
}
body.editorial .checkout-protection-note > i {
    color: var(--ed-accent);
    font-size: 1rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
body.editorial .checkout-protection-note p { margin: 0; line-height: 1.5; }

/* OTP modal */
body.editorial .otp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 24, 54, 0.6);
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
}
body.editorial .otp-overlay.active {
    opacity: 1;
    pointer-events: auto;
}
body.editorial .otp-overlay[hidden] { display: none; }
body.editorial .otp-modal {
    position: relative;
    background: var(--ed-surface);
    border-radius: var(--ed-radius-md);
    padding: 2rem 1.75rem;
    max-width: 420px;
    width: 100%;
    box-shadow: 0 24px 60px rgba(3, 7, 22, 0.35);
    text-align: center;
    transform: scale(0.95);
    transition: transform .18s ease;
}
body.editorial .otp-overlay.active .otp-modal { transform: scale(1); }

body.editorial .otp-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    color: var(--ed-ink-faint);
    font-size: 1rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.editorial .otp-close:hover { background: var(--ed-paper-alt); color: var(--ed-ink); }

body.editorial .otp-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ed-accent), var(--ed-accent-ink));
    color: var(--ed-on-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}
body.editorial .otp-modal h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.35rem;
    color: var(--ed-ink);
    margin: 0 0 0.5rem;
}
body.editorial .otp-subtitle {
    color: var(--ed-ink-soft);
    font-size: 0.9rem;
    margin: 0 0 1.25rem;
    line-height: 1.55;
}
body.editorial .otp-alert {
    background: #fbeaea;
    color: #9a2f2f;
    border-radius: var(--ed-radius);
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    text-align: left;
}
body.editorial .otp-code-input {
    width: 100%;
    font-size: 1.6rem;
    letter-spacing: 0.5rem;
    text-align: center;
    padding: 0.7rem;
    border: 1.5px solid var(--ed-line);
    border-radius: var(--ed-radius);
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--ed-ink);
    background: var(--ed-surface);
    outline: none;
    transition: border-color .15s ease;
}
body.editorial .otp-code-input:focus { border-color: var(--ed-accent); }
body.editorial .otp-resend {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: var(--ed-ink-faint);
}
body.editorial .otp-resend button {
    background: none;
    border: none;
    color: var(--ed-accent);
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    font-size: inherit;
}
body.editorial .otp-resend button:disabled { color: var(--ed-ink-faint); cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════
   PAYMENT PENDING PAGE
   ═══════════════════════════════════════════════════════════ */
body.editorial .payment-pending-page {
    padding: var(--ed-space-lg) var(--ed-space-md) var(--ed-space-xl);
}
body.editorial .payment-pending-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    padding: 2.25rem 2rem;
    text-align: center;
}
body.editorial .pp-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ed-accent), var(--ed-accent-ink));
    color: var(--ed-on-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
}
body.editorial .pp-title {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    color: var(--ed-ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
body.editorial .pp-subtitle {
    color: var(--ed-ink-soft);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 48ch;
    margin: 0 auto 2rem;
}

/* PawaPay's own status, mirroring the gateway rather than our local flag */
body.editorial .pp-gateway-detail {
    margin: 0.6rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ed-ink-soft);
    font-variant-numeric: tabular-nums;
}
body.editorial .pp-gateway-detail strong {
    font-weight: 600;
    letter-spacing: 0.03em;
}

body.editorial .pp-steps {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
body.editorial .pp-steps li {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}
body.editorial .pp-step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--ed-accent-tint);
    color: var(--ed-accent-ink);
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
body.editorial .pp-steps strong {
    display: block;
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ed-ink);
    margin-bottom: 0.15rem;
}
body.editorial .pp-steps p {
    color: var(--ed-ink-soft);
    font-size: 0.88rem;
    line-height: 1.55;
    margin: 0;
}

body.editorial .pp-form {
    margin: 0 0 1.25rem;
    text-align: left;
}
body.editorial .pp-form .form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--ed-ink);
    margin-bottom: 0.5rem;
}
body.editorial .pp-code-input {
    width: 100%;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    text-align: center;
    padding: 0.85rem 1rem;
    border: 1.5px solid var(--ed-line);
    border-radius: var(--ed-radius);
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--ed-ink);
    text-transform: uppercase;
    outline: none;
    transition: border-color .15s ease;
}
body.editorial .pp-code-input:focus { border-color: var(--ed-accent); }

body.editorial .pp-divider {
    position: relative;
    margin: 1.5rem 0;
    text-align: center;
}
body.editorial .pp-divider::before {
    content: "";
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--ed-line);
}
body.editorial .pp-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background: var(--ed-surface);
    font-size: 0.78rem;
    color: var(--ed-ink-faint);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

body.editorial .pp-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
body.editorial .pp-link {
    color: var(--ed-accent);
    font-size: 0.88rem;
    font-weight: 500;
}
body.editorial .pp-link.muted { color: var(--ed-ink-faint); font-weight: 400; }
body.editorial .pp-link:hover { color: var(--ed-accent-ink); }

body.editorial .pp-summary {
    margin-top: var(--ed-space-lg);
    background: var(--ed-paper-alt);
    border-radius: var(--ed-radius-md);
    padding: 1.25rem 1.4rem;
}
body.editorial .pp-summary h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1rem;
    color: var(--ed-ink);
    margin: 0 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--ed-line);
}
body.editorial .pp-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.4rem 0;
    font-size: 0.88rem;
    color: var(--ed-ink-soft);
}
body.editorial .pp-summary-row strong { color: var(--ed-ink); font-weight: 500; }
body.editorial .pp-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.6rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--ed-line);
    font-weight: 600;
}
body.editorial .pp-summary-total strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.15rem;
    color: var(--ed-ink);
}

/* ═══════════════════════════════════════════════════════════
   ORDER CONFIRMATION PAGE
   ═══════════════════════════════════════════════════════════ */
body.editorial .order-confirm-page {
    padding: var(--ed-space-lg) var(--ed-space-md) var(--ed-space-xl);
}
body.editorial .order-confirm-hero {
    text-align: center;
    padding: 2rem 0 2.5rem;
}
body.editorial .confirm-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #34a853, #1e7a3c);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    box-shadow: 0 12px 30px rgba(52, 168, 83, 0.3);
}
body.editorial .order-confirm-hero h1 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    color: var(--ed-ink);
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}
body.editorial .order-confirm-hero p {
    color: var(--ed-ink-soft);
    font-size: 1rem;
    margin: 0 0 1rem;
}
body.editorial .confirm-order-num {
    display: inline-block;
    background: var(--ed-paper-alt);
    border: 1px solid var(--ed-line);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    font-size: 0.88rem;
    color: var(--ed-ink-soft);
}
body.editorial .confirm-order-num strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    color: var(--ed-ink);
    margin-left: 0.25rem;
}

body.editorial .confirm-callout {
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
    padding: 1rem 1.25rem;
    border-radius: var(--ed-radius-md);
    margin-bottom: var(--ed-space-md);
}
body.editorial .confirm-callout-warn {
    background: #fbf3e2;
    border: 1px solid #e8dcb0;
    color: #8a6423;
}
body.editorial .confirm-callout > i {
    font-size: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
body.editorial .confirm-callout strong {
    display: block;
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.98rem;
    margin-bottom: 0.2rem;
}
body.editorial .confirm-callout p {
    font-size: 0.85rem;
    margin: 0 0 0.6rem;
    line-height: 1.5;
}

body.editorial .order-confirm-card {
    background: var(--ed-surface);
    border: 1px solid var(--ed-line);
    border-radius: var(--ed-radius-md);
    padding: 1.75rem 2rem;
}
body.editorial .order-confirm-card h2 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 1.25rem;
    color: var(--ed-ink);
    margin: 0 0 1.1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ed-line);
}
body.editorial .confirm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}
body.editorial .confirm-grid > div {
    background: var(--ed-paper-alt);
    border-radius: var(--ed-radius);
    padding: 0.85rem 1rem;
}
body.editorial .confirm-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--ed-ink-faint);
    margin-bottom: 0.25rem;
}
body.editorial .confirm-value {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ed-ink);
}

body.editorial .confirm-section {
    padding: 1rem 0;
    border-top: 1px solid var(--ed-line-soft);
}
body.editorial .confirm-section h3 {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.98rem;
    color: var(--ed-ink);
    margin: 0 0 0.75rem;
}
body.editorial .confirm-item {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ed-line-soft);
}
body.editorial .confirm-item:last-child { border-bottom: none; }
body.editorial .confirm-item-img img {
    width: 48px; height: 48px;
    object-fit: cover;
    border-radius: var(--ed-radius);
    background: var(--ed-paper-alt);
}
body.editorial .confirm-item-info { flex: 1; min-width: 0; }
body.editorial .confirm-item-info strong {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--ed-ink);
    display: block;
}
body.editorial .confirm-item-info small {
    font-size: 0.76rem;
    color: var(--ed-ink-faint);
    display: block;
}
body.editorial .confirm-item-info span {
    font-size: 0.78rem;
    color: var(--ed-ink-faint);
}
body.editorial .confirm-item-price {
    font-family: var(--ed-serif);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--ed-ink);
}
body.editorial .confirm-address {
    color: var(--ed-ink-soft);
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

body.editorial .confirm-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--ed-line);
    flex-wrap: wrap;
}
body.editorial .confirm-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--ed-line-soft);
    font-size: 0.82rem;
    color: var(--ed-ink-faint);
}
body.editorial .confirm-note i { color: var(--ed-accent); }
body.editorial .confirm-note strong { color: var(--ed-ink); font-weight: 600; }

@media (max-width: 600px) {
    body.editorial .order-confirm-card { padding: 1.25rem 1.25rem; }
    body.editorial .confirm-actions { flex-direction: column-reverse; }
    body.editorial .confirm-actions .btn { width: 100%; justify-content: center; }
    body.editorial .payment-pending-card { padding: 1.5rem 1.25rem; }
}
/* ============================================================
   CART DRAWER — HARD HIDE
   ============================================================ */
body.editorial .cart-modal:not(.active) {
    display: block !important;
    position: fixed !important;
    top: 0;
    right: -110% !important;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    z-index: 9999;
    transition: right .3s ease;
    pointer-events: none;
}
body.editorial .cart-modal.active {
    right: 0 !important;
    pointer-events: auto;
}
body.editorial .cart-modal .cart-content {
    background: var(--ed-surface) !important;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* ============================================================
   v0.1 -- dashboard re-point
   ------------------------------------------------------------
   The banner at the top of this file claims editorial.css
   "never touches the vendor/admin dashboards". It does:
   admin-header.php and header.php both put `editorial` on
   <body>, so all 754 rules here apply to the dashboards and win
   on source order over dashboard.css.

   Rather than out-specify that, the dashboards re-point the
   tokens this theme is built from. The warm cream canvas, the
   serif display face and the indigo accent are storefront
   choices; a dense money console wants a cool, quiet surface,
   one blue action colour, and gold reserved for marking
   position.
   ============================================================ */
body.editorial.dashboard-shell,
body.editorial.vendor-shell {
  --ed-ink: var(--ink-700);
  --ed-ink-faint: var(--ink-400);
  --ed-paper: var(--surface-2);
  --ed-paper-alt: var(--surface-3);
  --ed-surface: var(--surface);
  --ed-line: var(--line);
  --ed-line-soft: var(--line);

  --ed-accent: var(--action);
  --ed-accent-ink: var(--action-hover);
  --ed-accent-tint: var(--action-tint);

  --ed-navy-deep: var(--ink-900);
  --ed-navy-mid: var(--ink-700);
  --ed-gold: var(--gold);
  --ed-gold-ink: var(--gold-ink);
  --ed-on-navy: var(--ink-900);
  --ed-on-navy-soft: var(--ink-500);

  --ed-danger: var(--danger);

  /* Fraunces is never loaded on dashboard pages, so this has been
     quietly rendering Georgia for as long as it has existed. */
  --ed-serif: var(--ed-sans);
}

/* ---------------------------------------------------------
   Topbar goes light with the rest of the console. The rule at
   the head of this file paints it with a navy gradient and a
   gold hairline -- a storefront hero treatment that has no
   business sitting above a white content area.
   --------------------------------------------------------- */
body.editorial.dashboard-shell .navbar,
body.editorial.vendor-shell .navbar,
body.editorial.dashboard-shell .dashboard-nav,
body.editorial.vendor-shell .dashboard-nav {
  background: var(--surface);
  box-shadow: var(--sh-1);
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
}

/* Controls built to be read off navy. */
body.editorial.dashboard-shell .nav-icon-btn,
body.editorial.vendor-shell .nav-icon-btn {
  color: var(--ink-500);
  background: transparent;
  border-color: transparent;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
body.editorial.dashboard-shell .nav-icon-btn:hover,
body.editorial.vendor-shell .nav-icon-btn:hover {
  color: var(--ink-900);
  background: var(--surface-3);
  border-color: var(--line);
}

/* The primary button was gold here because the bar was dark. */
body.editorial.dashboard-shell .navbar .btn-primary,
body.editorial.vendor-shell .navbar .btn-primary {
  background: var(--action);
  border-color: var(--action);
  color: #fff;
}
body.editorial.dashboard-shell .navbar .btn-primary:hover,
body.editorial.vendor-shell .navbar .btn-primary:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
}
body.editorial.dashboard-shell .navbar .btn-secondary,
body.editorial.vendor-shell .navbar .btn-secondary {
  color: var(--ink-600);
  border-color: var(--line-strong);
}
body.editorial.dashboard-shell .navbar .btn-secondary:hover,
body.editorial.vendor-shell .navbar .btn-secondary:hover {
  color: var(--ink-900);
  background: var(--surface-3);
  border-color: var(--ink-400);
}

/* The Home control is <button class="nav-links">, which never carried a
   colour of its own -- it inherited legibility from the dark bar and
   disappeared the moment the bar went light. */
body.editorial.dashboard-shell .nav-links.home-desktop,
body.editorial.vendor-shell .nav-links.home-desktop {
  color: var(--ink-600);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  cursor: pointer;
  transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast);
}
body.editorial.dashboard-shell .nav-links.home-desktop:hover,
body.editorial.vendor-shell .nav-links.home-desktop:hover {
  color: var(--ink-900);
  background: var(--surface-3);
  border-color: var(--line);
}

/* Search: the pill used --ed-ink, a text colour, as its background, so
   a near-black box sat in the middle of a white header. It also let the
   inner input take width:100% of a fixed 320px pill that already holds
   a category select, which is why the placeholder was cut off. */
body.editorial.dashboard-shell .dash-search-bar,
body.editorial.vendor-shell .dash-search-bar {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-500);
  max-width: 460px;
  min-width: 0;
}
body.editorial.dashboard-shell .dash-search-bar input,
body.editorial.vendor-shell .dash-search-bar input {
  color: var(--ink-900);
  min-width: 0;
  background: transparent;
}
body.editorial.dashboard-shell .dash-search-bar input::placeholder,
body.editorial.vendor-shell .dash-search-bar input::placeholder {
  color: var(--ink-400);
}
body.editorial.dashboard-shell .dash-search-bar select,
body.editorial.vendor-shell .dash-search-bar select {
  background: transparent;
  color: var(--ink-600);
  border: none;
}

/* ---------------------------------------------------------
   One button system for the console.
   The row actions used to size themselves by their label: "Find in
   Vendors" wrapped to two lines and grew, while "View" stayed a
   short pill beside it. Same height, no wrap, one accent.
   --------------------------------------------------------- */
body.editorial.dashboard-shell .btn,
body.editorial.vendor-shell .btn {
  font-family: var(--ed-sans);
  font-weight: 500;
  font-size: 0.82rem;
  line-height: 1;
  min-height: 34px;
  padding: 0.45rem 0.95rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: none;
  transition: background-color var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
body.editorial.dashboard-shell .btn:focus-visible,
body.editorial.vendor-shell .btn:focus-visible {
  outline: 2px solid var(--action-ring);
  outline-offset: 2px;
}
body.editorial.dashboard-shell .btn-sm,
body.editorial.vendor-shell .btn-sm {
  min-height: 28px;
  padding: 0.3rem 0.7rem;
  font-size: 0.76rem;
}
body.editorial.dashboard-shell .btn-large,
body.editorial.vendor-shell .btn-large {
  min-height: 42px;
  padding: 0.6rem 1.3rem;
  font-size: 0.9rem;
}
/* Icon-only controls keep a square hit area. */
body.editorial.dashboard-shell .btn-icon,
body.editorial.vendor-shell .btn-icon {
  min-height: 34px;
  width: 34px;
  padding: 0;
}

/* Variants that were missing entirely: ghost for secondary row actions,
   and the semantic one-offs the views use but no sheet defined. */
body.editorial.dashboard-shell .btn-ghost,
body.editorial.vendor-shell .btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--ink-600);
}
body.editorial.dashboard-shell .btn-ghost:hover,
body.editorial.vendor-shell .btn-ghost:hover {
  background: var(--surface-3);
  border-color: var(--line);
  color: var(--ink-900);
}
body.editorial.dashboard-shell .btn-approve,
body.editorial.vendor-shell .btn-approve { background: var(--success); border-color: var(--success); color: #fff; }
body.editorial.dashboard-shell .btn-reject,
body.editorial.vendor-shell .btn-reject { background: transparent; border-color: var(--danger); color: var(--danger); }
body.editorial.dashboard-shell .btn-secondary,
body.editorial.vendor-shell .btn-secondary,
body.editorial.dashboard-shell .btn-outline,
body.editorial.vendor-shell .btn-outline {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink-700);
}
body.editorial.dashboard-shell .btn-secondary:hover,
body.editorial.vendor-shell .btn-secondary:hover,
body.editorial.dashboard-shell .btn-outline:hover,
body.editorial.vendor-shell .btn-outline:hover {
  background: var(--surface-3);
  border-color: var(--ink-400);
  color: var(--ink-900);
}

/* ---------------------------------------------------------
   Status and role badges. The pastel fills came from the
   storefront; on a console they read as decoration. Each badge
   now carries one meaning: neutral for a role, tinted for a
   state, and the state colour is the token, not a random green.
   --------------------------------------------------------- */
body.editorial.dashboard-shell .badge,
body.editorial.vendor-shell .badge {
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  padding: 0.2rem 0.5rem;
  background: var(--surface-3);
  color: var(--ink-600);
  border: 1px solid var(--line);
}
body.editorial.dashboard-shell .badge-success,
body.editorial.vendor-shell .badge-success { background: var(--success-tint); color: var(--success); border-color: transparent; }
body.editorial.dashboard-shell .badge-warning,
body.editorial.vendor-shell .badge-warning { background: var(--warning-tint); color: var(--warning); border-color: transparent; }
body.editorial.dashboard-shell .badge-danger,
body.editorial.vendor-shell .badge-danger,
body.editorial.dashboard-shell .badge-error,
body.editorial.vendor-shell .badge-error { background: var(--danger-tint); color: var(--danger); border-color: transparent; }
body.editorial.dashboard-shell .badge-info,
body.editorial.vendor-shell .badge-info { background: var(--action-tint); color: var(--action-hover); border-color: transparent; }

/* ---------------------------------------------------------
   Table rhythm. Rows were tall enough to wrap a date onto two
   lines, which made every list read as three screens of
   half-empty cards.
   --------------------------------------------------------- */
body.editorial.dashboard-shell .table td,
body.editorial.vendor-shell .table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-700);
  font-size: 0.88rem;
  vertical-align: middle;
}
body.editorial.dashboard-shell .table th,
body.editorial.vendor-shell .table th {
  padding: 0.6rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  color: var(--ink-500);
  background: var(--surface-3);
}
body.editorial.dashboard-shell .table thead th,
body.editorial.vendor-shell .table thead th {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-500);
}
body.editorial.dashboard-shell .table tbody tr:last-child td,
body.editorial.vendor-shell .table tbody tr:last-child td {
  border-bottom: none;
}
body.editorial.dashboard-shell .table tbody tr:hover td,
body.editorial.vendor-shell .table tbody tr:hover td {
  background: var(--surface-2);
}
/* Money and counts line up on the decimal point. */
body.editorial.dashboard-shell .table td.num,
body.editorial.dashboard-shell .table th.num,
body.editorial.vendor-shell .table td.num,
body.editorial.vendor-shell .table th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------
   Table sizing: scroll instead of crush.

   `.table { width: 100% }` forced every list to fit its card exactly,
   and auto table layout then took the room for a long unbreakable
   token (demo.vendor@afritrade.test) away from the column that needed
   it most -- so on Manage Vendors the company name rendered one word
   per line down six lines, and "Sep 30, 2026" down three. The wrapper
   already had overflow-x:auto; the table just never let itself get
   wider than the card, so it never engaged.

   Above the 768px stacking breakpoint, cells hold one line and the
   table grows past the card when it has to. Below it, dashboard.css
   turns rows into stacked label/value cards, where nowrap would be
   exactly wrong -- hence the media guard.
   --------------------------------------------------------- */
@media (min-width: 769px) {
  body.editorial.dashboard-shell .table-responsive,
  body.editorial.vendor-shell .table-responsive {
    overflow-x: auto;
    /* The scrollbar belongs to the data, not the page: keep it inside
       the card so the filter row and title never shift. */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }

  /* A browser-default bar is ~15px of grey chrome welded to the bottom
     of the card, which reads as a layout accident. A thin tinted thumb
     reads as part of the table. */
  body.editorial.dashboard-shell .table-responsive::-webkit-scrollbar,
  body.editorial.vendor-shell .table-responsive::-webkit-scrollbar {
    height: 8px;
  }
  body.editorial.dashboard-shell .table-responsive::-webkit-scrollbar-track,
  body.editorial.vendor-shell .table-responsive::-webkit-scrollbar-track {
    background: transparent;
  }
  body.editorial.dashboard-shell .table-responsive::-webkit-scrollbar-thumb,
  body.editorial.vendor-shell .table-responsive::-webkit-scrollbar-thumb {
    background: var(--line-strong);
    border-radius: var(--r-pill);
  }
  body.editorial.dashboard-shell .table-responsive::-webkit-scrollbar-thumb:hover,
  body.editorial.vendor-shell .table-responsive::-webkit-scrollbar-thumb:hover {
    background: var(--ink-400);
  }

  body.editorial.dashboard-shell .table,
  body.editorial.vendor-shell .table {
    /* Fill the card when there is room, grow past it when there is not. */
    width: auto;
    min-width: 100%;
  }

  body.editorial.dashboard-shell .table th,
  body.editorial.dashboard-shell .table td,
  body.editorial.vendor-shell .table th,
  body.editorial.vendor-shell .table td {
    white-space: nowrap;
    /* 16px either side cost 256px of pure gutter across an eight-column
       table -- enough to be the difference between fitting and not. */
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Free text is truncated rather than allowed to push the whole table
     sideways. 34ch is wide enough for a product name or a company and
     narrow enough that one runaway column cannot evict the others. */
  body.editorial.dashboard-shell .table td,
  body.editorial.vendor-shell .table td {
    max-width: 34ch;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* A cell whose content is a control, not a string, must not clip:
     its buttons would lose their focus ring. */
  body.editorial.dashboard-shell .table td:has(.btn),
  body.editorial.dashboard-shell .table td:has(.action-buttons),
  body.editorial.vendor-shell .table td:has(.btn),
  body.editorial.vendor-shell .table td:has(.action-buttons) {
    overflow: visible;
    max-width: none;
  }

  /* ---------------------------------------------------------
     Scrolling without losing the row.

     responsive-tables.js tags a wrapper with .is-scroll-x only when
     that table genuinely is wider than the card, so a table that fits
     is left exactly as it was. When one does scroll, the first column
     -- company, product, order number, whoever the row is about --
     stays pinned so the values sliding past it never become anonymous.
     --------------------------------------------------------- */
  body.editorial.dashboard-shell .table-responsive.is-scroll-x .table td:first-child,
  body.editorial.vendor-shell .table-responsive.is-scroll-x .table td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: inset -1px 0 0 var(--line);
  }
  body.editorial.dashboard-shell .table-responsive.is-scroll-x .table thead th:first-child,
  body.editorial.vendor-shell .table-responsive.is-scroll-x .table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface-3);
    box-shadow: inset -1px 0 0 var(--line);
  }
  body.editorial.dashboard-shell .table-responsive.is-scroll-x .table tbody tr:hover td:first-child,
  body.editorial.vendor-shell .table-responsive.is-scroll-x .table tbody tr:hover td:first-child {
    background: var(--surface-2);
  }
  /* The seam only appears once content has actually moved under it. */
  body.editorial.dashboard-shell .table-responsive.is-scroll-x.is-scrolled .table td:first-child,
  body.editorial.dashboard-shell .table-responsive.is-scroll-x.is-scrolled .table thead th:first-child,
  body.editorial.vendor-shell .table-responsive.is-scroll-x.is-scrolled .table td:first-child,
  body.editorial.vendor-shell .table-responsive.is-scroll-x.is-scrolled .table thead th:first-child {
    box-shadow: inset -1px 0 0 var(--line-strong),
                10px 0 14px -8px rgba(15, 27, 61, 0.20);
  }
}

