/* =========================================================================
   Minimal (editorial) storefront theme
   Self-contained, build-free CSS — namespaced `mnl-`. Loaded directly from
   /public so surgical deploys never need a Tailwind/Vite rebuild. The reused
   <x-pdp-block> components still rely on the compiled app.css loaded alongside.
   Font: Cairo (Arabic + Latin). RTL-aware via logical properties.
   ========================================================================= */

:root {
  --mnl-bg:        #ffffff;
  --mnl-surface:   #f6f6f4;
  --mnl-ink:       #141414;
  --mnl-ink-soft:  #3b3b3b;
  --mnl-muted:     #9a9a97;
  --mnl-line:      #ececea;
  --mnl-line-2:    #e0e0dc;
  --mnl-btn-bg:    #141414;
  --mnl-btn-ink:   #ffffff;
  --mnl-sale:      #b4472e;
  --mnl-maxw:      1180px;
  --mnl-gutter:    clamp(1rem, 4vw, 3rem);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mnl-bg:       #0e0e0f;
    --mnl-surface:  #161617;
    --mnl-ink:      #f3f3f1;
    --mnl-ink-soft: #cfcfca;
    --mnl-muted:    #7e7e79;
    --mnl-line:     #262627;
    --mnl-line-2:   #313132;
    --mnl-btn-bg:   #f3f3f1;
    --mnl-btn-ink:  #141414;
    --mnl-sale:     #e08a74;
  }
}
:root[data-theme="dark"] {
  --mnl-bg:       #0e0e0f;
  --mnl-surface:  #161617;
  --mnl-ink:      #f3f3f1;
  --mnl-ink-soft: #cfcfca;
  --mnl-muted:    #7e7e79;
  --mnl-line:     #262627;
  --mnl-line-2:   #313132;
  --mnl-btn-bg:   #f3f3f1;
  --mnl-btn-ink:  #141414;
  --mnl-sale:     #e08a74;
}

/* ---- base ---- */
.mnl {
  background: var(--mnl-bg);
  color: var(--mnl-ink);
  font-family: 'Cairo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.mnl *, .mnl *::before, .mnl *::after { box-sizing: border-box; }
.mnl img { max-width: 100%; display: block; }
.mnl a { color: inherit; text-decoration: none; }
.mnl-main { flex: 1 0 auto; }
.mnl-wrap { max-width: var(--mnl-maxw); margin-inline: auto; padding-inline: var(--mnl-gutter); }

.mnl-eyebrow {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mnl-muted);
}

