/* =====================================================================
   ISMOD Lebanon — global styles
   Brand: black / white / red accent, Montserrat, premium & minimal.
   All colours are CSS variables (see :root) so they're easy to tweak.
   ===================================================================== */

:root {
  /* Brand palette (from BRIEF.md) */
  --black: #000000;
  --white: #ffffff;
  --red: #c42126;          /* the single accent */
  --red-dark: #a51b1f;
  --dark-dove: #455365;
  --dove: #7e92a8;
  --muted: #959594;
  --gold: #d3a25b;
  --soft: #f2ede8;         /* soft section background */

  --ink: #111112;          /* near-black body text */
  --line: #e6e1db;         /* hairline borders on light bg */
  --line-dark: #2a2a2c;    /* hairline borders on dark bg */

  --maxw: 1200px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.14);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 64px;

  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ----------------------------- reset ------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* visually-hidden but available to screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* keyboard focus ring — visible & on-brand */
:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----------------------------- layout ----------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 40px);
}

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--soft { background: var(--soft); }
.section--dark { background: var(--black); color: var(--white); }

.stack > * + * { margin-top: 1rem; }

/* ---------------------------- typography -------------------------- */
h1, h2, h3, h4 { line-height: 1.08; margin: 0 0 0.5em; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.6rem); }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.9rem;
}
.section--dark .eyebrow { color: var(--gold); }

