/* ==========================================================================
   Modern Retail — storefront theme
   Editorial luxury: generous whitespace, serif display headings (Playfair
   Display token), a crisp product-first grid. Built on Bootstrap 5; the brand
   surfaces (primary navy, accent orange, heading/body fonts, button radius)
   are driven by the 5 customizer tokens emitted in storefront::head.theme-vars
   (--bs-primary, --ll-accent / --bs-warning, --ll-font-headings, --ll-font-body,
   --bs-border-radius). Everything else is theme-local design language.
   ========================================================================== */

body.mr-theme {
  /* Neutral palette (from the Modern Retail design system) */
  --mr-ink: #1b1b1d;
  --mr-muted: #45464d;
  --mr-soft: #76777d;
  --mr-surface: #ffffff;
  --mr-band: #f6f3f5;
  --mr-band-alt: #f0edef;
  --mr-fill: #e4e2e4;
  --mr-border: #e2e8f0;
  --mr-border-strong: #c6c6cd;
  --mr-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
  --mr-radius: 0.5rem;
  --mr-section-y: clamp(48px, 8vw, 80px);
  --mr-gold: #c0a04a;

  background-color: var(--mr-surface);
  color: var(--mr-ink);
  font-family: var(--ll-font-body, "Inter"), system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ----- Typography -------------------------------------------------------- */
body.mr-theme h1, body.mr-theme h2, body.mr-theme h3,
body.mr-theme h4, body.mr-theme h5, body.mr-theme h6 {
  font-family: var(--ll-font-headings, "Playfair Display"), Georgia, "Times New Roman", serif;
  color: var(--mr-ink);
  letter-spacing: -0.01em;
}
.mr-display {
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.mr-headline { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; line-height: 1.2; }
.mr-eyebrow {
  display: inline-block;
  font-family: var(--ll-font-body, "Inter"), sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ll-accent, #fd761a);
}
.mr-muted { color: var(--mr-muted); }
.mr-soft { color: var(--mr-soft); }

/* ----- Layout helpers ---------------------------------------------------- */
.mr-shell { max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.mr-section { padding-block: var(--mr-section-y); }
.mr-band { background-color: var(--mr-band); }
.mr-band--alt { background-color: var(--mr-band-alt); }

/* ----- Buttons ----------------------------------------------------------- */
.mr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--ll-font-body, "Inter"), sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.95rem 2rem;
  border: 1px solid transparent;
  border-radius: var(--bs-border-radius, 0.25rem);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, filter 0.25s, transform 0.1s;
}
.mr-btn:active { transform: translateY(1px); }
.mr-btn--primary { background-color: var(--bs-primary, #131b2e); color: #fff; }
.mr-btn--primary:hover { filter: brightness(1.18); color: #fff; }
.mr-btn--outline { border-color: currentColor; color: var(--bs-primary, #131b2e); }
.mr-btn--outline:hover { background-color: var(--bs-primary, #131b2e); color: #fff; }
.mr-btn--light { background-color: #fff; color: var(--bs-primary, #131b2e); }
.mr-btn--light:hover { background-color: var(--ll-accent, #fd761a); color: #fff; }
.mr-btn--on-dark { border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.mr-btn--on-dark:hover { background-color: #fff; color: var(--bs-primary, #131b2e); }
.mr-btn--ghost { padding-inline: 0; border: 0; color: var(--bs-primary, #131b2e); }
.mr-btn--block { width: 100%; }

/* Underline link (editorial) */
.mr-ulink {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: inherit; text-decoration: none; padding-bottom: 0.25rem;
  border-bottom: 1px solid currentColor; transition: color 0.2s, border-color 0.2s;
}
.mr-ulink:hover { color: var(--ll-accent, #fd761a); border-color: var(--ll-accent, #fd761a); }

/* ----- Announcement bar (deep-accent band, like the template's `secondary`) -- */
.mr-announce {
  background-color: var(--ll-accent, #fd761a); /* fallback for no color-mix */
  background-color: color-mix(in srgb, var(--ll-accent, #fd761a) 62%, #000);
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
}
.mr-announce a { color: #fff; text-decoration: underline; }

/* ----- Header / nav (single-row top bar — matches Store-Front-2 template) - */
/* NOTE on the structural white surfaces below (.mr-header, .form-control,
   .mr-search input:focus, .mr-page, .mr-step__dot, .mr-acct-link:hover,
   .mr-panel): these read var(--mr-surface) rather than a literal #fff. The
   base defines --mr-surface: #ffffff, so every light theme is unaffected —
   but a dark `extends` child re-points --mr-surface AND --mr-ink together, so
   hardcoding #fff here left parchment/ivory text on a white card (measured
   1.20:1 on the login, register, password-reset, all five checkout steps,
   account, orders, addresses, wishlist, order-track and 404 pages). Keep new
   surface rules token-driven for the same reason. */
.mr-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: var(--mr-surface);
  border-bottom: 1px solid var(--mr-border);
  transition: transform 0.3s ease;
}
.mr-header.is-hidden { transform: translateY(-100%); }
.mr-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 80px; }
.mr-header__left { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); min-width: 0; }
.mr-header__right { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.75rem); }
.mr-header__icons { display: flex; align-items: center; gap: 0.5rem; }

.mr-logo {
  font-family: var(--ll-font-headings, "Playfair Display"), Georgia, serif;
  font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.01em;
  color: var(--bs-primary, #131b2e); text-decoration: none; line-height: 1; white-space: nowrap;
}
.mr-logo img { max-height: 40px; width: auto; display: block; }

.mr-nav { display: flex; align-items: center; gap: 1.5rem; }
.mr-nav-link {
  font-family: var(--ll-font-body, "Inter"), sans-serif;
  font-size: 1rem; font-weight: 400; line-height: 1; white-space: nowrap;
  color: var(--mr-muted); text-decoration: none;
  background: transparent; border: 0; padding: 0.4rem 0;
  border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.mr-nav-link:hover { color: var(--bs-primary, #131b2e); }
.mr-nav-link.is-active { color: var(--ll-accent, #fd761a); font-weight: 700; border-bottom-color: var(--ll-accent, #fd761a); }
.mr-nav .dropdown-menu { border-radius: var(--mr-radius); border-color: var(--mr-border); margin-top: 0.5rem; }

/* Icon buttons + count badges */
.mr-icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; color: var(--bs-primary, #131b2e); background: transparent; border: 0;
  text-decoration: none; transition: color 0.2s, transform 0.1s;
}
.mr-icon-btn:active { transform: scale(0.92); }
.mr-icon-btn:hover { color: var(--ll-accent, #fd761a); }
.mr-icon-btn svg { width: 22px; height: 22px; }
.mr-badge {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 3px;
  background-color: var(--bs-primary, #131b2e); color: #fff; font-size: 10px; font-weight: 700;
  line-height: 1; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  font-family: var(--ll-font-body, "Inter"), sans-serif;
}
.mr-badge--wish { background-color: var(--ll-accent, #fd761a); }

/* Search */
.mr-search { position: relative; }
.mr-search input {
  width: 16rem; max-width: 38vw; border: 1px solid var(--mr-border); border-radius: var(--bs-border-radius, 0.25rem);
  padding: 0.55rem 2.5rem 0.55rem 0.9rem; font-size: 0.9rem; background: var(--mr-band); color: var(--mr-ink);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.mr-search--wide input { width: 100%; max-width: none; }
.mr-search input:focus {
  outline: none; background: var(--mr-surface); border-color: var(--bs-primary, #131b2e);
  box-shadow: 0 0 0 3px rgba(0, 140, 199, 0.18);
}
.mr-search button {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; color: var(--mr-soft);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.mr-search button:hover { color: var(--bs-primary, #131b2e); }

/* ----- Product card ------------------------------------------------------ */
.mr-card { display: block; color: inherit; text-decoration: none; }
.mr-card__media {
  position: relative; overflow: hidden; aspect-ratio: 3 / 4; background-color: var(--mr-band-alt);
  border-radius: var(--mr-radius); margin-bottom: 1rem;
}
.mr-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s ease; display: block; }
.mr-card:hover .mr-card__media img { transform: scale(1.05); }
.mr-card__media .ll-product-card-placeholder { width: 100%; height: 100%; }
.mr-card__sale {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  background-color: var(--ll-accent, #fd761a); color: #fff;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.28rem 0.55rem; border-radius: 0.2rem;
}
.mr-card__wish {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 9999px; border: 0;
  background-color: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--bs-primary, #131b2e); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background-color 0.2s, color 0.2s;
}
.mr-card__wish:hover { background-color: #fff; }
.mr-card__wish svg { width: 18px; height: 18px; }
.mr-card__wish.is-active { color: var(--ll-accent, #fd761a); }
.mr-card__quick {
  position: absolute; left: 0; right: 0; bottom: 0; width: 100%;
  padding: 0.85rem; border: 0; cursor: pointer;
  background-color: var(--bs-primary, #131b2e); color: #fff;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0; transform: translateY(1rem); transition: opacity 0.3s ease, transform 0.3s ease;
}
.mr-card:hover .mr-card__quick, .mr-card:focus-within .mr-card__quick { opacity: 1; transform: translateY(0); }
.mr-card__eyebrow {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--mr-soft); margin-bottom: 0.25rem;
}
.mr-card__title {
  font-family: var(--ll-font-body, "Inter"), sans-serif;
  font-size: 1rem; font-weight: 600; color: var(--mr-ink); margin-bottom: 0.35rem; line-height: 1.35;
}
.mr-card__title a { color: inherit; text-decoration: none; }
.mr-card__title a:hover { color: var(--ll-accent, #fd761a); }
.mr-card__price { font-size: 0.98rem; color: var(--mr-ink); }
.mr-card__price del { color: var(--mr-soft); margin-right: 0.45rem; }
.mr-stars { color: var(--mr-gold); font-size: 0.85rem; letter-spacing: 0.05em; }

/* ----- Image tiles (category / promo) ------------------------------------ */
.mr-tile {
  position: relative; display: block; overflow: hidden; text-decoration: none;
  background-color: var(--mr-band-alt); border-radius: var(--mr-radius);
}
.mr-tile--tall { aspect-ratio: 4 / 5; }
.mr-tile--cat { height: 360px; }
.mr-tile__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mr-tile:hover .mr-tile__img { transform: scale(1.07); }
.mr-tile__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19, 27, 46, 0.05) 0%, rgba(19, 27, 46, 0.55) 100%);
}
.mr-tile--cat .mr-tile__scrim {
  background: rgba(19, 27, 46, 0.34);
  display: flex; align-items: center; justify-content: center;
}
.mr-tile__placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--mr-band-alt), var(--mr-fill));
}
.mr-tile__cap { position: absolute; left: 2rem; bottom: 2rem; right: 2rem; color: #fff; z-index: 2; }
.mr-tile__cap h3 { color: #fff; margin-bottom: 0.5rem; }
.mr-tile--cat .mr-tile__cap {
  position: static; text-align: center; color: #fff;
  font-family: var(--ll-font-headings, "Playfair Display"), Georgia, serif;
  font-size: 1.4rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ----- Newsletter / CTA band (navy) -------------------------------------- */
.mr-cta { background-color: var(--bs-primary, #131b2e); color: #fff; }
.mr-cta h2, .mr-cta p { color: #fff; }
.mr-cta__form { display: flex; gap: 1rem; max-width: 440px; }
.mr-cta__form input {
  flex: 1; background: transparent; border: 0; border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff; padding: 0.75rem 0; font-size: 0.95rem; transition: border-color 0.2s;
}
.mr-cta__form input::placeholder { color: rgba(255, 255, 255, 0.55); }
.mr-cta__form input:focus { outline: none; border-color: #fff; }

/* ----- Trust strip ------------------------------------------------------- */
.mr-trust { display: flex; align-items: center; gap: 1rem; }
.mr-trust svg { width: 30px; height: 30px; color: var(--ll-accent, #fd761a); flex-shrink: 0; }
.mr-trust strong { display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.mr-trust span { font-size: 0.85rem; color: var(--mr-muted); }

/* ----- Brand strip ------------------------------------------------------- */
.mr-brandstrip { border-block: 1px solid var(--mr-border-strong); opacity: 0.55; }
.mr-brandstrip span {
  font-family: var(--ll-font-headings, "Playfair Display"), Georgia, serif;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--mr-ink);
}

/* ----- Hero -------------------------------------------------------------- */
.mr-hero {
  position: relative; display: flex; align-items: center; min-height: clamp(560px, 82vh, 819px);
  overflow: hidden; color: #fff; background-color: #16181d;
}
.mr-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.mr-hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.34) 46%, rgba(0, 0, 0, 0.1) 100%);
}
/* full-width centered shell, then a left-aligned copy block inside it */
.mr-hero__shell {
  position: relative; z-index: 2; width: 100%; max-width: 1280px; margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}
.mr-hero__copy { max-width: 600px; text-align: left; }
.mr-hero .mr-hero__copy .mr-eyebrow { color: #fff; letter-spacing: 0.3em; margin-bottom: 1.25rem; }
/* `.mr-hero .mr-hero__copy h1` (0,2,1) must out-specify `body.mr-theme h1` (0,1,2)
   so the headline renders white over the photo (not the dark default ink). */
.mr-hero .mr-hero__copy h1 {
  color: #fff; font-size: clamp(2.25rem, 4.6vw, 3.25rem); line-height: 1.08;
  letter-spacing: -0.01em; margin-bottom: 2.25rem;
}
.mr-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.mr-btn--hero { padding: 1.05rem 2.5rem; }

/* ----- Footer ------------------------------------------------------------ */
.mr-footer { background-color: var(--mr-band-alt); border-top: 1px solid var(--mr-border); }
.mr-footer h4 {
  font-family: var(--ll-font-body, "Inter"), sans-serif;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mr-ink); margin-bottom: 1.25rem;
}
.mr-footer a { color: var(--mr-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.mr-footer a:hover { color: var(--ll-accent, #fd761a); }
.mr-footer__brand {
  font-family: var(--ll-font-headings, "Playfair Display"), Georgia, serif;
  font-size: 1.6rem; font-weight: 700; color: var(--bs-primary, #131b2e); text-decoration: none;
}
.mr-social {
  width: 42px; height: 42px; border-radius: 9999px; border: 1px solid var(--mr-border-strong);
  display: inline-flex; align-items: center; justify-content: center; color: var(--mr-ink);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.mr-social:hover { background-color: var(--bs-primary, #131b2e); color: #fff; border-color: var(--bs-primary, #131b2e); }
.mr-social svg { width: 18px; height: 18px; }

/* ----- Reveal-on-scroll (progressive enhancement) ------------------------ */
.mr-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.mr-reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .mr-reveal { opacity: 1; transform: none; transition: none; }
  .mr-card__media img, .mr-tile__img { transition: none; }
}

/* ----- Horizontal scroll rail (featured) --------------------------------- */
.mr-rail { display: flex; gap: 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 1.5rem; scrollbar-width: none; }
.mr-rail::-webkit-scrollbar { display: none; }
.mr-rail > * { scroll-snap-align: start; flex: 0 0 clamp(240px, 26vw, 300px); }

/* ----- Focus accessibility ----------------------------------------------- */
body.mr-theme a:focus-visible,
body.mr-theme button:focus-visible,
body.mr-theme input:focus-visible {
  outline: 2px solid var(--ll-accent, #fd761a);
  outline-offset: 2px;
}

/* ----- Utilities --------------------------------------------------------- */
.mr-divider { height: 1px; background-color: var(--mr-border); border: 0; }
.mr-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.min-w-0 { min-width: 0; }

/* ----- Bootstrap form theming (match the design language) ---------------- */
body.mr-theme .form-control,
body.mr-theme .form-select {
  border: 1px solid var(--mr-border);
  border-radius: var(--bs-border-radius, 0.25rem);
  font-size: 0.92rem;
  color: var(--mr-ink);
  background-color: var(--mr-surface);
  padding: 0.6rem 0.8rem;
}
/* The shared padding above collapses Bootstrap's reserved right gutter
   (`padding: .375rem 2.25rem .375rem .75rem`), which is the only thing keeping
   the option text from running under the caret background-image. Selects get
   that gutter back — logical property so it follows an RTL flip. */
body.mr-theme .form-select {
  padding-inline-end: 2.25rem;
}
body.mr-theme .form-control:focus,
body.mr-theme .form-select:focus {
  border-color: var(--bs-primary, #131b2e);
  box-shadow: 0 0 0 3px rgba(0, 140, 199, 0.16);
}
body.mr-theme .form-label { font-size: 0.82rem; font-weight: 600; color: var(--mr-ink); margin-bottom: 0.4rem; }
.mr-field-label { display: block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mr-soft); margin-bottom: 0.35rem; }

/* ----- Option pickers (buttons / swatch display types) --------------------
   Schema-driven variant pickers (partials/product-options-picker.blade.php).
   Token-driven on purpose: every extends child re-points --mr-* and
   --bs-primary, so the chips follow each theme's palette with no per-theme
   CSS. The radio input stays in the DOM (form semantics + keyboard) but is
   visually hidden; the label IS the control. */
.mr-optset { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mr-optchip {
  position: relative; display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 0.9rem; margin-bottom: 0; cursor: pointer; font-size: 0.85rem;
  color: var(--mr-ink); background: var(--mr-surface);
  border: 1px solid var(--mr-border-strong); border-radius: var(--bs-border-radius, 0.25rem);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.mr-optchip:hover { border-color: var(--mr-ink); }
.mr-optchip__input { position: absolute; opacity: 0; pointer-events: none; }
.mr-optchip:has(.mr-optchip__input:checked) { border-color: var(--bs-primary); box-shadow: inset 0 0 0 1px var(--bs-primary); }
.mr-optchip:has(.mr-optchip__input:focus-visible) { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
/* Fallback signal for engines without :has() — the picked value still reads. */
.mr-optchip__input:checked ~ .mr-optchip__text { font-weight: 700; }
.mr-optchip.is-soldout { opacity: 0.45; cursor: not-allowed; }
.mr-optchip.is-soldout .mr-optchip__text { text-decoration: line-through; }
.mr-optchip__dot { width: 1rem; height: 1rem; flex: none; border-radius: 50%; border: 1px solid var(--mr-border-strong); }
.mr-optchip--swatch { padding-left: 0.55rem; }

/* ----- Breadcrumb -------------------------------------------------------- */
.mr-crumbs { font-size: 0.78rem; color: var(--mr-soft); letter-spacing: 0.02em; }
.mr-crumbs a { color: var(--mr-muted); text-decoration: none; }
.mr-crumbs a:hover { color: var(--ll-accent, #fd761a); }
.mr-crumbs__sep { margin: 0 0.5rem; color: var(--mr-border-strong); }

/* ----- Alerts ------------------------------------------------------------ */
.mr-alert { border-radius: var(--mr-radius); padding: 0.75rem 1rem; font-size: 0.9rem; border: 1px solid transparent; }
.mr-alert--ok { background: #eaf6ef; color: #1a7f4b; border-color: #cdeede; }
.mr-alert--warn { background: #fff4e8; color: #9d4300; border-color: #ffd8b3; }
.mr-alert--info { background: #e9f4fb; color: #035e86; border-color: #c6e6f6; }

/* ----- Pagination -------------------------------------------------------- */
.mr-page {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 0.75rem; border: 1px solid var(--mr-border); border-radius: var(--bs-border-radius, 0.25rem);
  color: var(--mr-ink); text-decoration: none; font-size: 0.85rem; font-weight: 600; background: var(--mr-surface);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.mr-page:hover { border-color: var(--bs-primary, #131b2e); color: var(--bs-primary, #131b2e); }
.mr-page.is-active { background: var(--bs-primary, #131b2e); color: #fff; border-color: var(--bs-primary, #131b2e); }
.mr-page.is-disabled { color: var(--mr-border-strong); pointer-events: none; }

/* ----- Shop sidebar filters + toolbox ------------------------------------ */
.mr-filter { padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--mr-border); }
.mr-filter:last-child { border-bottom: 0; }
.mr-filter__title { font-family: var(--ll-font-body, "Inter"), sans-serif; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.mr-filter__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.mr-filter__link { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; color: var(--mr-muted); text-decoration: none; font-size: 0.9rem; }
.mr-filter__link:hover { color: var(--bs-primary, #131b2e); }
.mr-filter__link.is-active { color: var(--bs-primary, #131b2e); font-weight: 600; }
.mr-toolbox { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1.25rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--mr-border); }

/* ----- Product gallery (PDP) --------------------------------------------- */
.mr-gallery__main { aspect-ratio: 1; overflow: hidden; background: var(--mr-band-alt); border-radius: var(--mr-radius); }
.mr-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mr-gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.6rem; flex-wrap: wrap; }
.mr-gallery__thumb { width: 72px; height: 72px; padding: 0; border: 1px solid var(--mr-border); border-radius: 0.4rem; overflow: hidden; background: var(--mr-band-alt); cursor: pointer; }
.mr-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mr-gallery__thumb.is-active { border-color: var(--bs-primary, #131b2e); }

/* ----- PDP tabs ---------------------------------------------------------- */
body.mr-theme .mr-tabs { border-bottom: 1px solid var(--mr-border); gap: 1.5rem; }
body.mr-theme .mr-tabs .nav-link {
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0.5rem 0;
  color: var(--mr-soft); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; background: transparent;
}
body.mr-theme .mr-tabs .nav-link:hover { color: var(--mr-ink); }
body.mr-theme .mr-tabs .nav-link.active { color: var(--bs-primary, #131b2e); border-bottom-color: var(--ll-accent, #fd761a); }

/* ----- Cart -------------------------------------------------------------- */
.mr-cart-row { display: flex; align-items: flex-start; gap: 1.25rem; padding: 1.25rem 0; border-bottom: 1px solid var(--mr-border); }
.mr-cart-row__media { width: 92px; height: 110px; flex-shrink: 0; border-radius: 0.45rem; overflow: hidden; background: var(--mr-band-alt); }
.mr-cart-row__media img { width: 100%; height: 100%; object-fit: cover; }
.mr-cart-row__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.2rem; }
.mr-cart-row__title a { color: var(--mr-ink); text-decoration: none; }
.mr-cart-row__title a:hover { color: var(--ll-accent, #fd761a); }

/* ----- Order summary box ------------------------------------------------- */
.mr-summary { background: var(--mr-band); border: 1px solid var(--mr-border); border-radius: var(--mr-radius); padding: 1.75rem; position: sticky; top: 96px; }

/* ----- Checkout steps ---------------------------------------------------- */
.mr-steps { list-style: none; display: flex; gap: 0; padding: 0; margin: 0 0 2.5rem; }
.mr-step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; position: relative; }
.mr-step::before { content: ""; position: absolute; top: 16px; left: -50%; width: 100%; height: 2px; background: var(--mr-border); z-index: 0; }
.mr-step:first-child::before { display: none; }
.mr-step.is-done::before, .mr-step.is-current::before { background: var(--bs-primary, #131b2e); }
.mr-step__dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 9999px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--mr-surface); border: 2px solid var(--mr-border); color: var(--mr-soft); font-size: 0.85rem; font-weight: 700; text-decoration: none; }
.mr-step.is-done .mr-step__dot { background: var(--bs-primary, #131b2e); border-color: var(--bs-primary, #131b2e); color: #fff; }
.mr-step.is-current .mr-step__dot { border-color: var(--bs-primary, #131b2e); color: var(--bs-primary, #131b2e); }
.mr-step__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mr-soft); }
.mr-step.is-current .mr-step__label, .mr-step.is-done .mr-step__label { color: var(--mr-ink); }

/* ----- Account ----------------------------------------------------------- */
.mr-acct-nav { background: var(--mr-band); border: 1px solid var(--mr-border); border-radius: var(--mr-radius); padding: 1.25rem; }
.mr-acct-user { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--mr-border); }
.mr-acct-avatar { width: 44px; height: 44px; flex-shrink: 0; border-radius: 9999px; background: var(--bs-primary, #131b2e); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-family: var(--ll-font-headings, serif); font-weight: 700; }
.mr-acct-links { display: grid; gap: 0.15rem; }
.mr-acct-link { display: block; padding: 0.6rem 0.75rem; border-radius: 0.35rem; color: var(--mr-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500; }
.mr-acct-link:hover { background: var(--mr-surface); color: var(--bs-primary, #131b2e); }
.mr-acct-link.is-active { background: var(--bs-primary, #131b2e); color: #fff; }

/* ----- Generic admin-ish surfaces (orders, addresses, forms) ------------- */
.mr-panel { background: var(--mr-surface); border: 1px solid var(--mr-border); border-radius: var(--mr-radius); padding: 1.5rem; }
.mr-status { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 0.25rem 0.6rem; border-radius: 9999px; background: var(--mr-band-alt); color: var(--mr-muted); }
body.mr-theme .table { color: var(--mr-ink); }
body.mr-theme .table > :not(caption) > * > * { border-bottom-color: var(--mr-border); }
.mr-auth-card { max-width: 460px; margin-inline: auto; }

/* ===== Home editorial sections (ported from Store-Front-2) ================ */

/* Promo banner tiles */
.mr-promo { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--mr-radius); background: var(--mr-band-alt); text-decoration: none; }
.mr-promo__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mr-promo:hover .mr-promo__img { transform: scale(1.05); }
.mr-promo__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 40%, rgba(0, 0, 0, 0.5) 100%); transition: background 0.3s ease; }
.mr-promo:hover .mr-promo__scrim { background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 30%, rgba(0, 0, 0, 0.6) 100%); }
.mr-promo__cap { position: absolute; left: 2rem; right: 2rem; bottom: 2rem; z-index: 2; }
.mr-promo__title { display: block; color: #fff; font-size: clamp(1.3rem, 2vw, 1.6rem); margin-bottom: 0.75rem; }
.mr-promo__cta { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; border-bottom: 1px solid #fff; padding-bottom: 0.25rem; transition: color 0.2s, border-color 0.2s; }
.mr-promo:hover .mr-promo__cta { color: var(--ll-accent, #fd761a); border-color: var(--ll-accent, #fd761a); }

/* Featured rail chevron nav */
.mr-rail-nav { display: flex; gap: 0.5rem; }
.mr-rail-btn { width: 46px; height: 46px; border: 1px solid var(--mr-border-strong); background: transparent; color: var(--mr-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background-color 0.2s, color 0.2s, border-color 0.2s; }
.mr-rail-btn:hover { background: var(--bs-primary, #131b2e); color: #fff; border-color: var(--bs-primary, #131b2e); }
.mr-rail-btn svg { width: 20px; height: 20px; }

/* Category tile background image (overrides the gradient placeholder when present) */
.mr-tile__media { position: absolute; inset: 0; }
.mr-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mr-tile--cat:hover .mr-tile__media img { transform: scale(1.07); }

/* Journal article cards */
.mr-article__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--mr-radius); background: var(--mr-band-alt); }
.mr-article__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.mr-article__media:hover img { transform: scale(1.05); }
.mr-article__title { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.mr-article__title a { color: var(--mr-ink); text-decoration: none; transition: color 0.2s; }
.mr-article__title a:hover { color: var(--ll-accent, #fd761a); }

/* Newsletter 2-col band */
.mr-cta__copy { padding-block: clamp(48px, 8vw, 80px); padding-right: clamp(0px, 3vw, 2.5rem); }
.mr-cta__media { aspect-ratio: 4 / 5; max-height: 600px; overflow: hidden; }
.mr-cta__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Quick View ========================================================= */

/* Product-card trigger — glass circle stacked below the wishlist heart,
   revealed on card hover/focus (matches the slide-up Quick Add affordance). */
.mr-card__quickview {
  position: absolute; top: calc(0.75rem + 38px + 0.5rem); right: 0.75rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 9999px; border: 0; text-decoration: none;
  background-color: rgba(255, 255, 255, 0.85); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  color: var(--bs-primary, #131b2e); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; transform: translateY(-0.4rem);
  transition: opacity 0.25s ease, transform 0.25s ease, background-color 0.2s, color 0.2s;
}
.mr-card__quickview svg { width: 19px; height: 19px; }
.mr-card:hover .mr-card__quickview, .mr-card:focus-within .mr-card__quickview { opacity: 1; transform: translateY(0); }
/* Hover ink is the theme's OWN text pair (--mr-ink on --mr-surface), not the
   accent. `--ll-accent` is a bright brand highlight — on a white circle it
   measured 2.70:1 here, 2.40:1 on zaree, 2.16:1 on verdant-market, all below
   the 3:1 WCAG minimum for UI components. Every theme already re-points
   --mr-ink/--mr-surface, so this pair is guaranteed legible (>= 12.8:1 across
   all shipped themes, including the dark canvas) and stays correct for any
   future theme without per-theme work. */
.mr-card__quickview:hover { background-color: var(--mr-surface, #fff); color: var(--mr-ink, #1b1b1d); }
/* Touch devices have no hover to reveal the trigger — keep it visible there. */
@media (hover: none) {
  .mr-card__quickview { opacity: 1; transform: none; }
}

/* Modal — 8px radius, soft Level-3 shadow, blurred backdrop (per the
   Store-Front-2 design system). The body is injected via theme.js. */
body.mr-theme .mr-quickview .modal-content {
  border: 0; border-radius: var(--mr-radius); overflow: hidden;
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.28);
}
body.mr-theme .modal-backdrop.show { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mr-quickview__body { position: relative; padding: clamp(1.25rem, 3vw, 2.25rem); }
.mr-quickview__close { position: absolute; top: 1rem; right: 1rem; z-index: 3; }
.mr-quickview__loading { color: var(--mr-soft); }
.mr-quickview .mr-gallery__main { aspect-ratio: 1; }
