﻿:root {
  --color-primary: #0d9488;
  --color-primary-dark: #0f766e;
  --color-accent: #f59e0b;
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-text: #0f172a;
  --color-muted: #64748b;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.55;
  min-height: 100dvh;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary-dark); text-decoration: none; }
.container { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  height: var(--header-h);
}
.site-header .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.brand h1 { margin: 0; font-size: 1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; color: var(--color-muted); font-size: 0.72rem; }
.header-actions { display: flex; gap: 0.5rem; }
.btn { border: none; cursor: pointer; font: inherit; border-radius: 999px; padding: 0.55rem 1rem; font-weight: 700; display: inline-flex; align-items: center; }
.btn-primary { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark)); color: #fff; }
.btn-ghost { background: #fff; border: 1px solid #e2e8f0; }
.btn-accent { background: var(--color-accent); color: #111; }
.hero { padding: 1.25rem 0 0.75rem; }
.hero-card {
  background: linear-gradient(125deg, var(--color-primary-dark), var(--color-primary));
  color: #fff; border-radius: 18px; padding: 1.25rem; box-shadow: var(--shadow);
}
.hero-card h2 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.85rem; }
.trust-pill { background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; padding: 0.25rem 0.65rem; font-size: 0.75rem; font-weight: 600; }
.categories { display: flex; gap: 0.5rem; overflow-x: auto; padding: 0.75rem 0 0.25rem; }
.cat-btn { flex-shrink: 0; border: 1px solid #e2e8f0; background: #fff; border-radius: 999px; padding: 0.45rem 0.9rem; font-weight: 700; cursor: pointer; }
.cat-btn.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; padding: 0.5rem 0 2rem; }
@media (min-width: 640px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .products-grid { grid-template-columns: repeat(4, 1fr); } }
.product-card { background: #fff; border: 1px solid #e8edf4; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product-card .thumb { aspect-ratio: 1; background: #f1f5f9; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .body { padding: 0.75rem; display: flex; flex-direction: column; flex: 1; gap: 0.35rem; }
.product-card h3 { margin: 0; font-size: 0.92rem; }
.product-card p { margin: 0; color: var(--color-muted); font-size: 0.78rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-row { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.price { font-weight: 800; color: var(--color-primary-dark); }
.qty-wrap { display: flex; align-items: center; gap: 0.35rem; }
.qty-wrap button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; font-weight: 700; }
.cart-fab { position: fixed; bottom: 1rem; inset-inline: 1rem; z-index: 60; display: none; }
.cart-fab.is-visible { display: block; }
.cart-fab .bar { background: #0f172a; color: #fff; border-radius: 16px; padding: 0.85rem 1rem; display: flex; justify-content: space-between; align-items: center; }
.site-footer { background: #fff; border-top: 1px solid #e2e8f0; padding: 1.5rem 0 5.5rem; }
.footer-grid { display: grid; gap: 1rem; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.35rem; }
.site-footer p, .site-footer li { color: var(--color-muted); font-size: 0.82rem; }
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.45); z-index: 80; display: none; align-items: end; padding: 1rem; }
.overlay.is-open { display: flex; }
.sheet { width: min(520px, 100%); max-height: 88dvh; overflow: auto; background: #fff; border-radius: 18px; padding: 1rem; }
.cart-line { display: flex; justify-content: space-between; border-bottom: 1px dashed #e2e8f0; padding-bottom: 0.5rem; margin-bottom: 0.5rem; }
.form-grid { display: grid; gap: 0.55rem; margin: 0.75rem 0; }
.form-grid label { display: grid; gap: 0.25rem; font-size: 0.82rem; font-weight: 600; }
.form-grid input, .form-grid textarea { border: 1px solid #e2e8f0; border-radius: 10px; padding: 0.55rem; font: inherit; }
.sheet-actions { display: grid; gap: 0.5rem; }
.total-box { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 0.65rem; font-weight: 700; }
.policy-page { padding: 1.25rem 0 3rem; }
.policy-prose .policy-intro { color: var(--color-muted); font-size: 0.92rem; }
.policy-disclaimer {
  font-size: 0.82rem;
  color: var(--color-muted);
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin: 0.75rem 0 1rem;
}
.policy-prose h2 { margin: 1.35rem 0 0.55rem; color: var(--color-primary-dark); font-size: 1.05rem; }
.policy-facts,
.policy-list { margin: 0.35rem 0 0; padding-right: 1.15rem; color: var(--color-text); }
.policy-facts li,
.policy-list li { margin-bottom: 0.55rem; line-height: 1.65; font-size: 0.9rem; text-align: justify; }
.policy-box h2 { margin: 0 0 0.5rem; font-size: 1.05rem; color: var(--color-primary-dark); }
.policy-box { background: #fff; border: 1px solid #e8edf4; border-radius: var(--radius); padding: 1rem; margin-top: 1rem; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 2rem; color: var(--color-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }