:root {
  --brand: #F15A24;
  --brand-dark: #C43E0E;
  --brand-soft: #FFF1EA;
  --ink: #171717;
  --muted: #6B7280;
  --line: #E8E8EC;
  --page: #F7F4F1;
  --white: #FFFFFF;
  --night: #141414;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(20, 20, 20, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: "Cairo", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, calc(100% - 24px)); margin-inline: auto; }
.ico { width: 22px; height: 22px; display: block; }
.ico-sm { width: 16px; height: 16px; }

.topbar {
  display: none;
  background: var(--night);
  color: #E8E8EA;
  font-size: 12px;
  font-weight: 600;
}
.topbar .wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar .links { display: flex; gap: 18px; }
.topbar a, .topbar span { display: inline-flex; align-items: center; gap: 6px; opacity: .92; }
.topbar .ico { width: 15px; height: 15px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(196, 62, 14, .18);
}
.header-main {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  min-height: 60px;
}
.header-search { grid-column: 1 / -1; padding-bottom: 10px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  position: relative;
}
.icon-btn.brand { color: #fff; }
.icon-btn:hover { background: rgba(255,255,255,.16); color: #fff; }
.icon-btn .badge {
  position: absolute;
  top: 3px;
  left: 3px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 99px;
  background: #fff;
  color: var(--brand);
  font: 800 9px/16px Cairo;
}
.wordmark { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff; }
.wordmark img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 3px;
}
.wordmark b { display: block; font-size: 17px; letter-spacing: 1px; line-height: 1; }
.wordmark small {
  display: block;
  margin-top: 3px;
  color: #FFE4D4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
  text-align: center;
}
.wordmark small::before, .wordmark small::after { content: "— "; }

.search {
  position: relative;
  height: 46px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(196, 62, 14, .16);
}
.search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 12px;
  font-size: 13px;
}
.search input::placeholder { color: #9CA3AF; }
.search button {
  width: 46px;
  height: 46px;
  border: 0;
  background: var(--brand-dark);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.search-results {
  position: absolute;
  top: 52px;
  right: 0;
  left: 0;
  z-index: 50;
  display: none;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}
.search-results.open { display: block; }
.search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 12px;
}
.search-result:hover { background: var(--brand-soft); }
.search-result small { color: var(--brand); font-weight: 700; }
.header-actions { display: none; }
.desktop-cats {
  display: flex;
  gap: 14px;
  padding: 0 0 12px;
  overflow: auto;
  font-size: 12px;
  font-weight: 700;
  scrollbar-width: none;
}
.desktop-cats::-webkit-scrollbar { display: none; }
.desktop-cats a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.88);
  white-space: nowrap;
}
.desktop-cats img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  background: #fff;
}
.desktop-cats a:hover, .desktop-cats a.on {
  color: #fff;
}