/* ---- header ---- */
.mnl-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--mnl-bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--mnl-line);
}
.mnl-header__row {
  max-width: var(--mnl-maxw); margin-inline: auto;
  padding: 1.15rem var(--mnl-gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem;
}
.mnl-brand {
  grid-column: 2;
  font-size: 1.35rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; text-align: center; white-space: nowrap;
}
.mnl-nav {
  grid-column: 1; grid-row: 1;
  display: flex; gap: 1.6rem; align-items: center;
  font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}
.mnl-nav a { color: var(--mnl-ink-soft); transition: color .18s; padding-block: .25rem; }
.mnl-nav a:hover { color: var(--mnl-ink); }
.mnl-nav a.is-active { color: var(--mnl-ink); border-bottom: 1px solid var(--mnl-ink); }
.mnl-actions {
  grid-column: 3; grid-row: 1;
  display: flex; gap: 1.25rem; align-items: center; justify-content: flex-end;
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.mnl-actions a { color: var(--mnl-ink-soft); display: inline-flex; align-items: center; gap: .4rem; }
.mnl-actions a:hover { color: var(--mnl-ink); }
.mnl-ico { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; }
.mnl-count {
  min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--mnl-ink); color: var(--mnl-bg); font-size: .6rem; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; letter-spacing: 0;
}
.mnl-burger { display: none; background: none; border: 0; color: var(--mnl-ink); cursor: pointer; padding: .25rem; }

@media (max-width: 820px) {
  .mnl-header__row { grid-template-columns: auto 1fr auto; }
  .mnl-brand { grid-column: 2; font-size: 1.1rem; letter-spacing: .2em; }
  .mnl-nav { display: none; }
  .mnl-burger { display: inline-flex; grid-column: 1; }
  .mnl-actions { grid-column: 3; gap: .9rem; }
  .mnl-actions .mnl-actions__label { display: none; }
}
.mnl-mobnav {
  border-top: 1px solid var(--mnl-line);
  display: none; flex-direction: column; padding: .5rem var(--mnl-gutter) 1rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
}
.mnl-mobnav.is-open { display: flex; }
.mnl-mobnav a { padding: .7rem 0; border-bottom: 1px solid var(--mnl-line); color: var(--mnl-ink-soft); }

/* ---- page intro ---- */
.mnl-intro { padding: clamp(3rem, 9vw, 7rem) 0 clamp(2rem, 5vw, 3.5rem); }
.mnl-intro__inner { max-width: var(--mnl-maxw); margin-inline: auto; padding-inline: var(--mnl-gutter); }
.mnl-display {
  font-weight: 700; line-height: 1.04; letter-spacing: -0.01em;
  font-size: clamp(2.6rem, 8vw, 5.25rem); margin: 0;
}
.mnl-display--light { font-weight: 300; }
.mnl-rule { width: 54px; height: 2px; background: var(--mnl-ink); margin: 1.6rem 0; }
.mnl-lede { max-width: 46ch; color: var(--mnl-ink-soft); font-size: 1.02rem; }

/* ---- editorial asymmetric collection grid ---- */
.mnl-collection {
  max-width: var(--mnl-maxw); margin-inline: auto;
  padding: clamp(1rem, 3vw, 2rem) var(--mnl-gutter) clamp(3rem, 8vw, 6rem);
  display: grid; grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1.5rem, 4vw, 3.5rem); row-gap: clamp(2.5rem, 7vw, 5.5rem);
  align-items: start;
}
/* 4-item rhythm: large-left, small-right(dropped), small-left-center, med-right */
.mnl-item { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .mnl-item:nth-child(4n+1) { grid-column: 1 / span 6; }
  .mnl-item:nth-child(4n+2) { grid-column: 8 / span 5; margin-top: clamp(3rem, 9vw, 7rem); }
  .mnl-item:nth-child(4n+3) { grid-column: 3 / span 5; }
  .mnl-item:nth-child(4n+4) { grid-column: 8 / span 5; }
}
.mnl-shot {
  position: relative; overflow: hidden; background: var(--mnl-surface);
  aspect-ratio: 4 / 5;
}
.mnl-item:nth-child(4n+1) .mnl-shot { aspect-ratio: 5 / 6; }
.mnl-item:nth-child(4n+2) .mnl-shot { aspect-ratio: 4 / 5; }
.mnl-item:nth-child(4n+3) .mnl-shot { aspect-ratio: 1 / 1; }
.mnl-item:nth-child(4n+4) .mnl-shot { aspect-ratio: 4 / 5; }
.mnl-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s cubic-bezier(.16,.84,.44,1), opacity .4s;
}
.mnl-item:hover .mnl-shot img { transform: scale(1.045); }
.mnl-flag {
  position: absolute; inset-block-start: .9rem; inset-inline-start: .9rem;
  background: var(--mnl-bg); color: var(--mnl-sale);
  font-size: .62rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .55rem;
}
.mnl-meta { padding-top: 1rem; display: flex; flex-direction: column; gap: .45rem; }
.mnl-meta__row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.mnl-name { font-size: .98rem; font-weight: 600; letter-spacing: .01em; width: 100%; }
.mnl-brandline { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mnl-muted); white-space: nowrap; }
.mnl-price { font-size: .92rem; font-weight: 700; white-space: nowrap; }
.mnl-price del { color: var(--mnl-muted); font-weight: 400; margin-inline-end: .4rem; }

/* editorial caption block that can sit inside the grid */
.mnl-note { grid-column: 1 / -1; text-align: center; padding: clamp(1rem,4vw,2.5rem) 0; }
@media (min-width: 760px) { .mnl-note { grid-column: 3 / span 5; } }
.mnl-note__title { font-size: 1.05rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.mnl-note__sub { color: var(--mnl-muted); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .5rem; }

/* ---- buttons ---- */
.mnl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--mnl-btn-bg); color: var(--mnl-btn-ink);
  font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  padding: .95rem 2rem; border: 1px solid var(--mnl-btn-bg); cursor: pointer;
  transition: background .2s, color .2s;
}
.mnl-btn:hover { background: transparent; color: var(--mnl-ink); }
.mnl-btn--ghost { background: transparent; color: var(--mnl-ink); border-color: var(--mnl-line-2); }
.mnl-btn--ghost:hover { border-color: var(--mnl-ink); }

