/* RECFAST storefront — brand skin
   Deep emerald base, frosted glass plates, mint accents.
   System font stacks only: no network calls, works offline and inside Salla pages. */

:root {
  --deep: #051a15;
  --deep-2: #082a21;
  --mid: #145741;
  --mint: #96ffd0;
  --mint-soft: rgba(150, 255, 208, 0.16);
  --ice: #eafff7;
  --dim: #8fb8a6;
  --stroke: rgba(150, 255, 208, 0.18);
  --stroke-strong: rgba(150, 255, 208, 0.34);
  --glass: rgba(180, 255, 225, 0.055);
  --glass-2: rgba(180, 255, 225, 0.09);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;
  --font: "Segoe UI", "Tahoma", "Noto Sans Arabic", system-ui, -apple-system, sans-serif;
  --font-display: "Bahnschrift", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ice);
  background:
    radial-gradient(1200px 700px at 12% -10%, rgba(28, 118, 88, 0.55), transparent 65%),
    radial-gradient(900px 600px at 92% 8%, rgba(16, 84, 66, 0.45), transparent 60%),
    linear-gradient(180deg, var(--deep-2), var(--deep) 62%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::after {
  /* fine grain so the gradients never band */
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, rgba(5, 26, 21, 0.92), rgba(5, 26, 21, 0.62));
  border-bottom: 1px solid var(--stroke);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-end: auto;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--stroke), 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand b {
  font-family: var(--font-display);
  font-size: 1.18rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand small {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--dim);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 0.93rem;
  color: rgba(234, 255, 247, 0.78);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--glass-2);
  color: var(--ice);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  overflow: hidden;
  background: var(--glass);
}

.lang-toggle button {
  border: 0;
  background: transparent;
  padding: 7px 13px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  color: var(--dim);
  transition: 0.2s var(--ease);
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--mint);
  color: #04231a;
  font-weight: 700;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  --bg: var(--mint);
  --fg: #04231a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.25s var(--ease), background 0.2s var(--ease);
  box-shadow: 0 10px 28px rgba(120, 255, 200, 0.18);
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(120, 255, 200, 0.28); }
.btn:active { transform: translateY(0); }

.btn-ghost {
  --bg: transparent;
  --fg: var(--ice);
  border: 1px solid var(--stroke-strong);
  box-shadow: none;
}

.btn-ghost:hover { background: var(--glass-2); box-shadow: none; }

.btn-sm { padding: 9px 16px; font-size: 0.85rem; }

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  cursor: pointer;
  transition: 0.25s var(--ease);
}

.cart-btn:hover { background: var(--glass-2); border-color: var(--stroke-strong); }

.cart-count {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--mint);
  color: #04231a;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  padding-inline: 6px;
}

/* ------------------------------------------------------------------ hero */
.hero { padding: 58px 0 26px; }

.hero-banner {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: #06251d;
}

.hero-banner img { width: 100%; aspect-ratio: 1920 / 480; object-fit: cover; }

.hero-copy {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: center;
  padding: 44px 0 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--mint);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--mint);
  opacity: 0.7;
}

h1.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.2vw, 4.1rem);
  line-height: 1.08;
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

h1.display em {
  font-style: normal;
  color: var(--mint);
  text-shadow: 0 0 34px rgba(150, 255, 208, 0.35);
}

.lede {
  color: rgba(234, 255, 247, 0.74);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: 0 0 26px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero-art {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

.hero-art img { width: 100%; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.stat {
  border: 1px solid var(--stroke);
  background: var(--glass);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--mint);
}

.stat span { font-size: 0.82rem; color: var(--dim); }

/* --------------------------------------------------------------- sections */
.section { padding: 64px 0; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-head p { margin: 0; color: var(--dim); max-width: 56ch; }

/* ------------------------------------------------------------------ cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 20px;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  overflow: hidden;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke-strong);
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.45);
}

.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #06251d;
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-thumb img { transform: scale(1.04); }

.tag {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(4, 35, 26, 0.78);
  border: 1px solid var(--stroke-strong);
  color: var(--mint);
  backdrop-filter: blur(8px);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  flex: 1;
}

.product-body h3 {
  margin: 0;
  font-size: 1.08rem;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.product-body p { margin: 0; color: var(--dim); font-size: 0.88rem; }

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--mint);
}

.price small { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.1em; }

/* ------------------------------------------------------------------- pills */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 0.78rem;
  color: rgba(234, 255, 247, 0.8);
  background: var(--glass);
  cursor: pointer;
  transition: 0.2s var(--ease);
}

.chip:hover { background: var(--glass-2); }
.chip[aria-pressed="true"] { background: var(--mint); color: #04231a; border-color: var(--mint); font-weight: 700; }

/* -------------------------------------------------------------- feature row */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.feature {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 22px;
  background: linear-gradient(180deg, var(--glass-2), transparent);
}

.feature i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--mint-soft);
  color: var(--mint);
  font-style: normal;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.feature h3 { margin: 0 0 6px; font-size: 1rem; }
.feature p { margin: 0; color: var(--dim); font-size: 0.88rem; }

/* -------------------------------------------------------------------- cart */
.drawer {
  position: fixed;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(420px, 100%);
  background: linear-gradient(180deg, #08251d, #051a15);
  border-inline-start: 1px solid var(--stroke);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
  transform: translateX(115%);
  transition: transform 0.42s var(--ease);
  z-index: 90;
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] .drawer { transform: translateX(-115%); }

.drawer.open,
html[dir="rtl"] .drawer.open { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--stroke);
}

.drawer-head h3 { margin: 0; font-size: 1.05rem; letter-spacing: 0.06em; }

.icon-btn {
  border: 1px solid var(--stroke);
  background: var(--glass);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s var(--ease);
}

.icon-btn:hover { background: var(--glass-2); }

.drawer-items { flex: 1; overflow-y: auto; padding: 16px 20px; display: grid; gap: 12px; align-content: start; }

.line-item {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-sm);
  padding: 10px;
  background: var(--glass);
}

.line-item img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; }
.line-item h4 { margin: 0; font-size: 0.92rem; }
.line-item span { display: block; color: var(--dim); font-size: 0.8rem; }
.line-item .qty { margin-top: 6px; }