.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--muted); }
.section--dark .lead { color: #c9c9cb; }

.muted { color: var(--muted); }
.center { text-align: center; }

/* ----------------------------- buttons ---------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.95em 1.8em;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease), opacity 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn--red { background: var(--red); border-color: var(--red); }
.btn--red:hover { background: var(--red-dark); border-color: var(--red-dark); }

.btn--outline { background: transparent; color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }

.section--dark .btn--outline { color: var(--white); border-color: var(--white); }
.section--dark .btn--outline:hover { background: var(--white); color: var(--black); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--soft); color: var(--ink); box-shadow: none; transform: none; }

.btn--block { width: 100%; }
.btn--lg { padding: 1.1em 2.2em; font-size: 1rem; }
.btn[disabled], .btn.is-disabled {
  opacity: 0.4; cursor: not-allowed; pointer-events: none;
}

.link-arrow {
  font-weight: 700; letter-spacing: 0.02em; color: var(--ink);
  border-bottom: 2px solid var(--red); padding-bottom: 2px;
}
.link-arrow:hover { color: var(--red); }

/* ============================ HEADER ============================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.announcement {
  background: var(--black); color: var(--white);
  text-align: center; font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; font-weight: 600;
  padding: 0.5em 1em;
}
.announcement[hidden] { display: none; }

.nav {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; margin-right: auto; }
.nav__brand img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a {
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink);
  transition: color 0.15s var(--ease);
}
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--red); }

.nav__cart {
  position: relative; display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.5em 0.7em; border-radius: 999px;
}
.nav__cart:hover { color: var(--red); }
.cart-count {
  display: inline-grid; place-items: center;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--red); color: #fff;
  border-radius: 999px; font-size: 0.7rem; line-height: 1;
}
.cart-count[data-count="0"] { display: none; }

.nav__toggle {
  display: none; background: none; border: 0; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); display: block; }

@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 0.5rem clamp(16px, 4vw, 40px) 1rem;
    box-shadow: var(--shadow);
  }
  .nav__links:not(.is-open) { display: none; }
  .nav__links a { padding: 0.7rem 0; width: 100%; }
}

/* ============================ HERO =============================== */
.hero {
  background: var(--black); color: var(--white);
  position: relative; overflow: hidden;
}
.hero__inner {
  display: grid; gap: 2rem; align-items: center;
  padding-block: clamp(56px, 10vw, 120px);
}
.hero h1 { color: #fff; }
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #c9c9cb; max-width: 46ch; }
.hero__cta { margin-top: 1.6rem; display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero__glow {
  position: absolute; inset: auto -10% -40% auto; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(196, 33, 38, 0.5), transparent 60%);
  filter: blur(40px); pointer-events: none;
}

/* ============================ GRID =============================== */
.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

/* ------------------------- product card --------------------------- */
.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__media {
  position: relative; aspect-ratio: 1 / 1; background: var(--soft);
  display: grid; place-items: center; overflow: hidden;
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.card__title { font-size: 1.25rem; margin: 0; }
.card__compat { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.03em; }
.card__desc { font-size: 0.9rem; color: var(--muted); flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.8rem; gap: 1rem; }

.price { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; }
.price__compare { color: var(--muted); font-weight: 600; font-size: 0.95rem; text-decoration: line-through; margin-left: 0.5rem; }

.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--red); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.4em 0.7em; border-radius: 999px;
}
.badge--soldout { background: var(--ink); }
.card.is-soldout .card__media { opacity: 0.72; }

/* ----------------------- value props / steps ---------------------- */
.feature { text-align: left; }
.feature__icon {
  width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 12px; background: var(--soft); color: var(--red);
  font-size: 1.4rem; margin-bottom: 1rem;
}
.section--dark .feature__icon { background: #161617; }
.feature h3 { font-size: 1.1rem; }
.feature p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.section--dark .feature p { color: #b6b6b8; }

.step__num {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em;
  color: var(--red); margin-bottom: 0.6rem;
}

/* ----------------------------- FAQ -------------------------------- */
.faq-list { max-width: 760px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 1.2rem 0;
  font-weight: 700; font-size: 1.02rem; display: flex; justify-content: space-between; gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--red); font-weight: 800; font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item__a { padding: 0 0 1.3rem; color: var(--muted); }
.faq-item__a p { margin: 0 0 0.8em; white-space: pre-line; }

/* ============================ FOOTER ============================= */
.site-footer { background: var(--black); color: #c9c9cb; padding-block: clamp(40px, 7vw, 72px); font-size: 0.9rem; }
.site-footer a { color: #c9c9cb; }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; gap: 2rem; } }
.footer__brand img { height: 24px; margin-bottom: 1rem; }
.footer__col h4 { color: #fff; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer__social { display: flex; gap: 1rem; margin-top: 0.5rem; }
.footer__disclaimer {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-dark);
  font-size: 0.78rem; color: var(--muted); line-height: 1.6;
}
.footer__legal { margin-top: 1rem; font-size: 0.75rem; color: var(--muted); display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* ============================ MODALS ============================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 1.5rem;
  background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal__card {
  background: var(--white); color: var(--ink);
  border-radius: var(--radius); padding: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 440px; width: 100%; text-align: center; box-shadow: var(--shadow-lg);
}
.modal__card .icon-mark { width: 54px; margin: 0 auto 1.2rem; }
.modal__card h2 { font-size: 1.6rem; }
.modal__actions { display: flex; gap: 0.8rem; justify-content: center; margin-top: 1.6rem; flex-wrap: wrap; }
.modal__fine { font-size: 0.78rem; color: var(--muted); margin-top: 1.2rem; }

/* ====================== PRODUCT DETAIL PAGE ===================== */
.pdp { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 880px) { .pdp { grid-template-columns: 1fr; } }

.gallery__main {
  aspect-ratio: 1 / 1; background: var(--soft); border-radius: var(--radius);
  overflow: hidden; display: grid; place-items: center; position: relative;
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs { display: flex; gap: 0.6rem; margin-top: 0.8rem; flex-wrap: wrap; }
.gallery__thumb {
  width: 72px; height: 72px; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; background: var(--soft); padding: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--black); }

.pdp__compat {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ink); background: var(--soft);
  padding: 0.45em 0.9em; border-radius: 999px; margin-bottom: 1rem;
}
.pdp__price { display: flex; align-items: baseline; gap: 0.6rem; margin: 1.2rem 0; }
.pdp__price .price { font-size: 2rem; }

.swatches { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 0.6rem 0 1.4rem; }
.swatch {
  position: relative; display: inline-flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: none; border: 0; padding: 0;
}
.swatch__dot {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--line); box-shadow: inset 0 0 0 2px #fff;
  transition: transform 0.12s var(--ease);
}
.swatch[aria-pressed="true"] .swatch__dot { border-color: var(--black); transform: scale(1.08); }
.swatch__name { font-size: 0.72rem; letter-spacing: 0.04em; color: var(--muted); }
.swatch.is-soldout { opacity: 0.5; }
.swatch.is-soldout .swatch__dot::after {
  content: ""; position: absolute; top: 19px; left: 0; width: 40px; height: 2px;
  background: var(--red); transform: rotate(-45deg); transform-origin: center;
}

.qty {
  display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden;
}
.qty button { width: 42px; height: 42px; background: none; border: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.qty button:hover { background: var(--soft); }
.qty input {
  width: 48px; text-align: center; border: 0; font-size: 1rem; font-weight: 700;
  font-family: inherit; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; gap: 0.8rem; align-items: center; margin: 1.4rem 0; flex-wrap: wrap; }
.stock-note { font-size: 0.82rem; font-weight: 600; }
.stock-note.in { color: #1a7f37; }
.stock-note.out { color: var(--red); }

.specs-table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.specs-table th, .specs-table td { text-align: left; padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; vertical-align: top; }
.specs-table th { width: 42%; font-weight: 700; color: var(--ink); }
.specs-table td { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.checklist li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.95rem; }
.checklist li::before { content: "\2713"; color: var(--red); font-weight: 800; }

.pdp-section { padding-top: clamp(2.5rem, 5vw, 4rem); }
.pdp-section h2 { font-size: 1.5rem; }
.pdp__desc p { color: var(--muted); white-space: pre-line; margin: 0 0 1em; }

/* ============================= CART ============================= */
.cart-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 880px) { .cart-layout { grid-template-columns: 1fr; } }

.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 1rem; align-items: center;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line);
}
.cart-item__img { width: 88px; height: 88px; border-radius: var(--radius-sm); background: var(--soft); object-fit: cover; }
.cart-item__title { font-weight: 700; margin: 0; }
.cart-item__meta { font-size: 0.82rem; color: var(--muted); }
.cart-item__remove { background: none; border: 0; color: var(--muted); font-size: 0.8rem; text-decoration: underline; padding: 0; margin-top: 0.4rem; }
.cart-item__remove:hover { color: var(--red); }
.cart-item__right { text-align: right; display: grid; gap: 0.5rem; justify-items: end; }
@media (max-width: 520px) {
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item__img { width: 64px; height: 64px; }
  .cart-item__right { grid-column: 1 / -1; justify-items: stretch; text-align: left; }
}

.summary {
  background: var(--soft); border-radius: var(--radius); padding: 1.6rem; position: sticky; top: calc(var(--header-h) + 16px);
}
.summary h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.06em; }
.summary__row { display: flex; justify-content: space-between; padding: 0.55rem 0; font-size: 0.95rem; }
.summary__row--total { border-top: 2px solid var(--ink); margin-top: 0.6rem; padding-top: 1rem; font-weight: 800; font-size: 1.2rem; }

.empty-state { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }
.empty-state__icon { font-size: 3rem; margin-bottom: 1rem; }

/* ============================ FORMS ============================= */
.field { display: grid; gap: 0.4rem; margin-bottom: 1.1rem; }
.field label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 0.98rem; padding: 0.8em 0.9em;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink);
  transition: border-color 0.15s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--black); }
