/* Components — v0.2. Mobile 390px is the design target.
   One signature (the shade strip / beauty counter); everything else quiet. */

/* ---------- Promo bar ---------- */
.m-promo {
  background: var(--m-primary);
  color: var(--m-on-primary);
  text-align: center;
  font-size: var(--m-fs-s);
  padding: 9px var(--m-sp-4);
}
.m-promo a { color: inherit; text-decoration: none; }

/* ---------- Header / nav ---------- */
.m-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--m-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--m-line);
}
.m-nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--m-sp-3);
  max-width: var(--m-container); margin-inline: auto;
  padding: 0 var(--m-sp-4);
  min-height: var(--m-header-h);
}
.m-nav__end { display: flex; align-items: center; gap: var(--m-sp-1); }

.m-nav--center .m-nav__brand {
  position: absolute; inset-inline: 0; margin-inline: auto; width: fit-content;
}
.m-nav__brand { text-decoration: none; display: block; }
.m-nav__brand img { max-height: 38px; width: auto; }
.m-nav__wordmark {
  font-family: var(--m-font-display);
  font-weight: 700; font-size: 1.3rem;
  color: var(--m-primary);
}
.m-nav__burger {
  width: var(--m-touch); height: var(--m-touch);
  display: grid; place-content: center; gap: 5px;
  background: none; border: 0; border-radius: var(--m-r-s);
}
.m-nav__burger span { width: 20px; height: 2px; background: currentColor; border-radius: 2px; display: block; }
.m-nav__cart {
  position: relative; width: var(--m-touch); height: var(--m-touch);
  display: grid; place-content: center; text-decoration: none; border-radius: var(--m-r-s);
}
.m-nav__count {
  position: absolute; top: 3px; inset-inline-end: 1px;
  min-width: 18px; height: 18px; padding-inline: 4px;
  border-radius: var(--m-r-pill);
  background: var(--m-primary); color: var(--m-on-primary);
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---------- Drawer ---------- */
.m-drawer {
  position: fixed; inset-block: 0; inset-inline-start: 0;
  width: min(330px, 86vw); z-index: 60;
  background: var(--m-bg);
  box-shadow: var(--m-shadow);
  display: flex; flex-direction: column;
  overflow-y: auto;
  /* Closed by default. Never rely on [hidden]: any display rule beats it. */
  --m-drawer-x: 100%; /* RTL: parked off the RIGHT edge (v0.4 had the sign inverted — it slid in from the left) */
  transform: translateX(var(--m-drawer-x));
  visibility: hidden;
  transition:
    transform var(--m-t-base) var(--m-ease-exit),
    visibility 0s var(--m-t-base);
}
html[dir="ltr"] .m-drawer { --m-drawer-x: -100%; }
@media (min-width: 800px) { .m-drawer { width: 360px; } }
.m-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform var(--m-t-base) var(--m-ease),
    visibility 0s;
}
.m-drawer__close {
  align-self: flex-end;
  width: var(--m-touch); height: var(--m-touch);
  margin: var(--m-sp-2);
  background: none; border: 0; font-size: 26px; line-height: 1;
  border-radius: var(--m-r-s);
}
.m-drawer__list { list-style: none; margin: 0; padding: 0 var(--m-sp-5) var(--m-sp-6); }
.m-drawer__list a {
  display: block; padding: 14px 0;
  text-decoration: none; font-size: var(--m-fs-m);
  border-bottom: 1px solid var(--m-line);
}
.m-drawer__list li:first-child a { font-family: var(--m-font-display); font-weight: 700; color: var(--m-primary); }
.m-scrim {
  position: fixed; inset: 0; z-index: 50;
  background: color-mix(in srgb, var(--m-text) 42%, transparent);
  opacity: 0; visibility: hidden;
  transition: opacity var(--m-t-base) var(--m-ease), visibility 0s var(--m-t-base);
}
.m-scrim.is-open { opacity: 1; visibility: visible; transition: opacity var(--m-t-base) var(--m-ease), visibility 0s; }

/* ---------- Buttons ---------- */
.m-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--m-touch);
  padding: 11px 26px;
  border-radius: var(--m-r-s);
  border: 1px solid transparent;
  font-weight: 700; font-size: var(--m-fs-base);
  text-decoration: none; text-align: center;
  transition: transform var(--m-t-fast) var(--m-ease), box-shadow var(--m-t-fast) var(--m-ease), background-color var(--m-t-fast) var(--m-ease);
}
.m-btn:active { transform: scale(.975); }
.m-btn--primary { background: var(--m-primary); color: var(--m-on-primary); box-shadow: var(--m-shadow-s); }
.m-btn--primary:hover { background: color-mix(in srgb, var(--m-primary) 88%, var(--m-text) 12%); }
.m-btn--ghost { background: transparent; border-color: var(--m-line-strong); }
.m-btn--light { background: var(--m-bg); color: var(--m-text); }
.m-btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* ---------- Heroes ---------- */
.m-hero--split {
  display: grid; gap: var(--m-sp-5); align-items: center;
  max-width: var(--m-container); margin-inline: auto;
  padding: var(--m-sp-5) var(--m-sp-4) var(--m-sp-6);
}
.m-hero--split .m-hero__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--m-r-l);
  box-shadow: var(--m-shadow), var(--m-ring);
}
.m-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--m-fs-xs); font-weight: 700;
  color: var(--m-primary);
  background: var(--m-primary-soft);
  padding: 6px 14px; border-radius: var(--m-r-pill);
  margin-bottom: var(--m-sp-3);
}
.m-hero__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--m-primary);
}
.m-hero__title { font-size: var(--m-fs-xxl); }
.m-hero__sub { color: var(--m-muted); font-size: var(--m-fs-m); max-width: 34ch; margin-bottom: var(--m-sp-4); }
.m-hero__actions { display: flex; align-items: center; gap: var(--m-sp-4); flex-wrap: wrap; }
.m-hero .m-strip { margin-top: var(--m-sp-4); }

@media (min-width: 800px) {
  .m-hero--split { grid-template-columns: 1fr 1.05fr; padding-block: var(--m-sp-6) var(--m-sp-7); }
  .m-hero--split .m-hero__body { order: -1; padding-inline-end: var(--m-sp-5); }
}

.m-hero--bleed {
  min-height: 64vh;
  background-size: cover; background-position: center;
  background-color: var(--m-surface-2);
  display: grid; align-items: end;
}
.m-hero--bleed-plain {
  background-image:
    radial-gradient(80% 90% at 15% 0%, color-mix(in srgb, var(--m-accent) 30%, transparent), transparent 60%),
    linear-gradient(200deg, color-mix(in srgb, var(--m-primary) 88%, var(--m-text)), var(--m-primary));
}
.m-hero--bleed .m-hero__overlay {
  width: 100%;
  background: linear-gradient(to top, color-mix(in srgb, var(--m-text) 72%, transparent), transparent 78%);
  color: #fff;
  padding: var(--m-sp-8) var(--m-sp-4) var(--m-sp-6);
}
.m-hero--bleed .m-hero__inner { max-width: var(--m-container); margin-inline: auto; }
.m-hero--bleed .m-hero__sub { color: color-mix(in srgb, #fff 86%, transparent); }

.m-hero--editorial {
  background:
    radial-gradient(90% 70% at 85% 0%, var(--m-accent-wash), transparent 60%),
    linear-gradient(180deg, var(--m-surface-2), var(--m-bg) 85%);
  text-align: center;
  padding: var(--m-sp-8) var(--m-sp-4) var(--m-sp-7);
}
.m-hero--editorial .m-hero__body { max-width: 640px; margin-inline: auto; }
.m-hero--editorial .m-hero__title { font-size: clamp(2.4rem, 9vw, 3.6rem); }
.m-hero--editorial .m-hero__sub { margin-inline: auto; }
.m-hero--editorial .m-hero__actions { justify-content: center; }

/* ---------- Product grid & cards ---------- */
.m-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: var(--m-sp-5) var(--m-sp-3);
}
@media (min-width: 800px) { .m-grid { grid-template-columns: repeat(4, 1fr); gap: var(--m-sp-6) var(--m-sp-5); } }

.m-card__link { display: block; text-decoration: none; }
.m-card__media {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--m-r);
  background: var(--m-surface-2);
  box-shadow: var(--m-ring);
}
.m-card__media img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform var(--m-t-base) var(--m-ease); }
.m-card__link:hover .m-card__media img { transform: scale(1.035); }
.m-card__link:hover .m-card__media { box-shadow: var(--m-ring), var(--m-shadow-s); }
.m-card__name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: var(--m-sp-3);
  font-size: var(--m-fs-s); line-height: 1.5;
  min-height: calc(2 * 1.5em);
}
.m-card__price { display: block; margin-top: 2px; font-weight: 700; font-family: var(--m-font-display); font-variant-numeric: tabular-nums; }
.m-card__price del { color: var(--m-muted); font-weight: 400; font-family: var(--m-font-text); font-size: .85em; margin-inline-start: 8px; }
.m-card__price ins { text-decoration: none; color: var(--m-primary); }

