/* ==========================================================================
   Mousa Supplements — storefront
   ========================================================================== */
:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --ink: #0b1220;
  --ink-soft: #4c5666;
  --ink-mute: #8b95a5;
  --line: #e6e9ee;
  --line-soft: #eef1f5;
  --brand: #12d18e;
  --brand-dark: #0aa876;
  --brand-ink: #05271a;
  --brand-tint: #e7faf2;
  --navy: #0a0f1c;
  --navy-2: #111a2e;
  --navy-3: #1a2740;
  --sale: #ff4d4f;
  --warn: #f59e0b;
  --danger: #ef4444;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --shadow-xs: 0 1px 2px rgba(11,18,32,.05);
  --shadow-sm: 0 2px 6px rgba(11,18,32,.06), 0 1px 2px rgba(11,18,32,.04);
  --shadow-md: 0 10px 30px rgba(11,18,32,.10);
  --shadow-lg: 0 24px 60px rgba(11,18,32,.16);
  --shadow-brand: 0 10px 24px rgba(18,209,142,.32);
  --maxw: 1200px;
  --header-h: 118px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html[dir="ltr"] body { font-family: 'Inter', 'Cairo', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid rgba(18,209,142,.45); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 52px 0; scroll-margin-top: 130px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.section-head h1, .section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 0; }
.section-link, .panel-link { color: var(--brand-dark); font-weight: 700; white-space: nowrap; font-size: .92rem; }
.section-link:hover { color: var(--brand); }
.muted { color: var(--ink-mute); }
.small { font-size: .86rem; }
.hidden-form { display: none; }

/* ---- Buttons ---- */
.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font: inherit; font-weight: 700; cursor: pointer;
  transition: transform .12s cubic-bezier(.2,.8,.2,1), box-shadow .2s, background .2s, filter .2s;
  text-align: center; line-height: 1.2;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ic { width: 17px; height: 17px; flex-shrink: 0; }