.field textarea { resize: vertical; min-height: 88px; }
.field__hint { font-size: 0.78rem; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.notice {
  border-radius: var(--radius-sm); padding: 1rem 1.2rem; font-size: 0.9rem; margin: 1rem 0;
  border: 1.5px solid var(--line); background: var(--soft);
}
.notice--warn { border-color: var(--gold); background: #fbf3e4; color: #6b4e1d; }
.notice--error { border-color: var(--red); background: #fdecec; color: #8a1418; }
.notice--ok { border-color: #1a7f37; background: #e9f7ee; color: #14622b; }
.notice strong { display: block; margin-bottom: 0.3rem; }
.notice__actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 0.9rem; }

.pay-box { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.4rem; background: #fff; }
.pay-box dl { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1rem; margin: 0.6rem 0 0; font-size: 0.92rem; }
.pay-box dt { font-weight: 700; }
.pay-box dd { margin: 0; }

/* Payment method chooser */
.pay-methods { display: grid; gap: 0.6rem; margin: 0.4rem 0 1rem; }
.pay-method { display: flex; align-items: center; gap: 0.7rem; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1.1rem; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.pay-method:hover { border-color: var(--ink); }
.pay-method:has(input:checked) { border-color: var(--red); background: #fff; box-shadow: inset 0 0 0 1px var(--red); }
.pay-method input { accent-color: var(--red); width: 1.1rem; height: 1.1rem; flex: none; }
.pay-method span { font-size: 0.95rem; }

/* ====================== ORDER RECEIVED ========================= */
.confirm { text-align: center; max-width: 620px; margin-inline: auto; }
.confirm__check {
  width: 76px; height: 76px; border-radius: 50%; background: var(--red); color: #fff;
  display: grid; place-items: center; font-size: 2.4rem; margin: 0 auto 1.5rem;
}
.confirm__ref {
  display: inline-block; font-weight: 800; letter-spacing: 0.1em;
  background: var(--soft); padding: 0.5em 1em; border-radius: var(--radius-sm); margin: 0.6rem 0 1.5rem;
}
.steps-ordered { text-align: left; counter-reset: s; list-style: none; padding: 0; margin: 2rem auto 0; max-width: 480px; }
.steps-ordered li { counter-increment: s; position: relative; padding: 0.7rem 0 0.7rem 2.6rem; border-bottom: 1px solid var(--line); }
.steps-ordered li::before {
  content: counter(s); position: absolute; left: 0; top: 0.7rem;
  width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: #fff;
  display: grid; place-items: center; font-size: 0.85rem; font-weight: 800;
}

/* ============================ ADMIN ============================= */
.admin-shell { max-width: 980px; margin-inline: auto; }
.admin-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 1.8rem; }
.admin-tab {
  background: none; border: 0; border-bottom: 3px solid transparent;
  padding: 0.8em 1.1em; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--muted);
}
.admin-tab.is-active { color: var(--ink); border-bottom-color: var(--red); }
.admin-panel[hidden] { display: none; }

.admin-toolbar {
  display: flex; gap: 0.7rem; flex-wrap: wrap; align-items: center;
  background: var(--soft); padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.6rem;
}
.admin-toolbar .spacer { margin-left: auto; }
.admin-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; margin-bottom: 1.4rem; }
.admin-card > h3 { margin-top: 0; font-size: 1.05rem; }
.admin-color-row { border: 1px dashed var(--line); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; }
.admin-thumbs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0.6rem 0; }
.admin-thumb { position: relative; width: 64px; height: 64px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--soft); }
.admin-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-thumb button { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--red); color: #fff; font-size: 0.7rem; line-height: 1; display: grid; place-items: center; }
.admin-saved { font-size: 0.82rem; color: #1a7f37; font-weight: 600; }

.tag {
  display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 0.3em 0.6em; border-radius: 999px;
  background: var(--soft); color: var(--muted);
}
.tag--todo { background: #fbf3e4; color: #8a6516; }

/* ----------------------- breadcrumb / misc ------------------------ */
.crumb { font-size: 0.8rem; color: var(--muted); margin-bottom: 1.2rem; letter-spacing: 0.03em; }
.crumb a:hover { color: var(--red); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===== Guides / blog ===== */
.container--narrow { max-width: 760px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.4rem; }
.blog-card { display: flex; flex-direction: column; gap: 0.5rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.6rem; text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.blog-card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.06); }
.blog-card__meta { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.blog-card__title { font-size: 1.25rem; line-height: 1.25; margin: 0; }
.blog-card__excerpt { color: var(--muted); font-size: 0.92rem; margin: 0; flex: 1; }
.blog-card .link-arrow { margin-top: 0.3rem; }

.article__head { margin-bottom: 1.6rem; }
.article__meta { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.article__head h1 { margin: 0.4rem 0 0; }
.article__body { font-size: 1.04rem; line-height: 1.75; color: #2a2a2a; }
.article__body h2 { margin: 2rem 0 0.6rem; font-size: 1.4rem; }
.article__body h3 { margin: 1.5rem 0 0.4rem; font-size: 1.12rem; }
.article__body p { margin: 0 0 1rem; }
.article__body ul { margin: 0 0 1rem 1.2rem; padding: 0; }
.article__body li { margin: 0.3rem 0; }
.article__body a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.article__rule { border: 0; border-top: 1.5px solid var(--line); margin: 2.4rem 0 1.6rem; }
.article__cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.4rem; }
.link-arrow--back::before { content: "← "; }

/* ===== Share / refer block ===== */
.share-block { background: var(--soft); border-radius: var(--radius); padding: 1.6rem; margin: 1.6rem 0; }
.share-block h3 { margin: 0 0 0.4rem; }
.share-block p { margin: 0 0 1rem; font-size: 0.92rem; }
.share-block__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ===== Floating WhatsApp button ===== */
.wa-fab { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,0.25); transition: transform 0.15s; }
.wa-fab:hover { transform: scale(1.06); }
@media (max-width: 600px) { .wa-fab { width: 50px; height: 50px; right: 14px; bottom: 14px; } }