/* ---- PDP ---- */
.mnl-pdp { max-width: var(--mnl-maxw); margin-inline: auto; padding: clamp(2rem,5vw,3.5rem) var(--mnl-gutter) clamp(3rem,7vw,5rem); }
.mnl-crumb { font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mnl-muted); margin-bottom: clamp(1.5rem,4vw,2.5rem); }
.mnl-crumb a:hover { color: var(--mnl-ink); }
.mnl-pdp__grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,5vw,4rem); }
@media (min-width: 900px) { .mnl-pdp__grid { grid-template-columns: 1.05fr .95fr; align-items: start; } }
.mnl-pdp__media > * { background: var(--mnl-surface); }
.mnl-pdp__aside { display: flex; flex-direction: column; gap: 1.5rem; }
@media (min-width: 900px) { .mnl-pdp__aside { position: sticky; top: 92px; } }
.mnl-pdp__below { margin-top: clamp(3rem,7vw,5rem); display: flex; flex-direction: column; gap: clamp(2rem,5vw,3rem); }
.mnl-section-label { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--mnl-muted); border-bottom: 1px solid var(--mnl-line); padding-bottom: .75rem; margin-bottom: 1.5rem; }

/* Gently align the reused pdp-block order form to the minimal look without
   breaking its Livewire internals (soften the heavy card chrome). */
.mnl-pdp #orderForm { box-shadow: none !important; border: 1px solid var(--mnl-line) !important; border-radius: 0 !important; background: var(--mnl-bg) !important; }

/* ---- footer ---- */
.mnl-footer { border-top: 1px solid var(--mnl-line); background: var(--mnl-surface); margin-top: auto; }
.mnl-footer__inner { max-width: var(--mnl-maxw); margin-inline: auto; padding: clamp(3rem,7vw,5rem) var(--mnl-gutter) 2rem; }
.mnl-footer__cols { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 640px) { .mnl-footer__cols { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .mnl-footer__cols { grid-template-columns: repeat(4, 1fr); } }
.mnl-foot-h { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 1.25rem; }
.mnl-foot-list { display: flex; flex-direction: column; gap: .6rem; font-size: .84rem; color: var(--mnl-ink-soft); }
.mnl-foot-list a:hover { color: var(--mnl-ink); }
.mnl-foot-muted { color: var(--mnl-muted); font-size: .82rem; line-height: 1.7; }
.mnl-footer__bar {
  max-width: var(--mnl-maxw); margin-inline: auto; padding: 1.5rem var(--mnl-gutter);
  border-top: 1px solid var(--mnl-line); display: flex; flex-wrap: wrap; gap: 1rem 1.6rem;
  align-items: center; justify-content: space-between;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mnl-muted);
}
.mnl-footer__bar nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.mnl-footer__bar a:hover { color: var(--mnl-ink); }

.mnl-empty { text-align: center; color: var(--mnl-muted); padding: 5rem 0; letter-spacing: .04em; }

/* =========================================================================
   Overrides for the reused <x-pdp-block> components (default-theme Tailwind).
   Loaded AFTER app.css so these win; !important beats the utilities. Scoped to
   .mnl-pdp so the default theme is untouched. Neutralises the loud purple /
   indigo palette + heavy card chrome, sharpens radii, tightens spacing, and
   keeps everything legible in dark mode.
   ========================================================================= */

/* --- title / price / short description --- */
.mnl-pdp h1 { color: var(--mnl-ink) !important; font-weight: 700 !important;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem) !important; line-height: 1.15 !important; letter-spacing: -0.01em; }
.mnl-pdp .text-gray-600, .mnl-pdp .text-gray-500, .mnl-pdp .text-gray-400 { color: var(--mnl-muted) !important; }
.mnl-pdp .text-gray-900, .mnl-pdp .text-gray-800, .mnl-pdp .text-gray-700,
.mnl-pdp .text-gray-300, .mnl-pdp .text-gray-100, .mnl-pdp .text-gray-200 { color: var(--mnl-ink) !important; }
.mnl-pdp .text-indigo-600, .mnl-pdp .text-indigo-400, .mnl-pdp .text-purple-600, .mnl-pdp .text-purple-700 { color: var(--mnl-ink) !important; }
.mnl-pdp .line-through { color: var(--mnl-muted) !important; }
.mnl-pdp .text-3xl { font-size: 1.5rem !important; }
.mnl-pdp .text-lg  { font-size: .9rem !important; }

