:root {
  --red: #d20a11;
  --price: #b70000;
  --ink: #212529;
  --muted: #6c757d;
  --line: #e4e7ee;
  --bg: #f3f5f8;
  --ok: #159947;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Cairo, sans-serif;
}
.page { flex: 1; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1240px, calc(100% - 24px)); margin: 0 auto; padding: 16px 0 40px; }
.narrow { max-width: 720px; }

.head-stack { position: sticky; top: 0; z-index: 40; }
.announcement-bar {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  padding: 6px 12px;
}
.top-navbar {
  background: #000;
  color: #fff;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  grid-template-areas:
    "menu logo cart"
    "search search search";
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
}
.menu-open { grid-area: menu; justify-self: start; }
.logo-container { grid-area: logo; justify-self: center; min-width: 0; max-width: 100%; text-align: center; }
.search-container { grid-area: search; }
.action-item { grid-area: cart; justify-self: end; }
.cart-label { display: none; }
.logo-mark {
  display: block;
  color: #fff;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: .2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logo-img {
  display: block;
  max-height: 40px;
  max-width: min(220px, 55vw);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.logo-img-sm { max-height: 28px; max-width: 140px; }
.logo-img-drawer { max-height: 48px; max-width: 160px; margin: 0 0 8px; }
.menu-open {
  width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.menu-open svg { width: 22px; height: 22px; }
.search-container {
  display: flex;
  align-items: center;
  height: 42px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}
.search-container input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 14px;
  font: 600 14px Cairo, sans-serif;
  color: #333;
}
.search-container button {
  width: 44px;
  height: 100%;
  border: 0;
  background: transparent;
  color: #d3131a;
  cursor: pointer;
}
.search-container svg, .cart-wrapper svg { width: 20px; height: 20px; fill: currentColor; }
.action-item { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; background: transparent; border: 0; cursor: pointer; font-family: Cairo, sans-serif; }
.cart-wrapper { position: relative; display: inline-flex; }
.cart-badge {
  position: absolute;
  top: -8px;
  left: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d3131a;
  border: 2px solid #000;
  color: #fff;
  font-size: 10px;
  display: grid;
  place-items: center;
}
.bottom-navbar {
  display: flex;
  gap: 16px;
  align-items: center;
  overflow-x: auto;
  min-height: 48px;
  padding: 0 14px;
  background: #eceef2;
  border-bottom: 1px solid #e1e4ea;
  scrollbar-width: none;
}
.bottom-navbar::-webkit-scrollbar { display: none; }
.bottom-navbar a, .bottom-navbar span, .bottom-navbar button, .logout button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #1e2a36;
  font: 800 14px Cairo, sans-serif;
  cursor: pointer;
  padding: 0;
}
.nav-phone { margin-inline-start: auto; color: var(--red) !important; }
.logout { margin: 0; }