/* shade micro-dots on cards with colour variants */
.m-card__dots { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.m-card__dots i {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--dot);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-text) 18%, transparent);
}
.m-card__dots i.is-light {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-text) 42%, transparent);
}
.m-card__dots small { font-size: var(--m-fs-xs); color: var(--m-muted); line-height: 1; }

.m-card--framed .m-card__link {
  background: var(--m-bg);
  border: 1px solid var(--m-line);
  border-radius: var(--m-r-l);
  padding: var(--m-sp-2);
  transition: border-color var(--m-t-fast) var(--m-ease), box-shadow var(--m-t-fast) var(--m-ease);
}
.m-card--framed .m-card__link:hover { border-color: var(--m-line-strong); box-shadow: var(--m-shadow-s); }
.m-card--framed .m-card__media { border-radius: var(--m-r-s); box-shadow: none; }
.m-card--framed .m-card__body { padding: var(--m-sp-2) var(--m-sp-2) var(--m-sp-1); display: block; }

.m-card--tall .m-card__link { position: relative; }
.m-card--tall .m-card__media img { aspect-ratio: 4/5; }
.m-card--tall .m-card__scrim {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: var(--m-sp-6) var(--m-sp-3) var(--m-sp-3);
  border-radius: 0 0 var(--m-r) var(--m-r);
  background: linear-gradient(to top, color-mix(in srgb, var(--m-text) 68%, transparent), transparent);
  color: #fff;
}
.m-card--tall .m-card__name { color: #fff; min-height: 0; margin-top: 0; }
.m-card--tall .m-card__price, .m-card--tall .m-card__price ins { color: #fff; }
.m-card--tall .m-card__dots { position: absolute; top: var(--m-sp-3); inset-inline-end: var(--m-sp-3); margin: 0; z-index: 2; }

.m-badge {
  position: absolute; top: var(--m-sp-2); inset-inline-start: var(--m-sp-2); z-index: 2;
  font-size: var(--m-fs-xs); font-weight: 700;
  padding: 4px 12px; border-radius: var(--m-r-pill);
}
.m-badge--sale { background: var(--m-primary); color: var(--m-on-primary); }

/* ---------- Home sections ---------- */
.m-cats__grid, .m-featured, .m-related, .m-quotes__row, .m-insta__grid, .m-story {
  max-width: var(--m-container); margin-inline: auto; padding-inline: var(--m-sp-4);
}
.m-cats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--m-sp-3); }
@media (min-width: 800px) { .m-cats__grid { grid-template-columns: repeat(4, 1fr); gap: var(--m-sp-4); } }
.m-cats__tile {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--m-r); text-decoration: none;
  background: var(--m-surface-2);
}
.m-cats__img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform var(--m-t-base) var(--m-ease); }
.m-cats__tile:hover .m-cats__img { transform: scale(1.04); }
.m-cats__ph {
  aspect-ratio: 1/1; display: grid; place-content: center;
  font-family: var(--m-font-display); font-size: 3rem; font-weight: 700;
  color: var(--m-primary); background: var(--m-accent-wash);
}
.m-cats__name {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: var(--m-sp-5) var(--m-sp-3) var(--m-sp-3);
  background: linear-gradient(to top, color-mix(in srgb, var(--m-text) 62%, transparent), transparent);
  color: #fff; font-weight: 700;
}

.m-story { display: grid; gap: var(--m-sp-5); align-items: center; }
@media (min-width: 800px) { .m-story { grid-template-columns: 1fr 1.1fr; } }
.m-story__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--m-r-l); box-shadow: var(--m-ring); }
.m-story .m-section__title { text-align: start; }
.m-story .m-section__title::after { margin-inline: 0; }
.m-story__text { color: var(--m-muted); max-width: 52ch; }

.m-trust { background: var(--m-surface); border-block: 1px solid var(--m-line); padding-block: var(--m-sp-6); }
.m-trust__list {
  list-style: none; margin: 0 auto; padding: 0 var(--m-sp-4);
  max-width: var(--m-container);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--m-sp-4) var(--m-sp-5);
}
@media (min-width: 800px) { .m-trust__list { grid-template-columns: repeat(4, 1fr); } }
.m-trust__list li { display: flex; align-items: center; gap: var(--m-sp-3); font-size: var(--m-fs-s); font-weight: 400; }
.m-trust__list svg {
  flex: none; color: var(--m-primary);
  background: var(--m-primary-soft);
  width: 40px; height: 40px; padding: 9px; border-radius: var(--m-r-pill);
}

.m-quotes__row { display: grid; gap: var(--m-sp-4); }
@media (min-width: 800px) { .m-quotes__row { grid-template-columns: repeat(3, 1fr); } }
.m-quote {
  margin: 0; position: relative;
  background: var(--m-bg); border: 1px solid var(--m-line); border-radius: var(--m-r-l);
  padding: var(--m-sp-5);
}
.m-quote::before {
  content: "\201D";
  position: absolute; top: 6px; inset-inline-start: var(--m-sp-4);
  font-family: var(--m-font-display); font-size: 3rem; line-height: 1;
  color: var(--m-accent);
}
.m-quote blockquote { margin: var(--m-sp-4) 0 var(--m-sp-3); }
.m-quote figcaption { color: var(--m-muted); font-size: var(--m-fs-s); }

.m-insta__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--m-sp-2); }
.m-insta__grid a { border-radius: var(--m-r-s); overflow: hidden; display: block; }
.m-insta__grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform var(--m-t-base) var(--m-ease); }
.m-insta__grid a:hover img { transform: scale(1.05); }
.m-insta .m-section__title a { text-decoration: none; color: var(--m-primary); }

