/* Najah Solidaire – shared base. Each page sets its own colours and type through these variables. */
:root {
  --bg: #F2E8CD;
  --paper: #FBF6E8;
  --ink: #38483D;
  --ink-soft: #5C6B60;
  --accent: #914228;
  --accent-ink: #FFFFFF;
  --deep: #38483D;
  --deep-ink: #F2E8CD;
  --line: rgba(56, 72, 61, 0.16);
  --body: "Poppins", "Segoe UI", system-ui, sans-serif;
  --display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { height: 38px; width: auto; }
.brand span { font-family: "Poppins", system-ui, sans-serif; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.top nav { display: flex; align-items: center; gap: 18px; }
.top nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 14px; }
.top nav a:hover { color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; font: 600 12px/1 "Poppins", system-ui, sans-serif; color: var(--ink); padding: 8px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
@media (max-width: 640px) { .top nav a.hide-sm { display: none; } .brand img { height: 32px; } }

/* common blocks */
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 13px 22px; font: 600 15px/1.2 "Poppins", system-ui, sans-serif; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { filter: brightness(0.94); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.sec { padding: 72px 0; }
.sec h2 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 14px; }
.lead { font-size: 18px; max-width: 62ch; color: var(--ink-soft); margin: 0; }

/* vision: three short commitments */
.vision { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.vision div { background: var(--paper); border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.vision h3 { font-family: var(--display); font-size: 20px; margin: 0 0 6px; }
.vision p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) { .vision { grid-template-columns: 1fr; } }

/* shop: product cards (filled by shop.js from products.js) */
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.product { --tile: var(--accent); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.product .pic { position: relative; aspect-ratio: 4 / 3; background: var(--tile); background-image: radial-gradient(rgba(255,255,255,0.16) 1.5px, transparent 1.6px); background-size: 16px 16px; display: grid; place-items: center; overflow: hidden; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; }
.product .initial { font: 700 76px/1 var(--display); color: rgba(255,255,255,0.92); }
.product .flag { position: absolute; left: 12px; top: 12px; font: 600 12px/1 "Poppins", system-ui, sans-serif; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.92); color: var(--tile); }
.product .body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.product h3 { font-family: var(--display); font-size: 20px; line-height: 1.2; margin: 0; }
.product .desc { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.product .field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.product select { font: 500 14px/1.3 var(--body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; width: 100%; }
.product .buy { margin-top: auto; padding-top: 6px; }
.product .price { margin: 0 0 8px; font: 700 22px/1 "Poppins", system-ui, sans-serif; color: var(--tile); }
.product .buy-row { display: flex; gap: 10px; align-items: center; }
.product .add { flex: 1; justify-content: center; padding: 11px 14px; font-size: 14px; }
.product .add.ok { background: #2E7D4F; color: #fff; }
.product.sold-out .pic { filter: grayscale(0.7); }
.product .add:disabled { opacity: 0.5; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); flex-shrink: 0; }
.qty button { width: 34px; height: 38px; border: 0; background: transparent; font: 600 18px/1 "Poppins", system-ui, sans-serif; color: var(--ink); cursor: pointer; border-radius: 999px; }
.qty button:hover { color: var(--accent); }
.qty span { min-width: 22px; text-align: center; font-weight: 600; font-size: 15px; }
@media (max-width: 820px) { .products { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .products { grid-template-columns: 1fr; } }

/* shop: country filter chips (boutique page) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { --tile: var(--ink); font: 600 14px/1 "Poppins", system-ui, sans-serif; padding: 10px 16px; border-radius: 999px; border: 2px solid var(--tile); background: transparent; color: var(--tile); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--tile); color: #fff; }

/* shop: cart button and drawer */
.cart-fab { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--ink); color: var(--bg); font: 600 15px/1 "Poppins", system-ui, sans-serif; cursor: pointer; box-shadow: 0 10px 28px rgba(0,0,0,0.22); }
.cart-fab .count { min-width: 24px; height: 24px; padding: 0 6px; display: inline-grid; place-items: center; border-radius: 999px; background: var(--bg); color: var(--ink); font-size: 13px; }
.cart-fab.has-items .count { background: var(--accent); color: var(--accent-ink); }
.cart-fab.bump { animation: cart-bump 0.4s ease; }
@keyframes cart-bump { 40% { transform: scale(1.12); } }
.cart-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,0.4); opacity: 0; transition: opacity 0.25s ease; }
.cart-backdrop.open { opacity: 1; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(420px, 100%); background: var(--bg); color: var(--ink); display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(0,0,0,0.2); transform: translateX(100%); transition: transform 0.25s ease; font-family: var(--body); }
.cart.open { transform: none; }
.cart[hidden], .cart-backdrop[hidden] { display: none; }
.cart-lock { overflow: hidden; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { margin: 0; font-family: var(--display); font-size: 22px; }
.cart .close { width: 40px; height: 40px; border: 0; border-radius: 999px; background: var(--paper); font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; }
.cart-empty { padding: 24px 20px; color: var(--ink-soft); margin: 0; }
.cart-lines { list-style: none; margin: 0; padding: 8px 20px; overflow-y: auto; flex: 1; }
.cart-lines li { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; padding: 14px 0 14px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--tile); padding-left: 12px; }
.cart-lines .info { grid-column: 1 / -1; display: flex; flex-direction: column; }
.cart-lines .info b { font-size: 15px; }
.cart-lines .info span { font-size: 13px; color: var(--ink-soft); }
.cart-lines .line-total { font-weight: 700; justify-self: end; }
.cart-lines .rm { grid-column: 1 / -1; justify-self: start; border: 0; background: none; padding: 0; color: var(--ink-soft); font: 500 13px/1 var(--body); text-decoration: underline; cursor: pointer; }
.cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); background: var(--paper); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 12px; font-size: 18px; }
.cart-total b { font-size: 24px; }
.cart .order { width: 100%; justify-content: center; background: #1F8F4E; color: #fff; }
.cart-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin: 10px 0 6px; }
.cart .clear { border: 0; background: none; padding: 0; color: var(--ink-soft); font: 500 13px/1 var(--body); text-decoration: underline; cursor: pointer; }
@media (max-width: 520px) { .cart-fab { right: 12px; bottom: 12px; } .cart-fab .label { display: none; } }

/* footer */
footer { background: var(--deep); color: var(--deep-ink); padding: 44px 0 34px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--deep-ink); }
footer img { height: 44px; width: auto; }
footer p { margin: 0; font-size: 14px; opacity: 0.85; }