.store-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}
.store-toolbar h1 { margin: 0; font-size: 26px; font-weight: 900; }
.store-toolbar p, .about, .meta, .desc, .hint { color: var(--muted); font-weight: 600; line-height: 1.6; }
.about { margin: 0; max-width: 460px; text-align: left; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(16, 24, 40, .04);
}
.chips a.on { background: var(--red); color: #fff; border-color: var(--red); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .05);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.image-container {
  height: 150px;
  background: #f7f8fb;
  border: 1px solid #eceff3;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 8px;
}
.main-product-image { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.photo-empty { color: var(--muted); font-weight: 700; font-size: 13px; }
.product-title {
  margin: 0;
  color: #000;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.badge-promo {
  display: inline-flex;
  margin-left: 4px;
  background: #ffc107;
  color: #000;
  border-radius: 4px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  vertical-align: middle;
}
.price-container { margin-top: 6px; min-height: 28px; }
.current-price { color: var(--price); font-weight: 900; line-height: 1; }
.price-amount { font-size: 22px; }
.price-currency { font-size: 13px; margin-right: 3px; }
.tags-container { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.badge-stock, .badge-wholesale {
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}
.stock-in { background: var(--ok); color: #fff; }
.stock-out { background: #e53935; color: #fff; }
.badge-wholesale { background: #fff4e5; color: #9a3412; }

.crumb { display: flex; gap: 6px; margin: 0 0 12px; color: var(--muted); font-weight: 700; font-size: 13px; }
.crumb a { color: var(--red); }
.detail { display: grid; gap: 14px; align-items: start; }
.product-main-image-container {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 24, 36, .06);
}
.product-main-image { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.photo-lg { font-size: 15px; }
.image-stock-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.image-stock-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.is-in { background: #e9f9ef; color: #0e8a43; }
.is-out { background: #fdecec; color: #c51f1f; }
.order-card, .sheet, .summary-card, .cart-item-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(12, 24, 36, .05);
}
.order-card, .sheet, .summary-card { padding: 16px; }
.product-title-main { margin: 0 0 8px; font-size: 24px; line-height: 1.35; font-weight: 800; }
.order-card .current-price { display: block; margin: 0 0 8px; font-size: 34px; }
.order-card .current-price small { font-size: 16px; }
.buy { display: flex; gap: 8px; align-items: center; margin-top: 16px; }
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.stepper button {
  width: 36px;
  height: 44px;
  border: 0;
  background: #f4f6f8;
  font: 800 18px Cairo, sans-serif;
  cursor: pointer;
}
.qty { width: 42px; border: 0; text-align: center; font: 800 15px Cairo, sans-serif; background: #fff; }
.go, .form button, .buy button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  background: var(--red);
  color: #fff;
  border: 0;
  border-radius: 12px;
  min-height: 46px;
  padding: 12px 16px;
  font: 800 16px Cairo, sans-serif;
}
.ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 16px;
  font: 800 15px Cairo, sans-serif;
  cursor: pointer;
}
.section-title, .page-title { margin: 26px 0 14px; font-size: 24px; font-weight: 900; text-align: center; }
.page-title { margin-top: 0; text-align: right; }

.cart-layout { display: grid; gap: 14px; align-items: start; }
.cart-items { display: grid; gap: 10px; }
.cart-item-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  padding: 12px;
}
.item-image {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background: #f7f8fb;
  border: 1px solid #eceff3;
  overflow: hidden;
}
.item-image img { width: 100%; height: 100%; object-fit: contain; }
.item-title { font-weight: 800; display: block; }
.item-category, .hint { font-size: 13px; }
.item-price, .item-total { font-weight: 800; }
.item-quantity, .item-price, .item-total { grid-column: 1 / -1; }
.summary-card { display: grid; gap: 10px; }
.summary-card h2, .summary h2 { margin: 0; font-size: 18px; }
.row { display: flex; justify-content: space-between; gap: 8px; }
.total { margin: 4px 0; color: var(--price); font-size: 26px; font-weight: 900; }
.summary-card .go, .summary .go { width: 100%; }
.note, .hint { margin: 0; }
.note { background: #fff7e8; color: #9a3412; border-radius: 12px; padding: 10px 12px; font-weight: 700; }
.empty { text-align: center; color: var(--muted); font-weight: 700; padding: 18px 8px; }
.empty-card, .sheet { text-align: initial; }
.empty-card { text-align: center; }
.back { display: inline-block; margin-bottom: 12px; color: var(--red); font-weight: 800; }
.form { display: grid; gap: 10px; }
.form label { display: grid; gap: 6px; font-weight: 700; }
.form input, .form select {
  width: 100%;
  border: 1px solid #d7dfeb;
  background: #fff;
  border-radius: 12px;
  min-height: 46px;
  padding: 12px;
  font: 600 15px Cairo, sans-serif;
}
.form input:focus, .form select:focus { outline: none; border: 1.4px solid var(--red); }
.choice { display: flex; gap: 8px; }
.choice label { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.warn { color: var(--red); font-weight: 800; }
dialog.added {
  border: 0;
  border-radius: 18px;
  width: min(420px, calc(100% - 28px));
  padding: 28px 18px;
  text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
}
dialog.added::backdrop { background: rgba(17, 17, 17, .5); }
.tick {
  width: 56px; height: 56px; margin: 0 auto 8px;
  border-radius: 50%; background: #e9f9ef; color: var(--ok);
  display: grid; place-items: center; font-size: 28px; font-weight: 900;
}
.added-actions { display: flex; gap: 8px; }
.price { color: var(--price); font-weight: 900; font-size: 28px; }
.site-footer { background: #0d0d0d; color: #c9c9c9; margin-top: auto; }
.footer-top-bar { height: 3px; background: linear-gradient(90deg, var(--red), color-mix(in srgb, var(--red) 55%, #fff), var(--red)); }
.foot-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 18px 0 10px; }
.site-footer strong { color: #fff; font-size: 18px; }
.site-footer p { margin: 2px 0 0; font-size: 13px; }
.site-footer a { color: #fff; font-weight: 800; }
.foot-powered {
  display: flex; justify-content: center; align-items: center;
  text-align: center; padding: 0 0 16px; direction: ltr;
}
.foot-powered-link {
  color: #8b93a3 !important; font-weight: 600 !important; font-size: 12.5px;
  letter-spacing: .3px; text-decoration: none; font-family: Cairo, sans-serif;
}
.foot-powered-link strong {
  color: #fff; font-size: 12.5px; font-weight: 800; letter-spacing: .4px;
}
.foot-powered-link:hover { color: #c5ccd8 !important; }
.foot-powered-link:hover strong { color: var(--red); }
.foot-brand { min-width: 0; max-width: 520px; }
.foot-about { opacity: .85; max-width: 420px; line-height: 1.45; }
.foot-contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.foot-phone {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; font-weight: 800; font-size: 18px; letter-spacing: .4px;
}
.foot-phone svg { width: 20px; height: 20px; color: var(--red); flex: 0 0 auto; }
.social-icons { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.social-icons-foot { justify-content: flex-end; }
.social-ico {
  width: 40px; height: 40px; border-radius: 0;
  display: grid; place-items: center;
  background: transparent !important;
  color: inherit;
  transition: transform .15s ease, filter .15s ease;
}
.social-ico:hover { transform: translateY(-1px); filter: brightness(1.06); }
.social-ico svg { width: 40px; height: 40px; display: block; }
.fab-contact {
  position: fixed; inset-inline-start: 16px; bottom: 18px; z-index: 35;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: transparent; color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  overflow: hidden;
}
.fab-contact svg { width: 54px; height: 54px; display: block; }
.fab-contact.fab-call { background: var(--red); }
.fab-contact.fab-call svg { width: 26px; height: 26px; }
.fab-contact svg { width: 28px; height: 28px; }
.home-logo {
  display: block; max-height: 72px; max-width: 180px; width: auto; height: auto;
  object-fit: contain; margin: 0 auto 10px;
}
.home-closed-banner {
  margin: 16px auto 0; max-width: 520px; text-align: center;
  color: var(--red); font-weight: 900; font-size: 14px;
}
.cart-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90;
  transform: translate(-50%, 12px); opacity: 0;
  background: #122017; color: #fff; border-radius: 999px;
  padding: 12px 18px; font-weight: 800; font-size: 14px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  transition: opacity .2s ease, transform .2s ease; pointer-events: none;
  white-space: nowrap;
}
.cart-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.pp { width: min(1180px, calc(100% - 24px)); margin: 0 auto; padding: 18px 0 48px; }
.pp-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 16px;
  color: #8b95a1;
  font-size: 13px;
  font-weight: 700;
}
.pp-crumb a { color: var(--red); }
.pp-here { color: #5c6772; max-width: 100%; }
.pp-layout { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.pp-gallery, .pp-panel { min-width: 0; max-width: 100%; }
.pp-gallery {
  position: relative;
  background: #fff;
  border: 1px solid #e7eaef;
  border-radius: 18px;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, .05);
}
.pp-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}
.pp-empty { color: var(--muted); font-weight: 700; }
.pp-panel {
  background: #fff;
  border: 1px solid #e7eaef;
  border-radius: 18px;
  padding: 20px 18px 16px;
  box-shadow: 0 10px 28px rgba(16, 24, 40, .05);
}
.pp-panel h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.45; font-weight: 800; }
.pp-price { display: flex; align-items: baseline; gap: 6px; color: var(--red); }
.pp-amount { font-size: 34px; font-weight: 800; line-height: 1; }
.pp-currency { font-size: 16px; font-weight: 800; }
.pp-wholesale { margin: 8px 0 0; color: #9a3412; font-weight: 800; font-size: 13px; }
.pp-desc { margin-top: 14px; }
.pp-desc p { margin: 0 0 6px; color: #5d6670; font-size: 15px; font-weight: 600; line-height: 1.6; }
.pp-panel hr { border: 0; border-top: 1px solid #eceff3; margin: 16px 0; }
.pp-actions { display: flex; gap: 10px; align-items: stretch; }
.pp-qty {
  display: flex;
  align-items: center;
  border: 1px solid #e4e7ee;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  flex: 0 0 auto;
}
.pp-qty button {
  width: 40px;
  height: 48px;
  border: 0;
  background: #f7f8fa;
  color: #6c757d;
  font: 800 18px Cairo, sans-serif;
  cursor: pointer;
}
.pp-qty input {
  width: 46px;
  height: 48px;
  border: 0;
  text-align: center;
  font: 800 16px Cairo, sans-serif;
  background: #fff;
}
.pp-submit {
  flex: 1;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font: 800 16px Cairo, sans-serif;
  cursor: pointer;
}
.pp-note, .pp-closed { margin: 12px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.pp-closed { color: var(--red); }

@media (min-width: 900px) {
  .pp-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-areas: "panel gallery";
    gap: 22px;
    align-items: start;
    direction: ltr;
  }
  .pp-panel { grid-area: panel; direction: rtl; padding: 24px; }
  .pp-gallery { grid-area: gallery; direction: rtl; height: 520px; }
  .pp-crumb { direction: rtl; }
  .pp-panel h1 { font-size: 28px; }
  .pp-amount { font-size: 42px; }
}

@media (min-width: 800px) {
  .top-navbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    grid-template-areas: "tools search cart";
    height: 86px;
    padding: 0 28px;
  }
  .menu-open, .logo-container { grid-area: tools; justify-self: start; }
  .logo-container { margin-inline-start: 48px; }
  .search-container { height: 46px; width: min(460px, 100%); justify-self: center; }
  .cart-label { display: inline; }
  .logo-mark { font-size: 30px; }
  .bottom-navbar { min-height: 54px; padding: 0 28px; gap: 22px; }
  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 250px));
    justify-content: start;
    gap: 14px;
  }
  .image-container { height: 190px; }
  .price-amount { font-size: 24px; }
  .detail { grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px); }
  .order-card { position: sticky; top: 148px; }
  .cart-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .summary-card { position: sticky; top: 148px; }
  .cart-item-card { grid-template-columns: 88px minmax(0, 1fr) 120px 150px 120px; }
  .item-image, .item-image img { width: 80px; height: 80px; }
  .item-quantity, .item-price, .item-total { grid-column: auto; }
  .item-price, .item-total { text-align: center; }
}

.vp { width: min(1180px, calc(100% - 24px)); margin: 18px auto 48px; }
.vp-crumb {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  margin: 0 0 14px; padding: 10px 14px;
  background: #fff; border: 1px solid #e6e9ef; border-radius: 14px;
  color: #6c757d; font-size: 13px; font-weight: 700;
}
.vp-crumb a { color: var(--red); }
.vp-grid { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.vp-photo, .vp-card { min-width: 0; width: 100%; }
.vp-photo {
  position: relative;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 32px rgba(16, 20, 24, .06);
}
.vp-frame {
  min-height: 260px;
  border: 1px solid #e6e9ef;
  border-radius: 14px;
  background: #f7f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.vp-frame img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain; }
.vp-empty { color: var(--muted); font-weight: 700; }
.vp-badge {
  position: absolute; top: 24px; left: 24px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .08);
}
.vp-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.vp-badge.is-in { background: #e9f9ef; color: #0e8a43; }
.vp-badge.is-out { background: #fdecec; color: #c51f1f; }
.vp-card {
  background: #fff; border: 1px solid #e6e9ef; border-radius: 18px;
  padding: 18px 16px 16px; box-shadow: 0 10px 32px rgba(16, 20, 24, .06);
}
.vp-card h1 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; font-weight: 800; }
.vp-pricebox {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 10px; padding: 14px 16px; margin-bottom: 14px; color: #fff;
  border-radius: 16px; border: 0; box-shadow: none;
  background: linear-gradient(135deg, #e11d2e 0%, #c3101f 48%, #9f0d18 100%);
}
.vp-pricebox::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 48%);
  pointer-events: none;
}
.vp-pricebox::after {
  content: ""; position: absolute; top: -55%; bottom: -55%; width: 38%;
  left: -70%; z-index: 1; pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,.45) 50%,
    rgba(255,255,255,0) 60%,
    transparent 100%
  );
  transform: skewX(-20deg);
  animation: vpPriceShine 3.8s ease-in-out infinite;
}
.vp-pricebox > * { position: relative; z-index: 2; }
@keyframes vpPriceShine {
  0%, 15% { left: -70%; opacity: 0; }
  22% { opacity: 1; }
  52% { left: 125%; opacity: 1; }
  58%, 100% { left: 125%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .vp-pricebox::after { animation: none; opacity: 0; }
}
.vp-amount { font-size: 34px; font-weight: 900; line-height: 1; letter-spacing: -.02em; color: #fff; }
.vp-currency { font-size: 16px; font-weight: 800; color: #fff; }
.vp-wholesale {
  position: absolute; inset-inline-start: 12px; top: 50%; translate: 0 -50%;
  font-size: 11px; font-weight: 800; color: #fff;
  background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px; padding: 4px 10px;
}
.vp-desc p { margin: 0 0 6px; color: #5d6670; font-size: 15px; font-weight: 600; line-height: 1.6; }
.vp-error, .vp-closed { margin: 10px 0 0; color: var(--red); font-weight: 800; }
.vp-fields { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 14px; }
.vp-field { position: relative; display: block; }
.vp-icon {
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%);
  width: 18px; height: 18px; pointer-events: none;
}
.vp-field input, .vp-field select {
  width: 100%;
  height: 48px;
  border: 1px solid #d8ddeb;
  border-radius: 12px;
  background: #fafbff;
  padding: 0 40px 0 14px;
  font: 600 15px Cairo, sans-serif;
  color: #17202a;
}
.vp-field input::placeholder { color: #8b919c; font-weight: 600; }
.vp-field select {
  appearance: none;
  padding-left: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%236c757d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px 8px;
  cursor: pointer;
}
.vp-field input:focus, .vp-field select:focus { outline: none; border-color: #d20a11; background: #fff; }
.vp-summary {
  margin: 14px 0; padding: 12px; border-radius: 12px;
  background: #f7f9fc; border: 1px solid #e0e5ee;
  display: grid; gap: 8px;
}
.vp-summary div { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #5f6b76; font-weight: 700; }
.vp-summary b { white-space: nowrap; color: #17202a; }
.vp-total { margin-top: 4px; padding-top: 8px; border-top: 1px dashed #d7dde7; color: #101418; }
.vp-total b { color: var(--red); font-size: 18px; }
.vp-actions { display: flex; gap: 8px; align-items: stretch; }
.vp-qty { display: flex; border: 1px solid #e4e7ee; border-radius: 12px; overflow: hidden; background: #fff; }
.vp-qty button {
  width: 40px; border: 0; background: #f7f8fa; color: #6c757d;
  font: 800 18px Cairo, sans-serif; cursor: pointer;
}
.vp-qty input { width: 46px; border: 0; text-align: center; font: 800 16px Cairo, sans-serif; }
.vp-submit, .vp-go {
  flex: 1; min-height: 48px; border: 0; border-radius: 12px; background: var(--red); color: #fff;
  font: 800 16px Cairo, sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.vp-note { margin: 10px 0 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.vp-later { margin-top: 12px; text-align: center; }
.vp-later button {
  width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid #d7dde7;
  background: #fff; color: #344054; font: 800 15px Cairo, sans-serif; cursor: pointer;
}
.vp-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.vp-call, .vp-wa {
  min-height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800;
}
.vp-call { background: #111; }
.vp-wa { background: #25D366; }
.vp-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(17, 17, 17, .5);
}
.vp-modal-dismiss { position: absolute; inset: 0; }
.vp-ship { display: contents; }
.vp-ship.is-off, #home-address.is-off { display: none; }
.vp-methods {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  width: 100%;
}
.vp-methods label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1.5px solid #e6e8ec;
  border-radius: 14px;
  background: #fff;
  color: #1f2430;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.vp-methods label:hover { border-color: #cfd4dc; background: #fafbfc; }
.vp-methods label:has(input:checked) {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, #fff);
  color: var(--red);
  box-shadow: 0 0 0 3px var(--brand-soft, rgba(210, 10, 17, .12));
}
.vp-methods input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.vp-methods .vp-method-dot {
  width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid #c5cad3; background: #fff;
  display: grid; place-items: center;
}
.vp-methods label:has(input:checked) .vp-method-dot {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px #fff;
}
.vp-methods .vp-method-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: 0 0 auto;
  display: grid; place-items: center; background: #f3f5f8; color: #64748b;
}
.vp-methods .vp-method-ico svg { width: 20px; height: 20px; }
.vp-methods label:has(input:checked) .vp-method-ico {
  background: color-mix(in srgb, var(--red) 14%, #fff);
  color: var(--red);
}
.vp-methods .vp-method-text {
  flex: 1; min-width: 0; text-align: right;
}
.vp-methods .vp-method-text small {
  display: block; margin-top: 2px; color: #8a91a0; font-size: 11px; font-weight: 700;
}
.vp-methods label:has(input:checked) .vp-method-text small { color: color-mix(in srgb, var(--red) 55%, #8a91a0); }
@media (min-width: 520px) {
  .vp-methods { grid-template-columns: 1fr 1fr; }
}
.vp-modal-card p { margin: 0; color: #5c6772; font-weight: 700; line-height: 1.6; }
.vp-modal-card {
  position: relative;
  z-index: 1;
  width: min(420px, 100%); background: #fff; border-radius: 18px; padding: 28px 18px; text-align: center;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .22);
}
.vp-modal-card h2 { margin: 0 0 8px; }
.vp-modal-actions { display: flex; gap: 8px; margin-top: 14px; }
.vp-ghost {
  flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid #e4e7ee; background: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
@media (min-width: 960px) {
  .vp-grid { flex-direction: row; align-items: flex-start; gap: 22px; }
  .vp-photo { flex: 1.15 1 0; width: auto; }
  .vp-card { flex: 0.9 1 0; width: auto; padding: 22px; }
  .vp-card h1 { font-size: 28px; }
  .vp-amount { font-size: 40px; }
  .vp-frame { min-height: 460px; }
  .vp-frame img { max-height: 560px; }
  .vp-fields { grid-template-columns: 1fr 1fr; }
  .vp-wide { grid-column: 1 / -1; }
}

.home { width: min(1180px, calc(100% - 28px)); margin: 10px auto 48px; }
.home-intro { text-align: center; padding: 28px 12px 8px; }
.home-intro h1 { margin: 0; font-size: 28px; font-weight: 900; }
.home-intro p {
  margin: 8px auto 0; max-width: 520px; color: #6d7480; font-weight: 700;
  border-bottom: 3px solid var(--red); display: inline-block; padding-bottom: 4px;
}
.cat-rail {
  display: flex; gap: 10px; overflow-x: auto; padding: 22px 2px 8px; scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 auto;
  min-width: 168px;
  min-height: 72px;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border: 1.5px solid #eceef3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(20, 24, 40, .04);
}
.cat-card.on {
  border-color: color-mix(in srgb, var(--red) 45%, #fff);
  background: color-mix(in srgb, var(--red) 8%, #fff);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.cat-text { display: grid; gap: 2px; min-width: 0; }
.cat-text b {
  font-size: 14px; font-weight: 800; color: #1f2430; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px;
}
.cat-text small { font-size: 11px; font-weight: 600; color: #8a91a0; }
.cat-card.on .cat-text b { color: var(--red); }
.product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.product-card {
  border: 1px solid #f0eef5; border-radius: 22px; padding: 12px;
  box-shadow: 0 10px 28px rgba(40, 20, 70, .05);
}
.image-container { height: 180px; background: #fff; border: 0; }
.product-title { font-weight: 800; min-height: 0; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.price-pill {
  background: var(--red); color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 900;
}
.product-card .stock-out { background: transparent; color: #c51f1f; font-size: 12px; font-weight: 800; }
.vp-card { border-color: #e6e9ef; }
.vp-photo {
  position: relative;
  background: #fff;
  border: 1px solid #e6e9ef;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 10px 32px rgba(16, 20, 24, .06);
}
.vp-frame { background: #f7f8fb; border: 1px solid #eef1f5; }
.vp-pricebox { color: #fff; }
.vp-amount, .vp-currency { color: #fff; }
.vp-submit {
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  box-shadow: none;
}
.vp-later button { color: var(--ink); }
.vp-call { background: #111; }
@media (min-width: 800px) {
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .image-container { height: 210px; }
  .home-intro h1 { font-size: 36px; }
}

.drawer-back {
  position: fixed; inset: 0; background: rgba(17, 17, 17, .45); z-index: 60;
  opacity: 0; pointer-events: none; transition: opacity .32s ease;
}
.drawer-back.is-on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; width: min(380px, 92vw); background: #fff; z-index: 70;
  display: flex; flex-direction: column; box-shadow: 0 0 40px rgba(0, 0, 0, .16);
  transition: transform .42s cubic-bezier(.22, .9, .28, 1);
  will-change: transform;
}
.drawer-menu {
  inset-inline-start: 0; padding: 16px 14px 28px; overflow: auto;
  transform: translateX(108%); background: #f7f8fb; gap: 14px;
}
.drawer-bag { inset-inline-end: 0; transform: translateX(-108%); }
.drawer.is-on { transform: translateX(0); }
.drawer-head {
  display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid #eceef3; border-radius: 16px; padding: 12px 12px 12px 8px;
}
.drawer-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.drawer-brand .logo-img-drawer { margin: 0; max-height: 44px; }
.drawer-brand strong { display: block; font-size: 16px; line-height: 1.3; }
.drawer-brand small { display: block; margin-top: 2px; color: #8a91a0; font-size: 12px; font-weight: 700; }
.drawer-head button, .bag-hero button { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: inherit; }
.drawer-search { margin: 0; }
.drawer-search input {
  width: 100%; min-height: 46px; border: 1px solid #e6e8ec; border-radius: 14px;
  background: #fff; padding: 0 14px; font: 600 15px Cairo, sans-serif;
}
.drawer-nav { display: grid; gap: 8px; }
.drawer-card, .drawer-cat-card, .drawer-card-form .drawer-card {
  display: flex; align-items: center; gap: 12px; width: 100%;
  min-height: 64px; padding: 10px 12px; border-radius: 14px;
  border: 1px solid transparent; background: #fff; text-align: right;
  box-shadow: 0 1px 0 rgba(20, 24, 40, .02);
  font: inherit; color: inherit; cursor: pointer;
}
.drawer-card-form { margin: 0; }
.drawer-card.on {
  border-color: color-mix(in srgb, var(--red) 45%, #fff);
  background: color-mix(in srgb, var(--red) 10%, #fff);
}
.drawer-card.on b { color: var(--red); }
.drawer-card-text, .drawer-cat-text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.drawer-card-text b, .drawer-cat-text b {
  font-size: 15px; font-weight: 800; color: #1f2430; line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drawer-card-text small, .drawer-cat-text small {
  font-size: 12px; font-weight: 600; color: #8a91a0; line-height: 1.3;
}
.drawer-ico, .cat-ico {
  width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto;
  display: grid; place-items: center;
}
.drawer-ico svg, .cat-ico svg { width: 20px; height: 20px; }
.tone-store { background: #FFF1E8; color: #E85D04; }
.tone-track { background: #EAF3FF; color: #2563EB; }
.tone-users { background: #E8F7F3; color: #0F766E; }
.tone-out { background: #F3F4F6; color: #4B5563; }
.tone-phone { background: #EAF3FF; color: #2563EB; }
.tone-all { background: #FFF1E8; color: #E85D04; }
.tone-cat-a { background: #F3E8FF; color: #7C3AED; }
.tone-cat-b { background: #E8F7F3; color: #0F766E; }
.tone-cat-c { background: #EAF3FF; color: #2563EB; }
.tone-cat-d { background: #FEE2E2; color: #DC2626; }
.drawer-section { display: grid; gap: 8px; }
.drawer-section-title {
  margin: 4px 4px 0; color: #8a91a0; font-size: 12px; font-weight: 800;
  letter-spacing: .2px;
}
.drawer-cats { display: grid; gap: 8px; }
.drawer-cat-card { border-color: #eceef3; }
.drawer-contact-card {
  background: #fff; border: 1px solid #eceef3; border-radius: 14px;
  padding: 12px; display: grid; gap: 12px;
}
.drawer-phone-row {
  display: flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 8px; border-radius: 12px;
  background: #f7f8fb;
}
.drawer-phone-num {
  font-weight: 800; font-size: 18px; color: #1f2430; letter-spacing: .6px;
}
.bag-hero { padding: 18px 16px 22px; background: #111; color: #fff; }
.bag-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bag-hero-top strong { font-size: 22px; }
.bag-total-pill { display: inline-flex; margin-top: 16px; background: var(--red); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 800; }
.bag-empty { flex: 1; display: grid; align-content: center; justify-items: center; text-align: center; padding: 24px; }
.bag-empty h2 { margin: 8px 0 4px; }
.bag-empty p { margin: 0 0 14px; color: #6c7380; }
.bag-empty a, .bag-checkout, .bag-back {
  display: flex; align-items: center; justify-content: center; min-height: 46px; border-radius: 12px; font-weight: 800;
}
.bag-empty a { border: 1px solid #e6e8ec; padding: 0 16px; }
.bag-lines { flex: 1; overflow: auto; padding: 12px; display: grid; gap: 8px; align-content: start; }
.bag-line {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 8px; border-radius: 14px; background: #f7f8fa;
}
.bag-thumb { width: 56px; height: 56px; border-radius: 12px; background: #fff; overflow: hidden; }
.bag-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bag-line b { display: block; }
.bag-line small { color: #6c7380; }
.bag-checkout { margin: 8px 12px 0; background: var(--red); color: #fff; }
.bag-back {
  margin: 8px 12px 12px; border: 1px solid #e6e8ec; background: #fff; cursor: pointer;
  font: 800 15px Cairo, sans-serif;
}
body.drawer-open { overflow: hidden; }

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes rise {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes pop {
  from { opacity: 0; scale: .96; }
  to { opacity: 1; scale: 1; }
}
.page { animation: fadein .35s ease both; }
.home-intro, .cat-card, .product-card { animation: rise .5s ease both; }
.product-card:nth-child(2) { animation-delay: .05s; }
.product-card:nth-child(3) { animation-delay: .1s; }
.product-card:nth-child(4) { animation-delay: .15s; }
.product-card:nth-child(5) { animation-delay: .2s; }
.product-card:nth-child(6) { animation-delay: .25s; }
.product-card, .cat-card, .vp-submit, .bag-checkout, .icon-btn, .action-item {
  transition: transform .22s ease, box-shadow .22s ease, filter .22s ease;
}
.product-card:hover { transform: translateY(-5px); box-shadow: 0 16px 32px rgba(16, 24, 40, .1); }
.main-product-image, .vp-frame img { transition: transform .4s ease; }
.product-card:hover .main-product-image, .vp-frame:hover img { transform: scale(1.05); }
.vp-submit:hover, .bag-checkout:hover { filter: brightness(1.06); transform: translateY(-1px); }
.vp-modal { animation: fadein .2s ease both; }
.vp-modal-card { animation: pop .38s cubic-bezier(.2, .85, .2, 1) both; }
.bag-line { animation: rise .35s ease both; }
@media (prefers-reduced-motion: reduce) {
  .page, .home-intro, .cat-card, .product-card, .vp-modal, .vp-modal-card, .bag-line { animation: none; }
  .drawer, .drawer-back, .product-card, .vp-submit, .main-product-image, .vp-frame img { transition: none; }
}

.phone-bar { display: none; }
.product-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, .05);
  text-align: right;
}
.product-card .image-container {
  height: 214px;
  padding: 7px;
  margin-bottom: 10px;
  background: #f7f8fb;
  border: 1px solid #eceff3;
  border-radius: 14px;
}
.product-card .product-title {
  font-size: 16px;
  font-weight: 700;
  color: #000;
  margin: 0 0 2px;
  line-height: 1.2;
  min-height: 38px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card .price-container {
  display: flex; align-items: baseline; justify-content: flex-start; flex-wrap: wrap; gap: 8px;
  min-height: 0; margin: 2px 0; width: max-content; max-width: 100%;
}
.product-card .current-price { color: var(--price); font-size: 22px; font-weight: 900; line-height: 1; white-space: nowrap; }
.product-card .tags-container { display: flex; gap: 6px; margin: 4px 0 0; min-height: 0; align-items: center; }
.product-card .badge-stock { border-radius: 6px; padding: 3px 8px; font-size: 11px; font-weight: 800; color: #fff; flex: 0 0 auto; }
.product-card .badge-stock.stock-in { background: #159947; }
.product-card .badge-stock.stock-out { background: #e53935; }
.product-card .product-title a { color: inherit; }
.card-add-form { margin-top: 10px; }
.card-add-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 40px; border: 0; border-radius: 10px;
  background: var(--red); color: #fff; font: 800 13px Cairo, sans-serif;
  cursor: pointer; padding: 0 10px;
}
.card-add-btn svg { width: 18px; height: 18px; flex: 0 0 auto; }
.card-add-btn:hover { filter: brightness(1.05); }
.card-add-btn-muted {
  margin-top: 10px; background: #f1f3f6; color: #5c6573;
}
.card-add-btn-muted:hover { filter: none; background: #e8ebf0; }
@media (min-width: 800px) {
  .home .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
  .product-card { padding: 10px; }
  .product-card .image-container { height: 198px; margin-bottom: 8px; padding: 6px; }
  .product-card .product-title { font-size: 15px; min-height: 36px; }
  .product-card .current-price { font-size: 23px; }
}
@media (max-width: 799px) {
  .top-navbar { display: none; }
  .phone-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    padding: 0 14px;
    background: #000;
    color: #fff;
  }
  .phone-brand {
    color: #fff;
    font-weight: 900;
    font-size: 1.45rem;
    letter-spacing: .4px;
    max-width: 52%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .phone-icon {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    border: 1px solid rgba(255, 255, 255, .26);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
  }
  .phone-icon svg { width: 20px; height: 20px; }
  .phone-bar .cart-badge { top: -7px; left: -8px; }
  .home .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-card { padding: 8px; border-radius: 12px; }
  .product-card .image-container { height: 150px; margin-bottom: 8px; padding: 8px; }
  .product-card .product-title { font-size: 14px; line-height: 1.15; min-height: 32px; }
  .product-card .current-price { font-size: 18px; }
}
@media (max-width: 480px) {
  .product-card { padding: 7px; }
  .product-card .image-container { height: 135px; margin-bottom: 6px; padding: 6px; }
  .product-card .product-title { font-size: 12px; min-height: 28px; }
  .product-card .current-price { font-size: 16px; }
}
.gate {
  width: min(440px, calc(100% - 28px));
  margin: 28px auto 48px;
}
.gate-card {
  background: #fff;
  border: 1px solid #e6e8ec;
  border-radius: 18px;
  padding: 22px 18px 18px;
  box-shadow: 0 16px 40px rgba(16, 24, 40, .06);
}
.gate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.gate-back {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e6e8ec;
  background: #f4f5f7;
  color: #17202a;
  font-weight: 800;
  font-size: 13px;
}
.gate-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff5f5;
  border: 1px solid #ffd9dc;
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
}
.gate-card h1 { margin: 0 0 8px; font-size: 26px; line-height: 1.25; font-weight: 900; }
.gate-form button.gate-go,
a.gate-go {
  min-height: 52px;
  border-radius: 14px;
  box-shadow: 0 10px 18px rgba(210, 10, 17, .18);
}
.gate-alt {
  background: #fff;
  color: #17202a;
  border: 1.5px solid #d7dde7;
  border-radius: 14px;
  min-height: 48px;
  font-weight: 800;
}
.gate-lead { margin: 0 0 16px; color: #6c757d; font-weight: 600; line-height: 1.6; }
.gate-warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecec;
  color: var(--red);
  font-weight: 800;
}
.gate-form { display: grid; gap: 12px; }
.gate-field { display: grid; gap: 6px; }
.gate-field span { color: #7a8190; font-weight: 700; font-size: 14px; }
.gate-field input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  background: #f4f5f7;
  padding: 0 14px;
  font: 600 15px Cairo, sans-serif;
  color: #17202a;
}
.gate-field input:focus { outline: none; border: 1.4px solid var(--red); background: #fff; }
.gate-form button,
.gate-go {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  font: 800 16px Cairo, sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}
.gate-pass { position: relative; display: block; }
.gate-pass input { padding-left: 72px; }
.gate-form .gate-pass button {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 32px;
  width: auto;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--red);
  font: 800 13px Cairo, sans-serif;
  cursor: pointer;
  padding: 0 10px;
}
.gate-split { display: flex; align-items: center; gap: 10px; margin: 16px 0 8px; color: #8b919c; font-weight: 800; font-size: 13px; }
.gate-split::before, .gate-split::after { content: ""; flex: 1; height: 1px; background: #e6e8ec; }
.gate-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  padding: 14px;
  border-radius: 14px;
  background: #fff5f5;
  border: 1px solid #ffd9dc;
}
.gate-status strong { color: var(--red); font-size: 22px; }
.gate-done { text-align: center; }
.gate-center { text-align: center; }
.gate-center .tick, .gate-done .tick { margin: 0 auto 8px; }
.gate-wide { width: min(720px, calc(100% - 28px)); }
.gate-card .form { display: grid; gap: 12px; }
.gate-card .form label { display: grid; gap: 6px; color: #7a8190; font-weight: 700; font-size: 14px; }
.gate-card .form input,
.gate-card .form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  background: #f4f5f7;
  padding: 0 14px;
  font: 600 15px Cairo, sans-serif;
  color: #17202a;
}
.gate-card .form input:focus,
.gate-card .form select:focus { outline: none; border: 1.4px solid var(--red); background: #fff; }
.gate-card .choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.gate-card .choice label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid #e6e8ec;
  border-radius: 12px;
  background: #f4f5f7;
}
.gate-card .summary { background: #fff5f5; border: 1px solid #ffd9dc; border-radius: 14px; }
.gate-card .empty { margin: 8px 0 14px; }
.gate-alt {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid #e6e8ec;
  font-weight: 800;
}
@media (min-width: 800px) {
  .gate { margin-top: 48px; }
  .gate-card { padding: 28px 26px 22px; }
}

/* ——— Checkout split ——— */
.co { width: min(1180px, calc(100% - 24px)); margin: 16px auto 48px; }
.co-head {
  display: flex; align-items: flex-start; gap: 14px; margin-bottom: 16px;
}
.co-back {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  border-radius: 10px; background: #fff; border: 1px solid #e6e8ec;
  font-weight: 800; color: #5c6573; white-space: nowrap;
}
.co-kicker {
  display: inline-block; color: var(--red); font-weight: 800; font-size: 12px; margin-bottom: 2px;
}
.co-head h1 { margin: 0; font-size: 24px; font-weight: 900; line-height: 1.25; }
.co-error {
  margin: 0 0 12px; padding: 12px 14px; border-radius: 12px;
  background: #fff5f5; border: 1px solid #ffd9dc; color: var(--red); font-weight: 800;
}
.co-empty { margin: 24px 0 12px; color: #5c6573; font-weight: 700; text-align: center; }
.co-grid {
  display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start;
}
.co-panel {
  background: #fff; border: 1px solid #e6e8ec; border-radius: 16px;
  padding: 14px; box-shadow: 0 8px 24px rgba(20, 24, 40, .04);
}
.co-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #f0f2f5;
}
.co-panel-head h2 { margin: 0; font-size: 17px; font-weight: 900; }
.co-panel-head span { color: #8a91a0; font-size: 12px; font-weight: 700; }
.co-items { display: grid; gap: 10px; }
.co-item {
  display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px;
  padding: 10px; border-radius: 14px; background: #f7f8fb; border: 1px solid #eef0f4;
}
.co-thumb {
  width: 72px; height: 72px; border-radius: 12px; overflow: hidden;
  background: #fff; border: 1px solid #eceff3;
  display: grid; place-items: center; color: #9aa1ad; font-size: 11px; font-weight: 700;
}
.co-thumb img { width: 100%; height: 100%; object-fit: contain; }
.co-item-body { min-width: 0; display: grid; gap: 6px; }
.co-item-top { display: flex; align-items: flex-start; gap: 8px; }
.co-item-name {
  flex: 1; min-width: 0; font-weight: 800; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.co-remove {
  width: 34px; height: 34px; border: 0; border-radius: 10px; background: #fee2e2;
  color: #dc2626; display: grid; place-items: center; cursor: pointer; flex: 0 0 auto;
}
.co-remove svg { width: 16px; height: 16px; }
.co-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.co-unit { color: #6c7380; font-weight: 700; font-size: 13px; }
.co-item-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.co-qty { flex: 0 0 auto; }
.co-qty input { width: 40px; }
.co-line { color: var(--price); font-size: 16px; font-weight: 900; white-space: nowrap; }
.co-update {
  display: none; /* التحديث تلقائي عند تغيير الكمية */
}
.co-form .vp-fields { margin-top: 0; }
.co-form .vp-summary { margin-top: 14px; }
.co-submit { width: 100%; margin-top: 12px; }
@media (min-width: 900px) {
  .co { margin-top: 24px; }
  .co-head h1 { font-size: 28px; }
  .co-grid { grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 18px; }
  .co-form-panel { position: sticky; top: 88px; }
  .co-item { grid-template-columns: 84px minmax(0, 1fr); }
  .co-thumb { width: 84px; height: 84px; }
}
