/* ============================================================
   Ramadan Store — warm editorial storefront (light theme)
   Ivory · deep brown · terracotta · muted gold · calm green
   Visual layer only. RTL, Arabic-first.
   ============================================================ */

@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/cairo-arabic.woff2') format('woff2');
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
  font-family: 'Cairo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/fonts/cairo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122;
}

/* ------------------------------------------------------------
   Tokens
   ------------------------------------------------------------ */
:root {
  /* warm light surfaces */
  --bg: #f4ede0;            /* warm ivory page */
  --bg-2: #efe6d6;          /* slightly deeper ivory (bands) */
  --card: #fffdf9;          /* card / panel */
  --card-2: #faf4ea;        /* subtle inner */

  /* ink */
  --ink: #2a211b;           /* deep warm brown — primary text */
  --ink-2: #5c5147;         /* secondary */
  --ink-3: #8b7f72;         /* tertiary / meta */

  /* lines */
  --line: #e3d7c3;
  --line-2: #d6c7ad;
  --ink-line: rgba(42, 33, 27, 0.14);

  /* accents */
  --terra: #c0562f;         /* terracotta — primary accent */
  --terra-2: #a5451f;       /* darker (hover) */
  --terra-soft: #f6e2d7;
  --gold: #a9812f;          /* muted gold — price / premium */
  --gold-soft: #f0e4c6;
  --ink-panel: #2a211b;     /* dark contrast panel */
  --ink-panel-2: #3a2f26;

  /* status / whatsapp */
  --wa: #2f9c5b;
  --wa-2: #26834c;
  --wa-soft: #e2f1e6;
  --ok: #2f8f56;
  --sold: #b4472f;
  --sold-soft: #f5ddd4;

  /* shape + depth */
  --r: 16px;
  --r-sm: 11px;
  --r-xs: 8px;
  --btn-r: 9px;
  --shadow-1: 0 1px 2px rgba(42, 33, 27, 0.06), 0 2px 8px rgba(42, 33, 27, 0.05);
  --shadow-2: 0 12px 30px rgba(42, 33, 27, 0.10);
  --shadow-card: 0 10px 24px rgba(42, 33, 27, 0.08);

  --maxw: 1180px;
  --gutter: 1.6rem;
  --font: 'Cairo', 'Segoe UI', Tahoma, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.22; letter-spacing: -0.015em; color: var(--ink); }
p { margin: 0; }
::selection { background: var(--terra-soft); color: var(--terra-2); }

:focus-visible { outline: 2px solid var(--terra); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* section rhythm — compact */
.section { padding-block: 2.6rem; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; }
.section-head h2 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.7rem); font-weight: 800; }
.section-sub { color: var(--ink-2); font-size: 0.9rem; margin-top: 0.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terra-2);
}

/* ------------------------------------------------------------
   Buttons — medium radius, strong, not pills
   ------------------------------------------------------------ */
.btn {
  --py: 0.62rem; --px: 1.2rem;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: var(--py) var(--px);
  border-radius: var(--btn-r);
  border: 1.5px solid transparent;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:active { transform: translateY(1px); }

/* primary — terracotta (mapped onto existing .btn-gold hook) */
.btn-gold, .btn-primary { background: var(--terra); color: #fff; border-color: var(--terra); }
.btn-gold:hover, .btn-primary:hover { background: var(--terra-2); border-color: var(--terra-2); }

/* secondary — outline brown */
.btn-ghost, .btn-outline { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--ink); background: rgba(42, 33, 27, 0.04); }

/* whatsapp — calm green */
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-2); border-color: var(--wa-2); }

.btn-sm { --py: 0.44rem; --px: 0.85rem; font-size: 0.82rem; border-radius: var(--r-xs); }
.btn-block { width: 100%; }
.btn-disabled, .btn[aria-disabled="true"] {
  background: var(--card-2); color: var(--ink-3); border-color: var(--line);
  cursor: default; pointer-events: none;
}