/* ---------- Shop ---------- */
.m-shop { padding-block: var(--m-sp-5) var(--m-sp-7); }
.m-shop__head { margin-bottom: var(--m-sp-5); }
.m-chips {
  display: flex; gap: var(--m-sp-2); overflow-x: auto;
  padding: 2px 2px var(--m-sp-3);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
  mask-image: linear-gradient(to left, transparent, #000 28px, #000 calc(100% - 28px), transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 28px, #000 calc(100% - 28px), transparent);
}
.m-chips::-webkit-scrollbar { display: none; }
.m-chip {
  flex: none; padding: 8px 18px;
  border: 1px solid var(--m-line-strong); border-radius: var(--m-r-pill);
  background: var(--m-bg); text-decoration: none; font-size: var(--m-fs-s); font-weight: 400;
  transition: background-color var(--m-t-fast) var(--m-ease), color var(--m-t-fast) var(--m-ease);
}
.m-chip:hover { background: var(--m-surface-2); }
.m-chip.is-active { background: var(--m-primary); border-color: var(--m-primary); color: var(--m-on-primary); }
.m-empty {
  text-align: center; color: var(--m-muted);
  padding-block: var(--m-sp-8);
  display: grid; justify-items: center; gap: var(--m-sp-3);
}
.m-empty__title {
  font-family: var(--m-font-display); font-weight: 700;
  font-size: var(--m-fs-l); color: var(--m-text); margin: 0;
}
.m-empty .m-btn { margin-top: var(--m-sp-2); }

.woocommerce-pagination { text-align: center; margin-top: var(--m-sp-7); }
.woocommerce-pagination ul { list-style: none; display: inline-flex; gap: var(--m-sp-2); padding: 0; margin: 0; }
.woocommerce-pagination a, .woocommerce-pagination span {
  display: grid; place-content: center;
  min-width: var(--m-touch); height: var(--m-touch);
  border: 1px solid var(--m-line); border-radius: var(--m-r-s);
  text-decoration: none; font-weight: 400;
}
.woocommerce-pagination .current { background: var(--m-primary); border-color: var(--m-primary); color: var(--m-on-primary); }

/* ---------- Product page ---------- */
.m-product {
  display: grid; gap: var(--m-sp-5);
  max-width: var(--m-container); margin-inline: auto;
  padding: var(--m-sp-4) var(--m-sp-4) var(--m-sp-6);
}
@media (min-width: 800px) { .m-product { grid-template-columns: 1.05fr 1fr; gap: var(--m-sp-7); align-items: start; padding-top: var(--m-sp-6); } }

.m-product__track {
  display: flex; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  border-radius: var(--m-r-l);
  box-shadow: var(--m-ring);
  scrollbar-width: none;
}
.m-product__track::-webkit-scrollbar { display: none; }
.m-product__slide { flex: 0 0 100%; scroll-snap-align: center; margin: 0; }
.m-product__slide img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.m-product__thumbs { display: flex; gap: var(--m-sp-2); margin-top: var(--m-sp-3); overflow-x: auto; scrollbar-width: none; }
.m-product__thumbs::-webkit-scrollbar { display: none; }
.m-product__thumb {
  flex: none; width: 62px; height: 62px; padding: 0;
  border: 2px solid transparent; border-radius: var(--m-r-s);
  overflow: hidden; background: none; opacity: .75;
  transition: opacity var(--m-t-fast) var(--m-ease), border-color var(--m-t-fast) var(--m-ease);
}
.m-product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.m-product__thumb.is-active { border-color: var(--m-primary); opacity: 1; }

.m-product__title { font-size: var(--m-fs-xl); margin-bottom: var(--m-sp-2); }
.m-product__price { font-family: var(--m-font-display); font-size: var(--m-fs-l); font-weight: 700; margin-bottom: var(--m-sp-3); font-variant-numeric: tabular-nums; }
.m-product__price del { color: var(--m-muted); font-family: var(--m-font-text); font-weight: 400; font-size: var(--m-fs-base); margin-inline-start: 10px; }
.m-product__price ins { text-decoration: none; color: var(--m-primary); }
.m-product__delivery {
  display: flex; align-items: center; gap: 10px;
  color: var(--m-muted); font-size: var(--m-fs-s);
  margin: calc(-1 * var(--m-sp-2)) 0 var(--m-sp-4);
}
.m-product__delivery::before {
  content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%;
  background: var(--m-accent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-text) 22%, transparent);
}
.m-product__excerpt { color: var(--m-muted); margin-bottom: var(--m-sp-4); }

.m-swatches { border: 0; padding: 0; margin: 0 0 var(--m-sp-5); }
.m-swatches__label { font-weight: 700; padding: 0; margin-bottom: var(--m-sp-3); display: block; }
.m-swatches__chosen { color: var(--m-muted); font-weight: 400; }
.m-swatches__row { display: flex; flex-wrap: wrap; gap: var(--m-sp-3); }
.m-swatch { position: relative; }
.m-swatch input { position: absolute; opacity: 0; inset: 0; }
.m-swatch__chip {
  display: block; width: 42px; height: 42px; border-radius: 50%;
  background: var(--chip);
  box-shadow: inset 0 0 0 2px var(--m-bg), 0 0 0 1.5px var(--m-line-strong);
  transition: box-shadow var(--m-t-fast) var(--m-ease), transform var(--m-t-fast) var(--m-ease);
}
.m-swatch:hover .m-swatch__chip { transform: scale(1.06); }
.m-swatch:active .m-swatch__chip {
  transform: scale(.92);
  box-shadow: inset 0 2px 6px color-mix(in srgb, var(--m-text) 35%, transparent),
              inset 0 0 0 2px var(--m-bg), 0 0 0 1.5px var(--m-line-strong);
}
/* Near-white shades need a firmer ring or they vanish into porcelain. */
.m-swatch__chip--light {
  box-shadow: inset 0 0 0 2px var(--m-bg),
              0 0 0 1.5px color-mix(in srgb, var(--m-text) 45%, transparent);
}
.m-swatch input:checked + .m-swatch__chip--light {
  box-shadow: inset 0 0 0 3px var(--m-bg), 0 0 0 2.5px var(--m-primary);
}
.m-swatch input:checked + .m-swatch__chip {
  box-shadow: inset 0 0 0 3px var(--m-bg), 0 0 0 2.5px var(--m-primary);
}
.m-swatch input:focus-visible + .m-swatch__chip,
.m-swatch input:focus-visible + .m-swatch__pill { outline: 2px solid var(--m-primary); outline-offset: 3px; }
.m-swatch__pill {
  display: block; padding: 9px 18px; min-height: 42px;
  border: 1.5px solid var(--m-line-strong); border-radius: var(--m-r-pill);
  font-weight: 400;
  transition: background-color var(--m-t-fast) var(--m-ease), border-color var(--m-t-fast) var(--m-ease), color var(--m-t-fast) var(--m-ease);
}
.m-swatch input:checked + .m-swatch__pill { background: var(--m-primary); border-color: var(--m-primary); color: var(--m-on-primary); }

.m-buy__row { display: flex; gap: var(--m-sp-3); align-items: stretch; margin-block: var(--m-sp-4) var(--m-sp-5); }
.m-buy__submit {
  flex: 1; min-inline-size: 0;
  min-height: 52px; font-size: var(--m-fs-m);
  white-space: nowrap; /* «أضيفي للسلة» never wraps into a square again */
}
.m-buy__stock { color: var(--m-primary); font-size: var(--m-fs-s); font-weight: 700; }

