/* =====================================================================
   Matjari design layer v1.0.1 — the visible redesign.
   Loads after components.css and re-skins the storefront: editorial
   type, a dark footer, elevated cards, real buttons, styled WooCommerce
   surfaces (my-account, notices, cart), and the v1.0 elements
   (language pill, thank-you). Additive and variable-driven throughout.
   ===================================================================== */

:root {
  --mr-ink: var(--m-ink, #231f1c);
  --mr-bg: var(--m-bg, #fffdfb);
  --mr-primary: var(--m-primary, #8b2c3e);
  --mr-accent: var(--m-accent, #e8c4a0);
  --mr-line: color-mix(in srgb, var(--mr-ink) 10%, transparent);
  --mr-line-2: color-mix(in srgb, var(--mr-ink) 20%, transparent);
  --mr-soft: color-mix(in srgb, var(--mr-ink) 4%, var(--mr-bg));
  --mr-r: 16px;
  --mr-r-l: 22px;
  --mr-shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 32px -16px color-mix(in srgb, var(--mr-ink) 22%, transparent);
  --mr-shadow-lg: 0 18px 50px -20px color-mix(in srgb, var(--mr-ink) 32%, transparent);
  --mr-ease: cubic-bezier(.22,.68,.32,1);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: color-mix(in srgb, var(--mr-primary) 22%, transparent); }

/* ================= Type: an editorial scale ================= */
.m-title { font-size: clamp(26px, 6vw, 38px); line-height: 1.3; letter-spacing: -0.01em; }
.m-section__title {
  font-size: clamp(21px, 5vw, 30px);
  line-height: 1.35;
  margin-bottom: clamp(18px, 4vw, 28px);
}
.m-section__title::after {
  content: "";
  display: block;
  width: 44px; height: 3px; border-radius: 2px;
  margin-block-start: 12px;
  background: linear-gradient(90deg, var(--mr-primary), color-mix(in srgb, var(--mr-primary) 30%, var(--mr-accent)));
}
:where([style*="center"], .m-center, .u-center) .m-section__title::after { margin-inline: auto; }
.m-section { padding-block: clamp(40px, 8vw, 76px); }
.m-section + .m-section { padding-block-start: clamp(8px, 3vw, 24px); }

/* ================= Header ================= */
.m-header, .m-nav {
  background: color-mix(in srgb, var(--mr-bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--mr-line);
}
.m-nav a, .m-nav button { transition: color .16s var(--mr-ease), background .16s var(--mr-ease), transform .12s var(--mr-ease); }
.m-nav button:active, .m-nav a:active { transform: scale(.93); }
.m-nav__burger, .m-nav__cart, [data-drawer-open], [data-minicart-open] { border-radius: 999px; }
.m-nav__burger:hover, .m-nav__cart:hover, [data-drawer-open]:hover, [data-minicart-open]:hover {
  background: color-mix(in srgb, var(--mr-ink) 6%, transparent);
}
.m-promo, .m-promobar {
  background: linear-gradient(100deg, var(--mr-primary), color-mix(in srgb, var(--mr-primary) 72%, #000 10%));
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
}
.m-promo a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
[data-countdown] { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ================= Buttons: weight and light ================= */
.m-btn {
  border-radius: 13px;
  font-weight: 700;
  letter-spacing: .005em;
  transition: transform .12s var(--mr-ease), box-shadow .2s var(--mr-ease),
              background .2s var(--mr-ease), color .2s var(--mr-ease),
              border-color .2s var(--mr-ease), filter .2s var(--mr-ease);
}
.m-btn:active { transform: scale(.965); }
.m-btn--primary {
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--mr-primary) 92%, #fff 8%),
    var(--mr-primary) 55%,
    color-mix(in srgb, var(--mr-primary) 88%, #000 12%));
  box-shadow: 0 2px 4px -1px color-mix(in srgb, var(--mr-primary) 50%, transparent),
              0 10px 24px -8px color-mix(in srgb, var(--mr-primary) 55%, transparent),
              inset 0 1px 0 rgba(255,255,255,.22);
}
.m-btn--primary:hover { filter: brightness(1.05) saturate(1.05); box-shadow: 0 4px 8px -2px color-mix(in srgb, var(--mr-primary) 55%, transparent), 0 16px 34px -10px color-mix(in srgb, var(--mr-primary) 60%, transparent), inset 0 1px 0 rgba(255,255,255,.22); }
.m-btn--ghost { border: 1.5px solid var(--mr-line-2); background: var(--mr-bg); }
.m-btn--ghost:hover { border-color: var(--mr-ink); }
.m-btn--wa { box-shadow: 0 10px 24px -8px rgba(21,128,61,.5), inset 0 1px 0 rgba(255,255,255,.2); }
.m-btn--wa:hover { filter: brightness(1.05); }
.m-btn.is-busy { opacity: .7; pointer-events: none; }

/* ================= Product cards ================= */
.m-card {
  border-radius: var(--mr-r);
  overflow: clip;
  transition: transform .22s var(--mr-ease), box-shadow .22s var(--mr-ease);
}
.m-card__media, .m-card > a > .m-card__media { border-radius: 0; background: var(--mr-soft); }
.m-card img { transition: transform .45s var(--mr-ease); }
@media (hover: hover) {
  .m-card:hover { transform: translateY(-4px); box-shadow: var(--mr-shadow-lg); }
  .m-card:hover img { transform: scale(1.045); }
}
.m-card .price, .m-card__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-card .price del { opacity: .5; font-weight: 400; }
.m-card .price ins { text-decoration: none; color: var(--mr-primary); }
.m-card__dots i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }

/* ================= Chips (archive) ================= */
.m-chips { gap: 8px; padding-block: 6px 2px; }
.m-chip {
  border-radius: 999px;
  border: 1.5px solid var(--mr-line-2);
  font-weight: 700;
  padding-block: 8px;
  transition: all .16s var(--mr-ease);
}
.m-chip:hover { border-color: var(--mr-ink); transform: translateY(-1px); }
.m-chip.is-active { background: var(--mr-ink); border-color: var(--mr-ink); color: var(--mr-bg); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--mr-ink) 60%, transparent); }
.m-shop__head { margin-bottom: clamp(16px, 4vw, 26px); }

/* ================= Product page buy box ================= */
.m-buy { gap: 14px; }
[data-price], .m-product__price { font-size: clamp(22px, 5vw, 28px); font-weight: 700; font-variant-numeric: tabular-nums; }
[data-price] del { opacity: .45; font-size: .72em; font-weight: 400; }
[data-price] ins { text-decoration: none; color: var(--mr-primary); }
.m-swatches label { transition: transform .12s var(--mr-ease); }
.m-swatches label:active { transform: scale(.94); }
.m-swatch__chip { box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); }
.m-swatch__pill { border-radius: 999px; border: 1.5px solid var(--mr-line-2); font-weight: 700; transition: all .15s var(--mr-ease); }
.m-swatches input:checked + .m-swatch__pill,
.m-swatches input:checked ~ .m-swatch__pill { background: var(--mr-ink); border-color: var(--mr-ink); color: var(--mr-bg); }
.m-qty { border: 1.5px solid var(--mr-line-2); border-radius: 13px; overflow: clip; background: var(--mr-bg); }
.m-qty input { font-weight: 700; font-size: 16px; }
.m-qty__btn { transition: background .15s var(--mr-ease); font-size: 18px; }
.m-qty__btn:hover { background: var(--mr-soft); }
.m-buy__stock { font-weight: 700; color: var(--mr-primary); }
.m-product__trust {
  border: 1px dashed var(--mr-line-2);
  border-radius: var(--mr-r);
  padding: 14px 18px;
  background: color-mix(in srgb, var(--mr-accent) 14%, var(--mr-bg));
}
.m-product__trust li { font-weight: 700; font-size: 14px; padding-block: 4px; }
.m-product__trust li::marker { content: "✓  "; color: var(--mr-primary); }
.m-sticky {
  background: color-mix(in srgb, var(--mr-bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--mr-line);
  box-shadow: 0 -10px 30px -18px color-mix(in srgb, var(--mr-ink) 35%, transparent);
}
.m-sticky__price { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-related { border-top: 1px solid var(--mr-line); margin-top: clamp(28px, 6vw, 48px); }

/* ================= THE DARK FOOTER ================= */
.m-footer {
  background: color-mix(in srgb, var(--mr-ink) 96%, var(--mr-primary) 4%);
  color: color-mix(in srgb, #fff 88%, var(--mr-accent));
  margin-top: clamp(40px, 8vw, 72px);
  padding-top: clamp(36px, 7vw, 60px);
  border-top: 0;
}
.m-footer a { color: inherit; opacity: .82; text-decoration: none; transition: opacity .15s var(--mr-ease), color .15s var(--mr-ease); }
.m-footer a:hover { opacity: 1; color: var(--mr-accent); }
.m-footer__grid { gap: clamp(24px, 5vw, 40px); padding-bottom: clamp(28px, 6vw, 44px); }
.m-footer__brand { font-size: clamp(20px, 4.5vw, 26px); font-weight: 700; color: #fff; }
.m-footer__tagline { opacity: .7; max-width: 30ch; line-height: 1.9; }
.m-footer__head {
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; opacity: .55; margin-bottom: 14px;
}
.m-footer ul { display: flex; flex-direction: column; gap: 9px; }
.m-footer__plain { opacity: .72; font-size: 14px; }
.m-footer .m-strip i { opacity: .9; }
.m-footer__bar {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 16px;
  font-size: 13px;
}
.m-footer__cod {
  font-weight: 700;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 6px 16px;
}
.m-footer__credit { opacity: .6; }
.m-footer__credit strong { color: #fff; opacity: 1; }
.m-footer__bar .m-langs { background: rgba(255,255,255,.08); }
.m-footer__bar .m-langs__item { color: #fff; opacity: .65; }
.m-footer__bar .m-langs__item.is-active { background: rgba(255,255,255,.16); opacity: 1; box-shadow: none; }

/* ================= Language pill (light contexts) ================= */
.m-langs { display: inline-flex; gap: 2px; padding: 3px; background: color-mix(in srgb, var(--mr-ink) 6%, transparent); border-radius: 999px; }
.m-langs__item {
  min-width: 46px; padding: 5px 13px; border-radius: 999px;
  text-decoration: none; text-align: center; font-size: 12.5px; font-weight: 700;
  color: color-mix(in srgb, var(--mr-ink) 62%, transparent);
  transition: background .15s var(--mr-ease), color .15s var(--mr-ease);
}
.m-langs__item:hover { color: var(--mr-ink); }
.m-langs__item.is-active { background: var(--mr-bg); color: var(--mr-ink); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.m-drawer__langs {
  margin-top: auto; padding: 18px 4px 8px;
  border-top: 1px solid var(--mr-line);
  display: flex; justify-content: center;
}

/* ================= Drawer & minicart panels ================= */
.m-drawer {
  border-start-end-radius: 0; border-end-end-radius: 0;
  box-shadow: var(--mr-shadow-lg);
}
.m-drawer a { font-weight: 700; border-radius: 12px; transition: background .15s var(--mr-ease); }
.m-drawer a:hover { background: var(--mr-soft); }
.m-minicart { box-shadow: var(--mr-shadow-lg); }
.m-minicart__head strong { font-size: 17px; }
.m-minicart__item { border-radius: 12px; transition: background .15s var(--mr-ease); }
.m-minicart__thumb { border-radius: 12px; overflow: clip; background: var(--mr-soft); }
.m-minicart__thumb img { border-radius: 12px; }
.m-minicart__checkout { min-height: 52px; font-size: 16px; }
.m-minicart__cartlink { font-weight: 700; opacity: .7; }
.m-freebar { border-radius: 13px; padding: 12px 14px; background: color-mix(in srgb, var(--mr-accent) 24%, var(--mr-bg)); }
.m-freebar.is-done { background: #E7F3EC; }
.m-freebar__track { border-radius: 999px; overflow: clip; background: color-mix(in srgb, var(--mr-ink) 10%, transparent); height: 7px; display: block; }
.m-freebar__track i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--mr-primary), color-mix(in srgb, var(--mr-primary) 55%, var(--mr-accent))); transition: inline-size .5s var(--mr-ease); }

/* ================= WooCommerce notices (site-wide) ================= */
.woocommerce-message, .woocommerce-info, .woocommerce-error,
ul.woocommerce-error, div.wc-block-components-notice-banner {
  border: 1px solid var(--mr-line) !important;
  border-inline-start: 4px solid var(--mr-primary) !important;
  border-radius: 14px !important;
  background: var(--mr-bg) !important;
  box-shadow: var(--mr-shadow);
  padding: 14px 18px !important;
  font-weight: 700;
  color: var(--mr-ink);
}
.woocommerce-message { border-inline-start-color: #1E6B57 !important; }
.woocommerce-error, ul.woocommerce-error { border-inline-start-color: #A63A3A !important; }
.woocommerce-message a, .woocommerce-info a, .woocommerce-error a {
  color: var(--mr-primary); text-decoration: underline; text-underline-offset: 3px;
}
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { color: inherit; }

/* ================= My-account: from raw list to product ================= */
.m-woopage .woocommerce-MyAccount-navigation { margin-bottom: 22px; }
.m-woopage .woocommerce-MyAccount-navigation ul {
  list-style: none; margin: 0; padding: 4px;
  display: flex; gap: 6px; overflow-x: auto;
  background: var(--mr-soft); border-radius: 999px;
  scrollbar-width: none;
}
.m-woopage .woocommerce-MyAccount-navigation ul::-webkit-scrollbar { display: none; }
.m-woopage .woocommerce-MyAccount-navigation li { margin: 0; flex: none; }
.m-woopage .woocommerce-MyAccount-navigation li a {
  display: block; padding: 9px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13.5px; text-decoration: none; color: var(--mr-ink);
  opacity: .7; transition: all .15s var(--mr-ease); white-space: nowrap;
}
.m-woopage .woocommerce-MyAccount-navigation li a:hover { opacity: 1; }
.m-woopage .woocommerce-MyAccount-navigation li.is-active a {
  background: var(--mr-bg); opacity: 1; box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.m-woopage .woocommerce-MyAccount-content {
  background: var(--mr-bg);
  border: 1px solid var(--mr-line);
  border-radius: var(--mr-r-l);
  padding: clamp(18px, 4vw, 28px);
  box-shadow: var(--mr-shadow);
  line-height: 2;
}
.m-woopage .woocommerce-MyAccount-content a { color: var(--mr-primary); font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 860px) {
  .m-woopage .woocommerce:has(> .woocommerce-MyAccount-navigation) { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: start; }
  .m-woopage .woocommerce-MyAccount-navigation ul { flex-direction: column; border-radius: var(--mr-r); padding: 8px; }
  .m-woopage .woocommerce-MyAccount-navigation li a { border-radius: 11px; }
}

/* ================= Cart page ================= */
.m-woopage table.shop_table {
  border: 1px solid var(--mr-line) !important;
  border-radius: var(--mr-r-l);
  overflow: clip;
  box-shadow: var(--mr-shadow);
}
.m-woopage table.shop_table th { background: var(--mr-soft); font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; }
.m-woopage table.shop_table td, .m-woopage table.shop_table th { border-color: var(--mr-line) !important; padding: 14px 16px; }
.m-woopage .product-thumbnail img { border-radius: 12px; background: var(--mr-soft); }
.m-woopage .product-remove a {
  display: grid; place-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--mr-soft); color: var(--mr-ink) !important;
  font-weight: 400; transition: all .15s var(--mr-ease);
}
.m-woopage .product-remove a:hover { background: #F6E5E5; color: #A63A3A !important; }
.m-woopage .quantity .qty { border-radius: 11px; border: 1.5px solid var(--mr-line-2); min-height: 42px; text-align: center; font-weight: 700; }
.m-woopage .coupon .input-text { border-radius: 11px !important; min-height: 46px; border: 1.5px solid var(--mr-line-2) !important; }
.m-woopage .cart_totals { border-radius: var(--mr-r-l); }
.m-woopage .cart_totals h2 { font-size: 18px; }
.m-woopage .checkout-button { width: 100%; min-height: 54px; font-size: 16.5px; border-radius: 14px !important; }

/* ================= Checkout ================= */
.m-woopage .form-row input.input-text, .m-woopage .form-row textarea, .m-woopage .form-row select {
  border-radius: 12px !important; padding: 12px 15px !important;
  min-height: 48px; font-size: 16px;
  border: 1.5px solid var(--mr-line-2) !important;
  background: var(--mr-bg);
  transition: border-color .15s var(--mr-ease), box-shadow .15s var(--mr-ease);
}
.m-woopage .form-row input.input-text:focus, .m-woopage .form-row textarea:focus, .m-woopage .form-row select:focus {
  border-color: var(--mr-primary) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--mr-primary) 14%, transparent);
  outline: none;
}
.m-woopage .form-row label { font-weight: 700; font-size: 13.5px; }
.m-woopage .form-row.matjari-hidden { display: none !important; }
.m-woopage .woocommerce-billing-fields h3, .m-woopage #order_review_heading { font-size: 18px; margin-block: 24px 12px; }
.matjari-delivery-estimate {
  margin: 10px 0 14px; padding: 11px 15px;
  background: color-mix(in srgb, var(--mr-primary) 7%, var(--mr-bg));
  border-radius: 12px; font-size: 14px; font-weight: 700;
}
.matjari-nudge {
  margin: 0 0 16px; padding: 13px 16px;
  border-radius: 14px; font-weight: 700; font-size: 14.5px;
  background: color-mix(in srgb, var(--mr-accent) 32%, var(--mr-bg));
  border: 1px dashed var(--mr-line-2);
}
.matjari-nudge--done { background: #E7F3EC; border-color: #BBDDC9; }
.m-woopage #place_order {
  width: 100%; min-height: 56px; border-radius: 14px !important;
  font-size: 17px; font-weight: 700;
  box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--mr-primary) 60%, transparent);
}
.m-woopage .wc_payment_method label { font-weight: 700; }
.m-woopage .woocommerce-privacy-policy-text { font-size: 12.5px; opacity: .7; }

/* ================= Thank-you ================= */
.m-thanks { max-width: 560px; text-align: center; padding-block: 34px 60px; }
.m-thanks__mark {
  width: 76px; height: 76px; margin: 6px auto 16px;
  display: grid; place-content: center; color: #fff; border-radius: 50%;
  background: linear-gradient(160deg, color-mix(in srgb, var(--mr-primary) 90%, #fff 10%), var(--mr-primary));
  box-shadow: 0 14px 34px -10px color-mix(in srgb, var(--mr-primary) 70%, transparent),
              0 0 0 10px color-mix(in srgb, var(--mr-primary) 9%, transparent);
  animation: m-thanks-pop .5s var(--mr-ease);
}
@keyframes m-thanks-pop { from { transform: scale(.6); opacity: 0; } }
.m-thanks__title { font-size: clamp(24px, 6vw, 32px); margin: 0 0 4px; }
.m-thanks__number { margin: 0 0 12px; font-size: 14.5px; opacity: .75; }
.m-thanks__number strong { font-size: 17px; opacity: 1; }
.m-thanks__expect { margin: 0 auto 20px; max-width: 420px; font-size: 15.5px; line-height: 1.9; }
.m-thanks__wa { width: 100%; max-width: 380px; min-height: 52px; margin-bottom: 26px; }
.m-thanks__card {
  text-align: start; background: var(--mr-bg);
  border: 1px solid var(--mr-line); border-radius: var(--mr-r-l);
  padding: 20px 20px 16px; box-shadow: var(--mr-shadow); margin-bottom: 22px;
}
.m-thanks__h { font-size: 15px; margin: 0 0 10px; }
.m-thanks__addr + .m-thanks__h, .m-thanks__items + .m-thanks__h { margin-top: 18px; }
.m-thanks__items { list-style: none; margin: 0 0 6px; padding: 0; }
.m-thanks__items li { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14.5px; border-bottom: 1px solid var(--mr-line); }
.m-thanks__items li:last-child { border-bottom: 0; }
.m-thanks__items li.is-fee { opacity: .75; }
.m-thanks__items li.is-total { font-weight: 700; font-size: 16px; padding-top: 12px; }
.m-thanks__addr { margin: 0; font-size: 14.5px; line-height: 1.8; }
.m-thanks__back { min-width: 220px; }
.m-thanks__failed { font-weight: 700; padding: 30px 0 10px; }

/* ================= Popup, empty states, pagination ================= */
.m-popup__panel { border-radius: var(--mr-r-l); box-shadow: var(--mr-shadow-lg); }
.m-popup--sheet .m-popup__panel { border-end-start-radius: 0; border-end-end-radius: 0; }
.m-popup__heading { font-weight: 700; font-size: 18px; }
.m-empty { padding-block: clamp(40px, 10vw, 72px); }
.m-empty__title { font-size: 19px; font-weight: 700; }
.woocommerce-pagination .page-numbers {
  border-radius: 11px; font-weight: 700;
  border: 1.5px solid var(--mr-line-2);
  transition: all .15s var(--mr-ease);
}
.woocommerce-pagination .page-numbers.current { background: var(--mr-ink); border-color: var(--mr-ink); color: var(--mr-bg); }
.woocommerce-pagination a.page-numbers:hover { border-color: var(--mr-ink); }

/* ================= Focus, LTR, motion ================= */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--mr-primary); outline-offset: 2px; border-radius: 6px;
}
html[lang="en"] body, :lang(en) { letter-spacing: .002em; }
@media (prefers-reduced-motion: reduce) {
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ================= v1.0.2 hardening ================= */
[hidden] { display: none !important; }

/* Cart badge — always in the DOM (fragments need a node to replace). */
.m-nav__cart { position: relative; }
.m-nav__count {
  position: absolute; top: 2px; inset-inline-end: 0;
  min-width: 18px; height: 18px; padding-inline: 4px;
  display: grid; place-content: center;
  background: var(--mr-primary); color: #fff;
  border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px var(--mr-bg);
}
.m-nav__count.is-bump { animation: m-count-bump .45s var(--mr-ease); }
@keyframes m-count-bump {
  30% { transform: scale(1.45); }
  60% { transform: scale(.9); }
}

/* Drawer is a column so the language pill can sit at its foot. */
#m-drawer, .m-drawer { display: flex; flex-direction: column; }

/* Footer bar: never collides, wraps gracefully. */
.m-footer__bar {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 16px;
}

/* Notices container above the product. */
.m-notices { padding-block-start: 14px; }
.m-notices:empty { display: none; }
.m-notices .woocommerce-message a.button, .m-notices .wc-forward {
  float: none; display: inline-block; margin-inline-start: 10px;
  background: none; color: var(--mr-primary); padding: 0; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}

/* ================= v1.1.0 — the cart page, finally owned =================
   components.css addressed `.cart_collaterals` (underscore); WooCommerce's
   real class is `.cart-collaterals` (hyphen), so the totals wrapper never
   had layout and slid under the floated form. Authoritative layout here. */
body.woocommerce-cart .woocommerce-cart-form,
body.woocommerce-cart .cart-collaterals,
body.woocommerce-cart .cart_totals {
  float: none !important; width: auto !important; position: static !important;
}
body.woocommerce-cart .m-woopage .woocommerce {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px;
}
body.woocommerce-cart .m-woopage .woocommerce-notices-wrapper,
body.woocommerce-cart .m-woopage .matjari-nudge { grid-column: 1 / -1; margin: 0; }
body.woocommerce-cart .m-woopage .woocommerce-notices-wrapper:empty { display: none; }
@media (min-width: 940px) {
  body.woocommerce-cart .m-woopage .woocommerce {
    grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start;
  }
  body.woocommerce-cart .woocommerce-cart-form { grid-column: 1; }
  body.woocommerce-cart .cart-collaterals { grid-column: 2; position: sticky !important; top: 92px; }
}
body.woocommerce-cart .cart-collaterals {
  border: 1px solid var(--mr-line); border-radius: var(--mr-r-l);
  background: var(--mr-bg); padding: 20px;
  box-shadow: var(--mr-shadow);
}
body.woocommerce-cart td.product-name { min-width: 200px; }
body.woocommerce-cart td.product-name a { font-weight: 700; display: inline-block; line-height: 1.6; }
body.woocommerce-cart td.product-name .variation { margin: 2px 0 0; font-size: 12.5px; color: color-mix(in srgb, var(--mr-ink) 60%, transparent); display: flex; gap: 6px; flex-wrap: wrap; }
body.woocommerce-cart td.product-name .variation dd { margin: 0; }
body.woocommerce-cart .quantity .qty { width: 58px; }
body.woocommerce-cart td.product-price, body.woocommerce-cart td.product-subtotal { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.woocommerce-cart td.product-subtotal { font-weight: 700; }

/* ================= Checkout: pro two-column ≥1000px ================= */
@media (min-width: 1000px) {
  body.woocommerce-checkout form.checkout.woocommerce-checkout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    grid-template-areas: "details heading" "details review";
    gap: 8px 36px;
    align-items: start;
  }
  body.woocommerce-checkout form.checkout #customer_details { grid-area: details; }
  body.woocommerce-checkout form.checkout #order_review_heading { grid-area: heading; margin-top: 0 !important; }
  body.woocommerce-checkout form.checkout #order_review { grid-area: review; position: sticky; top: 92px; }
}
.m-checkout-reassure {
  display: inline-flex; align-items: center; gap: 8px;
  margin: -6px 0 18px; padding: 9px 16px;
  background: color-mix(in srgb, var(--mr-accent) 26%, var(--mr-bg));
  border: 1px dashed var(--mr-line-2); border-radius: 999px;
  font-weight: 700; font-size: 13.5px;
}

/* ================= Drawer: live quantities + shipping ================= */
.m-minicart__line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.m-minicart__qty {
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--mr-soft); border-radius: 999px; padding: 2px;
  transition: opacity .15s var(--mr-ease);
}
.m-minicart__qty.is-busy { opacity: .55; }
.m-minicart__qty button {
  width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: var(--mr-bg); color: var(--mr-ink);
  font-size: 15px; line-height: 1; font-weight: 700; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.1);
  transition: color .15s var(--mr-ease), transform .1s var(--mr-ease);
}
.m-minicart__qty button:hover { color: var(--mr-primary); }
.m-minicart__qty button:active { transform: scale(.9); }
.m-minicart__qty b { min-width: 26px; text-align: center; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.m-minicart__price { font-size: 13.5px; font-variant-numeric: tabular-nums; }
.m-minicart__ship {
  margin: 4px 0 10px; font-size: 12.5px; font-weight: 700;
  color: color-mix(in srgb, var(--mr-ink) 68%, transparent);
}

/* ================= Shop sort ================= */
.m-sort { display: flex; justify-content: flex-end; margin: -6px 0 14px; }
.m-sort select {
  appearance: none;
  border: 1.5px solid var(--mr-line-2); border-radius: 999px;
  background: var(--mr-bg); color: var(--mr-ink);
  font: inherit; font-size: 13.5px; font-weight: 700;
  padding: 8px 36px 8px 18px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%;
  background-size: 5px 5px; background-repeat: no-repeat;
}
html[dir="rtl"] .m-sort select { padding: 8px 18px 8px 36px; background-position: 20px 55%, 15px 55%; }