/* --- gallery / slides --- */
.mnl-pdp__media .bg-gray-50, .mnl-pdp__media .bg-gray-100, .mnl-pdp__media .dark\:bg-gray-800 { background: var(--mnl-surface) !important; }
.mnl-pdp__media .rounded-xl, .mnl-pdp__media .rounded-2xl { border-radius: 0 !important; }
.mnl-pdp__media .shadow-lg, .mnl-pdp__media .shadow { box-shadow: none !important; }
.mnl-pdp .swiper-button-next, .mnl-pdp .swiper-button-prev { color: var(--mnl-ink) !important; }
.mnl-pdp .swiper-button-next::after, .mnl-pdp .swiper-button-prev::after { font-size: 20px !important; font-weight: 700; }
.mnl-pdp .swiper-pagination-bullet { background: var(--mnl-muted) !important; opacity: .5; }
.mnl-pdp .swiper-pagination-bullet-active { background: var(--mnl-ink) !important; opacity: 1; }

/* --- order form: flatten + neutralise palette --- */
.mnl-pdp #orderForm [class*="rounded"] { border-radius: 2px !important; }
.mnl-pdp #orderForm .shadow, .mnl-pdp #orderForm .shadow-lg, .mnl-pdp #orderForm .shadow-sm { box-shadow: none !important; }
.mnl-pdp #orderForm .bg-gradient-to-br, .mnl-pdp #orderForm .bg-gradient-to-r,
.mnl-pdp #orderForm .bg-gray-50, .mnl-pdp #orderForm .bg-blue-50,
.mnl-pdp #orderForm .bg-purple-50, .mnl-pdp #orderForm .peer-checked\:bg-purple-50 { background: var(--mnl-surface) !important; }
.mnl-pdp #orderForm .bg-white { background: var(--mnl-bg) !important; }
.mnl-pdp #orderForm .border-purple-100, .mnl-pdp #orderForm .border-blue-100,
.mnl-pdp #orderForm .border-purple-200, .mnl-pdp #orderForm .border-gray-200, .mnl-pdp #orderForm .border-gray-300 { border-color: var(--mnl-line) !important; }
.mnl-pdp #orderForm label, .mnl-pdp #orderForm .text-gray-900, .mnl-pdp #orderForm .text-gray-800, .mnl-pdp #orderForm .text-gray-700 { color: var(--mnl-ink) !important; }
.mnl-pdp #orderForm .text-gray-600, .mnl-pdp #orderForm .text-gray-500, .mnl-pdp #orderForm .text-gray-400 { color: var(--mnl-muted) !important; }

/* inputs / selects / textarea */
.mnl-pdp #orderForm input, .mnl-pdp #orderForm select, .mnl-pdp #orderForm textarea {
  border: 1px solid var(--mnl-line-2) !important; border-radius: 0 !important;
  background: var(--mnl-bg) !important; color: var(--mnl-ink) !important; padding: .7rem .85rem !important;
}
.mnl-pdp #orderForm input:focus, .mnl-pdp #orderForm select:focus, .mnl-pdp #orderForm textarea:focus {
  outline: none !important; border-color: var(--mnl-ink) !important; box-shadow: none !important; --tw-ring-color: transparent !important;
}

/* selectable tiles (offer tiers / sizes / colours) */
.mnl-pdp #orderForm .border-2 { border-width: 1px !important; }
.mnl-pdp #orderForm .border-purple-300, .mnl-pdp #orderForm .border-purple-500, .mnl-pdp #orderForm .border-purple-600,
.mnl-pdp #orderForm .border-indigo-600, .mnl-pdp #orderForm .peer-checked\:border-purple-500 { border-color: var(--mnl-ink) !important; }
.mnl-pdp #orderForm .text-green-700 { color: var(--mnl-ink) !important; }

/* keep the discount flag as the one accent, calmer */
.mnl-pdp #orderForm .bg-red-700 { background: var(--mnl-sale) !important; }
.mnl-pdp #orderForm .bg-green-100 { background: var(--mnl-surface) !important; }

/* submit CTA -> solid ink, editorial */
.mnl-pdp #orderForm button[type="submit"] {
  background: var(--mnl-btn-bg) !important; color: var(--mnl-btn-ink) !important;
  border: 1px solid var(--mnl-btn-bg) !important; border-radius: 0 !important; box-shadow: none !important;
  font-weight: 700 !important; font-size: .82rem !important; letter-spacing: .14em; text-transform: uppercase;
  padding: 1.05rem 1.5rem !important;
}