/* Quantity: buttons-plus-field, one quiet pill; the CTA keeps the stage */
.m-qty {
  flex: none; display: flex; align-items: stretch;
  border: 1.5px solid var(--m-line-strong); border-radius: var(--m-r-s);
  background: var(--m-bg); overflow: hidden;
}
.m-qty input {
  width: 3.2ch; min-height: 0; min-width: 44px;
  text-align: center; border: 0; padding: 0;
  background: transparent; color: var(--m-text);
  -moz-appearance: textfield; appearance: textfield;
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.m-qty input::-webkit-outer-spin-button, .m-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.m-qty input:focus { outline: none; box-shadow: none; background: var(--m-surface-2); }
.m-qty__btn {
  width: var(--m-touch); min-height: 48px;
  border: 0; background: transparent;
  font-size: var(--m-fs-l); line-height: 1; color: var(--m-muted);
  transition: background-color var(--m-t-fast) var(--m-ease), color var(--m-t-fast) var(--m-ease);
}
.m-qty__btn:hover { background: var(--m-surface); color: var(--m-text); }
.m-qty__btn:active { background: var(--m-surface-2); }
.m-qty__btn:disabled { opacity: .3; background: transparent; cursor: default; }

.m-whatsapp {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: var(--m-touch); padding: 10px 20px;
  border: 1.5px solid #1faa53; border-radius: var(--m-r-s);
  color: #157a3c; font-weight: 700; text-decoration: none;
  transition: background-color var(--m-t-fast) var(--m-ease);
}
.m-whatsapp:hover { background: #f0faf3; }
body > .m-whatsapp {
  position: fixed; bottom: var(--m-sp-4); inset-inline-start: var(--m-sp-4); z-index: 30;
  background: #1faa53; color: #fff; border: 0; box-shadow: var(--m-shadow);
}
@media (max-width: 799px) {
  body.single-product > .m-whatsapp { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

.m-product__trust {
  list-style: none; margin: var(--m-sp-5) 0; padding: var(--m-sp-4) 0;
  border-block: 1px solid var(--m-line);
  display: grid; gap: var(--m-sp-2);
  font-size: var(--m-fs-s); color: var(--m-muted);
}
.m-product__trust li { padding-inline-start: 22px; position: relative; }
.m-product__trust li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--m-accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-text) 22%, transparent);
}
.m-product__desc { margin-top: var(--m-sp-4); color: color-mix(in srgb, var(--m-text) 88%, var(--m-bg)); }

.m-sticky {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 35;
  display: flex; align-items: center; gap: var(--m-sp-3);
  padding: var(--m-sp-3) var(--m-sp-4);
  padding-bottom: calc(var(--m-sp-3) + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--m-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--m-line);
  transform: translateY(105%);
  visibility: hidden;
  transition: transform var(--m-t-base) var(--m-ease-exit), visibility 0s var(--m-t-base);
}
.m-sticky.is-on {
  transform: translateY(0);
  visibility: visible;
  transition: transform var(--m-t-base) var(--m-ease), visibility 0s;
}
.m-sticky .m-btn { flex: 1; min-height: 48px; white-space: nowrap; }
.m-sticky__price { font-family: var(--m-font-display); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
@media (min-width: 800px) { .m-sticky { display: none; } }

/* Buy buttons while the add-to-cart submit navigates */
.m-btn.is-busy { opacity: .7; }

/* Variation image swap: a breath, not a blink */
.m-product__slide img { transition: opacity var(--m-t-base) var(--m-ease); }
.m-product__slide img.is-swapping { opacity: .3; }

/* ---------- Nudge ---------- */

/* ===================================================================
   Commerce pages — scoped to Woo's BODY classes so nothing ever leaks
   into the product page again (the v0.3 `.woocommerce` scope matched
   <body> on every shop page; that was the buy-row blow-up).
   =================================================================== */

/* Notices + price atoms: element-scoped, safe everywhere */
.woocommerce-error, .woocommerce-message, .woocommerce-info {
  list-style: none; margin: 0 0 var(--m-sp-4); padding: var(--m-sp-3) var(--m-sp-4);
  border-radius: var(--m-r-s); border: 1px solid transparent; font-size: var(--m-fs-s);
}
.woocommerce-error { background: var(--m-danger-bg); color: var(--m-danger-ink); }
.woocommerce-message, .woocommerce-info { background: var(--m-surface); border-color: var(--m-line); }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button {
  float: none; margin-inline-start: var(--m-sp-3);
  color: var(--m-primary); font-weight: 700; text-decoration: none;
}
.woocommerce-Price-amount { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* The wide canvas cart/checkout/account render on */
.m-woopage { padding-block: var(--m-sp-5) var(--m-sp-7); }
.m-woopage .m-title { margin-bottom: var(--m-sp-5); }

/* ---- Shared form language (cart + checkout + account only) ---- */
body.woocommerce-cart .form-row, body.woocommerce-checkout .form-row, body.woocommerce-account .form-row { margin: 0 0 var(--m-sp-4); }
body.woocommerce-cart .form-row label, body.woocommerce-checkout .form-row label, body.woocommerce-account .form-row label {
  display: block; font-weight: 700; font-size: var(--m-fs-s); margin-bottom: 6px;
}
body.woocommerce-checkout .form-row .required { color: var(--m-primary); text-decoration: none; }
body.woocommerce-cart input[type=text], body.woocommerce-cart input[type=number],
body.woocommerce-checkout input[type=text], body.woocommerce-checkout input[type=tel],
body.woocommerce-checkout input[type=email], body.woocommerce-checkout input[type=password],
body.woocommerce-checkout textarea, body.woocommerce-checkout select,
body.woocommerce-account input[type=text], body.woocommerce-account input[type=tel],
body.woocommerce-account input[type=email], body.woocommerce-account input[type=password] {
  width: 100%; min-height: var(--m-touch);
  padding: 10px 14px;
  border: 1.5px solid var(--m-line-strong); border-radius: var(--m-r-s);
  background: var(--m-bg); color: var(--m-text);
  transition: border-color var(--m-t-fast) var(--m-ease), box-shadow var(--m-t-fast) var(--m-ease);
}
body.woocommerce-cart input:focus, body.woocommerce-checkout input:focus,
body.woocommerce-checkout textarea:focus, body.woocommerce-checkout select:focus,
body.woocommerce-account input:focus {
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-primary) 18%, transparent);
  outline: none;
}
body.woocommerce-checkout ::placeholder { color: var(--m-muted); opacity: .8; }
body.woocommerce-checkout select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236b6066' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 14px center;
  padding-inline-end: 14px; padding-inline-start: 38px;
}
html[dir="ltr"] body.woocommerce-checkout select { background-position: right 14px center; padding-inline-start: 14px; padding-inline-end: 38px; }

/* Primary commerce buttons — only on commerce pages */
body.woocommerce-cart .button, body.woocommerce-checkout .button, body.woocommerce-account .button,
.wc-proceed-to-checkout a.checkout-button, #place_order {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--m-touch);
  padding: 12px 26px; border: 0; border-radius: var(--m-r-s);
  background: var(--m-primary); color: var(--m-on-primary);
  font-weight: 700; text-decoration: none; text-align: center;
  box-shadow: var(--m-shadow-s);
  transition: background-color var(--m-t-fast) var(--m-ease), transform var(--m-t-fast) var(--m-ease);
}
body.woocommerce-cart .button:hover, body.woocommerce-checkout .button:hover,
.wc-proceed-to-checkout a.checkout-button:hover, #place_order:hover {
  background: color-mix(in srgb, var(--m-primary) 88%, var(--m-text) 12%);
}
body.woocommerce-cart .button:active, #place_order:active { transform: scale(.985); }

/* ---- Cart ---- */
body.woocommerce-cart table.shop_table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--m-line); border-radius: var(--m-r); overflow: hidden;
}
body.woocommerce-cart table.shop_table th, body.woocommerce-cart table.shop_table td {
  padding: var(--m-sp-3) var(--m-sp-4); text-align: start;
  border-bottom: 1px solid var(--m-line); background: var(--m-bg); vertical-align: middle;
}
body.woocommerce-cart table.shop_table thead th { background: var(--m-surface); font-size: var(--m-fs-s); }
body.woocommerce-cart .product-thumbnail img { width: 64px; border-radius: var(--m-r-s); }
body.woocommerce-cart td.product-name a { text-decoration: none; }
body.woocommerce-cart a.remove {
  display: grid; place-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  color: var(--m-muted) !important; text-decoration: none;
  font-size: 20px; line-height: 1;
  transition: background-color var(--m-t-fast) var(--m-ease), color var(--m-t-fast) var(--m-ease);
}
body.woocommerce-cart a.remove:hover { background: var(--m-danger-bg); color: var(--m-danger-ink) !important; }
body.woocommerce-cart td.actions { background: var(--m-surface); }
body.woocommerce-cart td.actions .coupon { display: flex; gap: var(--m-sp-2); float: none; }
body.woocommerce-cart td.actions .coupon input { max-width: 220px; }
body.woocommerce-cart td.actions .coupon .button { background: var(--m-bg); color: var(--m-text); box-shadow: var(--m-ring); }
body.woocommerce-cart button[name="update_cart"] {
  background: transparent; box-shadow: none; color: var(--m-primary);
  margin-top: var(--m-sp-3);
}
body.woocommerce-cart button[name="update_cart"]:disabled { opacity: .45; background: transparent; }