/* ------------------------------------------------------------
   Header — slim, ivory, sticky
   ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  -webkit-backdrop-filter: saturate(120%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.12; }
.brand-name { font-size: 1.02rem; font-weight: 800; }
.brand-tag { font-size: 0.68rem; color: var(--ink-3); font-weight: 600; }
.site-nav { display: flex; align-items: center; gap: 0.15rem; }
.nav-link { padding: 0.4rem 0.7rem; border-radius: var(--r-xs); font-size: 0.88rem; color: var(--ink-2); font-weight: 700; transition: color 0.15s, background-color 0.15s; }
.nav-link:hover { color: var(--ink); background: rgba(42, 33, 27, 0.05); }
.nav-link[aria-current="page"] { color: var(--terra-2); }
.nav-cta { display: flex; align-items: center; gap: 0.55rem; }
.menu-toggle {
  display: none; width: 40px; height: 40px; align-items: center; justify-content: center;
  background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-xs);
  color: var(--ink); font-size: 1.1rem; cursor: pointer;
}
.mobile-menu { display: none; overflow: hidden; max-height: 0; transition: max-height 0.28s ease; background: var(--card); border-top: 1px solid transparent; }
.mobile-menu.open { max-height: 340px; border-top-color: var(--line); }
.mobile-menu .container { display: flex; flex-direction: column; padding-block: 0.4rem; }
.mobile-menu a { padding: 0.7rem 0.4rem; color: var(--ink-2); font-weight: 700; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }
.mobile-menu a:hover { color: var(--terra-2); }

/* ------------------------------------------------------------
   Hero — compact split (content + spotlight card)
   ------------------------------------------------------------ */
.hero { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 2.4rem;
  min-height: 460px;
  padding-block: 2.6rem;
}
.hero-content { max-width: 30rem; }
.hero-content h1 {
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.5rem);
  font-weight: 800; line-height: 1.18; margin: 0.85rem 0 0.7rem;
}
.hero-content h1 .grad { color: var(--terra); }
.hero-content > p { color: var(--ink-2); font-size: 1rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.4rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin: 1.4rem 0 0; padding: 1.1rem 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.84rem; color: var(--ink-2); font-weight: 600; }
.hero-points b { color: var(--terra-2); font-weight: 800; }