/* below-the-fold blocks (description / trust / related) */
.mnl-pdp__below .bg-gray-50, .mnl-pdp__below .bg-white, .mnl-pdp__below .bg-gradient-to-br, .mnl-pdp__below .dark\:bg-gray-800 { background: var(--mnl-surface) !important; }
.mnl-pdp__below [class*="rounded"] { border-radius: 2px !important; }
.mnl-pdp__below .shadow, .mnl-pdp__below .shadow-lg, .mnl-pdp__below .shadow-sm { box-shadow: none !important; }
.mnl-pdp__below .text-indigo-600, .mnl-pdp__below .text-purple-600 { color: var(--mnl-ink) !important; }
.mnl-pdp__below .text-gray-900, .mnl-pdp__below .text-gray-800, .mnl-pdp__below .text-gray-700, .mnl-pdp__below .text-gray-300 { color: var(--mnl-ink) !important; }
.mnl-pdp__below .text-gray-600, .mnl-pdp__below .text-gray-500, .mnl-pdp__below .text-gray-400 { color: var(--mnl-muted) !important; }

/* =========================================================================
   Refinements v2 — bigger type, red struck prices, dark-mode form controls,
   cover-fill gallery, theme-toggle. Appended last so these win.
   ========================================================================= */

/* ---- bigger type (esp. header) ---- */
.mnl { font-size: 1.03rem; }
.mnl-brand { font-size: 1.75rem; letter-spacing: .34em; }
.mnl-nav { font-size: .82rem; gap: 1.9rem; }
.mnl-actions { font-size: .8rem; gap: 1.4rem; }
.mnl-ico { width: 20px; height: 20px; }
.mnl-eyebrow { font-size: .74rem; }
.mnl-lede { font-size: 1.12rem; }
.mnl-name { font-size: 1.12rem; }
.mnl-brandline { font-size: .72rem; }
.mnl-price { font-size: 1.02rem; }
.mnl-foot-h { font-size: .78rem; }
.mnl-foot-list { font-size: .9rem; }
.mnl-crumb { font-size: .74rem; }
.mnl-note__title { font-size: 1.15rem; }
@media (max-width: 820px) { .mnl-brand { font-size: 1.35rem; letter-spacing: .24em; } }
.mnl-pdp h1 { font-size: clamp(1.7rem, 3.6vw, 2.5rem) !important; }
.mnl-pdp .text-3xl { font-size: 1.75rem !important; }

