/* ============================================================
   واجهة المتجر (المنيو) — تصميم نظيف موبايل أولاً
   ============================================================ */
body.shop {
  margin: 0;
  background: #f6f2ea;
  color: #16211d;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0;
}
body.shop a { color: inherit; text-decoration: none; }
body.shop img { max-width: 100%; display: block; }
.shop-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* ---------- الشريط العلوي ---------- */
.shop-top {
  background: var(--brand-dark);
  color: #fff;
  font-size: .82rem;
}
.shop-top-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; min-height: 42px; padding-top: 6px; padding-bottom: 6px;
  flex-wrap: wrap;
}
.top-tag {
  background: rgba(255,255,255,.16); border-radius: 999px;
  padding: 3px 12px; font-weight: 600;
}
.top-hours { opacity: .92; }
.top-phone { opacity: .92; font-size: .82rem; }

/* ---------- الترويسة ---------- */
.shop-head {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #ece5d9;
  position: sticky; top: 0; z-index: 30;
}
.shop-head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 74px; padding-top: 10px; padding-bottom: 10px;
}
.shop-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.shop-logo {
  width: 50px; height: 50px; border-radius: 16px; overflow: hidden;
  display: grid; place-items: center; flex: none;
  background: var(--brand-soft); border: 1px solid var(--brand-line);
}
.shop-logo img { width: 100%; height: 100%; object-fit: cover; }
.shop-logo.is-letter {
  background: var(--brand); color: #fff; font-size: 1.4rem; font-weight: 700;
  border: 0;
}
.shop-brand-txt { display: flex; flex-direction: column; min-width: 0; }
.shop-brand-txt strong { font-size: 1.12rem; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-brand-txt small { color: #7b857f; font-size: .78rem; }
.shop-nav { display: flex; align-items: center; gap: 8px; }
.nav-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #e8e1d5; border-radius: 12px;
  padding: 8px 13px; font-size: .86rem; color: #2a3733;
  transition: border-color .15s, color .15s;
}
.nav-btn svg { width: 18px; height: 18px; }
.nav-btn:hover, .nav-btn.is-on { border-color: var(--brand); color: var(--brand); }
.nav-cart { position: relative; }
.nav-count {
  position: absolute; inset-inline-start: -6px; top: -6px;
  background: var(--brand); color: #fff; border-radius: 999px;
  min-width: 20px; height: 20px; font-size: .72rem; line-height: 20px;
  text-align: center; padding: 0 5px;
}

/* ---------- الهيرو ---------- */
.shop-main { padding: 22px 0 40px; }
.shop-hero {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  margin-bottom: 26px;
}
.shop-hero-media {
  border-radius: 22px; overflow: hidden; min-height: 210px;
  background: linear-gradient(135deg, var(--brand-soft), #ffffff);
  border: 1px solid #ece5d9;
  display: grid; place-items: center; order: 2;
}
.shop-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero-media.is-letter {
  background:
    radial-gradient(60% 60% at 78% 22%, rgba(255,255,255,.16), transparent 70%),
    radial-gradient(50% 50% at 18% 88%, rgba(255,255,255,.10), transparent 70%),
    linear-gradient(150deg, var(--brand), var(--brand-dark));
  border-color: transparent;
  position: relative;
  overflow: hidden;
}
.shop-hero-media.is-letter::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 14px 14px; opacity: .5;
}
.shop-hero-media.is-letter span {
  position: relative; z-index: 1;
  font-size: 5rem; font-weight: 800; color: #fff; opacity: .92;
  letter-spacing: -.03em; text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
.shop-hero-panel {
  order: 1;
  background: linear-gradient(160deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: 22px; padding: 26px 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.shop-hero-kicker {
  font-size: .78rem; letter-spacing: .04em; opacity: .75;
}
.shop-hero-panel h1 { margin: 0; font-size: 1.62rem; line-height: 1.35; letter-spacing: -.01em; }
.shop-hero-panel p { margin: 0; font-size: .92rem; opacity: .88; }
.shop-hero-cta {
  margin-top: 8px; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--brand) !important;
  border-radius: 12px; padding: 10px 18px; font-weight: 700; font-size: .9rem;
}
.shop-hero-cta svg { width: 16px; height: 16px; }

/* ---------- شبكة المنيو + السلة ---------- */
.shop-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cart-col { order: 2; }
.menu-col { order: 1; min-width: 0; }

.menu-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.menu-head h2 { margin: 0; font-size: 1.24rem; }
.menu-count { color: #7b857f; font-size: .84rem; }

.menu-tools { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.search {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e8e1d5; border-radius: 14px;
  padding: 10px 14px;
}
.search svg { width: 18px; height: 18px; color: #8b948f; flex: none; }
.search input { border: 0; outline: 0; background: transparent; font: inherit; width: 100%; font-size: .92rem; }

.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; cursor: pointer; font: inherit; font-size: .86rem;
  background: #fff; border: 1px solid #e8e1d5; color: #3a4642;
  border-radius: 999px; padding: 8px 15px; display: inline-flex; gap: 7px; align-items: center;
}
.tab b { font-size: .74rem; color: #8b948f; font-weight: 600; }
.tab.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.tab.is-on b { color: rgba(255,255,255,.8); }

/* ---------- بطاقات الأصناف ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.item {
  background: #fff; border: 1px solid #efe8dc; border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .18s, transform .18s;
}
.item:hover { box-shadow: 0 10px 26px rgba(22,33,29,.08); transform: translateY(-1px); }
.item-media { aspect-ratio: 4 / 3; background: #f3efe6; overflow: hidden; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-media.is-letter {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-soft), #f7f3ea);
  color: var(--brand); font-size: 1.9rem; font-weight: 800;
}
.item-media.is-letter span { opacity: .45; }
.item-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.item-body h3 { margin: 0; font-size: .98rem; line-height: 1.35; }
.item-desc {
  margin: 0; color: #77817b; font-size: .78rem; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.item-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; }
.item-price { display: flex; align-items: baseline; gap: 6px; color: var(--brand); font-weight: 700; font-size: .98rem; }
.item-price s { color: #a8b0ab; font-weight: 400; font-size: .76rem; }
.item-price .cur { font-size: .7rem; font-weight: 600; opacity: .8; }
.item-add {
  border: 0; cursor: pointer; font: inherit; font-size: .82rem; font-weight: 700;
  background: var(--brand); color: #fff; border-radius: 11px; padding: 8px 13px;
  display: inline-flex; align-items: center; gap: 5px;
}
.item-add:hover { background: var(--brand-dark); }
.item-add:disabled { opacity: .6; cursor: default; }
.empty-note { color: #7b857f; padding: 24px 0; text-align: center; }

/* ---------- السلة الجانبية ---------- */
.cart-card {
  background: #fff; border: 1px solid #efe8dc; border-radius: 20px; overflow: hidden;
}
.cart-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px dashed #e6dfd3;
}
.cart-card-head h3 { margin: 0; font-size: 1rem; }
.cart-ico { width: 20px; height: 20px; color: var(--brand); }
.cart-card-body { padding: 14px 18px 18px; }
.cart-empty { text-align: center; color: #8b948f; padding: 14px 0 6px; display: grid; gap: 6px; justify-items: center; }
.cart-empty svg { width: 34px; height: 34px; color: #c3c9c5; }
.cart-empty strong { color: #3a4642; font-size: .92rem; }
.cart-empty span { font-size: .78rem; }
.cart-mini-line { display: flex; align-items: center; gap: 8px; font-size: .85rem; padding: 6px 0; border-bottom: 1px dashed #efe8dc; }
.cart-mini-line .qty { color: var(--brand); font-weight: 700; flex: none; }
.cart-mini-line .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-mini-line .pr { color: #3a4642; font-weight: 600; flex: none; }
.cart-mini-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0 10px; font-size: .95rem; }
.cart-mini-total strong { color: var(--brand); font-size: 1.08rem; }
.cart-mini-note { margin: -4px 0 10px; color: #8b948f; font-size: .76rem; }

/* ---------- تذييل ---------- */
.shop-foot { background: #fff; border-top: 1px solid #ece5d9; margin-top: 30px; padding: 26px 0; }
.shop-foot-in { display: grid; gap: 14px; }
.shop-foot strong { font-size: 1rem; }
.shop-foot p { margin: 2px 0; color: #7b857f; font-size: .84rem; }
.foot-links { display: flex; gap: 16px; font-size: .86rem; color: var(--brand); }
.foot-made { font-size: .76rem !important; color: #a8b0ab !important; }

/* ---------- شريط السلة للموبايل ---------- */
.mobile-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  background: #fff; border-top: 1px solid #e8e1d5;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 -6px 20px rgba(22,33,29,.07);
}
.mobile-bar .mb-total { display: flex; flex-direction: column; font-size: .74rem; color: #8b948f; }
.mobile-bar .mb-total strong { font-size: 1.02rem; color: var(--brand); }
.mobile-bar .mb-go {
  background: var(--brand); color: #fff !important; border-radius: 12px;
  padding: 11px 20px; font-weight: 700; font-size: .9rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.mobile-bar .mb-go b { background: rgba(255,255,255,.22); border-radius: 999px; padding: 1px 8px; font-size: .78rem; }

/* ---------- صفحات السلة والدفع والتتبع ---------- */
.page-card { background: #fff; border: 1px solid #efe8dc; border-radius: 20px; padding: 20px; }
.page-title { font-size: 1.28rem; margin: 6px 0 16px; }
.page-card .cart-line { border-bottom: 1px dashed #efe8dc; }
.page-card .cart-total { color: var(--brand); }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .9rem; color: #55605b; }
.sum-row.is-total { font-size: 1.02rem; font-weight: 700; color: var(--brand); border-top: 1px dashed #e6dfd3; margin-top: 6px; padding-top: 10px; }
.shop .btn { background: var(--brand); border-radius: 12px; }
.shop .btn:hover { background: var(--brand-dark); }
.shop .btn-gray { background: #eef0ee; color: #3a4642 !important; }
.shop .muted { color: #8b948f; }
.shop .flash { border-radius: 0; }

/* ---------- شاشات أكبر ---------- */
@media (min-width: 720px) {
  .shop-hero { grid-template-columns: 1.05fr .95fr; align-items: stretch; }
  .shop-hero-media { order: 1; min-height: 320px; }
  .shop-hero-panel { order: 2; padding: 34px 30px; }
  .shop-hero-panel h1 { font-size: 2rem; }
  .items { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 16px; }
  .menu-tools { flex-direction: row; align-items: center; justify-content: space-between; }
  .search { flex: 0 0 260px; }
  .shop-foot-in { grid-template-columns: 1fr auto; align-items: center; }
  .foot-made { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .shop-grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }
  .cart-col { order: 1; position: sticky; top: 96px; }
  .menu-col { order: 2; }
}
@media (max-width: 560px) {
  body.shop.has-cart { padding-bottom: 76px; }
  .mobile-bar.is-on { display: flex; }
  .nav-btn span { display: none; }
  .nav-btn { padding: 9px 11px; }
  .shop-hero-panel h1 { font-size: 1.42rem; }
  .shop-top-in { font-size: .76rem; }
  .top-phone { display: none; }
}
.item-add { white-space: nowrap; }

/* ===== تحسينات الشكل (النسخة 4) ===== */
html { scroll-behavior: smooth; }
body.shop :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }
.shop-hero-cta { transition: transform .15s ease, box-shadow .15s ease; }
.shop-hero-cta:hover { transform: translateX(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.tab { transition: background .15s ease, border-color .15s ease, color .15s ease; }
.tab:hover { border-color: var(--brand); color: var(--brand); }
.item { border-color: #ece4d7; }
@media (hover: hover) {
  .item:hover { box-shadow: 0 12px 28px rgba(22,33,29,.10); }
}
.item-price { white-space: nowrap; }
.item-body h3 { letter-spacing: -.01em; }
.item-add { transition: background .15s ease, transform .1s ease; }
.item-add:active { transform: scale(.97); }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.menu-head h2 { letter-spacing: -.01em; }
.shop-foot a:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .shop-hero-panel { padding: 20px 18px; }
  .shop-main { padding-top: 16px; }
  .items { gap: 10px; }
  .item-body { padding: 10px 10px 12px; }
}

/* موبايل: تصغير صورة الهيرو عشان المنيو يبان بسرعة */
@media (max-width: 719px) {
  .shop-hero { gap: 10px; margin-bottom: 18px; }
  .shop-hero-media { min-height: 0; aspect-ratio: 16 / 7; max-height: 148px; border-radius: 18px; }
  .shop-hero-media.is-letter span { font-size: 3rem; }
  .shop-hero-panel { border-radius: 18px; padding: 18px 16px; }
  .shop-hero-panel h1 { font-size: 1.32rem; }
  .shop-hero-panel p { font-size: .88rem; }
  .shop-hero-cta { margin-top: 4px; padding: 9px 16px; }
}

/* ---------- الخطوط ---------- */
body.shop h1, body.shop h2, body.shop h3, body.shop .shop-hero-panel h1,
body.shop .item-price, body.shop .cart-mini-total strong, body.shop .sum-row.is-total,
body.shop .page-title { font-family: 'Tajawal', 'Cairo', Tahoma, sans-serif; }
body.shop h2, body.shop h3 { font-weight: 800; letter-spacing: -.01em; }
body.shop .shop-brand-txt strong { font-family: 'Tajawal', 'Cairo', sans-serif; font-weight: 800; }

/* ---------- كود الخصم في السلة ---------- */
.coupon-card { margin-top: 14px; }
.coupon-form label { display: block; font-weight: 700; margin-bottom: 8px; }
.coupon-form-row { display: flex; gap: 8px; }
.coupon-form-row input {
  flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid #e3dccd;
  border-radius: 12px; font-family: inherit; font-size: 1rem; letter-spacing: .06em;
  background: #fff; text-transform: uppercase;
}
.coupon-form-row input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.coupon-err { color: #b3261e; font-size: .86rem; margin: 8px 0 0; }
.coupon-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.coupon-on span { font-size: .95rem; }
.coupon-on b { font-family: 'Tajawal', sans-serif; letter-spacing: .04em; }
.sum-row.is-discount { color: #1b7a43; font-weight: 700; }
.cart-mini-discount {
  display: flex; justify-content: space-between; font-size: .84rem;
  color: #1b7a43; font-weight: 700; margin-top: 6px;
}

/* ---------- النسخة 6: الأكثر مبيعاً، بادج العرض، خلص من المخزون، خيارات الصنف ---------- */
.best-strip {
  margin: 26px 0 6px;
  background: #fff;
  border: 1px solid var(--brand-line, #e7e1d8);
  border-radius: 20px;
  padding: 18px 18px 14px;
}
.best-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.best-head h2 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.best-note { font-size: 12px; color: #7b7466; }
.best-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(190px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.best-card {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  font-family: inherit; text-align: start; width: 100%;
  padding: 8px; border-radius: 14px; border: 1px solid #eee7dc;
  background: #fbf9f5; text-decoration: none; color: inherit;
  transition: border-color .15s, transform .15s;
}
.best-card:hover { border-color: var(--brand); transform: translateY(-1px); }
.best-media { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: 0 0 auto; background: var(--brand-soft); display: grid; place-items: center; }
.best-media img { width: 100%; height: 100%; object-fit: cover; }
.best-media.is-letter span { font-family: var(--font-head); font-size: 20px; color: var(--brand); }
.best-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.best-body strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.best-price { font-size: 12.5px; color: var(--brand); font-weight: 700; }

.item { position: relative; }
.item-offer {
  position: absolute; inset-inline-start: 10px; top: 10px; z-index: 2;
  background: #c0392b; color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(192,57,43,.28);
}
.item.is-sold .item-media img { filter: grayscale(1); opacity: .55; }
.item-sold {
  font-size: 12px; font-weight: 700; color: #9a3b2e;
  background: #fdecea; border: 1px solid #f6cfc9; padding: 6px 10px; border-radius: 999px;
}
.item-hint { font-size: 12px; color: #8a7f6d; margin: 2px 0 0; }
.item-optform {
  margin: 0 14px 14px; padding: 12px; border-radius: 14px;
  background: #fbf9f5; border: 1px solid #eee7dc;
}
.opt-group { margin-bottom: 10px; }
.opt-label { display: block; font-size: 12px; font-weight: 700; color: #6b6455; margin-bottom: 6px; }
.opt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.opt-chip { position: relative; cursor: pointer; }
.opt-chip input { position: absolute; opacity: 0; inset: 0; }
.opt-chip span {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 7px 11px; border-radius: 999px; border: 1px solid #e2dacd;
  background: #fff; font-size: 13px; transition: .15s;
}
.opt-chip input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 700; }
.opt-chip span b { font-size: 11.5px; color: var(--brand); }
.opt-foot { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.opt-qty { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #6b6455; }
.opt-qty input { width: 62px; padding: 6px 8px; border-radius: 10px; border: 1px solid #e2dacd; text-align: center; }
.opt-foot .item-add { margin-inline-start: auto; }

.cart-mini-line .nm-note, .line-note {
  display: block; font-size: 11.5px; color: #8a7f6d; margin-top: 2px;
}
.cart-line.is-blocked { background: #fdf3f1; border-radius: 10px; padding: 8px 10px; }
.line-warn { display: block; font-size: 11.5px; color: #a13b2c; font-weight: 700; margin-top: 2px; }

/* ---------- نافذة تفاصيل الصنف (موبايل: شيت من تحت / ديسكتوب: نافذة في النص) ---------- */
body.pm-open { overflow: hidden; }
.pmodal [hidden] { display: none !important; }
.pmodal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pmodal[hidden] { display: none; }
.pmodal-back { position: absolute; inset: 0; background: rgba(24, 20, 12, .55); }
.pmodal-card {
  position: relative; z-index: 1; width: 100%; max-width: 520px; max-height: 88vh;
  background: #fff; border-radius: 22px; overflow: auto; display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(20, 15, 5, .28);
}

.pmodal-x {
  position: absolute; inset-inline-end: 12px; top: 12px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: #3b3527; font-size: 20px; line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.14);
}
.pmodal-media { flex: 0 0 auto; height: 200px; background: var(--brand-soft); display: grid; place-items: center; overflow: hidden; }
.pmodal-media img { width: 100%; height: 100%; object-fit: cover; }
.pmodal-media.is-letter { height: 132px; }
.pm-letter { font-family: var(--font-head); font-size: 58px; color: var(--brand); }
.pmodal-body { padding: 18px 20px 20px; }
.pmodal-offer {
  display: inline-block; background: #c0392b; color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.pmodal-body h3 { margin: 0 0 6px; font-family: var(--font-head); font-size: 21px; }
.pmodal-desc { margin: 0 0 10px; font-size: 13.5px; line-height: 1.7; color: #6d6553; }
.pmodal-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.pmodal-price span { font-size: 19px; font-weight: 800; color: var(--brand-dark); }
.pmodal-price s { font-size: 13px; color: #9d9482; }
.pmodal-body .opt-group { margin-bottom: 14px; }
.pmodal-foot {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  position: sticky; bottom: -20px; background: #fff; padding: 12px 0 6px;
  box-shadow: 0 -10px 16px -12px rgba(0,0,0,.25);
}
.qty-stepper {
  display: inline-flex; align-items: center; border: 1px solid #e2dacd; border-radius: 999px;
  background: #fff; overflow: hidden;
}
.qty-stepper button {
  width: 38px; height: 42px; border: 0; background: #f7f3ec; color: #3b3527; font-size: 18px; cursor: pointer;
}
.qty-stepper input {
  width: 46px; height: 42px; border: 0; text-align: center; font-size: 15px; font-weight: 700; color: #2c281d;
  -moz-appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button, .qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pmodal-add {
  flex: 1; height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--brand); color: #fff; font-family: var(--font-head); font-size: 15.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.pmodal-add b { font-weight: 700; opacity: .92; }
.pmodal-add:disabled { background: #b9b2a3; cursor: not-allowed; }

@media (max-width: 640px) {
  .pmodal { align-items: flex-end; padding: 0; }
  .pmodal-card {
    max-width: none; max-height: 92vh; border-radius: 22px 22px 0 0;
  }
  .pmodal-media { height: 160px; }
  .pmodal-foot { bottom: -22px; }
  .pmodal-body { padding: 16px 16px 22px; }
}

/* ---------- عناوين العميل ---------- */
.addr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f0eae0; flex-wrap: wrap; }
.addr-row .row-actions { flex-wrap: wrap; justify-content: flex-end; }
.addr-row:last-child { border-bottom: 0; }
.addr-txt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; font-size: 14px; }
.addr-line { display: flex; align-items: center; gap: 8px; }
.addr-txt .pill { flex: 0 0 auto; }
.addr-txt strong { font-weight: 700; }
.addr-full { color: #6d6553; font-size: 13px; }
.addr-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.addr-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e2dacd; border-radius: 14px; cursor: pointer; background: #fff; }
.addr-opt input { accent-color: var(--brand); margin-top: 4px; }
.addr-opt span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.addr-opt small { color: #6d6553; font-size: 12.5px; flex-basis: 100%; }
.addr-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.check-inline { display: flex; align-items: center; gap: 8px; margin-top: 24px; }

/* ---------- بانر الطلبات المتوقفة (برة المواعيد / مشغول) ---------- */
.shop-closed {
  background: #7a1f14;
  color: #fff;
  font-size: .9rem;
  position: relative;
  z-index: 40;
}
.shop-closed-busy { background: #5c4a1a; }
.shop-closed-in {
  display: flex; align-items: center; gap: 10px;
  padding-top: 11px; padding-bottom: 11px;
}
.shop-closed-in svg { width: 22px; height: 22px; flex: none; opacity: .9; }
.shop-closed-in div { display: grid; gap: 1px; line-height: 1.45; }
.shop-closed-in strong { font-size: .95rem; font-weight: 700; }
.shop-closed-in span { font-size: .78rem; opacity: .9; }
@media (min-width: 720px) {
  .shop-closed-in { justify-content: center; }
}

/* زرار إتمام الطلب وهو متوقف */
.btn.is-disabled, body.shop .btn.is-disabled {
  background: #d8d3c8; color: #8b8578; cursor: not-allowed;
  box-shadow: none; pointer-events: none;
}
.cart-closed {
  display: grid; gap: 3px;
  background: #fdf1ee; border: 1px solid #f2d3cc; border-radius: 12px;
  padding: 10px 12px; margin: 4px 0 12px;
  font-size: .85rem; color: #7a1f14;
}
.cart-closed strong { font-size: .9rem; }
.cart-closed span { color: #9a5a4f; font-size: .78rem; }

/* ---------- تعديل سطر في السلة (مقاس/إضافات) ---------- */
.cart-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.line-ctrl { display: inline-flex; align-items: center; gap: 10px; }
.line-edit { flex-basis: 100%; }
.line-edit summary {
  cursor: pointer; font-size: .8rem; color: var(--brand);
  list-style: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 0;
}
.line-edit summary::-webkit-details-marker { display: none; }
.line-edit summary::before { content: '✎'; font-size: .85rem; }
.line-edit[open] summary { font-weight: 700; }
.line-edit-body {
  margin: 6px 0 10px; padding: 12px; border-radius: 12px;
  background: #fbf7f0; border: 1px solid #efe6d8; display: grid; gap: 8px;
}
.line-edit-lbl { margin: 0; font-size: .78rem; font-weight: 700; color: #6b7a74; }
.line-edit .opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.line-edit .opt-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #e3dacb; background: #fff; border-radius: 999px;
  padding: 6px 12px; font-size: .82rem; cursor: pointer;
}
.line-edit .opt-chip input { margin: 0; }
.line-edit .opt-chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }

/* ---------- سجل الطلبات في حساب العميل ---------- */
.order-card {
  background: #fff; border: 1px solid #ece5d9; border-radius: 16px;
  padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 10px;
}
.order-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-code { font-size: 1rem; letter-spacing: .5px; }
.order-date { display: block; font-size: .76rem; color: #8b948f; margin-top: 2px; }
.order-items { margin: 0; padding-inline-start: 18px; font-size: .85rem; color: #3a4642; display: grid; gap: 3px; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px dashed #efe8dc; padding-top: 10px; }
.order-total { font-weight: 700; color: var(--brand); }
.order-acts { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.order-acts .inline { display: inline; }

/* ---------- صفحة تتبع الطلب ---------- */
.track-card { display: grid; gap: 14px; }
.track-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.track-lbl { font-size: .76rem; color: #8b948f; display: block; }
.track-code { font-size: 1.15rem; letter-spacing: 1px; }
.track-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track-step { display: flex; align-items: center; gap: 12px; position: relative; padding: 0 0 18px; }
.track-step:last-child { padding-bottom: 0; }
.track-step::before {
  content: ''; position: absolute; inset-inline-start: 15px; top: 30px; bottom: 0;
  width: 2px; background: #ece5d9;
}
.track-step:last-child::before { display: none; }
.track-step.is-done::before { background: var(--brand); }
.track-dot {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  background: #f1ece2; color: #9aa39e; border: 2px solid #ece5d9; z-index: 1;
}
.track-step.is-done .track-dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.track-step.is-now .track-dot { background: #fff; border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.track-txt { display: grid; line-height: 1.35; }
.track-txt b { font-size: .92rem; color: #16211d; }
.track-txt small { font-size: .76rem; color: #8b948f; }
.track-step.is-now .track-txt b { color: var(--brand); }
.track-note { margin: 12px 0 0; font-size: .76rem; color: #8b948f; }
.track-cancel {
  display: grid; gap: 3px; background: #fdf1ee; border: 1px solid #f2d3cc;
  border-radius: 12px; padding: 12px 14px; color: #7a1f14;
}
.track-cancel span { font-size: .8rem; color: #9a5a4f; }
.track-meta { display: grid; gap: 4px; font-size: .82rem; color: #6b7a74; border-top: 1px dashed #efe8dc; padding-top: 10px; }
.track-meta b { color: #16211d; font-weight: 600; }

/* ---------- لينك سجل الطلبات في حساب العميل ---------- */
.orders-link {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  padding: 14px 16px; margin-top: 6px;
}
.orders-link-ico {
  width: 42px; height: 42px; flex: none; border-radius: 12px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center;
}
.orders-link-ico svg { width: 22px; height: 22px; }
.orders-link-txt { display: grid; gap: 2px; flex: 1; }
.orders-link-txt strong { font-size: .95rem; }
.orders-link-txt small { font-size: .78rem; color: #8b948f; }
.orders-link-arrow { color: #b9c1bc; font-size: 1.4rem; transform: rotate(180deg); }

/* ---------- ترقيم الصفحات ---------- */
.page-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pager {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 4px; padding: 10px 4px;
}
.pager-info { font-size: .82rem; color: #6b7a74; }

/* ---------- المحفظة والنقاط ---------- */
.wallet-hint { margin: 6px 0 10px; font-size: .82rem; color: #3a4642; background: #fff8e6; border: 1px solid #f2e3b8; border-radius: 10px; padding: 8px 10px; }
.wallet-box {
  background: #fff8e6; border: 1px solid #f2e3b8; border-radius: 14px;
  padding: 12px 14px; display: grid; gap: 10px;
}
.wallet-box-top { display: grid; gap: 2px; }
.wallet-box-top strong { font-size: .92rem; }
.wallet-box-top .muted { font-size: .76rem; }
.wallet-use { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; cursor: pointer; }
.wallet-range { display: grid; gap: 4px; }
.wallet-range input[type="range"] { width: 100%; accent-color: var(--brand); }
.wallet-range-nums { display: flex; justify-content: space-between; font-size: .74rem; color: #8b948f; }
.sum-row.is-wallet span:last-child { color: #1f6b3a; font-weight: 700; }
.sum-row.is-cash { font-weight: 700; }

.wallet-card { display: grid; gap: 10px; }
.wallet-head { display: flex; align-items: center; gap: 10px; }
.wallet-ico {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: #fff2cc; color: #a07d16; display: grid; place-items: center; font-size: 1.1rem;
}
.wallet-head small { display: block; font-size: .74rem; }
.wallet-bal { display: flex; align-items: baseline; gap: 8px; }
.wallet-pts { font-size: 1.7rem; font-weight: 800; color: var(--brand); }
.wallet-egp { font-size: .9rem; color: #6b7a74; }
.wallet-hist summary { cursor: pointer; font-size: .82rem; color: var(--brand); }
.wallet-hist ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wallet-hist li { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; border-bottom: 1px dashed #efe8dc; padding-bottom: 5px; }
.wallet-hist b.is-plus { color: #1f6b3a; }
.wallet-hist b.is-minus { color: #a3301f; }

/* ---------- اختيار منطقة التوصيل ---------- */
.zone-pick { display: grid; gap: 8px; }
.zone-pick .opt-label { font-size: .82rem; font-weight: 700; color: #6b7a74; }
.zone-opt small { color: #6b7a74; }

/* العناصر المخفية تفضل مخفية حتى لو الكلاس بتاعها بيحدد display */
.sum-row[hidden], .wallet-range[hidden], .shop-closed[hidden] { display: none !important; }

/* ============================================================
   طبقة تحسين شكل المتجر (v9)
   ============================================================ */
body.shop { background: #f7f3ec; }
body.shop .page-title { font-size: 1.35rem; margin: 18px 0 14px; letter-spacing: -.01em; }
.shop-wrap { padding: 0 18px; }

.shop-head { box-shadow: 0 1px 0 rgba(22,33,29,.05); }
.nav-btn {
  border: 1px solid #ece5d9; background: #fff; border-radius: 12px;
  padding: 9px 12px; display: inline-flex; align-items: center; gap: 6px;
  font-size: .84rem; font-weight: 600; color: #3a4642;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.nav-btn:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.nav-btn.is-on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.nav-count { background: var(--brand); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: .72rem; }

.items { gap: 14px; }
.item {
  background: #fff; border: 1px solid #eee7db; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(22,33,29,.04), 0 6px 18px rgba(22,33,29,.04);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.item:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,33,29,.09); border-color: #e2d9c8; }
.item-media { border-radius: 14px; }
.item-price, .item-foot strong { color: var(--brand); }
.item-add, .add-btn { border-radius: 11px; font-weight: 700; transition: transform .12s ease, filter .12s ease; }
.item-add:hover { transform: translateY(-1px); filter: brightness(1.05); }

.page-card {
  background: #fff; border: 1px solid #eee7db; border-radius: 18px;
  padding: 18px; box-shadow: 0 1px 2px rgba(22,33,29,.04), 0 8px 22px rgba(22,33,29,.04);
}
.cart-card { border-radius: 18px; box-shadow: 0 1px 2px rgba(22,33,29,.04), 0 8px 22px rgba(22,33,29,.04); }
.cart-mini-line, .cart-line { border-bottom-style: solid; border-bottom-color: #f2ece1; }

body.shop .btn {
  border-radius: 12px; padding: 12px 20px; font-weight: 700; font-size: .9rem;
  background: var(--brand); color: #fff; box-shadow: 0 2px 8px rgba(31,75,63,.18);
  transition: transform .12s ease, filter .12s ease;
}
body.shop .btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.shop .btn-gray { background: #f1ece2; color: #3a4642; box-shadow: none; }
body.shop .btn-small { padding: 8px 13px; font-size: .8rem; border-radius: 10px; }
body.shop input, body.shop select, body.shop textarea {
  border-radius: 12px; border: 1px solid #e3dacb; padding: 12px 14px; font-size: .92rem;
}
body.shop input:focus, body.shop select:focus, body.shop textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,75,63,.12);
}

.mobile-bar {
  background: rgba(255,255,255,.96); backdrop-filter: blur(10px);
  border-top: 1px solid #ece5d9; box-shadow: 0 -6px 20px rgba(22,33,29,.06);
}
.mobile-bar .btn, .mb-go { border-radius: 12px; }

/* v10: ملاحظة الطلب + زر واتساب */
.track-order-note{display:flex;flex-direction:column;gap:2px;margin-top:12px;padding:10px 12px;border-radius:10px;background:#fff7e6;border:1px solid #ffe0a3;border-right:3px solid #e8a400}
.track-order-note b{font-size:12px;color:#8a5b00}
.track-order-note span{font-size:13.5px;color:#6b4a00;white-space:pre-wrap;word-break:break-word}
.btn-wa{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:14px;background:#25D366;color:#fff;border:none;border-radius:10px;padding:12px 16px;font-weight:700;font-size:14px;text-decoration:none;box-shadow:0 2px 8px rgba(37,211,102,.28)}
.btn-wa:hover{background:#1fb457;color:#fff}
.btn-wa::before{content:"";width:18px;height:18px;background:#fff;-webkit-mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.3 14.1c-.2.6-1.2 1.2-1.7 1.2-.5.1-1 .1-1.7-.1a10 10 0 0 1-3.9-2.5 8.6 8.6 0 0 1-1.8-2.9c-.2-.6-.2-1.1 0-1.6.1-.3.4-.7.6-.9.2-.2.4-.2.6-.2h.5c.2 0 .4 0 .5.4l.7 1.6c.1.2 0 .4-.1.6l-.4.5c-.1.2-.3.3-.1.6.5.8 1.1 1.5 1.9 2 .3.2.5.3.7 0l.6-.7c.2-.2.4-.2.6-.1l1.5.8c.2.1.4.2.4.4 0 .1 0 .6-.1.9Z'/></svg>") center/contain no-repeat;mask:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Zm5.3 14.1c-.2.6-1.2 1.2-1.7 1.2-.5.1-1 .1-1.7-.1a10 10 0 0 1-3.9-2.5 8.6 8.6 0 0 1-1.8-2.9c-.2-.6-.2-1.1 0-1.6.1-.3.4-.7.6-.9.2-.2.4-.2.6-.2h.5c.2 0 .4 0 .5.4l.7 1.6c.1.2 0 .4-.1.6l-.4.5c-.1.2-.3.3-.1.6.5.8 1.1 1.5 1.9 2 .3.2.5.3.7 0l.6-.7c.2-.2.4-.2.6-.1l1.5.8c.2.1.4.2.4.4 0 .1 0 .6-.1.9Z'/></svg>") center/contain no-repeat}
@media(max-width:520px){.btn-wa{font-size:13.5px}}

/* v19: اطلب تاني بشكل بارز + تقييم الطلب + وقت التحضير */
.reorder-btn{background:var(--shop-brand,#1f4b3f);color:#fff;font-weight:800;padding:10px 22px;border-radius:12px;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.reorder-btn:hover{filter:brightness(1.08)}
.rate-box{margin-top:10px;padding-top:10px;border-top:1px dashed rgba(0,0,0,.12)}
.rate-form{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.rate-lbl{font-weight:700;font-size:.92rem}
.rate-stars{display:inline-flex;gap:2px;direction:ltr}
.rate-stars label{cursor:pointer;display:inline-flex}
.rate-stars input{position:absolute;opacity:0;width:0;height:0}
.rate-stars span{font-size:1.5rem;line-height:1;color:#d8d2c4;transition:color .12s}
.rate-stars label:hover span,.rate-stars label:hover ~ label span{color:#e0a91b}
.rate-stars input:checked ~ span{color:#e0a91b}
.rate-stars label:has(input:checked) span{color:#e0a91b}
.rate-form input[type=text]{flex:1 1 180px;min-width:140px;padding:8px 12px;border:1px solid #ddd6c8;border-radius:10px}
.rate-done{font-weight:800;color:#b8860b}
.prep-note{background:#fdf6e3;border:1px solid #f0e2b8;color:#6b5a1e;border-radius:12px;padding:10px 14px;margin-bottom:10px;font-size:.92rem}

/* أنواع الطلب */
.type-off{opacity:.55;cursor:not-allowed;background:#f1eee8}
.type-off input{cursor:not-allowed}
.type-off small{color:#a33;font-weight:700}

.sched-input{width:100%;padding:12px;border:1px solid #d9d2c5;border-radius:12px;font:inherit;margin-top:8px}
.sched-input[hidden]{display:none}

.sug-title{margin:0 0 10px;font-size:1.05rem}
.sug-list{display:flex;flex-direction:column;gap:8px}
.sug-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid #e6dfd2;border-radius:12px;background:#fffdf8}
.sug-item span{display:flex;flex-direction:column}
.sug-item small{color:#6b6458}
.sug-item form{margin:0}
.sug-card{margin-top:14px}

.lang-switch{position:fixed;bottom:16px;inset-inline-start:16px;z-index:60;background:#1f4b3f;color:#fff!important;padding:9px 16px;border-radius:999px;font-weight:800;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.25)}
html[dir=ltr] body{text-align:left}
html[dir=ltr] .item-foot{flex-wrap:wrap;gap:8px}html[dir=ltr] .item-foot .btn{white-space:nowrap}

.opt-req{color:#c62828;font-weight:700}

.shop-social{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:4px 0}.shop-social a{width:40px;height:40px;border-radius:50%;background:var(--brand-soft,#f1ece2);color:var(--brand,#1f4b3f);display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s}.shop-social a:hover{background:var(--brand,#1f4b3f);color:#fff}
.shop-foot .foot-made{text-align:center;width:100%;justify-self:center;grid-column:1/-1;margin-top:8px}
.shop-foot .shop-foot-in>div:first-child{display:flex;flex-direction:column;align-items:flex-start;gap:2px}.shop-foot .foot-phone{margin:0;color:#4a554f;font-weight:600}

.shop-nav .nav-btn{flex-direction:column;gap:2px;padding:6px 9px;font-size:.7rem;min-width:54px;justify-content:center;position:relative}
.shop-nav .nav-btn span{display:block!important}
.shop-nav .nav-count{position:absolute;top:-5px;inset-inline-start:-5px;padding:0 5px;font-size:.66rem}
@media (max-width:560px){
.shop-head-in{flex-wrap:wrap;gap:6px;min-height:0}
.shop-nav{width:100%;justify-content:space-between;gap:4px}
.shop-nav .nav-btn{flex:1;min-width:0;padding:6px 2px;border-radius:10px;font-size:.66rem}
}

/* v40: إعلانات المطعم */
.promo-strip{display:flex;gap:12px;overflow-x:auto;margin:14px 0;padding-bottom:4px;scroll-snap-type:x mandatory}
.promo-card{position:relative;flex:0 0 min(86%,420px);min-height:120px;border-radius:16px;overflow:hidden;background:var(--brand,#1f4b3f);color:#fff;text-decoration:none;display:flex;align-items:flex-end;scroll-snap-align:start}
.promo-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.promo-card.has-img::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(0,0,0,.62),rgba(0,0,0,.05) 70%)}
.promo-text{position:relative;z-index:1;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.promo-text strong{font-size:1.15rem}.promo-text small{opacity:.92}
.promo-code{background:#fff;color:#222;font-weight:800;border-radius:99px;padding:3px 12px;font-size:.85rem}
.promo-codes{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:4px}.promo-codes-label{font-size:.82rem;opacity:.95}

/* v43: خصم تلقائي */
.auto-hint{background:#fff3cd;color:#7a5200;border-radius:10px;padding:8px 12px;margin:8px 0;font-weight:700;font-size:.9rem}

.promo-code-wrap{display:inline-flex;align-items:center;gap:4px}.promo-code[data-apply]{cursor:pointer}.promo-copy{border:0;background:rgba(255,255,255,.25);color:inherit;border-radius:99px;padding:3px 10px;font:inherit;font-size:.75rem;cursor:pointer}
.promo-copy{min-height:0!important;width:auto!important;height:auto!important;min-width:0!important;line-height:1.3;padding:3px 10px!important;border-radius:99px!important;background:rgba(255,255,255,.28)}

/* v51: مراجعة */
.cart-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.cart-actions .btn{flex:1 1 140px;text-align:center}
.sum-row span:last-child{white-space:nowrap}
@media(max-width:700px){.lang-switch{bottom:84px}}
@media(max-width:700px){body.store{padding-bottom:90px}}

.foot-made a{color:inherit;font-weight:800;text-decoration:underline}