.btn-primary { --btn-bg: linear-gradient(135deg, #16e29b, var(--brand-dark)); --btn-fg: #04281a; box-shadow: var(--shadow-brand); }
.btn-primary:hover { filter: brightness(1.04); box-shadow: 0 14px 30px rgba(18,209,142,.4); }
.btn-dark { --btn-bg: var(--navy); --btn-fg: #fff; }
.btn-dark:hover { --btn-bg: var(--navy-2); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); background: var(--surface); }
.btn-hero-ghost { --btn-bg: rgba(255,255,255,.08); --btn-fg: #fff; border-color: rgba(255,255,255,.22); backdrop-filter: blur(4px); }
.btn-hero-ghost:hover { --btn-bg: rgba(255,255,255,.16); }
.btn-whatsapp { --btn-bg: #25D366; --btn-fg: #04281a; box-shadow: 0 10px 24px rgba(37,211,102,.32); }
.btn-danger { --btn-bg: #fdeaea; --btn-fg: var(--danger); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 28px; font-size: 1.03rem; }
.btn-sm { padding: 8px 14px; font-size: .85rem; }
.btn-xs { padding: 5px 10px; font-size: .78rem; }
.btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent; animation: spin .6s linear infinite;
  color: #04281a;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Announce bar ---- */
.announce {
  background: var(--navy); color: #cfeee0; text-align: center;
  font-size: .82rem; font-weight: 600; padding: 8px 12px; letter-spacing: .01em;
}

/* ---- Header ---- */
.site-header { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 22px; padding: 15px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: #fff; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--brand-ink);
  font-weight: 900; font-size: 1.25rem;
}
.brand-logo { height: 40px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.site-footer .brand-logo { height: 34px; }
.search { display: flex; background: rgba(255,255,255,.09); border-radius: 999px; overflow: hidden; border: 1px solid rgba(255,255,255,.13); transition: border-color .2s, background .2s; }
.search:focus-within { border-color: var(--brand); background: rgba(255,255,255,.14); }
.search input { flex: 1; border: 0; background: transparent; color: #fff; padding: 11px 20px; font: inherit; min-width: 0; }
.search input::placeholder { color: rgba(255,255,255,.55); }
.search input:focus { outline: none; }
.search button { border: 0; background: transparent; color: #fff; padding: 0 18px; cursor: pointer; display: grid; place-items: center; }
.search button:hover { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: 7px 15px;
  font-weight: 700; font-size: .8rem; color: #fff; transition: background .2s;
}
.lang-toggle:hover { background: rgba(255,255,255,.12); }
.cart-link { position: relative; color: #fff; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; transition: background .2s; }
.cart-link:hover { background: rgba(255,255,255,.1); }
.cart-count {
  position: absolute; inset-block-start: -4px; inset-inline-end: -4px;
  background: var(--brand); color: var(--brand-ink); font-size: .72rem; font-weight: 800;
  min-width: 19px; height: 19px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px;
  border: 2px solid var(--navy);
}
.cart-count.bump { animation: bump .4s cubic-bezier(.2,.8,.2,1); }
@keyframes bump { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.subnav { background: var(--navy-2); border-top: 1px solid rgba(255,255,255,.06); }
.subnav-inner { display: flex; gap: 4px; overflow-x: auto; padding: 9px 20px; max-width: var(--maxw); margin: 0 auto; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-inner a {
  white-space: nowrap; color: rgba(255,255,255,.7); font-size: .87rem; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; transition: color .15s, background .15s;
}
.subnav-inner a:hover { color: #fff; background: rgba(255,255,255,.08); }
.subnav-inner a.active { color: var(--brand-ink); background: var(--brand); }

/* ---- Flash ---- */
.flash-wrap { padding-top: 18px; }
.flash { padding: 13px 17px; border-radius: var(--radius-sm); font-weight: 600; margin-bottom: 10px; border: 1px solid transparent; }
.flash-success { background: var(--brand-tint); color: #06603f; border-color: #b9ecd8; }
.flash-error { background: #fdecec; color: #a11c1c; border-color: #f4c9c9; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(680px 340px at 88% -8%, rgba(18,209,142,.22), transparent 70%),
    radial-gradient(560px 380px at -5% 110%, rgba(10,145,178,.18), transparent 70%),
    var(--navy);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding: 66px 20px 72px; }
.hero-eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); background: rgba(18,209,142,.12);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.hero-text h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); line-height: 1.12; margin-bottom: .4em; }
.hero-text p { color: rgba(255,255,255,.76); font-size: 1.06rem; margin-bottom: 1.7em; max-width: 30ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-card {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 12px; backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 6px;
}
.hero-card-row { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); transition: background .2s; }
.hero-card-row:hover { background: rgba(255,255,255,.05); }
.hero-card-ic {
  width: 46px; height: 46px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(18,209,142,.2), rgba(10,145,178,.14)); color: var(--brand);
}
.hero-card-ic svg { width: 24px; height: 24px; }
.hero-card-row strong { display: block; font-size: 1rem; }
.hero-card-row span { font-size: .86rem; color: rgba(255,255,255,.62); }

/* ---- Category grid ---- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.category-chip {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; font-weight: 700; transition: transform .14s, box-shadow .22s, border-color .2s;
}
.category-chip:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(18,209,142,.5); }
.category-chip-icon {
  width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-tint), #dff6ee); color: var(--brand-dark);
}
.category-chip:hover .category-chip-icon { background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: #fff; }
.cat-svg { width: 28px; height: 28px; }
.category-chip-name { font-size: .93rem; }

/* ---- 3-step strip ---- */
.steps-strip { background: var(--navy); color: #fff; padding: 46px 0; }
.steps-title { text-align: center; font-size: clamp(1.2rem, 2.4vw, 1.7rem); margin-bottom: 30px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li {
  position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 24px 22px 22px; text-align: center;
}
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark)); color: var(--brand-ink);
  font-weight: 900; font-size: 1.1rem; margin-bottom: 12px;
}
.steps li strong { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.steps li span { color: rgba(255,255,255,.6); font-size: .9rem; }
.steps li:not(:last-child)::after {
  content: '→'; position: absolute; inset-inline-start: -13px; top: 50%; transform: translateY(-50%);
  color: var(--brand); font-size: 1.3rem; font-weight: 700;
}
html[dir="rtl"] .steps li:not(:last-child)::after { content: '←'; inset-inline-start: auto; inset-inline-end: -13px; }

/* ---- Product grid + card ---- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .14s, box-shadow .26s, border-color .2s;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(18,209,142,.4); }
.product-card-media {
  position: relative; aspect-ratio: 1 / 1; background: var(--surface-2); display: grid; place-items: center; overflow: hidden;
}
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.thumb-ph {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(140deg, #eef1f5, #e2e7ee); color: #b6c0cd;
}
.thumb-ph svg { width: 42%; height: 42%; }
.badge {
  position: absolute; font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 999px;
  inset-block-start: 12px; box-shadow: var(--shadow-xs);
}
.badge-sale { inset-inline-start: 12px; background: var(--sale); color: #fff; direction: ltr; }
.badge-out { inset-inline-end: 12px; background: #64748b; color: #fff; }
.badge-low { inset-inline-end: 12px; background: var(--warn); color: #3a2500; }
.product-card-body { padding: 15px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.product-card-cat { font-size: .74rem; color: var(--brand-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.product-card-title { font-size: .98rem; font-weight: 700; margin: 0; line-height: 1.4; }
.product-card-title a:hover { color: var(--brand-dark); }
.product-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.price-now { font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.price-was { text-decoration: line-through; color: var(--ink-mute); font-size: .85rem; }
.product-card-add { margin-top: 8px; }

/* ---- Why strip ---- */
.why-strip { background: var(--surface); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 34px 20px; }
.why-item { display: flex; gap: 14px; align-items: flex-start; }
.why-ic { font-size: 1.7rem; }
.why-item strong { display: block; }
.why-item p { margin: 2px 0 0; color: var(--ink-soft); font-size: .9rem; }

/* ---- Shop layout (filters) ---- */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.shop-filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.filter-form h3 { font-size: 1.02rem; margin: 0 0 4px; }
.filter-label { font-size: .8rem; font-weight: 700; color: var(--ink-soft); margin-top: 6px; }
.filter-form select, .filter-form input[type="number"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface);
}
.filter-form select:focus, .filter-form input:focus { outline: 2px solid rgba(18,209,142,.4); border-color: var(--brand); }
.filter-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.filter-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; margin: 6px 0; }
.filter-check input { accent-color: var(--brand-dark); width: 16px; height: 16px; }
.results-count {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 13px;
  font-size: .82rem; font-weight: 800; color: var(--ink-soft);
}
.empty-state { text-align: center; padding: 70px 20px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--line); }
.empty-ic { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ---- Pagination ---- */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.page-btn {
  min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); font-weight: 700;
  transition: border-color .15s, background .15s;
}
.page-btn:hover { border-color: var(--brand); }
.page-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.page-ellipsis { display: grid; place-items: center; min-width: 24px; color: var(--ink-mute); }

/* ---- Product detail ---- */
.crumbs { font-size: .85rem; color: var(--ink-mute); margin-bottom: 20px; }
.crumbs a:hover { color: var(--brand-dark); }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-bottom: 54px; }
.gallery-main {
  aspect-ratio: 1 / 1; max-height: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: grid; place-items: center;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; max-height: 480px; }
.gallery-placeholder {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(140deg, #eef1f5, #e2e7ee); color: #b6c0cd;
}
.gallery-placeholder svg { width: 34%; height: 34%; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden; border: 2px solid var(--line);
  background: none; cursor: pointer; padding: 0; transition: border-color .15s;
}
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--brand); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-info-cat { color: var(--brand-dark); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.product-info h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin: 8px 0 12px; }
.product-info-short { color: var(--ink-soft); font-size: 1.02rem; }
.product-info-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 6px; flex-wrap: wrap; }
.product-info-price .price-now { font-size: 1.95rem; }
.save-line { color: var(--sale); font-weight: 800; font-size: .9rem; margin-bottom: 16px; direction: rtl; }
html[dir="ltr"] .save-line { direction: ltr; }
.stock-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stock-pill { font-size: .82rem; font-weight: 800; padding: 6px 13px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.stock-pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock-in { background: var(--brand-tint); color: #06603f; }
.stock-low { background: #fef3e2; color: #92590b; }
.stock-out { background: #f1f5f9; color: #475569; }
.sku { font-size: .8rem; color: var(--ink-mute); }
.product-buy { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
/* hide native number spinners everywhere */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }

.qty-control {
  display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px;
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow-xs); user-select: none;
}
.qty-btn {
  width: 44px; height: 46px; border: 0; background: transparent; font-size: 1.35rem; line-height: 1;
  cursor: pointer; color: var(--ink-soft); transition: background .12s, color .12s; font-weight: 700;
}
.qty-btn:hover { background: var(--brand-tint); color: var(--brand-dark); }
.qty-btn:active { background: var(--brand); color: #fff; }
.qty-control .qty-num, .qty-control input {
  width: 46px; text-align: center; border: 0; font: inherit; font-weight: 800; padding: 10px 0;
  background: transparent; color: var(--ink); -moz-appearance: textfield; appearance: textfield;
}
.qty-control .qty-num:focus, .qty-control input:focus { outline: none; }
.qty-control.qty-sm .qty-btn { width: 36px; height: 38px; font-size: 1.15rem; }
.qty-control.qty-sm .qty-num { width: 40px; padding: 8px 0; }
.qty-num.capped { color: var(--warn); }

/* live cart row states */
.cart-row.is-busy { opacity: .55; pointer-events: none; }
.cart-row.removing { opacity: 0; transform: translateX(12px); transition: opacity .25s, transform .25s; }
html[dir="rtl"] .cart-row.removing { transform: translateX(-12px); }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 16px 0; margin-bottom: 8px;
  border-block: 1px solid var(--line); font-size: .88rem; color: var(--ink-soft); font-weight: 600;
}
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { width: 17px; height: 17px; color: var(--brand-dark); }
.product-description { border-top: 1px solid var(--line); padding-top: 22px; margin-top: 22px; }
.product-description h3 { font-size: 1.08rem; }
.product-description p { color: var(--ink-soft); white-space: pre-line; line-height: 1.75; }

/* sticky mobile buy bar */
.buy-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30; display: none;
  background: var(--surface); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px rgba(11,18,32,.1);
  align-items: center; gap: 12px;
}
.buy-bar .bb-price { font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.buy-bar .btn { flex: 1; }

/* ---- Cart ---- */
.cart-layout { display: grid; grid-template-columns: 1fr 350px; gap: 28px; align-items: start; }
.cart-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cart-table th { text-align: start; font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-mute); padding: 15px 16px; border-bottom: 1px solid var(--line); }
.cart-table td { padding: 15px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-product { display: flex; align-items: center; gap: 13px; }
.cart-thumb { width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); display: grid; place-items: center; flex-shrink: 0; color: #b6c0cd; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-thumb svg { width: 26px; height: 26px; }
.cart-name { font-weight: 700; }
.cart-name:hover { color: var(--brand-dark); }
.cart-qty { width: 66px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; text-align: center; }
.cart-remove { border: 0; background: var(--surface-2); width: 32px; height: 32px; border-radius: 9px; cursor: pointer; color: var(--ink-soft); font-weight: 700; transition: background .15s, color .15s; }
.cart-remove:hover { background: #fdeaea; color: var(--danger); }
.cart-actions { display: flex; justify-content: space-between; margin-top: 16px; gap: 12px; }
.cart-summary, .checkout-summary {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  position: sticky; top: calc(var(--header-h) + 16px);
}
.cart-summary h3, .checkout-summary h3 { font-size: 1.08rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; font-size: .93rem; }
.summary-row.muted { color: var(--ink-mute); font-size: .84rem; }
.summary-total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 15px; font-size: 1.15rem; font-weight: 800; }
.summary-items { list-style: none; padding: 0; margin: 0 0 12px; }
.summary-items li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: .88rem; border-bottom: 1px dashed var(--line); }
.pay-note { margin-top: 12px; font-size: .84rem; color: var(--ink-soft); background: var(--brand-tint); border-radius: var(--radius-sm); padding: 10px 12px; }

/* ---- Checkout ---- */
.checkout-layout { display: grid; grid-template-columns: 1fr 370px; gap: 28px; align-items: start; }
.checkout-main { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.checkout-banner {
  display: flex; align-items: center; gap: 12px; background: var(--brand-tint); border: 1px solid #bdeeda;
  border-radius: var(--radius-sm); padding: 13px 16px; margin-bottom: 22px; font-weight: 600; color: #06603f; font-size: .92rem;
}
.checkout-banner svg { width: 22px; height: 22px; flex-shrink: 0; }
.checkout-step-h { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; margin: 24px 0 14px; }
.checkout-step-h:first-of-type { margin-top: 0; }
.checkout-step-h .n {
  width: 26px; height: 26px; border-radius: 8px; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: .85rem; font-weight: 800; flex-shrink: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 15px; }
.field > span { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface); width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(18,209,142,.4); border-color: var(--brand); }
.field-error { color: var(--danger); font-size: .8rem; font-style: normal; font-weight: 600; }
.radio-card { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card:hover { border-color: var(--ink-soft); }
.radio-card:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.radio-card input { accent-color: var(--brand-dark); width: 17px; height: 17px; }
.checkout-summary .btn { margin-top: 6px; }

/* ---- Order success ---- */
.order-success { max-width: 640px; }
.success-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; box-shadow: var(--shadow-sm); }
.success-ic { font-size: 3.6rem; }
.success-thanks { color: var(--ink-soft); }
.order-number-box { display: inline-flex; flex-direction: column; gap: 2px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 13px 28px; margin: 14px 0 20px; }
.order-number-box span { font-size: .78rem; color: var(--ink-mute); font-weight: 700; }
.order-number-box strong { font-size: 1.4rem; letter-spacing: .05em; }
.wa-prompt { background: var(--brand-tint); border: 1px solid #c5ebd3; border-radius: var(--radius); padding: 20px; margin: 16px 0; }
.order-recap { text-align: start; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.order-recap ul { list-style: none; padding: 0; margin: 0 0 12px; }
.order-recap li { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.recap-address { font-size: .86rem; color: var(--ink-soft); margin-top: 12px; }

/* ---- Contact ---- */
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 560px; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.contact-list li:last-child { border-bottom: 0; }

/* ---- Footer ---- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.68); margin-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; padding: 50px 20px 32px; }
.footer-brand { color: #fff; margin-bottom: 12px; }
.footer-about { font-size: .9rem; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 13px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { padding: 6px 0; font-size: .9rem; }
.footer-col a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.1); padding-block: 20px; font-size: .82rem; flex-wrap: wrap; gap: 8px; }
.footer-admin { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 6px 15px; }
.footer-admin:hover { background: rgba(255,255,255,.1); }

/* ---- Cart toast ---- */
.cart-toast {
  position: fixed; z-index: 60; inset-inline: 0; bottom: 20px; margin: 0 auto; width: max-content; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; border-radius: 999px; padding: 12px 16px 12px 20px;
  box-shadow: var(--shadow-lg); font-weight: 600; font-size: .92rem;
  transform: translateY(140%); transition: transform .32s cubic-bezier(.2,.9,.2,1);
}
.cart-toast.show { transform: translateY(0); }
.cart-toast.err { background: #7f1d1d; }
.cart-toast svg { width: 18px; height: 18px; color: var(--brand); flex-shrink: 0; }
.cart-toast.err svg { color: #fca5a5; }
.cart-toast .cart-toast-msg { max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-toast-link {
  background: var(--brand); color: var(--brand-ink); font-weight: 800; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}

/* ---- Nutrition calculator ---- */
.calc-head { text-align: center; max-width: 620px; margin: 0 auto 30px; }
.calc-head h1 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.calc-head p { color: var(--ink-soft); font-size: 1.02rem; margin: 0; }
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; max-width: 980px; margin: 0 auto; }
.calc-form, .calc-results {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.calc-gender { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.calc-gender-opt { position: relative; }
.calc-gender-opt input { position: absolute; opacity: 0; }
.calc-gender-opt span {
  display: block; text-align: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s;
}
.calc-gender-opt input:checked + span { border-color: var(--brand); background: var(--brand-tint); color: #06603f; }
.calc-gender-opt input:focus-visible + span { outline: 3px solid rgba(18,209,142,.45); }
.calc-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-actions { display: flex; gap: 10px; margin-top: 6px; }
.calc-actions .btn-block { flex: 1; }

.calc-results h2 { font-size: 1.2rem; margin-bottom: 16px; }
.calc-sub { font-size: 1rem; margin: 20px 0 10px; }
.calc-target {
  background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff;
  border-radius: var(--radius-sm); padding: 18px 20px; text-align: center; margin-bottom: 14px;
}
.calc-target-label { display: block; font-size: .82rem; color: rgba(255,255,255,.65); font-weight: 700; }
.calc-target-value { display: block; font-size: 1.05rem; margin-top: 4px; }
.calc-target-value strong { font-size: 2rem; font-weight: 900; color: var(--brand); }
.calc-target-hint { display: block; font-size: .8rem; color: rgba(255,255,255,.6); margin-top: 4px; }
.calc-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 6px; }
.calc-mini > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px 14px; }
.calc-mini-label { display: block; font-size: .76rem; color: var(--ink-mute); font-weight: 700; }
.calc-mini-value { display: block; font-size: .95rem; margin: 2px 0; }
.calc-mini-value strong { font-size: 1.25rem; font-weight: 900; }
.calc-mini-hint { display: block; font-size: .74rem; color: var(--ink-mute); }
.macro-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--surface-2); margin-bottom: 12px; }
.macro-seg { height: 100%; transition: width .4s cubic-bezier(.2,.8,.2,1); }
.macro-p { background: var(--brand); }
.macro-c { background: #0891b2; }
.macro-f { background: var(--warn); }
.macro-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.macro-item {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 10px 12px; font-size: .84rem; font-weight: 600; color: var(--ink-soft);
}
.macro-item strong { font-size: 1.15rem; color: var(--ink); font-weight: 900; margin-inline-start: auto; }
.macro-item .dot { width: 9px; height: 9px; border-radius: 50%; }
.calc-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.calc-extra > div { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.calc-extra span { display: block; font-size: .78rem; color: var(--ink-mute); font-weight: 700; }
.calc-extra strong { font-size: 1.3rem; font-weight: 900; }
.calc-cta { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.calc-cta strong { font-size: 1rem; }
.calc-cta p { font-size: .88rem; color: var(--ink-soft); margin: 4px 0 12px; }
.calc-cta-links { display: flex; gap: 8px; flex-wrap: wrap; }
.calc-disclaimer {
  max-width: 720px; margin: 26px auto 0; text-align: center; font-size: .84rem; color: var(--ink-soft);
  background: #fff8ec; border: 1px solid #f4e2c0; border-radius: var(--radius-sm); padding: 12px 16px;
}

.calc-head-sm { margin-bottom: 20px; }
.calc-head-sm h2 { font-size: 1.3rem; }
.calc-head-sm p { font-size: .95rem; }

/* tabs */
.calc-tabs {
  display: flex; gap: 6px; overflow-x: auto; max-width: 980px; margin: 0 auto 22px;
  padding-bottom: 4px; scrollbar-width: none;
}
.calc-tabs::-webkit-scrollbar { display: none; }
.calc-tab {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  font: inherit; font-weight: 700; font-size: .88rem; padding: 10px 16px; border-radius: 999px; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s; white-space: nowrap;
}
.calc-tab:hover { border-color: var(--ink-soft); }
.calc-tab.active { background: var(--navy); color: #fff; border-color: var(--navy); }

.calc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 2px; margin: 4px 0 14px; }
.calc-fieldset legend { font-size: .8rem; font-weight: 700; color: var(--ink-soft); padding: 0 6px; }
.calc-extra-stack { grid-template-columns: 1fr; }

/* 1RM % table */
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table th { text-align: start; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-mute); padding: 8px 10px; border-bottom: 2px solid var(--line); }
.calc-table td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.calc-table tr:last-child td { border-bottom: 0; }

/* BMI / body-fat / category tag */
.bmi-tag { display: inline-block; font-size: .82rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.bmi-tag.is-under  { background: #e0edff; color: #1d4ed8; }
.bmi-tag.is-normal { background: var(--brand-tint); color: #06603f; }
.bmi-tag.is-over   { background: #fef3e2; color: #92590b; }
.bmi-tag.is-obese  { background: #fee2e2; color: #b91c1c; }

/* training-volume scale */
.vol-scale { position: relative; display: flex; height: 16px; border-radius: 999px; overflow: hidden; margin-top: 6px; }
.vol-seg { height: 100%; }
.vol-low    { flex: 6;  background: #fde3c0; }
.vol-maint  { flex: 4;  background: #cdeede; }
.vol-growth { flex: 10; background: var(--brand); }
.vol-high   { flex: 8;  background: #fca5a5; }
.vol-marker {
  position: absolute; top: -4px; width: 3px; height: 24px; background: var(--navy); border-radius: 2px;
  transform: translateX(-50%); transition: inset-inline-start .35s cubic-bezier(.2,.8,.2,1);
}

/* home promo for the calculator */
.calc-promo { background: var(--surface); border-block: 1px solid var(--line); }
.calc-promo-inner {
  display: flex; align-items: center; gap: 20px; padding: 30px 20px; max-width: var(--maxw); margin: 0 auto; flex-wrap: wrap;
}
.calc-promo-ic {
  width: 58px; height: 58px; border-radius: 16px; flex-shrink: 0; display: grid; place-items: center; font-size: 1.9rem;
  background: linear-gradient(135deg, var(--brand-tint), #dff6ee);
}
.calc-promo-txt { flex: 1; min-width: 220px; }
.calc-promo-txt strong { display: block; font-size: 1.12rem; }
.calc-promo-txt span { color: var(--ink-soft); font-size: .92rem; }

@media (max-width: 860px) {
  .calc-layout { grid-template-columns: 1fr; }
}

/* ---- Error ---- */
.error-page { text-align: center; padding: 90px 20px; }
.error-code { font-size: 4.5rem; font-weight: 900; color: var(--brand-dark); }
.error-message { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 26px; }

/* ---- Responsive ---- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding: 48px 20px 54px; }
  .hero-text p { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-card { max-width: 420px; margin: 8px auto 0; }
  .hero-card-row { text-align: start; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-filters { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 26px; }
  .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li:not(:last-child)::after { content: '↓' !important; inset: auto 0 -16px 0 !important; top: auto; left: 0; right: 0; transform: none; text-align: center; }
  .buy-bar { display: flex; }
  body.has-buybar { padding-bottom: 78px; }
}
@media (max-width: 680px) {
  .header-inner { grid-template-columns: auto 1fr; grid-template-areas: "brand actions" "search search"; row-gap: 12px; }
  .brand { grid-area: brand; }
  .header-actions { grid-area: actions; justify-self: end; }
  .search { grid-area: search; }
  .brand-text { display: none; }
  .section { padding: 40px 0; }
  .cart-table thead { display: none; }
  .cart-table, .cart-table tbody, .cart-table tr, .cart-table td { display: block; width: 100%; }
  .cart-table tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  .cart-table td { border: 0; padding: 6px 16px; }
  .cart-table td[data-label]::before { content: attr(data-label) " · "; font-weight: 700; color: var(--ink-mute); }
  .footer-grid { grid-template-columns: 1fr; }
}
