/* Mariposh chrome: tokens, fonts, header, footer, buttons. Loaded on every page.
   Structure mirrors the CILOVIA storefront; identity stays Mariposh red + white. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Cairo"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/cairo-arabic-400-800.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }

:root {
  --ink: #1c1416;
  --ink-2: #6b5d60;
  --line: #eee4e2;
  --bg: #ffffff;
  --cream: #fbf8f6;
  --blush: #fdf1f3;
  --blush-2: #f3c9d1;
  --red: #b8132f;      /* Mariposh red: CTAs, checks, prices */
  --red-2: #8f0e25;
  --wine: #7a1230;     /* logo, dark panels */
  --ok: #2f6b3a;
  --radius: 12px;
  --gutter: 16px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-ar: "Cairo", "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.is-rtl, body.is-rtl input, body.is-rtl button, body.is-rtl textarea, body.is-rtl select { font-family: var(--font-ar); }

.skip-link {
  position: absolute; inset-inline-start: 8px; top: -80px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--radius);
}
.skip-link:focus { top: 8px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Top bar (CILOVIA: one line, COD + delivery) */
.mp-topbar {
  background: var(--wine);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  padding: 8px var(--gutter);
  line-height: 1.35;
}

/* Header: burger · centred logo · language pill */
.mp-header {
  position: sticky; top: 0; z-index: 40;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  height: 62px;
  padding: 0 var(--gutter);
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.mp-logo {
  justify-self: center;
  display: inline-flex; flex-direction: column; align-items: center;
  color: var(--wine);
  text-decoration: none;
  font-family: var(--font);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 0.95;
}
.mp-logo small {
  font-size: 8.5px; font-weight: 600; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--ink-2); margin-top: 3px; padding-inline-start: 0.34em;
}
.mp-burger {
  width: 44px; height: 44px; margin-inline-start: -8px;
  display: grid; place-items: center;
  background: none; border: 0; cursor: pointer; color: var(--ink);
}
.mp-burger span[aria-hidden] {
  position: relative; display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.is-menu-open .mp-burger span[aria-hidden] { transform: rotate(45deg); box-shadow: 0 0 0 currentColor, 0 0 0 currentColor; }
.is-menu-open .mp-burger span[aria-hidden]::after {
  content: ""; position: absolute; inset: 0; background: currentColor; transform: rotate(-90deg); border-radius: 2px;
}
.mp-lang { justify-self: end; }
.mp-lang a {
  width: 44px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--blush-2); border-radius: 10px; background: var(--blush);
  font-size: 12.5px; font-weight: 700; color: var(--wine); text-decoration: none;
}

.mp-nav {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 39;
  display: grid; gap: 2px;
  padding: 12px var(--gutter) 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(28, 20, 22, 0.08);
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.is-menu-open .mp-nav { opacity: 1; transform: none; visibility: visible; }
.mp-nav a {
  padding: 13px 4px; font-size: 16.5px; font-weight: 600; color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mp-nav a:last-child { border-bottom: 0; }
.admin-bar .mp-header { top: 46px; }

@media (min-width: 960px) {
  .mp-topbar { font-size: 12.5px; }
  .mp-header { grid-template-columns: auto 1fr auto; height: 72px; padding: 0 32px; gap: 24px; }
  .mp-burger { display: none; }
  .mp-logo { justify-self: start; grid-column: 1; grid-row: 1; align-items: flex-start; }
  .mp-logo small { padding-inline-start: 2px; }
  .mp-nav {
    position: static; display: flex; justify-content: center; gap: 30px;
    padding: 0; background: none; border: 0; box-shadow: none;
    opacity: 1; visibility: visible; transform: none;
  }
  .mp-nav a { padding: 6px 0; font-size: 14px; font-weight: 500; border: 0; color: var(--ink-2); }
  .mp-nav a:hover { color: var(--red); }
  .admin-bar .mp-header { top: 32px; }
}

/* Buttons */
.mp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px;
  background: linear-gradient(180deg, #cc1838 0%, var(--red) 55%, var(--red-2) 100%);
  color: #fff;
  border: 0; border-radius: var(--radius);
  box-shadow: 0 10px 22px rgba(184, 19, 47, 0.25);
  font: inherit; font-size: 16.5px; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), filter 0.3s var(--ease);
}
.mp-btn:hover { filter: brightness(1.05); box-shadow: 0 12px 26px rgba(184, 19, 47, 0.32); }
.mp-btn:active { transform: scale(0.985); }
.mp-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Footer (CILOVIA: dark) */
.mp-footer { background: var(--ink); color: #fff; padding: 44px var(--gutter) 110px; }
.mp-footer-inner { max-width: 1120px; margin: 0 auto; display: grid; gap: 26px; }
.mp-footer .mp-logo { color: #fff; }
.mp-footer .mp-logo small { color: rgba(255, 255, 255, 0.6); }
.mp-footer p { margin: 14px 0 0; color: rgba(255, 255, 255, 0.72); font-size: 14.5px; max-width: 34ch; }
.mp-logo-footer { align-items: flex-start; }
.mp-footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; }
.mp-footer-links a { padding: 8px 0; color: #fff; font-weight: 500; font-size: 14.5px; text-decoration: none; }
.mp-footer-links a:hover { text-decoration: underline; }
.mp-footer-bottom {
  max-width: 1120px; margin: 30px auto 0; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between;
  font-size: 12.5px; color: rgba(255, 255, 255, 0.6);
}
.mp-credit { color: rgba(255, 255, 255, 0.72); text-decoration: none; }
.mp-credit:hover { color: #fff; }
@media (min-width: 960px) {
  .mp-footer { padding: 60px 32px 40px; }
  .mp-footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .mp-footer-links { grid-template-columns: repeat(3, auto); gap: 2px 36px; }
}

/* Inner pages (about, delivery, FAQ, contact). */
.mariposh-support-page { font-family: var(--font); }
.is-rtl .mariposh-support-page { font-family: var(--font-ar); }
.mariposh-support-page h1 {
  font-family: inherit; font-weight: 700; letter-spacing: -0.02em; line-height: 1.12;
  font-size: clamp(28px, 7.4vw, 46px); max-width: 18ch;
}
.is-rtl .mariposh-support-page h1 { letter-spacing: 0; line-height: 1.35; }
.mariposh-support-page .overline {
  color: var(--red); opacity: 1; letter-spacing: 0.14em; font-size: 11.5px; font-weight: 700;
}
.mariposh-support-page .support-card-grid article { min-height: 0; border-radius: 16px; }
.mariposh-support-page .support-card-grid strong { letter-spacing: 0.02em; font-family: inherit; }
.mariposh-support-page .support-cta { border-radius: 16px; }
.mariposh-support-page a.button, .mariposh-support-page .button-primary {
  background: var(--red); border-color: var(--red); border-radius: var(--radius);
}

/* Thank-you page */
.woocommerce .mariposh-order-status .button,
.woocommerce .mariposh-review-request .button,
.mariposh-order-status .button,
.mariposh-review-request .button {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: 12px 20px; border-radius: var(--radius);
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 1.2;
  background: var(--red); color: #fff; border: 0;
}
body .mariposh-order-status a.button.button-ghost,
body .woocommerce .mariposh-order-status a.button.button-ghost {
  background: #fff !important; color: var(--red) !important; border: 1.5px solid var(--red);
}
.mariposh-order-status__check {
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 12.5l4.5 4.5 8.5-10'/%3E%3C/svg%3E") center / 22px no-repeat;
  border-color: var(--blush-2); box-shadow: none;
}
.mariposh-order-status__check::before { display: none; }
.woocommerce-page .page-shell, .woocommerce-page .page-shell h1, .woocommerce-page .page-shell h2 { font-family: inherit; }
.woocommerce-Price-amount, .woocommerce-Price-amount bdi { white-space: nowrap; }

/* Thank-you page offer: add a 2nd Maritint */
.mp-upsell {
  margin: 18px 0; padding: 18px 16px; display: grid; gap: 12px;
  background: var(--blush); border: 1.5px dashed #e69aaa; border-radius: 20px; font-family: var(--font);
}
.is-rtl .mp-upsell { font-family: var(--font-ar); }
.mp-upsell-tag {
  justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--red); color: #fff;
  font-size: 11.5px; font-weight: 700;
}
.mp-upsell-row { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.mp-upsell-row img { width: 84px; height: 84px; object-fit: cover; border-radius: 14px; background: #f4eee8; }
.mp-upsell h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; font-family: inherit; }
.mp-upsell p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.mp-upsell s { color: #a2959a; margin-inline-end: 4px; }
.mp-upsell form { margin: 0; }
.mp-upsell .mp-btn { width: 100%; box-sizing: border-box; min-height: 54px; }
.mp-upsell .mp-btn[disabled] { opacity: 0.7; }
.mp-upsell-skip { text-align: center; font-size: 12.5px !important; }