.promo-slider {
  position: relative;
  margin-top: 16px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(241,90,36,.28), transparent 36%),
    linear-gradient(135deg, #2A160E 0%, #171717 58%, #3A1C10 100%);
  box-shadow: 0 16px 36px rgba(20, 20, 20, .10);
}
.promo-track {
  display: flex;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.promo-slide {
  position: relative;
  flex: 0 0 100%;
  min-width: 100%;
  height: 210px;
  color: #fff;
}
.promo-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
}
.promo-slide img.is-missing { opacity: 0; }
.promo-copy {
  position: absolute;
  inset: 0;
  padding: 22px 20px 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
  background:
    linear-gradient(90deg, transparent 8%, rgba(12, 10, 9, .28) 42%, rgba(12, 10, 9, .72) 100%);
}
.promo-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(241, 90, 36, .92);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .3px;
}
.promo-copy h1 {
  margin: 0;
  font-size: clamp(22px, 4.4vw, 38px);
  line-height: 1.25;
  font-weight: 800;
  max-width: 15ch;
  text-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.promo-copy p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #F8EDE6;
  max-width: 28ch;
}
.promo-copy .btn { min-height: 40px; padding: 0 18px; border-radius: 999px; }
.promo-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.promo-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255,255,255,.45);
  cursor: pointer;
}
.promo-dots button.on { width: 20px; background: #fff; }
.promo-arrow {
  display: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.14);
}
.promo-arrow.prev { right: 14px; }
.promo-arrow.next { left: 14px; }
.promo-arrow:hover { background: #fff; color: var(--brand); }

.hero {
  margin-top: 14px;
  min-height: 168px;
  padding: 22px 18px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 20%, rgba(241,90,36,.16), transparent 36%),
    linear-gradient(135deg, #fff 0%, #FFF4EC 55%, #FFE6D6 100%);
  border: 1px solid #F3D8C8;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}
.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 4.2vw, 38px);
  line-height: 1.3;
  font-weight: 800;
}
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.hero-points li { color: var(--muted); font-size: 12px; font-weight: 700; }
.hero-art { position: relative; display: grid; place-items: center; min-height: 120px; }
.hero-art img { width: min(220px, 100%); border-radius: 22px; object-fit: cover; aspect-ratio: 1; box-shadow: 0 14px 28px rgba(196,62,14,.16); }
.hero-art .hero-logo {
  position: absolute;
  width: 58px;
  height: 58px;
  aspect-ratio: auto;
  border-radius: 16px;
  inset-inline-end: 6px;
  bottom: 6px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 8px 18px rgba(20,20,20,.12);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.btn.brand { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(241,90,36,.28); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }

.cats-block { margin-top: 26px; }
.cats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 12px;
}
.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
}
.cat img, .cat-art {
  width: 86px;
  height: 86px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(20, 20, 20, .06);
  border: 3px solid #fff;
  outline: 1px solid #F0E6DF;
  transition: transform .18s ease, box-shadow .18s ease, outline-color .18s ease;
}
.cat span { line-height: 1.3; }
.cat:hover img { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 26px rgba(20, 20, 20, .12); }
.cat.hot img { outline-color: #F15A24; box-shadow: 0 10px 22px rgba(241,90,36,.22); }

.section { margin-top: 28px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head h2 { margin: 0; font-size: 20px; letter-spacing: -.2px; }
.view-all { color: var(--brand); font-size: 12px; font-weight: 800; }

.products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-card {
  border: 1px solid #EFE8E3;
  border-radius: 18px;
  background: #fff;
  padding: 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 20px rgba(28, 18, 12, .04);
  transition: transform .16s ease, box-shadow .16s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 16px 28px rgba(28, 18, 12, .08); }
.product-image {
  position: relative;
  height: 132px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FFF8F3 0%, #F6F1ED 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.heart {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #6B7280;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,.06);
}
.heart.active, .heart.is-on { color: var(--brand); }
.tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #E9F8EE;
  color: #159947;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 800;
}
.product-name { margin: 10px 0 2px; font-size: 13px; font-weight: 800; line-height: 1.35; }
.product-meta { color: var(--muted); font-size: 11px; display: flex; align-items: center; gap: 6px; }
.product-meta .rate { color: #F59E0B; display: inline-flex; align-items: center; gap: 2px; font-weight: 800; }
.price { margin: 8px 0 10px; color: var(--brand); font-size: 16px; font-weight: 800; }
.price small { font-size: 11px; }
.add-btn {
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 11px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  margin-top: auto;
}
.add-btn:hover { background: var(--brand-dark); }
.add-btn:disabled { background: #D1D5DB; cursor: not-allowed; }
.empty-state {
  grid-column: 1 / -1;
  padding: 40px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  text-align: center;
  color: var(--muted);
  background: #fff;
}
.pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  direction: ltr;
}
.pagination a, .pagination span {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.pagination .active { border-color: var(--brand); background: var(--brand); color: #fff; }

.benefits {
  margin: 24px 0 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #EFEFF2;
}
.benefit .ico { color: var(--brand); width: 24px; height: 24px; flex: none; }
.benefit strong { display: block; font-size: 12px; }
.benefit small { color: var(--muted); font-size: 10px; }

.site-footer {
  margin-top: 28px;
  padding: 24px 0 92px;
  background: var(--night);
  color: #C9CDD3;
  font-size: 12px;
}
.site-footer strong { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-brand img { width: 40px; height: 40px; }
.copy { margin-top: 14px; padding-top: 12px; border-top: 1px solid #2A2A2E; font-size: 11px; }

.tabbar {
  position: fixed;
  right: 0;
  left: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom));
}
.tabbar a, .tabbar button {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}
.tabbar .on { color: var(--brand); }
.tabbar .ico { width: 22px; height: 22px; }
.tabbar .badge {
  position: absolute;
  top: -2px;
  left: 54%;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--brand);
  color: #fff;
  font: 800 9px/15px Cairo;
}

.toast {
  position: fixed;
  z-index: 80;
  bottom: 84px;
  left: 16px;
  color: #fff;
  background: var(--night);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 12px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: .2s ease;
}
.toast.show { opacity: 1; transform: none; }
.overlay { position: fixed; inset: 0; z-index: 70; background: rgba(20,20,20,.42); opacity: 0; pointer-events: none; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer, .modal { position: fixed; z-index: 75; background: #fff; }
.drawer {
  top: 0; bottom: 0; left: 0;
  width: min(420px, 100%);
  transform: translateX(-105%);
  transition: .25s ease;
  display: flex;
  flex-direction: column;
}
.drawer.open { transform: none; }
.drawer-head, .modal .drawer-head {
  min-height: 68px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.drawer-head h2, .modal h2 { margin: 0; font-size: 18px; }
.close-btn { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--page); cursor: pointer; }
.cart-items { padding: 16px; overflow: auto; flex: 1; }
.cart-empty { padding: 40px 12px; text-align: center; color: var(--muted); }
.cart-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-row small { color: var(--brand); font-weight: 700; }
.qty { display: flex; align-items: center; gap: 8px; direction: ltr; }
.qty button { width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.remove { margin-top: 6px; border: 0; background: none; color: #DC2626; font-size: 11px; }
.cart-foot { padding: 16px; border-top: 1px solid var(--line); }
.cart-total { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 12px; }
.checkout-btn, .form-actions .submit {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.checkout-btn:disabled { background: #9CA3AF; }
.modal {
  inset: auto 16px 16px 16px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
}
.modal.open { opacity: 1; pointer-events: auto; transform: none; }
.checkout-form { padding: 16px; display: grid; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 11px; font-weight: 700; color: #4B5563; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  outline: 0;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-error { display: none; padding: 10px 12px; border-radius: 10px; background: #FEF2F2; color: #B91C1C; font-size: 12px; }
.form-error.show { display: block; }
.form-actions { display: flex; gap: 8px; }
.form-actions button { min-height: 44px; border-radius: 12px; padding: 0 16px; border: 1px solid var(--line); background: #fff; font-weight: 700; }
.success-box { padding: 32px 20px; text-align: center; }
.success-mark {
  width: 64px; height: 64px; margin: auto; display: grid; place-items: center;
  border-radius: 50%; background: #E9F8EE; color: #159947; font-size: 30px;
}
.stores { display: grid; gap: 10px; }
.store-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border: 1px solid var(--line); border-radius: 16px; background: #fff;
}
.store-card b {
  width: 44px; height: 44px; border-radius: 12px; background: var(--night); color: var(--brand);
  display: grid; place-items: center; font-size: 18px;
}
.store-card strong { display: block; }
.store-card small { color: var(--muted); }
.action-label { display: none; }

@media (min-width: 760px) {
  .wrap { width: min(1200px, calc(100% - 40px)); }
  .topbar { display: block; }
  .mobile-only { display: none !important; }
  .header-main {
    grid-template-columns: auto minmax(280px, 1fr) auto;
    min-height: 78px;
    gap: 22px;
  }
  .header-search { grid-column: auto; padding: 0; }
  .wordmark { justify-content: flex-start; }
  .wordmark img { width: 46px; height: 46px; }
  .header-actions { display: flex; align-items: center; gap: 6px; }
  .action-item { display: flex; flex-direction: column; align-items: center; gap: 2px; }
  .action-label { display: block; font-size: 10px; font-weight: 700; color: rgba(255,255,255,.86); }
  .desktop-cats { gap: 16px; font-size: 13px; }
  .desktop-cats img { width: 26px; height: 26px; border-radius: 8px; }
  .hero { min-height: 280px; padding: 36px 42px; }
  .hero-art img { width: min(260px, 100%); }
  .hero-art .hero-logo { width: 72px; height: 72px; }
  .promo-slide { height: 340px; }
  .promo-copy { padding: 42px 52px 48px; gap: 10px; }
  .promo-copy p { font-size: 16px; }
  .promo-kicker { min-height: 28px; font-size: 12px; }
  .promo-arrow { display: grid; place-items: center; }
  .cats { grid-template-columns: repeat(6, 1fr); gap: 20px; }
  .cat { font-size: 13px; }
  .cat img, .cat-art { width: 104px; height: 104px; }
  .products { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .product-image { height: 164px; }
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .tabbar { display: none; }
  .site-footer { padding-bottom: 28px; }
  .toast { bottom: 24px; }
  .modal {
    inset: 50% auto auto 50%;
    width: min(640px, calc(100% - 32px));
    transform: translate(-50%, -46%);
  }
  .modal.open { transform: translate(-50%, -50%); }
  .checkout-form { grid-template-columns: 1fr 1fr; }
  .field.full, .form-error, .form-actions { grid-column: 1 / -1; }
  .stores { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1100px) {
  .products { grid-template-columns: repeat(5, 1fr); }
}
