/* 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%;
  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); }
.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: 500; }
.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: 500;
  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: 500;
}
.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); }
.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__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: 500;
  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); }
.m-buy__submit { flex: 1; }
.m-buy__stock { color: var(--m-primary); font-size: var(--m-fs-s); font-weight: 500; }
.m-qty { display: flex; border: 1.5px solid var(--m-line-strong); border-radius: var(--m-r-s); overflow: hidden; }
.m-qty input {
  width: 46px; text-align: center; border: 0; background: var(--m-bg); color: var(--m-text);
  -moz-appearance: textfield; appearance: textfield; font-weight: 700;
}
.m-qty input::-webkit-outer-spin-button, .m-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.m-qty__btn { width: var(--m-touch); border: 0; background: var(--m-surface); font-size: var(--m-fs-m); }
.m-qty__btn:hover { background: var(--m-surface-2); }

.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; }
.m-sticky__price { font-family: var(--m-font-display); font-weight: 700; white-space: nowrap; }
@media (min-width: 800px) { .m-sticky { display: none; } }

/* ---------- Nudge ---------- */
.m-nudge {
  background: var(--m-accent-wash);
  border: 1px solid color-mix(in srgb, var(--m-accent) 55%, var(--m-line));
  border-radius: var(--m-r-s);
  padding: var(--m-sp-3) var(--m-sp-4);
  margin-bottom: var(--m-sp-4);
  text-align: center; font-size: var(--m-fs-s); font-weight: 500;
}
.m-nudge--done { background: var(--m-success-bg); color: var(--m-success-ink); border-color: transparent; }

/* ---------- Woo forms: cart & checkout (default markup, our skin) ------- */
.woocommerce { max-width: var(--m-container); margin-inline: auto; padding: var(--m-sp-4) var(--m-sp-4) var(--m-sp-7); }
.woocommerce table.shop_table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--m-line); border-radius: var(--m-r); overflow: hidden;
}
.woocommerce table.shop_table th, .woocommerce 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);
}
.woocommerce table.shop_table tr:last-child > * { border-bottom: 0; }
.woocommerce table.shop_table thead th { background: var(--m-surface); font-size: var(--m-fs-s); }
.woocommerce .product-thumbnail img { width: 62px; border-radius: var(--m-r-s); }
.woocommerce td.product-name a { text-decoration: none; font-weight: 500; }

.woocommerce .form-row { margin: 0 0 var(--m-sp-4); }
.woocommerce .form-row label { display: block; font-weight: 700; font-size: var(--m-fs-s); margin-bottom: 6px; }
.woocommerce .form-row .required { color: var(--m-primary); text-decoration: none; }
.woocommerce input[type=text], .woocommerce input[type=tel], .woocommerce input[type=email],
.woocommerce input[type=number], .woocommerce input[type=password],
.woocommerce select, .woocommerce textarea {
  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);
}
.woocommerce input:focus, .woocommerce select:focus, .woocommerce textarea:focus {
  border-color: var(--m-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--m-primary) 18%, transparent);
  outline: none;
}
@media (min-width: 640px) {
  .woocommerce-billing-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--m-sp-4); }
  .woocommerce-billing-fields__field-wrapper .form-row-wide { grid-column: 1 / -1; }
}
.matjari-hidden { display: none !important; }

.woocommerce button[type=submit], .woocommerce .button, .wc-proceed-to-checkout a.checkout-button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; 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);
}
.woocommerce .button:hover, .woocommerce button[type=submit]:hover { background: color-mix(in srgb, var(--m-primary) 88%, var(--m-text) 12%); }
.woocommerce .button:active { transform: scale(.985); }
.woocommerce .cart .button[name=update_cart] { background: var(--m-surface); color: var(--m-text); box-shadow: var(--m-ring); }

#customer_details h3, .woocommerce-checkout h3 { font-size: var(--m-fs-m); margin-top: var(--m-sp-5); }
#order_review_heading { margin-top: var(--m-sp-6); }
#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; }
.matjari-delivery-estimate { color: var(--m-muted); font-size: var(--m-fs-s); margin: 0 0 var(--m-sp-3); }

.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-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);
}

/* Empty cart (Woo default markup) */
.cart-empty.woocommerce-info, .wc-empty-cart-message .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);
}
.woocommerce .return-to-shop { text-align: center; margin-bottom: var(--m-sp-7); }
.woocommerce .return-to-shop .button { width: auto; }

/* Prices are a unit — never let a dinar amount wrap mid-figure. */
.woocommerce-Price-amount { white-space: nowrap; }

/* Checkout in flight: Woo's blockUI overlay, on-brand instead of raw white */
.woocommerce .blockUI.blockOverlay {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--m-bg) 70%, transparent) !important;
  backdrop-filter: blur(2px);
  opacity: 1 !important;
}
.woocommerce .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); } }

/* 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; }

/* ---------- 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); }