/* spotlight card (hero visual side) */
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6%;
  background: radial-gradient(120% 120% at 30% 20%, var(--terra-soft), transparent 60%),
              radial-gradient(120% 120% at 80% 90%, var(--gold-soft), transparent 60%);
  border-radius: 40% 60% 55% 45%;
  z-index: 0;
}
.spotlight {
  position: relative; z-index: 1;
  width: min(360px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.spotlight-tag {
  position: absolute; inset-block-start: 0.8rem; inset-inline-start: 0.8rem; z-index: 2;
  font-size: 0.72rem; font-weight: 800; color: #fff; background: var(--terra);
  padding: 0.28rem 0.7rem; border-radius: var(--r-xs);
}
.spotlight-media { aspect-ratio: 16 / 10; background: var(--ink-panel); }
.spotlight-media img { width: 100%; height: 100%; object-fit: cover; }
.spotlight-body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; }
.spotlight-body h3 { font-size: 1.1rem; font-weight: 800; line-height: 1.35; }
.spotlight-foot { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.2rem; }

/* ------------------------------------------------------------
   Services strip (main services)
   ------------------------------------------------------------ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }
.service-card {
  display: flex; align-items: flex-start; gap: 0.8rem;
  padding: 1.1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-1);
}
.service-card .ico {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center; font-size: 1.3rem;
  border-radius: var(--r-sm); background: var(--terra-soft); color: var(--terra-2);
}
.service-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: 0.2rem; }
.service-card p { font-size: 0.85rem; color: var(--ink-2); line-height: 1.55; }

/* ------------------------------------------------------------
   Category grid — pill-free tiles
   ------------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.85rem; }
.cat-card {
  position: relative; display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.cat-icon {
  flex: none; width: 46px; height: 46px; display: grid; place-items: center; font-size: 1.35rem;
  background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.cat-info { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.cat-name { font-size: 0.98rem; font-weight: 800; }
.cat-desc { font-size: 0.8rem; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.cat-meta { font-size: 0.76rem; color: var(--terra-2); font-weight: 800; margin-top: 0.08rem; }
.cat-card.soon { opacity: 0.96; }
.cat-card.soon .cat-icon { filter: grayscale(0.35); }
.chip-soon {
  position: absolute; inset-block-start: 0.55rem; inset-inline-end: 0.55rem;
  font-size: 0.64rem; font-weight: 800; color: var(--gold); background: var(--gold-soft);
  padding: 0.12rem 0.5rem; border-radius: var(--r-xs);
}

/* ------------------------------------------------------------
   Offer cards — vertical grid
   ------------------------------------------------------------ */
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.offer-card {
  display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.offer-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: var(--line-2); }
.offer-media { position: relative; aspect-ratio: 16 / 10; background: var(--ink-panel); }
.offer-img { width: 100%; height: 100%; object-fit: cover; }
.offer-badge, .offer-status {
  position: absolute; inset-block-start: 0.6rem; font-size: 0.66rem; font-weight: 800;
  padding: 0.24rem 0.6rem; border-radius: var(--r-xs);
}
.offer-badge { inset-inline-start: 0.6rem; color: #fff; background: var(--terra); }
.offer-status { inset-inline-end: 0.6rem; }
.offer-status.sold { color: #fff; background: var(--sold); }
.offer-status.soon { color: var(--ink); background: var(--gold-soft); }
.offer-card.sold-out .offer-media { filter: grayscale(0.55) brightness(0.95); }
.offer-card.coming-soon .offer-media { filter: grayscale(0.3); }

.offer-body { display: flex; flex-direction: column; gap: 0.4rem; padding: 0.85rem 0.95rem 0.95rem; flex: 1; }
.offer-cat {
  align-self: flex-start; font-size: 0.68rem; font-weight: 800; color: var(--ink-2);
  background: var(--card-2); border: 1px solid var(--line); padding: 0.1rem 0.5rem; border-radius: var(--r-xs);
}
.offer-title { font-size: 0.98rem; font-weight: 800; line-height: 1.35; }
.offer-desc { font-size: 0.82rem; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.offer-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  margin-top: auto; padding-top: 0.7rem; border-top: 1px dashed var(--line);
}
.price { display: flex; align-items: baseline; gap: 0.3rem; }
.price .old { color: var(--ink-3); text-decoration: line-through; font-size: 0.8rem; }
.price .now { color: var(--gold); font-size: 1.22rem; font-weight: 800; letter-spacing: -0.02em; }
.price .cur { color: var(--ink-3); font-size: 0.76rem; }

/* Offer cards — wide / horizontal (featured) */
.offers-wide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.offer-card--wide { flex-direction: row; align-items: stretch; }
.offer-card--wide .offer-media { flex: none; width: 42%; aspect-ratio: auto; border-inline-end: 1px solid var(--line); }
.offer-card--wide .offer-body { padding: 1rem 1.1rem; }
.offer-card--wide .offer-title { font-size: 1.05rem; }

/* ------------------------------------------------------------
   Coming soon band (subtle deeper ivory)
   ------------------------------------------------------------ */
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ------------------------------------------------------------
   CTA — dark contrast panel
   ------------------------------------------------------------ */
.cta-banner {
  text-align: center; padding: 2.2rem 1.4rem; border-radius: var(--r);
  background: var(--ink-panel); color: #f6efe4; border: 1px solid var(--ink-panel-2);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.25rem, 1rem + 1.1vw, 1.6rem); font-weight: 800; }
.cta-banner p { color: #cfc4b4; margin: 0.5rem auto 1.2rem; max-width: 46ch; font-size: 0.92rem; }
.cta-banner .btn-wa { box-shadow: 0 8px 20px rgba(47, 156, 91, 0.28); }

/* ------------------------------------------------------------
   Category page head
   ------------------------------------------------------------ */
.page-head { padding-top: 2rem; }
.crumbs { font-size: 0.84rem; color: var(--ink-2); margin-bottom: 0.6rem; }
.crumbs a { color: var(--terra-2); font-weight: 700; }
.page-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2rem); font-weight: 800; }
.page-head p { color: var(--ink-2); margin-top: 0.4rem; max-width: 60ch; }

/* Empty state */
.empty-state { text-align: center; padding: 2.6rem 1.5rem; background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--ink-2); }
.empty-state .ico { font-size: 1.9rem; display: block; margin-bottom: 0.5rem; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
.site-footer { margin-top: auto; background: var(--ink-panel); color: #e7ddce; padding-block: 2.2rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; }
.footer-brand { display: flex; align-items: center; gap: 0.55rem; font-weight: 800; color: #fff; }
.footer-brand img { width: 30px; height: 30px; border-radius: 7px; }
.footer-text { color: #b7ab9a; font-size: 0.86rem; margin-top: 0.55rem; max-width: 40ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; align-items: center; }
.footer-links a { color: #cfc3b2; font-size: 0.88rem; font-weight: 700; }
.footer-links a:hover { color: #fff; }
.footer-note { color: #9b8f7e; font-size: 0.78rem; margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; inset-block-end: 1.1rem; inset-inline-end: 1.1rem; z-index: 60;
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: var(--wa); box-shadow: 0 10px 22px rgba(47, 156, 91, 0.34);
  transition: transform 0.16s ease, background-color 0.16s ease;
}
.wa-float:hover { background: var(--wa-2); transform: translateY(-2px); }
.wa-float svg { width: 26px; height: 26px; fill: #fff; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   Admin panel (light)
   ============================================================ */
.admin-body { background: var(--bg); }
.admin-shell { width: 100%; max-width: 1080px; margin-inline: auto; padding-inline: var(--gutter); }
.admin-topbar { position: sticky; top: 0; z-index: 40; background: var(--card); border-bottom: 1px solid var(--line); }
.admin-topbar .admin-shell { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 58px; flex-wrap: wrap; }
.admin-nav { display: flex; align-items: center; gap: 0.2rem; flex-wrap: wrap; }
.admin-nav a { padding: 0.4rem 0.7rem; border-radius: var(--r-xs); font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.admin-nav a:hover { color: var(--ink); background: rgba(42, 33, 27, 0.05); }
.admin-nav a[aria-current="page"] { color: var(--terra-2); background: var(--terra-soft); }
.admin-nav form { margin: 0; }
.admin-user { font-size: 0.84rem; color: var(--ink-2); }
.admin-user strong { color: var(--ink); }
.admin-main { padding-block: 1.7rem; }
.admin-title { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.admin-title h1 { font-size: 1.35rem; font-weight: 800; }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; margin-bottom: 1.1rem; box-shadow: var(--shadow-1); }
.panel h2 { font-size: 1.02rem; font-weight: 800; margin-bottom: 0.9rem; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.85rem; margin-bottom: 1.1rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 1.05rem; box-shadow: var(--shadow-1); }
.stat-card .num { font-size: 1.7rem; font-weight: 800; color: var(--terra); line-height: 1; }
.stat-card .lbl { font-size: 0.8rem; color: var(--ink-2); margin-top: 0.35rem; }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 560px; }
.table th, .table td { padding: 0.68rem 0.6rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { color: var(--ink-2); font-weight: 700; font-size: 0.78rem; }
.table tbody tr:last-child td { border-bottom: 0; }
.cell-title { font-weight: 700; }
.cell-muted { color: var(--ink-2); font-size: 0.8rem; }
.actions { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.actions form { margin: 0; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: var(--r-xs); border: 1px solid var(--line); background: var(--card-2); }

.status-pill { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 0.18rem 0.55rem; border-radius: var(--r-xs); border: 1px solid transparent; }
.status-active { color: var(--ok); background: var(--wa-soft); border-color: #bfe3ca; }
.status-sold_out { color: var(--sold); background: var(--sold-soft); border-color: #eec6ba; }
.status-coming_soon { color: var(--gold); background: var(--gold-soft); border-color: #e6d5a6; }
.status-hidden { color: var(--ink-3); background: var(--card-2); border-color: var(--line); }

.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.84rem; font-weight: 700; }
.field input[type="text"], .field input[type="password"], .field input[type="number"],
.field input[type="file"], .field select, .field textarea {
  width: 100%; background: var(--card); border: 1.5px solid var(--line-2); border-radius: var(--r-xs);
  color: var(--ink); padding: 0.58rem 0.7rem; font-family: inherit; font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-soft); }
.field input[type="file"] { padding: 0.42rem 0.6rem; color: var(--ink-2); }
.hint { font-size: 0.75rem; color: var(--ink-3); }
.radio-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip label { padding: 0.44rem 0.8rem; border: 1.5px solid var(--line-2); border-radius: var(--r-xs); font-size: 0.82rem; color: var(--ink-2); cursor: pointer; transition: all 0.15s ease; }
.radio-chip input:checked + label { color: var(--terra-2); border-color: var(--terra); background: var(--terra-soft); }
.check-row { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.4rem; }
.check-row input { width: 18px; height: 18px; accent-color: var(--terra); }
.check-row label { font-size: 0.86rem; color: var(--ink-2); }
.form-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.3rem; }

.alert { padding: 0.72rem 1rem; border-radius: var(--r-sm); border: 1px solid transparent; font-size: 0.88rem; margin-bottom: 1rem; }
.alert ul { margin: 0; padding-inline-start: 1.1rem; }
.alert-success { color: var(--ok); background: var(--wa-soft); border-color: #bfe3ca; }
.alert-error { color: var(--sold); background: var(--sold-soft); border-color: #eec6ba; }

.login-wrap { flex: 1; display: grid; place-items: center; padding: 2rem 1.2rem; }
.login-card { width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 2rem 1.6rem; box-shadow: var(--shadow-2); text-align: center; }
.login-card .brand { justify-content: center; margin-bottom: 0.8rem; }
.login-card h1 { font-size: 1.2rem; font-weight: 800; }
.login-card .sub { color: var(--ink-2); font-size: 0.86rem; margin: 0.35rem 0 1.3rem; }
.login-card .form { text-align: start; display: flex; flex-direction: column; gap: 0.85rem; }

/* Error page */
.error-page { flex: 1; display: grid; place-items: center; text-align: center; padding: 3rem 1.5rem; }
.error-page .code { font-size: clamp(3rem, 10vw, 5rem); font-weight: 800; color: var(--terra); line-height: 1; }
.error-page h1 { font-size: 1.3rem; margin: 0.5rem 0; }
.error-page p { color: var(--ink-2); margin-bottom: 1.5rem; }

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 1.8rem; }
  .hero-visual { order: 2; }
  .hero-visual::before { inset: 0 12%; }
  .services { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-wide { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { display: block; }
}
@media (min-width: 861px) { .mobile-menu { display: none !important; } }

@media (max-width: 640px) {
  :root { --gutter: 1.1rem; }
  .header-inner { gap: 0.55rem; height: 56px; }
  .brand img { width: 31px; height: 31px; }
  .brand-name { font-size: 0.96rem; white-space: nowrap; }
  .brand-tag { display: none; }
  .nav-cta .btn-wa { --px: 0.75rem; font-size: 0.8rem; }
  .section { padding-block: 2rem; }
  .hero-grid { padding-block: 2rem; }
  .hero-actions .btn { flex: 1; }
  .offers-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .offer-body { padding: 0.7rem 0.8rem 0.8rem; }
  .offer-title { font-size: 0.9rem; }
  .offer-desc { font-size: 0.78rem; }
  .price .now { font-size: 1.08rem; }
  .offer-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .offer-foot .btn { width: 100%; }
  .offer-foot .price { justify-content: center; }
  .cat-desc { display: none; }
  .cat-icon { width: 40px; height: 40px; font-size: 1.2rem; }
  /* wide cards stack on mobile */
  .offer-card--wide { flex-direction: column; }
  .offer-card--wide .offer-media { width: 100%; aspect-ratio: 16 / 10; border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .footer-grid { flex-direction: column; gap: 1.1rem; }
}

@media (max-width: 380px) {
  .offers-grid, .cat-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