.qty {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--stroke);
  border-radius: 999px;
  padding: 3px 4px;
}

.qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0;
  background: var(--glass-2);
  cursor: pointer;
  line-height: 1;
}

.qty b { font-size: 0.82rem; min-width: 16px; text-align: center; }

.drawer-foot { padding: 20px; border-top: 1px solid var(--stroke); display: grid; gap: 12px; }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--dim); font-size: 0.85rem; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 14, 11, 0.62);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 80;
}

.overlay.show { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ forms */
.field { display: grid; gap: 6px; }

.field label { font-size: 0.82rem; color: var(--dim); letter-spacing: 0.04em; }

.field input,
.field select,
.field textarea {
  background: rgba(4, 30, 23, 0.65);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  transition: 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mint);
  box-shadow: 0 0 0 3px rgba(150, 255, 208, 0.12);
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .span-2 { grid-column: span 2; }

/* ---------------------------------------------------------------- product page */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 46px 0 10px;
}

.product-gallery {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  background: #06251d;
}

.product-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin: 6px 0 10px;
}

.product-info .price { font-size: 2rem; }

.spec-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 10px; }

.spec-list li {
  display: flex;
  gap: 10px;
  align-items: start;
  color: rgba(234, 255, 247, 0.82);
  font-size: 0.92rem;
}

.spec-list li::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 12px rgba(150, 255, 208, 0.8);
}

.buy-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* --------------------------------------------------------------- policies */
.legal {
  max-width: 82ch;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--glass-2), var(--glass));
  padding: 34px 34px 30px;
}
.legal h2 { font-family: var(--font-display); font-size: 1.5rem; margin: 40px 0 10px; scroll-margin-top: 96px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1rem; margin: 22px 0 6px; color: var(--mint); letter-spacing: 0.02em; }
.legal p, .legal li { color: rgba(234, 255, 247, 0.78); font-size: 0.95rem; }
.legal ul { padding-inline-start: 20px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------- two-column
   Shared by cart.html and checkout.html. Collapses at 980px so the summary
   never squeezes the order rows on phones. */
.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 26px;
  align-items: start;
}

.cart-layout > aside { position: sticky; top: 96px; }

/* ----------------------------------------------------------------- banner CTA */
.cta-band {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--stroke);
  padding: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
  background:
    radial-gradient(600px 240px at 12% 30%, rgba(150, 255, 208, 0.16), transparent 70%),
    linear-gradient(120deg, var(--mid), #07261e 70%);
}

.cta-band h2 { font-family: var(--font-display); margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.cta-band p { margin: 0; color: rgba(234, 255, 247, 0.72); }

/* ------------------------------------------------------------------ footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--stroke);
  padding: 46px 0 30px;
  background: rgba(3, 18, 14, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 30px;
}

.site-footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin: 0 0 14px;
}

.site-footer a { display: block; padding: 4px 0; color: rgba(234, 255, 247, 0.78); font-size: 0.9rem; }
.site-footer a:hover { color: var(--mint); }
.footer-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--stroke); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--dim); font-size: 0.82rem; }

/* ------------------------------------------------------------------ toast */
.toast {
  position: fixed;
  inset-block-end: 24px;
  inset-inline-start: 50%;
  transform: translate(-50%, 20px);
  background: rgba(6, 40, 30, 0.96);
  border: 1px solid var(--stroke-strong);
  color: var(--ice);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s var(--ease);
  z-index: 100;
  box-shadow: var(--shadow);
}

html[dir="rtl"] .toast { transform: translate(50%, 20px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
html[dir="rtl"] .toast.show { transform: translate(50%, 0); }

/* ----------------------------------------------------------------- utilities */
.hidden,
[hidden] { display: none !important; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; }

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--glass);
  font-size: 0.78rem;
  color: rgba(234, 255, 247, 0.8);
}

.empty {
  border: 1px dashed var(--stroke-strong);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  color: var(--dim);
}

/* ------------------------------------------------------------------ motion */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(150, 255, 208, 0.0); }
  50% { box-shadow: 0 0 40px 6px rgba(150, 255, 208, 0.18); }
}

.hero-art { animation: floaty 9s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-copy, .product-hero { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-layout > aside { position: static; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, var(--maxw)); }
  .stats { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 30px; }
  .hero { padding-top: 34px; }
  .legal { padding: 22px 20px; }
}