/* Mobile: line items become cards, not a squeezed table */
@media (max-width: 699px) {
  body.woocommerce-cart table.shop_table, body.woocommerce-cart tbody { display: block; border: 0; }
  body.woocommerce-cart thead { display: none; }
  body.woocommerce-cart tr.woocommerce-cart-form__cart-item {
    display: grid;
    grid-template-columns: 76px 1fr auto;
    grid-template-areas:
      "thumb name   remove"
      "thumb price  price"
      "thumb qty    subtotal";
    gap: 4px var(--m-sp-3); align-items: center;
    border: 1px solid var(--m-line); border-radius: var(--m-r);
    padding: var(--m-sp-3); margin-bottom: var(--m-sp-3);
    background: var(--m-bg);
  }
  body.woocommerce-cart tr.woocommerce-cart-form__cart-item td { display: block; padding: 0; border: 0; background: none; }
  body.woocommerce-cart td.product-thumbnail { grid-area: thumb; }
  body.woocommerce-cart td.product-thumbnail img { width: 76px; }
  body.woocommerce-cart td.product-name { grid-area: name; font-size: var(--m-fs-s); line-height: 1.5; }
  body.woocommerce-cart td.product-remove { grid-area: remove; justify-self: end; }
  body.woocommerce-cart td.product-price { grid-area: price; color: var(--m-muted); font-size: var(--m-fs-s); }
  body.woocommerce-cart td.product-quantity { grid-area: qty; }
  body.woocommerce-cart td.product-subtotal { grid-area: subtotal; justify-self: end; font-weight: 700; font-family: var(--m-font-display); }
  body.woocommerce-cart td.actions { display: block; border: 0; border-radius: var(--m-r); padding: var(--m-sp-3); }
}

body.woocommerce-cart .cart_collaterals {
  margin-top: var(--m-sp-5);
  border: 1px solid var(--m-line); border-radius: var(--m-r-l);
  background: var(--m-surface); padding: var(--m-sp-5);
}
body.woocommerce-cart .cart_totals h2 { font-size: var(--m-fs-m); margin: 0 0 var(--m-sp-3); }
body.woocommerce-cart .cart_totals table { width: 100%; }
body.woocommerce-cart .cart_totals th, body.woocommerce-cart .cart_totals td {
  padding: 8px 0; text-align: start; border-bottom: 1px solid var(--m-line); background: none;
}
body.woocommerce-cart .cart_totals tr:last-child > * { border-bottom: 0; font-family: var(--m-font-display); font-size: var(--m-fs-m); }
body.woocommerce-cart .wc-proceed-to-checkout { padding-top: var(--m-sp-4); }
body.woocommerce-cart .wc-proceed-to-checkout a.checkout-button { width: 100%; min-height: 52px; font-size: var(--m-fs-m); }

/* Empty cart */
.cart-empty.woocommerce-info {
  background: transparent; border: 0; text-align: center;
  font-family: var(--m-font-display); font-weight: 700;
  font-size: var(--m-fs-l); color: var(--m-text);
  padding-block: var(--m-sp-7) var(--m-sp-2);
}
.return-to-shop { text-align: center; margin-bottom: var(--m-sp-7); }

/* ---- Checkout: one calm column ---- */
body.woocommerce-checkout #customer_details h3, body.woocommerce-checkout #order_review_heading {
  font-size: var(--m-fs-m); margin-top: var(--m-sp-5);
}
@media (min-width: 560px) {
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper {
    display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--m-sp-4);
  }
  /* Single column wins (Baymard) — only the name pair shares a row */
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > * { grid-column: 1 / -1; }
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-first { grid-column: 1; }
  body.woocommerce-checkout .woocommerce-billing-fields__field-wrapper > .form-row-last { grid-column: 2; }
}
body.woocommerce-checkout table.shop_table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--m-line); border-radius: var(--m-r); overflow: hidden;
}
body.woocommerce-checkout table.shop_table th, body.woocommerce-checkout table.shop_table td {
  padding: var(--m-sp-3) var(--m-sp-4); text-align: start;
  border-bottom: 1px solid var(--m-line); background: var(--m-bg);
}
body.woocommerce-checkout table.shop_table tr:last-child > * { border-bottom: 0; }
body.woocommerce-checkout table.shop_table tfoot .order-total td,
body.woocommerce-checkout table.shop_table tfoot .order-total th {
  font-family: var(--m-font-display); font-size: var(--m-fs-m); background: var(--m-surface);
}

#payment {
  background: var(--m-surface); border: 1px solid var(--m-line);
  border-radius: var(--m-r-l); padding: var(--m-sp-5); margin-top: var(--m-sp-4);
}
#payment ul.wc_payment_methods { list-style: none; margin: 0 0 var(--m-sp-4); padding: 0; }
#payment .wc_payment_method { padding: var(--m-sp-2) 0; }
#payment .wc_payment_method label { font-weight: 700; }
#payment .payment_box {
  background: var(--m-bg); border-radius: var(--m-r-s);
  padding: var(--m-sp-3) var(--m-sp-4); margin-top: var(--m-sp-2);
  font-size: var(--m-fs-s); color: var(--m-muted);
}
#payment input[type=radio] { accent-color: var(--m-primary); margin-inline-end: 8px; }
#place_order { width: 100%; min-height: 54px; font-size: var(--m-fs-m); }
.matjari-delivery-estimate { color: var(--m-muted); font-size: var(--m-fs-s); margin: 0 0 var(--m-sp-3); }
.matjari-hidden { display: none !important; }

/* Checkout in flight: on-brand, never a raw white flash */
body.woocommerce-checkout .blockUI.blockOverlay, body.woocommerce-cart .blockUI.blockOverlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--m-bg) 70%, transparent) !important;
  backdrop-filter: blur(2px);
  opacity: 1 !important;
}
body.woocommerce-checkout .blockUI.blockOverlay::after, body.woocommerce-cart .blockUI.blockOverlay::after {
  content: ""; position: absolute; inset: 0; margin: auto;
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid var(--m-line-strong);
  border-top-color: var(--m-primary);
  animation: m-spin 0.7s linear infinite;
}
@keyframes m-spin { to { transform: rotate(360deg); } }

/* ---- Order received ---- */
.woocommerce-thankyou-order-received {
  font-family: var(--m-font-display); font-size: var(--m-fs-l); font-weight: 700;
  color: var(--m-primary); text-align: center; margin-block: var(--m-sp-5);
}
.woocommerce-order-overview {
  list-style: none; padding: var(--m-sp-4); margin: 0 0 var(--m-sp-5);
  display: grid; gap: var(--m-sp-2);
  background: var(--m-surface); border-radius: var(--m-r); border: 1px solid var(--m-line);
  font-size: var(--m-fs-s);
}

/* ---------- Footer ---------- */
.m-footer { margin-top: var(--m-sp-8); background: var(--m-surface); border-top: 1px solid var(--m-line); }
.m-footer__inner {
  max-width: var(--m-container); margin-inline: auto;
  padding: var(--m-sp-7) var(--m-sp-4);
  text-align: center;
  display: grid; justify-items: center; gap: var(--m-sp-3);
}
.m-footer__brand { font-family: var(--m-font-display); font-weight: 700; font-size: var(--m-fs-l); color: var(--m-primary); margin: 0; }
.m-footer__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--m-sp-2) var(--m-sp-5);
  color: var(--m-muted); font-size: var(--m-fs-s);
}