/* ---- struck (old) price = RED, in every theme state ---- */
.mnl-price del, .mnl-pdp .line-through { color: #d81f1f !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mnl-price del,
  :root:not([data-theme="light"]) .mnl-pdp .line-through { color: #ff6b63 !important; }
}
:root[data-theme="dark"] .mnl-price del,
:root[data-theme="dark"] .mnl-pdp .line-through { color: #ff6b63 !important; }
:root[data-theme="light"] .mnl-price del,
:root[data-theme="light"] .mnl-pdp .line-through { color: #d81f1f !important; }

/* ---- dark-mode form controls (quantity stepper etc.) ---- */
.mnl-pdp #orderForm .bg-gray-200 { background: var(--mnl-surface) !important; color: var(--mnl-ink) !important; border: 1px solid var(--mnl-line) !important; }
.mnl-pdp #orderForm .bg-gray-100 { background: var(--mnl-surface) !important; }
.mnl-pdp #orderForm .hover\:bg-gray-300:hover { background: var(--mnl-line-2) !important; }
.mnl-pdp #orderForm .text-xl { color: var(--mnl-ink) !important; }

/* ---- gallery: fill the frame (no letterbox) ---- */
.mnl-pdp__media .object-contain { object-fit: cover !important; }
.mnl-pdp__media .bg-gray-50, .mnl-pdp__media .dark\:bg-gray-800 { background: var(--mnl-surface) !important; }

/* ---- theme toggle ---- */
.mnl-toggle { background: none; border: 0; color: var(--mnl-ink-soft); cursor: pointer; display: inline-flex; align-items: center; padding: .2rem; }
.mnl-toggle:hover { color: var(--mnl-ink); }
.mnl-ico-sun { display: none; }
.mnl-ico-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mnl-ico-sun { display: block; }
  :root:not([data-theme="light"]) .mnl-ico-moon { display: none; }
}
:root[data-theme="dark"] .mnl-ico-sun { display: block; }
:root[data-theme="dark"] .mnl-ico-moon { display: none; }
:root[data-theme="light"] .mnl-ico-sun { display: none; }
:root[data-theme="light"] .mnl-ico-moon { display: block; }

/* ---- gallery swiper sizing (align-items:start grid gives no fixed height, so
   let the slide aspect-ratio drive height instead of height:100% exploding) ---- */
.mnl-pdp .productSwiper { height: clamp(380px, 64vh, 760px) !important; }
.mnl-pdp .productSwiper > .swiper-wrapper { height: 100% !important; }
.mnl-pdp .productSwiper .swiper-slide { height: 100% !important; aspect-ratio: auto !important; }
.mnl-pdp .productSwiper .swiper-slide img,
.mnl-pdp .productSwiper .swiper-slide picture { width: 100% !important; height: 100% !important; object-fit: cover !important; }

/* ---- contain the swiper width: grid/flex children default to min-width:auto
   (min-content), which lets the swiper blow the column out to a huge width.
   min-width:0 + overflow:hidden keeps the gallery inside its track. ---- */
.mnl-pdp__grid > * { min-width: 0; }
.mnl-pdp__media { min-width: 0; overflow: hidden; }
.mnl-pdp .productSwiper { width: 100% !important; max-width: 100% !important; overflow: hidden; }

/* ---- product-card crossfade slideshow (hover, 3s/image) ---- */
.mnl-shot-layer {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transition: opacity 1s ease;
}
.mnl-flag { z-index: 3; }
.mnl-item:hover .mnl-shot-layer { transform: scale(1.04); }
.mnl-shot-layer { transition: opacity 1s ease, transform .9s cubic-bezier(.16,.84,.44,1); }

/* =========================================================================
   Refinements v3 — rounded corners + header logo.
   ========================================================================= */
:root { --mnl-radius: 14px; --mnl-radius-sm: 9px; }

.mnl-shot { border-radius: var(--mnl-radius); }
.mnl-flag { border-radius: 7px; }
.mnl-btn, .mnl-btn--ghost { border-radius: var(--mnl-radius-sm); }

/* gallery */
.mnl-pdp__media .productSwiper { border-radius: var(--mnl-radius); overflow: hidden; }
.mnl-pdp__media .bg-gray-50, .mnl-pdp__media .dark\:bg-gray-800 { border-radius: var(--mnl-radius) !important; }

/* order form: soften the sharp overrides back to rounded */
.mnl-pdp #orderForm input, .mnl-pdp #orderForm select, .mnl-pdp #orderForm textarea,
.mnl-pdp #orderForm button[type="submit"],
.mnl-pdp #orderForm [class*="rounded"] { border-radius: var(--mnl-radius-sm) !important; }
.mnl-pdp #orderForm .lg\:rounded-2xl, .mnl-pdp #orderForm .rounded-2xl { border-radius: var(--mnl-radius) !important; }

/* header logo */
.mnl-logo { height: 42px; width: auto; max-width: 180px; display: block; object-fit: contain; }
@media (max-width: 820px) { .mnl-logo { height: 34px; max-width: 140px; } }

/* ---- card slideshow progress bar (fills over each 2s interval) ---- */
[x-cloak] { display: none !important; }
.mnl-progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255, 255, 255, .35); z-index: 4;
}
.mnl-progress__fill {
  height: 100%; width: 0; background: #ffffff;
  box-shadow: 0 0 6px rgba(0, 0, 0, .25);
}
@keyframes mnl-fill { from { width: 0; } to { width: 100%; } }

/* =========================================================================
   Display-only watermark — centered, low-opacity logo over product images.
   Driven by --mnl-watermark (set on <body> from store_logo). Shows nothing
   when the logo is unset. `multiply` lets a logo that has a white background
   blend its white away over the photo; a transparent PNG/SVG looks cleanest.
   ========================================================================= */
.mnl-shot::after,
.mnl-pdp__media .bg-gray-50::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background-image: var(--mnl-watermark);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 46%;
  opacity: .20;
  mix-blend-mode: multiply;
}
.mnl-pdp__media .bg-gray-50 { position: relative; }

/* =========================================================================
   v4 — PDP form: remove both containers (outer form box + inner section
   boxes) so the form spans full width, and enlarge the pricing tiers.
   ========================================================================= */