/* ---------- Content pages (About, policies — the merchant's own words) -- */
.m-page { max-width: 72ch; padding-block: var(--m-sp-6) var(--m-sp-7); }
.m-page .m-title {
  position: relative; padding-bottom: var(--m-sp-3); margin-bottom: var(--m-sp-5);
}
.m-page .m-title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 74px; height: 8px;
  background:
    radial-gradient(circle 4px at 5px 4px,  var(--m-primary) 98%, transparent),
    radial-gradient(circle 4px at 21px 4px, color-mix(in srgb, var(--m-primary) 70%, var(--m-accent)) 98%, transparent),
    radial-gradient(circle 4px at 37px 4px, color-mix(in srgb, var(--m-primary) 40%, var(--m-accent)) 98%, transparent),
    radial-gradient(circle 4px at 53px 4px, var(--m-accent) 98%, transparent),
    radial-gradient(circle 4px at 69px 4px, color-mix(in srgb, var(--m-accent) 60%, var(--m-bg)) 98%, transparent);
  background-repeat: no-repeat;
}
.m-page h2 { font-size: var(--m-fs-l); margin-top: var(--m-sp-6); }
.m-page h3 { font-size: var(--m-fs-m); margin-top: var(--m-sp-5); }
.m-page p, .m-page li { font-size: var(--m-fs-m); line-height: 1.9; }
.m-page a { color: var(--m-primary); text-underline-offset: 4px; }
.m-page img { border-radius: var(--m-r-l); box-shadow: var(--m-ring); margin-block: var(--m-sp-4); }
.m-page ul, .m-page ol { padding-inline-start: var(--m-sp-5); }
.m-page blockquote {
  margin: var(--m-sp-5) 0; padding: var(--m-sp-3) var(--m-sp-5);
  border-inline-start: 3px solid var(--m-accent);
  background: var(--m-surface); border-radius: 0 var(--m-r-s) var(--m-r-s) 0;
  color: var(--m-muted);
}

/* Side-logo nav: declared, not accidental */
.m-nav--side .m-nav__brand img { max-height: 34px; }
.m-nav--side .m-nav__wordmark { font-size: 1.35rem; }

/* ---------- 404 ---------- */
.m-404 { text-align: center; padding-block: var(--m-sp-8); }
.m-404 .m-btn { margin-top: var(--m-sp-3); }

/* =====================================================================
   v0.5 — the self-managed store: notices, search, mini-cart, popups,
   the pro footer, and the shared section library.
   ===================================================================== */

/* ---------- Store notice (vacation / service lock) ---------- */
.m-notice {
  background: var(--m-surface-2);
  border-block: 1px solid var(--m-line);
  text-align: center;
  padding: var(--m-sp-4);
}
.m-notice p { margin: 0; font-weight: 700; }
.m-notice__date { display: block; font-weight: 400; color: var(--m-muted); font-size: var(--m-fs-s); margin-top: 2px; }
.m-notice--lock { background: var(--m-primary-soft); }

/* ---------- Drawer search ---------- */
.m-drawer__search {
  display: flex; gap: 8px;
  padding: var(--m-sp-4) var(--m-sp-4) var(--m-sp-2);
}
.m-drawer__search input[type="search"] {
  flex: 1; min-height: var(--m-touch);
  padding: 8px 14px;
  border: 1.5px solid var(--m-line-strong); border-radius: var(--m-r-pill);
  background: var(--m-bg); color: var(--m-text); font: inherit;
  transition: border-color var(--m-t-fast) var(--m-ease), box-shadow var(--m-t-fast) var(--m-ease);
}
.m-drawer__search input:focus {
  outline: none; border-color: var(--m-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-primary) 16%, transparent);
}
.m-drawer__search button {
  width: var(--m-touch); border: 0; border-radius: var(--m-r-pill);
  background: var(--m-primary-soft); color: var(--m-primary); cursor: pointer;
  display: grid; place-content: center;
  transition: background-color var(--m-t-fast) var(--m-ease);
}
.m-drawer__search button:hover { background: color-mix(in srgb, var(--m-primary) 18%, var(--m-bg)); }
.m-drawer__page a { color: var(--m-muted); }

/* ---------- Promo countdown chip ---------- */
.m-countdown {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  background: color-mix(in srgb, var(--m-on-primary) 16%, transparent);
  border-radius: var(--m-r-pill);
  padding: 1px 10px;
  margin-inline-start: 8px;
  font-size: var(--m-fs-xs);
}
.m-countdown:empty { display: none; }

/* ---------- Mini-cart drawer ---------- */
.m-minicart {
  position: fixed; inset-block: 0; inset-inline-start: 0;
  width: min(370px, 92vw); z-index: 70;
  background: var(--m-bg);
  box-shadow: var(--m-shadow);
  display: flex; flex-direction: column;
  --m-drawer-x: 100%;
  transform: translateX(var(--m-drawer-x));
  visibility: hidden;
  transition: transform var(--m-t-base) var(--m-ease-exit), visibility 0s var(--m-t-base);
}
html[dir="ltr"] .m-minicart { --m-drawer-x: -100%; }
.m-minicart.is-open {
  transform: translateX(0); visibility: visible;
  transition: transform var(--m-t-base) var(--m-ease), visibility 0s;
}
.m-scrim--mini { z-index: 65; }
.m-minicart__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--m-sp-4) var(--m-sp-5);
  border-bottom: 1px solid var(--m-line);
  font-family: var(--m-font-display); font-size: var(--m-fs-m);
}
.m-minicart__close {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--m-surface); color: var(--m-text);
  font-size: 22px; line-height: 1; cursor: pointer;
  transition: background-color var(--m-t-fast) var(--m-ease);
}
.m-minicart__close:hover { background: var(--m-surface-2); }
#m-minicart-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.m-minicart__empty { text-align: center; color: var(--m-muted); padding: var(--m-sp-8) var(--m-sp-5); display: grid; justify-items: center; gap: var(--m-sp-3); }

.m-freebar { padding: var(--m-sp-3) var(--m-sp-5) 0; }
.m-freebar p { margin: 0 0 6px; font-size: var(--m-fs-s); font-weight: 700; color: var(--m-primary); }
.m-freebar.is-done p { color: var(--m-success-ink, var(--m-primary)); }
.m-freebar__track {
  display: block; height: 7px; border-radius: 4px;
  background: var(--m-surface-2); overflow: hidden;
}
.m-freebar__track i {
  display: block; block-size: 100%;
  background: linear-gradient(90deg, var(--m-primary), var(--m-accent));
  border-radius: 4px;
  transition: inline-size var(--m-t-base) var(--m-ease);
}

.m-minicart__items {
  list-style: none; margin: 0; padding: var(--m-sp-3) var(--m-sp-5);
  overflow-y: auto; flex: 1;
  display: flex; flex-direction: column; gap: var(--m-sp-3);
}
.m-minicart__item { display: flex; gap: var(--m-sp-3); align-items: center; }
.m-minicart__thumb img { width: 58px; height: 58px; object-fit: cover; border-radius: var(--m-r-s); box-shadow: var(--m-ring); }
.m-minicart__meta { flex: 1; min-width: 0; font-size: var(--m-fs-s); line-height: 1.55; }
.m-minicart__name { display: block; font-weight: 700; }
.m-minicart__variant { display: block; color: var(--m-muted); font-size: var(--m-fs-xs); }
.m-minicart__line { display: block; color: var(--m-muted); font-variant-numeric: tabular-nums; }
.m-minicart__remove {
  width: 32px; height: 32px; display: grid; place-content: center; flex: none;
  border-radius: 50%; color: var(--m-muted); text-decoration: none; font-size: 18px;
  transition: background-color var(--m-t-fast) var(--m-ease), color var(--m-t-fast) var(--m-ease), opacity var(--m-t-fast) var(--m-ease);
}
.m-minicart__remove:hover { background: var(--m-danger-bg); color: var(--m-danger-ink); }
.m-minicart__foot {
  padding: var(--m-sp-4) var(--m-sp-5) calc(var(--m-sp-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--m-line);
  display: grid; gap: var(--m-sp-3);
}
.m-minicart__subtotal { display: flex; justify-content: space-between; margin: 0; font-family: var(--m-font-display); font-weight: 700; font-size: var(--m-fs-m); }
.m-minicart__checkout { min-height: 50px; }
.m-minicart__cartlink { text-align: center; color: var(--m-muted); font-size: var(--m-fs-s); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Popups: sheet / card / banner ---------- */
.m-popup { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.m-popup[hidden] { display: none; }
.m-popup__panel {
  position: absolute; pointer-events: auto;
  background: var(--m-bg); box-shadow: var(--m-shadow);
  transition: transform var(--m-t-base) var(--m-ease), opacity var(--m-t-base) var(--m-ease);
}
.m-popup__close {
  position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--m-bg) 82%, var(--m-text));
  color: var(--m-bg); font-size: 20px; line-height: 1; cursor: pointer;
}
.m-popup__img { width: 100%; max-height: 190px; object-fit: cover; display: block; }
.m-popup__body { padding: var(--m-sp-5); display: grid; gap: var(--m-sp-2); justify-items: start; }
.m-popup__heading { margin: 0; font-family: var(--m-font-display); font-weight: 700; font-size: var(--m-fs-l); }
.m-popup__text { margin: 0; color: var(--m-muted); }

.m-popup--sheet .m-popup__panel {
  inset-inline: 0; bottom: 0;
  border-radius: var(--m-r-l) var(--m-r-l) 0 0;
  transform: translateY(102%);
  padding-bottom: env(safe-area-inset-bottom);
}
.m-popup--sheet.is-open .m-popup__panel { transform: translateY(0); }
@media (min-width: 700px) { .m-popup--sheet .m-popup__panel { inset-inline: auto; inset-inline-start: var(--m-sp-5); bottom: var(--m-sp-5); width: 400px; border-radius: var(--m-r-l); } }

.m-popup--card .m-popup__scrim {
  position: absolute; inset: 0; pointer-events: auto;
  background: color-mix(in srgb, var(--m-text) 42%, transparent);
  opacity: 0; transition: opacity var(--m-t-base) var(--m-ease);
}
.m-popup--card.is-open .m-popup__scrim { opacity: 1; }
.m-popup--card .m-popup__panel {
  inset: 0; margin: auto; height: fit-content;
  width: min(420px, calc(100vw - 2 * var(--m-sp-4)));
  border-radius: var(--m-r-l);
  transform: scale(.94); opacity: 0;
}
.m-popup--card.is-open .m-popup__panel { transform: scale(1); opacity: 1; }

.m-popup--banner .m-popup__panel {
  inset-inline: 0; top: 0;
  transform: translateY(-102%);
  border-bottom: 1px solid var(--m-line);
}
.m-popup--banner.is-open .m-popup__panel { transform: translateY(0); }
.m-popup--banner .m-popup__body { padding: var(--m-sp-3) var(--m-sp-6) var(--m-sp-3) var(--m-sp-4); display: flex; align-items: center; gap: var(--m-sp-4); flex-wrap: wrap; }
.m-popup--banner .m-popup__heading { font-size: var(--m-fs-base); }
.m-popup--banner .m-popup__text { font-size: var(--m-fs-s); }
.m-popup--banner .m-btn { min-height: 40px; padding-block: 6px; }

/* ---------- WhatsApp buy button ---------- */
.m-btn--wa { background: #1faa53; color: #fff; box-shadow: var(--m-shadow-s); }
.m-btn--wa:hover { background: #178f45; }
.m-buy__wa { width: 100%; margin-bottom: var(--m-sp-4); gap: 9px; }
.m-product__lowstock {
  display: inline-block;
  color: var(--m-danger-ink); background: var(--m-danger-bg);
  font-size: var(--m-fs-xs); font-weight: 700;
  border-radius: var(--m-r-pill); padding: 3px 12px;
  margin: 0 0 var(--m-sp-3);
}

/* ---------- The pro footer ---------- */
.m-footer { background: var(--m-surface); border-top: 1px solid var(--m-line); margin-top: var(--m-sp-8); }
.m-footer__grid {
  max-width: var(--m-container); margin-inline: auto;
  padding: var(--m-sp-7) var(--m-sp-4) var(--m-sp-5);
  display: grid; gap: var(--m-sp-6);
}
@media (min-width: 800px) { .m-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--m-sp-5); } }
.m-footer__brand { font-family: var(--m-font-display); font-weight: 700; font-size: var(--m-fs-l); margin: 0 0 var(--m-sp-2); }
.m-footer__tagline { color: var(--m-muted); margin: var(--m-sp-2) 0 0; max-width: 34ch; }
.m-footer__head { font-weight: 700; font-size: var(--m-fs-s); margin: 0 0 var(--m-sp-2); }
.m-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.m-footer__col a { color: var(--m-muted); text-decoration: none; transition: color var(--m-t-fast) var(--m-ease); }
.m-footer__col a:hover { color: var(--m-primary); }
.m-footer__plain { color: var(--m-muted); }
.m-footer__bar {
  border-top: 1px solid var(--m-line);
  display: flex; align-items: center; justify-content: space-between; gap: var(--m-sp-3); flex-wrap: wrap;
  max-width: var(--m-container); margin-inline: auto;
  padding: var(--m-sp-3) var(--m-sp-4);
  font-size: var(--m-fs-xs); color: var(--m-muted);
}
.m-footer__cod::before {
  content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--m-accent); margin-inline-end: 7px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m-text) 22%, transparent);
}
.m-footer__credit strong { color: var(--m-text); font-weight: 700; }

/* ---------- Section library ---------- */
.m-richtext { max-width: 72ch; }
.m-richtext__body { color: var(--m-muted); font-size: var(--m-fs-m); line-height: 1.9; }

.m-imgtext { display: grid; gap: var(--m-sp-5); align-items: center; }
@media (min-width: 800px) {
  .m-imgtext { grid-template-columns: 1fr 1fr; gap: var(--m-sp-7); }
  .m-imgtext--flip .m-imgtext__media { order: 2; }
}
.m-imgtext__media img { width: 100%; border-radius: var(--m-r-l); box-shadow: var(--m-ring); aspect-ratio: 4/3; object-fit: cover; background: var(--m-surface-2); }
.m-imgtext__body p { color: var(--m-muted); }
.m-imgtext__body .m-btn { margin-top: var(--m-sp-2); }

.m-trio__grid { display: grid; gap: var(--m-sp-4); }
@media (min-width: 640px) { .m-trio__grid { grid-template-columns: repeat(3, 1fr); } }
.m-trio__cell {
  text-align: center; padding: var(--m-sp-5) var(--m-sp-4);
  background: var(--m-surface); border-radius: var(--m-r-l);
}
.m-trio__icon {
  display: inline-grid; place-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--m-primary-soft); color: var(--m-primary);
  margin-bottom: var(--m-sp-3);
}
.m-trio__cell h3 { margin: 0 0 4px; font-size: var(--m-fs-base); }
.m-trio__cell p { margin: 0; color: var(--m-muted); font-size: var(--m-fs-s); }