/* outer form container: gone */
.mnl-pdp #orderForm {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* inner section boxes (offer / quantity / summary wrappers all carry
   lg:rounded-2xl) — strip the box, keep vertical rhythm, go full-width */
.mnl-pdp #orderForm .lg\:rounded-2xl {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* pricing tiers: larger. Target the tier buttons only (their wire:click
   contains lowercase "quantity"; the +/- stepper uses incrementQuantity). */
.mnl-pdp #orderForm button[wire\:click*="quantity"] {
  padding: 1.5rem 0.65rem !important;
  border-radius: var(--mnl-radius) !important;
}
.mnl-pdp #orderForm button[wire\:click*="quantity"] .text-2xl { font-size: 2.6rem !important; line-height: 1 !important; }
.mnl-pdp #orderForm button[wire\:click*="quantity"] .text-base,
.mnl-pdp #orderForm button[wire\:click*="quantity"] .lg\:text-lg { font-size: 1.45rem !important; margin-top: .5rem !important; }
.mnl-pdp #orderForm button[wire\:click*="quantity"] > .text-xs { font-size: .8rem !important; }

/* a touch more room between the now-boxless sections */
.mnl-pdp #orderForm > div { margin-bottom: 1.6rem; }

/* =========================================================================
   v5 — full catalogue: uniform grid + infinite scroll + card add-to-cart.
   ========================================================================= */
.mnl-catalogue { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 8vw, 6rem); }
.mnl-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile: one card per row */
  column-gap: clamp(.9rem, 2.5vw, 2rem);
  row-gap: clamp(1.8rem, 4vw, 3rem);
}
@media (min-width: 600px)  { .mnl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .mnl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .mnl-grid { grid-template-columns: repeat(4, 1fr); } }
/* reset the old editorial asymmetric rules when a card sits in the uniform grid */
.mnl-grid .mnl-item { grid-column: auto !important; margin-top: 0 !important; }
.mnl-grid .mnl-shot { aspect-ratio: 4 / 5 !important; }

/* stacking inside the shot */
.mnl-shot { position: relative; }
.mnl-shot__link { position: absolute; inset: 0; z-index: 3; }
.mnl-flag { z-index: 5; pointer-events: none; }
.mnl-progress { z-index: 5; pointer-events: none; }
.mnl-item .mnl-meta { color: inherit; }

/* add-to-cart button on the card */
.mnl-cart-btn {
  position: absolute; z-index: 6;
  inset-block-end: .55rem; inset-inline-end: .55rem;
  width: 42px; height: 42px; padding: 0 !important;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--mnl-btn-bg) !important;
  color: var(--mnl-btn-ink) !important;
  border: none !important;
  border-radius: 999px !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .22) !important;
  transition: transform .15s ease, opacity .2s ease;
}
.mnl-cart-btn:hover { transform: scale(1.07); }
.mnl-cart-btn svg { width: 19px; height: 19px; }

/* infinite-scroll loader */
.mnl-loadmore { display: flex; justify-content: center; padding: 2.5rem 0; }
.mnl-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--mnl-line-2); border-top-color: var(--mnl-ink);
  animation: mnl-spin .7s linear infinite;
}
@keyframes mnl-spin { to { transform: rotate(360deg); } }

/* =========================================================================
   v6 — checkout + legal pages restyled to minimal (scoped to .mnl-doc so the
   default theme is never affected). Flattens boxes, neutralises accent colours,
   applies minimal ink/surface/radius + Cairo.
   ========================================================================= */
.mnl .mnl-doc { background: transparent !important; min-height: 0 !important; padding-block: clamp(2rem, 5vw, 3.5rem) !important; }
.mnl .mnl-doc .container, .mnl .mnl-doc .max-w-7xl { max-width: var(--mnl-maxw) !important; }

.mnl .mnl-doc .bg-white, .mnl .mnl-doc .bg-gray-50, .mnl .mnl-doc .bg-gray-100,
.mnl .mnl-doc .bg-blue-50, .mnl .mnl-doc .bg-indigo-50, .mnl .mnl-doc .bg-purple-50,
.mnl .mnl-doc .bg-gradient-to-br, .mnl .mnl-doc .bg-gradient-to-r { background: var(--mnl-surface) !important; }
.mnl .mnl-doc .shadow, .mnl .mnl-doc .shadow-sm, .mnl .mnl-doc .shadow-md, .mnl .mnl-doc .shadow-lg { box-shadow: none !important; }
.mnl .mnl-doc [class*="rounded"] { border-radius: var(--mnl-radius-sm) !important; }
.mnl .mnl-doc .lg\:rounded-2xl, .mnl .mnl-doc .rounded-2xl { border-radius: var(--mnl-radius) !important; }
.mnl .mnl-doc .border, .mnl .mnl-doc [class*="border-gray-"], .mnl .mnl-doc [class*="border-blue-"], .mnl .mnl-doc [class*="border-purple-"] { border-color: var(--mnl-line) !important; }