.m-statsrow { background: var(--m-primary); border-radius: var(--m-r-l); color: var(--m-on-primary); padding: var(--m-sp-6) var(--m-sp-4); }
.m-statsrow__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--m-sp-5) var(--m-sp-3); text-align: center; }
@media (min-width: 640px) { .m-statsrow__grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.m-statsrow__cell { font-size: var(--m-fs-s); opacity: .92; }
.m-statsrow__cell span {
  display: block; font-family: var(--m-font-display); font-weight: 700;
  font-size: var(--m-fs-xl); font-variant-numeric: tabular-nums; opacity: 1;
}

.m-faq { max-width: 760px; }
.m-faq__item { border-bottom: 1px solid var(--m-line); }
.m-faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--m-sp-3);
  padding: var(--m-sp-4) 2px; cursor: pointer; list-style: none;
  font-weight: 700; font-size: var(--m-fs-m);
}
.m-faq__item summary::-webkit-details-marker { display: none; }
.m-faq__sign { position: relative; width: 18px; height: 18px; flex: none; color: var(--m-primary); }
.m-faq__sign::before, .m-faq__sign::after {
  content: ""; position: absolute; inset: 0; margin: auto; background: currentColor; border-radius: 2px;
  transition: transform var(--m-t-fast) var(--m-ease);
}
.m-faq__sign::before { width: 16px; height: 2.4px; }
.m-faq__sign::after { width: 2.4px; height: 16px; }
.m-faq__item[open] .m-faq__sign::after { transform: rotate(90deg); }
.m-faq__a { padding: 0 2px var(--m-sp-4); color: var(--m-muted); }

.m-quotebig { text-align: center; max-width: 680px; margin-inline: auto; }
.m-quotebig__img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: var(--m-ring); margin-bottom: var(--m-sp-3); }
.m-quotebig blockquote {
  margin: 0; font-family: var(--m-font-display); font-weight: 700;
  font-size: var(--m-fs-l); line-height: 1.7;
}
.m-quotebig figcaption { margin-top: var(--m-sp-3); color: var(--m-muted); }

.m-ctaband {
  background: var(--m-primary); color: var(--m-on-primary);
  border-radius: var(--m-r-l); text-align: center;
  padding: var(--m-sp-7) var(--m-sp-4);
}
.m-ctaband h2 { margin: 0 0 var(--m-sp-2); font-size: var(--m-fs-xl); }
.m-ctaband p { margin: 0 0 var(--m-sp-4); opacity: .92; }
.m-ctaband--soft { background: var(--m-accent-wash); color: var(--m-text); }

.m-offer { background: linear-gradient(120deg, var(--m-primary), color-mix(in srgb, var(--m-primary) 72%, var(--m-accent))); border-radius: var(--m-r-l); color: var(--m-on-primary); }
.m-offer__inner { padding: var(--m-sp-6) var(--m-sp-5); display: grid; gap: var(--m-sp-2); justify-items: start; }
.m-offer__inner h2 { margin: 0; font-size: var(--m-fs-xl); }
.m-offer__inner p { margin: 0; opacity: .92; }
.m-offer__count { margin: 4px 0 var(--m-sp-2); font-size: var(--m-fs-m); padding: 4px 16px; }
@media (min-width: 700px) { .m-offer__inner { justify-items: center; text-align: center; } }

.m-spot { position: relative; border-radius: var(--m-r-l); overflow: hidden; min-height: 380px; display: grid; align-items: end; background: var(--m-surface-2); }
.m-spot__media { position: absolute; inset: 0; }
.m-spot__media img { width: 100%; height: 100%; object-fit: cover; }
.m-spot__panel {
  position: relative; z-index: 1;
  background: linear-gradient(to top, color-mix(in srgb, var(--m-text) 78%, transparent), transparent);
  color: #fff; padding: var(--m-sp-7) var(--m-sp-5) var(--m-sp-5);
  display: grid; gap: var(--m-sp-2); justify-items: start;
}
.m-spot__panel h2 { margin: 0; font-size: var(--m-fs-xl); }
.m-spot__panel p { margin: 0; opacity: .95; max-width: 44ch; }

.m-catrail__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--m-sp-3); }
.m-catrail__all { color: var(--m-primary); font-weight: 700; font-size: var(--m-fs-s); text-decoration: none; }
.m-catrail__track {
  list-style: none; margin: 0; padding: 2px 2px var(--m-sp-3);
  display: flex; gap: var(--m-sp-3); overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  -webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.m-catrail__cell { flex: 0 0 46%; scroll-snap-align: start; }
@media (min-width: 700px) { .m-catrail__cell { flex-basis: 240px; } }
.m-catrail__cell .m-card { height: 100%; }

.m-lookbook__grid { display: grid; gap: var(--m-sp-3); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .m-lookbook__grid { grid-template-columns: repeat(3, 1fr); } }
.m-lookbook__grid figure { margin: 0; }
.m-lookbook__grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--m-r); box-shadow: var(--m-ring); background: var(--m-surface-2); }
.m-lookbook__grid--4 { grid-template-columns: repeat(2, 1fr); }

.m-delivtable table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--m-line); border-radius: var(--m-r); overflow: hidden; }
.m-delivtable th, .m-delivtable td { padding: var(--m-sp-3) var(--m-sp-4); text-align: start; border-bottom: 1px solid var(--m-line); background: var(--m-bg); }
.m-delivtable thead th { background: var(--m-surface); font-size: var(--m-fs-s); }
.m-delivtable tr:last-child > * { border-bottom: 0; }
.m-delivtable td { font-variant-numeric: tabular-nums; }
.m-delivtable__free { font-weight: 700; color: var(--m-primary); margin: var(--m-sp-3) 0 0; }
.m-delivtable__note { color: var(--m-muted); font-size: var(--m-fs-xs); margin: 4px 0 0; }

.m-contactblock__grid { display: grid; gap: var(--m-sp-3); }
@media (min-width: 640px) { .m-contactblock__grid { grid-template-columns: repeat(3, 1fr); } }
.m-contactblock__cell {
  display: grid; justify-items: center; gap: 4px; text-align: center;
  background: var(--m-surface); border-radius: var(--m-r-l);
  padding: var(--m-sp-5) var(--m-sp-4);
  color: var(--m-text); text-decoration: none;
  transition: transform var(--m-t-fast) var(--m-ease), box-shadow var(--m-t-fast) var(--m-ease);
}
a.m-contactblock__cell:hover { transform: translateY(-2px); box-shadow: var(--m-shadow-s); }
.m-contactblock__cell span:last-child { color: var(--m-muted); font-size: var(--m-fs-s); }
.m-contactblock__icon, .m-contactblock__cell > svg { color: var(--m-primary); }
.m-contactblock__cell--wa > svg { color: #1faa53; }

.m-divider { display: grid; place-content: center; padding-block: 0; }

/* Config pages: hero head shares the .m-page title motif */
.m-cfgpage { padding-block: var(--m-sp-6) 0; }
.m-cfgpage .m-title { position: relative; padding-bottom: var(--m-sp-3); }
.m-cfgpage .m-title::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: 0;
  width: 74px; height: 8px;
  background:
    radial-gradient(circle 4px at 5px 4px,  var(--m-primary) 98%, transparent),
    radial-gradient(circle 4px at 21px 4px, color-mix(in srgb, var(--m-primary) 70%, var(--m-accent)) 98%, transparent),
    radial-gradient(circle 4px at 37px 4px, color-mix(in srgb, var(--m-primary) 40%, var(--m-accent)) 98%, transparent),
    radial-gradient(circle 4px at 53px 4px, var(--m-accent) 98%, transparent),
    radial-gradient(circle 4px at 69px 4px, color-mix(in srgb, var(--m-accent) 60%, var(--m-bg)) 98%, transparent);
  background-repeat: no-repeat;
}
.m-checkout-reassure { color: var(--m-muted); margin: calc(-1 * var(--m-sp-3)) 0 var(--m-sp-5); }