.mnl .mnl-doc .text-gray-900, .mnl .mnl-doc .text-gray-800, .mnl .mnl-doc .text-gray-700,
.mnl .mnl-doc h1, .mnl .mnl-doc h2, .mnl .mnl-doc h3, .mnl .mnl-doc h4 { color: var(--mnl-ink) !important; }
.mnl .mnl-doc .text-gray-600, .mnl .mnl-doc .text-gray-500, .mnl .mnl-doc .text-gray-400 { color: var(--mnl-muted) !important; }
.mnl .mnl-doc .text-indigo-600, .mnl .mnl-doc .text-indigo-700, .mnl .mnl-doc .text-purple-600,
.mnl .mnl-doc .text-blue-600, .mnl .mnl-doc .text-blue-700 { color: var(--mnl-ink) !important; }

.mnl .mnl-doc .prose { color: var(--mnl-ink-soft) !important; max-width: none !important; }
.mnl .mnl-doc .prose :where(h1, h2, h3, h4, strong) { color: var(--mnl-ink) !important; }
.mnl .mnl-doc .prose a { color: var(--mnl-ink) !important; text-decoration: underline; }
.mnl .mnl-doc h1 { font-size: clamp(1.8rem, 4vw, 2.6rem) !important; font-weight: 700 !important; letter-spacing: -0.01em; }

.mnl .mnl-doc input, .mnl .mnl-doc select, .mnl .mnl-doc textarea {
  border: 1px solid var(--mnl-line-2) !important; border-radius: var(--mnl-radius-sm) !important;
  background: var(--mnl-bg) !important; color: var(--mnl-ink) !important;
}
.mnl .mnl-doc input:focus, .mnl .mnl-doc select:focus, .mnl .mnl-doc textarea:focus {
  outline: none !important; border-color: var(--mnl-ink) !important; box-shadow: none !important; --tw-ring-color: transparent !important;
}

.mnl .mnl-doc button[type="submit"],
.mnl .mnl-doc .bg-indigo-600, .mnl .mnl-doc .bg-indigo-500, .mnl .mnl-doc .bg-blue-600,
.mnl .mnl-doc a.bg-gradient-to-r, .mnl .mnl-doc button.bg-gradient-to-r {
  background: var(--mnl-btn-bg) !important; color: var(--mnl-btn-ink) !important;
  border-color: var(--mnl-btn-bg) !important; box-shadow: none !important;
}

/* =========================================================================
   v8 — card navigation dots + drag/swipe affordance.
   ========================================================================= */
.mnl-shot { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.mnl-shot-layer { -webkit-user-drag: none; }

.mnl-dots {
  position: absolute; z-index: 6; inset-block-end: .85rem; inset-inline: 0;
  display: flex; justify-content: center; gap: .4rem; pointer-events: none;
}
.mnl-dot {
  pointer-events: auto; width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .5); box-shadow: 0 0 4px rgba(0, 0, 0, .35);
  cursor: pointer; transition: background .25s ease, transform .25s ease;
}
.mnl-dot:hover { background: rgba(255, 255, 255, .85); }
.mnl-dot.is-on { background: #fff; transform: scale(1.35); }

/* =========================================================================
   v9 — checkout ("cart") form flattened to match the PDP form (scoped to
   .mnl-doc; div-only so inputs keep their borders). Gradient-clip total → ink.
   ========================================================================= */
.mnl .mnl-doc div.bg-white, .mnl .mnl-doc div.bg-gray-50,
.mnl .mnl-doc .lg\:rounded-3xl, .mnl .mnl-doc .lg\:rounded-2xl {
  background: transparent !important; border: none !important; box-shadow: none !important;
  padding-left: 0 !important; padding-right: 0 !important;
}
.mnl .mnl-doc .bg-clip-text, .mnl .mnl-doc .text-transparent {
  background: none !important; color: var(--mnl-ink) !important; -webkit-text-fill-color: var(--mnl-ink) !important;
}
