/* ============================================================
   NTF Store — Design system
   Signature: the hang-tag. NTF Store sells everything from a
   single flexible catalog, so every price in the system renders
   as an actual price tag — notched corner, punched grommet —
   the one physical object every product in the world shares.
   ============================================================ */

:root {
  /* Surfaces */
  --bg: #0a1524;
  --bg-soft: #0d1b2e;
  --surface: #101f38;
  --surface-2: #16294a;
  --surface-3: #1d3459;

  /* Ink */
  --ink: #f4f7fc;
  --ink-dim: #9aacc8;
  --ink-faint: #64789a;

  /* Gold */
  --gold: #f2c230;
  --gold-strong: #ffe07f;
  --gold-deep: #a97a0c;

  /* Status */
  --danger: #ff7a7a;
  --danger-bg: rgba(255, 107, 107, 0.13);
  --ok: #57d9a3;
  --ok-bg: rgba(87, 217, 163, 0.13);

  /* Lines & shadow */
  --line: rgba(242, 194, 48, 0.14);
  --line-soft: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 26px 60px rgba(3, 9, 20, 0.55);
  --shadow-sm: 0 10px 26px rgba(3, 9, 20, 0.35);

  --radius: 18px;
  --radius-sm: 12px;

  --font-ar: "Tajawal", "Segoe UI", Tahoma, sans-serif;
  --font-tag: "Space Grotesk", var(--font-ar);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }

body {
  margin: 0;
  font-family: var(--font-ar);
  direction: rtl;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 88% -6%, rgba(242, 194, 48, 0.14), transparent 40%),
    radial-gradient(circle at -6% 30%, rgba(242, 194, 48, 0.06), transparent 38%),
    radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: auto, auto, 26px 26px;
  background-position: 0 0, 0 0, 0 0;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-ar); font-weight: 800; letter-spacing: -0.01em; }

::selection { background: var(--gold); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.ntf-store-shell { width: min(1180px, calc(100% - 28px)); margin: auto; }

/* ---------------- Header ---------------- */
.store-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 21, 36, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.store-header__inner {
  min-height: 74px; display: flex; gap: 18px; align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; font-size: 17px; }
.brand-mark {
  position: relative;
  width: 40px; height: 40px; display: grid; place-items: center;
  color: var(--bg);
  background: linear-gradient(150deg, var(--gold-strong), var(--gold));
  border-radius: 8px 8px 8px 2px;
  font-family: var(--font-tag);
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(242, 194, 48, 0.28);
  transform: rotate(-6deg);
  transition: transform 0.35s var(--ease);
}
.brand-mark::after {
  content: "";
  position: absolute; top: 6px; left: 6px;
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--bg);
}
.brand:hover .brand-mark { transform: rotate(0deg); }

.nav-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line-soft); background: var(--surface);
  color: var(--ink); border-radius: var(--radius-sm); padding: 11px 17px;
  font-weight: 700; font-size: 14.5px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s var(--ease);
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--line); transform: translateY(-1px); }
.btn--primary {
  background: linear-gradient(150deg, var(--gold-strong), var(--gold));
  color: var(--bg); border-color: transparent; font-weight: 800;
  box-shadow: 0 10px 24px rgba(242, 194, 48, 0.22);
}
.btn--primary:hover { box-shadow: 0 14px 30px rgba(242, 194, 48, 0.32); }
.btn--danger { background: var(--danger-bg); color: #ffd7d7; border-color: transparent; }
.btn--danger:hover { background: rgba(255, 107, 107, 0.2); }
.btn:disabled,
button[aria-busy="true"] { cursor: wait; opacity: 0.55; pointer-events: none; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  padding: 62px 0 48px;
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 82% 0%, rgba(242, 194, 48, 0.1), transparent 45%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 30px; align-items: center;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero-eyebrow {
  position: relative;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-tag); font-weight: 700; font-size: 13px;
  letter-spacing: 0.02em; color: var(--bg);
  background: linear-gradient(150deg, var(--gold-strong), var(--gold));
  padding: 7px 24px 7px 16px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.hero-eyebrow::before {
  content: "";
  position: absolute; top: 50%; left: 12px; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--bg);
}
.hero h1 { font-size: clamp(36px, 6.4vw, 68px); margin: 0 0 16px; line-height: 1.04; font-weight: 900; }
.hero p { color: var(--ink-dim); font-size: 17.5px; line-height: 1.85; max-width: 46ch; margin: 0 0 26px; }
.hero-cta { width: fit-content; }

.hero-card {
  position: relative;
  min-height: 280px;
  display: grid; place-items: center;
}
.hero-tags {
  position: relative;
  width: 100%; height: 100%; min-height: 280px;
}
.hero-tag {
  position: absolute;
  display: flex; flex-direction: column; justify-content: center;
  width: 148px; padding: 16px 18px;
  border-radius: 14px 14px 14px 3px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transition: transform 0.4s var(--ease);
}
.hero-tag::before {
  content: "";
  position: absolute; top: 14px; left: 14px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}
.hero-tag__label { font-size: 11px; color: var(--ink-faint); font-weight: 700; }
.hero-tag__value { font-family: var(--font-tag); font-weight: 700; font-size: 20px; margin-top: 4px; }
.hero-tag--gold {
  background: linear-gradient(150deg, var(--gold-strong), var(--gold));
  color: var(--bg);
  top: 6%; right: 8%;
  transform: rotate(-8deg);
}
.hero-tag--gold::before { background: var(--bg); }
.hero-tag--gold .hero-tag__label { color: rgba(10, 21, 36, 0.6); }
.hero-tag--panel {
  background: var(--surface-2);
  color: var(--ink);
  top: 42%; right: 30%;
  transform: rotate(5deg);
}
.hero-tag--panel::before { background: var(--bg); }
.hero-tag--ghost {
  background: var(--surface);
  color: var(--ink);
  bottom: 4%; right: 2%;
  transform: rotate(-3deg);
}
.hero-tag--ghost::before { background: var(--bg); }
.hero-card:hover .hero-tag { transform: rotate(0deg); }

/* ---------------- Trust strip ---------------- */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px;
  margin: 40px auto 8px;
}
.trust-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.trust-item:hover { border-color: var(--line); transform: translateY(-3px); }
.trust-icon {
  flex: 0 0 auto; width: 42px; height: 42px;
  border-radius: 12px 12px 12px 4px;
  background: linear-gradient(150deg, var(--gold-strong), var(--gold));
  color: var(--bg);
  display: grid; place-items: center;
}
.trust-icon svg { width: 22px; height: 22px; }
.trust-item h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.trust-item p { margin: 0; font-size: 13px; color: var(--ink-dim); line-height: 1.6; }

/* ---------------- Sections ---------------- */
.catalog { padding-top: 8px; }
.catalog-panel {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  padding: 30px 28px 32px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.catalog-panel::before {
  content: "";
  position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent 75%);
}
.catalog-panel:first-child { margin-top: 6px; }
.catalog-panel .section-title { margin: 0 0 20px; }

.section-title {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 18px; margin: 40px 0 18px; flex-wrap: wrap;
}
.section-title h2 { margin: 0 0 6px; font-size: 24px; }
.section-sub { margin: 0; font-size: 14px; }
.muted { color: var(--ink-dim); }

.search-field { position: relative; display: flex; align-items: center; }
.search-field svg { position: absolute; right: 14px; width: 17px; height: 17px; color: var(--ink-faint); pointer-events: none; }
#productSearch { padding-right: 40px; min-width: 250px; background: var(--surface-2); }

.categories { display: flex; gap: 10px; overflow: auto; padding-bottom: 6px; scrollbar-width: thin; }
.category-chip {
  white-space: nowrap; border: 1px solid var(--line-soft); background: var(--surface-2);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  transition: all 0.2s var(--ease);
}
.category-chip:hover { border-color: var(--line); }
.category-chip.is-active {
  background: linear-gradient(150deg, var(--gold-strong), var(--gold));
  color: var(--bg); border-color: transparent; font-weight: 800;
}

/* ---------------- Product grid ---------------- */
.products-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.catalog-panel .products-grid { padding-bottom: 0; }
.product-card {
  position: relative;
  overflow: hidden; border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: var(--surface-2); box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line);
}
.product-card__image { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: var(--surface-3); display: block; }
.product-card__body { padding: 16px; }
.product-card__title { margin: 0 0 8px; font-size: 16.5px; font-weight: 700; }

/* Signature price tag — used everywhere `.price` appears */
.price {
  position: relative;
  display: inline-flex; align-items: center;
  font-family: var(--font-tag); font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--bg);
  background: linear-gradient(150deg, var(--gold-strong), var(--gold));
  padding: 6px 22px 6px 14px;
  border-radius: 4px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
  box-shadow: 0 6px 16px rgba(242, 194, 48, 0.22);
}
.price::after {
  content: "";
  position: absolute; top: 50%; left: 10px; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--bg);
}

/* ---------------- Product detail ---------------- */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 40px 0; }
.gallery-main { width: 100%; aspect-ratio: 1/1; border-radius: var(--radius); object-fit: cover; background: var(--surface); border: 1px solid var(--line-soft); box-shadow: var(--shadow-sm); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); transition: border-color 0.2s var(--ease); }
.gallery-thumb-btn { border: 0; padding: 0; background: transparent; border-radius: var(--radius-sm); }
.gallery-thumb-btn:hover img { border-color: var(--line); }

.product-info { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); padding: 26px; align-self: start; }
.product-info h1 { font-size: 28px; margin: 6px 0 16px; }
.option-group { margin: 24px 0; }
.option-group strong { font-size: 13.5px; letter-spacing: 0.02em; color: var(--ink-dim); text-transform: uppercase; }
.option-values { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.option-value {
  border: 1px solid var(--line-soft); background: var(--surface-2); color: var(--ink);
  min-width: 48px; padding: 10px 14px; border-radius: var(--radius-sm);
  transition: all 0.2s var(--ease);
}
.option-value:hover { border-color: var(--line); }
.option-value.is-selected { border-color: var(--gold); box-shadow: 0 0 0 2px rgba(242, 194, 48, 0.18); }
.option-value small { display: block; color: var(--ink-dim); margin-top: 4px; }
.option-swatch { width: 22px; height: 22px; border-radius: 999px; display: inline-block; vertical-align: middle; border: 1px solid rgba(255, 255, 255, 0.3); }
.color-option { display: inline-flex; align-items: center; gap: 8px; }

.qty-row { display: flex; gap: 14px; align-items: center; margin-top: 22px; flex-wrap: wrap; }
.qty-row input { width: 90px; }
.cart-quantity { display: inline-grid; grid-template-columns: 38px 68px 38px; align-items: center; gap: 7px; }
.qty-btn {
  width: 38px; height: 38px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink); font-size: 22px; line-height: 1;
  transition: border-color 0.2s var(--ease);
}
.qty-btn:hover { border-color: var(--line); }
.qty-btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.qty-input { width: 68px; text-align: center; padding-inline: 6px; }
.qty-input::-webkit-inner-spin-button, .qty-input::-webkit-outer-spin-button { appearance: none; margin: 0; }

/* ---------------- Forms ---------------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 13.5px; color: var(--ink-dim); font-weight: 600; }
.field--full { grid-column: 1/-1; }
.input {
  width: 100%; border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: var(--bg-soft); color: var(--ink); padding: 12px 14px;
  transition: border-color 0.2s var(--ease);
}
.input:focus { border-color: var(--gold); }

/* ---------------- Panels / admin ---------------- */
.panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); padding: 22px; margin: 18px 0; }
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 22px; padding: 30px 0; }
.admin-nav { border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); padding: 12px; align-self: start; position: sticky; top: 92px; }
.admin-nav button { width: 100%; text-align: right; margin: 4px 0; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { text-align: right; padding: 12px; font-size: 13px; color: var(--ink-dim); border-bottom: 1px solid var(--line); font-weight: 700; }
td { border-bottom: 1px solid var(--line-soft); padding: 13px 12px; }
.notice { padding: 13px 16px; border-radius: var(--radius-sm); background: rgba(242, 194, 48, 0.09); border: 1px solid var(--line); color: var(--ink-dim); }
.status-ok { color: var(--ok); }
.status-danger { color: var(--danger); }

.nested-panel, .size-card, .color-card {
  border: 1px solid var(--line-soft); border-radius: 16px; background: var(--bg-soft); padding: 16px; margin-top: 14px;
}
.size-card__head, .color-card__head, .color-identity { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.size-card__head h3 { margin: 0 0 5px; }
.size-card__body { padding-top: 14px; }
.colors-grid { display: grid; gap: 14px; margin-top: 16px; }
.color-preview { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.16); }
.image-upload-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 14px; }
.color-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.color-image-item { display: grid; gap: 7px; }
.color-image-item img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 13px; border: 1px solid var(--line-soft); }

.color-picker-wrap { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 10px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-soft); }
.color-picker { width: 54px; height: 38px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.color-picker-value, .color-code { direction: ltr; font-family: var(--font-tag); }

/* ---------------- Cart ---------------- */
.cart-row {
  display: grid; grid-template-columns: 78px 1fr auto auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px dashed var(--line-soft);
}
.cart-row:last-child { border-bottom: none; }
.cart-row img { width: 78px; height: 78px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line-soft); }
.cart-color-dot { display: inline-block; width: 17px; height: 17px; vertical-align: middle; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.12); }

.empty { padding: 64px 20px; text-align: center; color: var(--ink-dim); }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
  color: var(--ink-faint);
  margin-top: 44px;
  font-size: 14px;
}

/* Rich homepage footer */
.site-footer { margin-top: 64px; padding-top: 46px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 30px; }
.footer-brand p { margin: 16px 0 0; max-width: 40ch; font-size: 14px; line-height: 1.85; color: var(--ink-dim); }
.footer-col h4 { margin: 0 0 14px; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); font-weight: 800; }
.footer-col a { display: block; padding: 6px 0; color: var(--ink-dim); font-size: 14.5px; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid var(--line-soft); padding: 20px 0;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px) {
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__inner, .product-layout, .admin-layout { grid-template-columns: 1fr; }
  .hero-card { min-height: 200px; order: -1; }
  .admin-nav { position: static; }
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 620px) {
  .size-card__head, .color-card__head { align-items: stretch; flex-direction: column; }
  .image-upload-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .products-grid { grid-template-columns: 1fr; }
  .store-header__inner { align-items: flex-start; padding: 14px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full { grid-column: auto; }
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-row > :nth-child(3), .cart-row > :nth-child(4) { grid-column: 2; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section-title { flex-direction: column; align-items: stretch; }
  #productSearch { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .brand-mark, .hero-tag, .product-card { transform: none !important; }
}

/* ============================================================
   Storefront hero refresh
   ============================================================ */
.hero--storefront {
  min-height: 610px;
  display: grid;
  align-items: center;
  padding: 74px 0 66px;
  border-bottom: 0;
  background:
    linear-gradient(115deg, rgba(10, 21, 36, .98) 0%, rgba(13, 27, 46, .95) 52%, rgba(17, 34, 57, .9) 100%);
}
.hero--storefront::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(242, 194, 48, .18), transparent 32%),
    linear-gradient(90deg, transparent 0 48%, rgba(255,255,255,.025) 48% 49%, transparent 49% 100%);
  background-size: auto, 54px 54px;
}
.hero--storefront::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero__inner--storefront {
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  gap: 70px;
}
.hero-copy { position: relative; z-index: 2; }
.hero--storefront .hero-eyebrow {
  clip-path: none;
  border-radius: 999px;
  padding: 8px 15px;
  background: rgba(242, 194, 48, .12);
  border: 1px solid rgba(242, 194, 48, .35);
  color: var(--gold-strong);
  box-shadow: none;
  letter-spacing: .14em;
}
.hero--storefront .hero-eyebrow::before { display: none; }
.hero--storefront h1 {
  font-size: clamp(46px, 6.5vw, 82px);
  letter-spacing: -.045em;
  max-width: 10ch;
  margin-bottom: 20px;
}
.hero--storefront h1 span {
  color: transparent;
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  background-clip: text;
  -webkit-background-clip: text;
}
.hero--storefront p {
  max-width: 570px;
  font-size: 18px;
  line-height: 1.9;
}
.hero--storefront .hero-actions { margin-top: 30px; }
.hero--storefront .hero-actions .btn {
  min-height: 54px;
  padding-inline: 22px;
  border-radius: 16px;
  font-size: 16px;
}
.hero--storefront .hero-actions svg { width: 21px; height: 21px; }
.hero-cart-btn { background: rgba(255,255,255,.04); }
.hero-cart-count {
  display: grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--gold-strong);
  font-family: var(--font-tag);
  font-size: 12px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 34px;
  color: var(--ink-dim);
  font-size: 13px;
}
.hero-meta span { display: inline-flex; gap: 8px; align-items: center; }
.hero-meta b { color: var(--gold); font-family: var(--font-tag); font-size: 11px; }

.hero-showcase {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}
.showcase-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(242, 194, 48, .13);
  filter: blur(52px);
}
.showcase-stage { position: relative; width: 420px; height: 410px; }
.showcase-product--main {
  position: absolute;
  inset: 38px 52px 48px 34px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(29,52,89,.94), rgba(12,28,49,.98));
  box-shadow: 0 38px 80px rgba(1,6,16,.55);
  transform: rotate(-3deg);
}
.showcase-product__badge {
  display: inline-flex;
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--bg);
  background: var(--gold);
  font-weight: 800;
  font-size: 11px;
}
.showcase-product__visual {
  position: relative;
  height: 235px;
  margin-top: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 23px;
  background:
    radial-gradient(circle at 50% 45%, rgba(242,194,48,.24), transparent 38%),
    linear-gradient(145deg, #152a48, #0a1728);
}
.showcase-product__visual::before,
.showcase-product__visual::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(242,194,48,.16);
  border-radius: 50%;
}
.showcase-product__visual::before { width: 210px; height: 210px; }
.showcase-product__visual::after { width: 140px; height: 140px; }
.showcase-cube {
  position: absolute;
  width: 86px;
  height: 100px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 34px rgba(0,0,0,.32);
}
.showcase-cube--one { transform: translate(-58px, 20px) rotate(-12deg); background: linear-gradient(145deg, #f2c230, #b9820b); }
.showcase-cube--two { z-index: 2; transform: translate(8px, -12px) rotate(5deg); background: linear-gradient(145deg, #eff4ff, #9caac0); }
.showcase-cube--three { transform: translate(70px, 27px) rotate(14deg); background: linear-gradient(145deg, #203c63, #0f2037); }
.showcase-product__info { display: flex; justify-content: space-between; gap: 15px; padding: 17px 6px 0; }
.showcase-product__info span { color: var(--ink-dim); font-size: 12px; }
.showcase-product__info strong { font-size: 15px; }
.floating-card {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 17px;
  background: rgba(16,31,56,.88);
  box-shadow: 0 16px 40px rgba(0,0,0,.38);
  backdrop-filter: blur(14px);
}
.floating-card span { color: var(--ink-dim); font-size: 11px; }
.floating-card strong { color: var(--gold-strong); font-family: var(--font-tag); }
.floating-card--price { top: 6px; left: 0; flex-direction: column; align-items: flex-start; gap: 2px; }
.floating-card--options { right: 0; top: 145px; flex-direction: column; align-items: flex-start; }
.floating-swatches { display: flex; gap: 5px; }
.floating-swatches i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.55); }
.floating-swatches i:nth-child(1) { background:#111; }
.floating-swatches i:nth-child(2) { background:#f2c230; }
.floating-swatches i:nth-child(3) { background:#ececec; }
.floating-card--digital { bottom: 8px; left: 8px; }
.floating-card--digital svg { width: 20px; height: 20px; color: var(--gold); }

/* More retail-like catalog */
.trust-strip { margin-top: -10px; position: relative; z-index: 5; }
.trust-item { background: linear-gradient(145deg, rgba(16,31,56,.96), rgba(13,27,46,.96)); }
.catalog-panel { border-radius: 28px; }
.categories { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); overflow: visible; }
.category-chip {
  min-height: 72px;
  white-space: normal;
  border-radius: 17px;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(145deg, var(--surface-2), rgba(22,41,74,.72));
}
.category-chip.is-active { box-shadow: 0 14px 28px rgba(242,194,48,.16); }
.product-card { border-radius: 24px; }
.product-card__image { aspect-ratio: 4 / 4.6; transition: transform .35s var(--ease); }
.product-card:hover .product-card__image { transform: scale(1.035); }
.product-card__body { padding: 18px; }
.product-card__title { font-size: 18px; }
.product-card .muted { min-height: 42px; font-size: 13px; line-height: 1.6; }

@media (max-width: 980px) {
  .hero__inner--storefront { grid-template-columns: 1fr; gap: 24px; }
  .hero--storefront { min-height: auto; padding-bottom: 40px; }
  .hero-showcase { min-height: 390px; }
  .showcase-stage { transform: scale(.92); }
}
@media (max-width: 620px) {
  .hero--storefront { padding-top: 44px; }
  .hero--storefront h1 { font-size: 46px; }
  .hero-showcase { min-height: 330px; overflow: hidden; }
  .showcase-stage { transform: scale(.72); transform-origin: center; }
  .hero-meta { gap: 12px; }
  .hero-meta span { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product-card__meta { margin-bottom: 9px; }
.product-card__meta span {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(242,194,48,.09);
  color: var(--gold-strong);
  font-size: 10px;
  font-weight: 800;
}
.product-card__footer { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:14px; }
.product-card__arrow {
  width: 34px; height: 34px; display:grid; place-items:center;
  border-radius: 50%; border:1px solid var(--line-soft); color:var(--gold-strong);
  transition: transform .25s var(--ease), background .25s var(--ease);
}
.product-card:hover .product-card__arrow { transform: translateX(-4px); background: rgba(242,194,48,.1); }

.ntf-spinner {
  width: 20px;
  height: 20px;
  display: inline-block;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ntf-spin .75s linear infinite;
}
.ntf-spinner--large {
  width: 42px;
  height: 42px;
  border-width: 4px;
}
@keyframes ntf-spin {
  to { transform: rotate(360deg); }
}

.product-page-loader {
  min-height: 58vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.selection-area {
  position: relative;
  min-height: 80px;
}
.selection-loading {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(7,20,39,.76);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
}
.selection-loading[hidden] {
  display: none;
}

.product-gallery-panel {
  position: relative;
  min-height: 320px;
}
.gallery-loader {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 28px;
  background: rgba(7,20,39,.7);
  backdrop-filter: blur(7px);
}
.product-gallery-panel.is-loading .gallery-loader {
  display: flex;
}
.product-gallery-panel.is-loading .gallery-main,
.product-gallery-panel.is-loading .gallery-thumbs {
  opacity: 1;
}

.option-value[aria-busy="true"],
.option-value:disabled {
  cursor: wait;
  opacity: .52;
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: .72;
}

.skeleton {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255,255,255,.07);
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(100%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255,255,255,.11),
    transparent
  );
  animation: ntf-shimmer 1.15s infinite;
}
@keyframes ntf-shimmer {
  to { transform: translateX(-100%); }
}
.skeleton--image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}
.skeleton--line {
  height: 14px;
  margin-top: 10px;
}
.skeleton--short {
  width: 48%;
}
.skeleton--price {
  width: 32%;
  height: 18px;
}
.product-card--skeleton {
  pointer-events: none;
}

.ntf-loader {
  --loader-size: 34px;
  width: var(--loader-size);
  height: var(--loader-size);
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}
.ntf-loader::before,
.ntf-loader::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.ntf-loader::before {
  border: 3px solid rgba(255,255,255,.14);
  border-top-color: var(--accent);
  border-right-color: rgba(255,209,102,.5);
  animation: ntf-loader-spin .72s linear infinite;
  box-shadow:
    0 0 12px rgba(255,209,102,.25),
    inset 0 0 10px rgba(255,209,102,.08);
}
.ntf-loader::after {
  inset: 6px;
  border: 1px solid rgba(255,209,102,.32);
  animation: ntf-loader-pulse 1s ease-in-out infinite;
}
.ntf-loader > span {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: calc(var(--loader-size) * .31);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 9px rgba(255,209,102,.55);
}
.ntf-loader--small {
  --loader-size: 26px;
}
.ntf-loader--large {
  --loader-size: 54px;
}
.ntf-loader--button {
  --loader-size: 24px;
}
@keyframes ntf-loader-spin {
  to { transform: rotate(360deg); }
}
@keyframes ntf-loader-pulse {
  0%, 100% { opacity: .35; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.06); }
}

.option-value {
  position: relative;
}
.option-value.is-fetching {
  color: transparent !important;
}
.option-value.is-fetching > * {
  opacity: 0;
}
.option-value.is-fetching::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255,255,255,.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: ntf-loader-spin .65s linear infinite;
}
.color-option.is-fetching .option-swatch {
  opacity: 0;
}

.gallery-loader,
.selection-loading {
  color: transparent;
}
.gallery-loader {
  background: rgba(7,20,39,.42);
}
.selection-loading {
  background: rgba(7,20,39,.5);
}

.product-gallery-panel.is-loading .gallery-main,
.product-gallery-panel.is-loading .gallery-thumbs {
  opacity: .42;
  transition: opacity .2s ease;
}
.product-gallery-panel .gallery-main,
.product-gallery-panel .gallery-thumbs {
  transition: opacity .2s ease;
}

.btn.is-loading {
  min-height: 44px;
  display: inline-grid;
  place-items: center;
}

/* Skeleton cards: visible immediately while Firestore products load */
.product-card--skeleton {
  overflow: hidden;
  min-height: 390px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: none;
}
.product-card--skeleton .product-card__body {
  padding: 16px;
}
.skeleton {
  position: relative;
  overflow: hidden;
  display: block;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.055) 0%,
      rgba(255,255,255,.095) 50%,
      rgba(255,255,255,.055) 100%
    );
  background-size: 220% 100%;
  animation: ntf-skeleton-flow 1.25s ease-in-out infinite;
}
.skeleton::after {
  display: none;
}
.skeleton--image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}
.skeleton--line {
  height: 13px;
  margin-top: 12px;
  border-radius: 999px;
}
.skeleton--eyebrow {
  width: 32%;
  height: 10px;
}
.skeleton--title {
  width: 76%;
  height: 18px;
}
.skeleton--desc {
  width: 92%;
}
.skeleton--price {
  width: 38%;
  height: 21px;
  margin-top: 18px;
}
@keyframes ntf-skeleton-flow {
  0% { background-position: 110% 0; }
  100% { background-position: -110% 0; }
}

/* Product gallery transition: no blur, clipped edges, smooth fade */
.product-gallery-panel {
  overflow: hidden;
  isolation: isolate;
}
.product-gallery-panel .gallery-main,
.product-gallery-panel .gallery-thumbs {
  will-change: opacity, transform;
  transition:
    opacity .18s ease,
    transform .22s ease;
}
.product-gallery-panel.is-loading .gallery-main,
.product-gallery-panel.is-loading .gallery-thumbs {
  opacity: 1;
}
.product-gallery-panel.is-fading-out .gallery-main,
.product-gallery-panel.is-fading-out .gallery-thumbs {
  opacity: 0;
  transform: scale(.985);
}
.product-gallery-panel.is-fading-in .gallery-main,
.product-gallery-panel.is-fading-in .gallery-thumbs {
  animation: ntf-gallery-fade-in .22s ease both;
}
@keyframes ntf-gallery-fade-in {
  from {
    opacity: 0;
    transform: scale(.992);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.gallery-loader {
  border-radius: inherit;
  overflow: hidden;
}

.gallery-loader {
  inset: 50% auto auto 50%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  pointer-events: none;
}
.product-gallery-panel.is-loading .gallery-loader {
  display: flex;
}
.product-gallery-panel.is-loading .gallery-main,
.product-gallery-panel.is-loading .gallery-thumbs {
  opacity: 1 !important;
  filter: none !important;
}

/* Fast, immediate transition synchronized with the Firestore response */
.product-gallery-panel .gallery-main,
.product-gallery-panel .gallery-thumbs {
  transition:
    opacity .12s ease-out,
    transform .12s ease-out;
}
.product-gallery-panel.is-fading-out .gallery-main,
.product-gallery-panel.is-fading-out .gallery-thumbs {
  opacity: .58;
  transform: scale(.996);
}
.product-gallery-panel.is-fading-in .gallery-main,
.product-gallery-panel.is-fading-in .gallery-thumbs {
  animation: ntf-gallery-fast-fade .15s ease-out both;
}
@keyframes ntf-gallery-fast-fade {
  from {
    opacity: .58;
    transform: scale(.996);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* الحجم واللون: كونتينر ظاهر بلا خلفية، والسبينر في المنتصف */
.selection-area {
  position: relative;
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: transparent !important;
  overflow: hidden;
}

.selection-area .option-group {
  margin: 0 0 18px;
  opacity: 1 !important;
  filter: none !important;
}

.selection-area .option-group:last-of-type {
  margin-bottom: 0;
}

.selection-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  pointer-events: none;
}

.selection-loading[hidden] {
  display: none;
}

/* معرض الصور: Spinner فقط، بلا Blur أو طبقة تعتيم */
.gallery-loader {
  position: absolute;
  inset: 50% auto auto 50%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 12;
  background: transparent !important;
  backdrop-filter: none !important;
  border: 0 !important;
  pointer-events: none;
}

.product-gallery-panel.is-loading .gallery-loader {
  display: flex;
}

.product-gallery-panel.is-loading .gallery-main,
.product-gallery-panel.is-loading .gallery-thumbs {
  opacity: 1 !important;
  filter: none !important;
}

/* Fade سريع فور وصول البيانات */
.product-gallery-panel .gallery-main,
.product-gallery-panel .gallery-thumbs {
  transition:
    opacity .12s ease-out,
    transform .12s ease-out;
}

.product-gallery-panel.is-fading-out .gallery-main,
.product-gallery-panel.is-fading-out .gallery-thumbs {
  opacity: .62;
  transform: scale(.997);
}

.product-gallery-panel.is-fading-in .gallery-main,
.product-gallery-panel.is-fading-in .gallery-thumbs {
  animation: ntf-gallery-fixed-fade .15s ease-out both;
}

@keyframes ntf-gallery-fixed-fade {
  from {
    opacity: .62;
    transform: scale(.997);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* الهوم: Skeleton ثم المنتجات مباشرة مع Fade */
.products-grid--ready .product-card:not(.product-card--skeleton) {
  animation: ntf-product-card-arrive .2s ease-out both;
}

.products-grid--ready .product-card:nth-child(2) {
  animation-delay: .025s;
}

.products-grid--ready .product-card:nth-child(3) {
  animation-delay: .05s;
}

.products-grid--ready .product-card:nth-child(4) {
  animation-delay: .075s;
}

@keyframes ntf-product-card-arrive {
  from {
    opacity: 0;
    transform: translateY(7px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card--skeleton {
  pointer-events: none;
  min-height: 390px;
}

.skeleton {
  position: relative;
  display: block;
  overflow: hidden;
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.05) 0%,
      rgba(255,255,255,.11) 50%,
      rgba(255,255,255,.05) 100%
    );
  background-size: 220% 100%;
  animation: ntf-skeleton-fixed 1.15s ease-in-out infinite;
}

.skeleton--image {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0;
}

.skeleton--line {
  height: 13px;
  margin-top: 12px;
  border-radius: 999px;
}

.skeleton--eyebrow {
  width: 32%;
  height: 10px;
}

.skeleton--title {
  width: 72%;
  height: 18px;
}

.skeleton--desc {
  width: 92%;
}

.skeleton--price {
  width: 40%;
  height: 20px;
  margin-top: 18px;
}

@keyframes ntf-skeleton-fixed {
  from {
    background-position: 110% 0;
  }

  to {
    background-position: -110% 0;
  }
}

.digital-product-fields {
  padding: 16px;
  border: 1px solid rgba(255,209,102,.22);
  border-radius: 18px;
  background: rgba(255,209,102,.06);
}
.digital-product-fields[hidden] { display: none; }
.digital-product-fields__inner {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
}
@media (max-width:760px) {
  .digital-product-fields__inner { grid-template-columns:1fr; }
}

.checkout-page { padding-bottom: 60px; }
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(320px,.85fr);
  gap: 22px;
  align-items: start;
}
.checkout-summary { position: sticky; top: 92px; }
.checkout-summary__loader {
  min-height: 260px;
  display: grid;
  place-items: center;
}
.checkout-shipping {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
}
.checkout-shipping[hidden] { display: none; }
.checkout-lines { display: grid; gap: 12px; }
.checkout-line {
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.checkout-line img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 14px;
}
.checkout-totals {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}
.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.checkout-total-row {
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 18px;
}
.checkout-pay-button { min-height: 50px; width: 100%; }
.order-result-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
}
.order-result-card {
  width: min(100%,620px);
  text-align: center;
}
.order-result-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(103,215,161,.14);
  color: var(--ok);
  font-size: 38px;
  font-weight: 900;
}
.digital-downloads {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}
@media (max-width:860px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

.seeder-page{padding-bottom:60px}.seeder-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start}.seeder-actions{position:sticky;top:92px}.seed-preview{min-height:260px;display:grid;place-items:center}.seed-stats{width:100%;display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:18px}.seed-stats div{padding:16px;border:1px solid var(--border);border-radius:16px;text-align:center}.seed-stats strong,.seed-stats span{display:block}.seed-stats strong{font-size:28px;color:var(--accent)}.seed-stats span{color:var(--muted)}.seed-products{width:100%;display:grid;gap:12px}.seed-product-card{display:grid;grid-template-columns:84px 1fr;gap:14px;align-items:center;padding:12px;border:1px solid var(--border);border-radius:18px}.seed-product-card img{width:84px;height:84px;object-fit:cover;border-radius:14px}@media(max-width:820px){.seeder-layout{grid-template-columns:1fr}.seeder-actions{position:static}}

.checkout-payment-methods {
  display: grid;
  gap: 12px;
}
.payment-method-card {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}
.payment-method-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,209,102,.55);
}
.payment-method-card.is-selected,
.payment-method-card:has(input:checked) {
  border-color: var(--accent);
  background: rgba(255,209,102,.07);
}
.payment-method-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-method-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--panel-2);
  font-size: 23px;
}
.payment-method-card__content {
  display: grid;
  gap: 5px;
}
.payment-method-card__content small {
  color: var(--muted);
}
.payment-method-card__check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #071427;
  font-weight: 900;
}
.payment-method-card__soon {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: var(--muted);
  font-size: 12px;
}
.payment-method-card.is-disabled {
  opacity: .48;
  cursor: not-allowed;
}

.orders-center {
  padding-bottom: 70px;
}
.orders-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 42px 0 24px;
}
.orders-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(36px, 6vw, 64px);
}
.orders-hero p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.8;
}
.orders-refresh {
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 23px;
}
.orders-stats {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 13px;
  margin-bottom: 18px;
}
.order-stat-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent),
    var(--panel);
}
.order-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.order-stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 34px;
}
.orders-toolbar {
  display: grid;
  gap: 16px;
}
.orders-search {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
}
.orders-search > span {
  color: var(--accent);
  font-size: 26px;
}
.orders-search .input {
  border: 0;
  background: transparent;
}
.orders-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
}
.order-filter {
  white-space: nowrap;
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
}
.order-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #071427;
  font-weight: 800;
}
.orders-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}
.orders-loading {
  min-height: 260px;
  display: grid;
  place-items: center;
}
.order-card {
  width: 100%;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  text-align: right;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.order-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,209,102,.45);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
}
.order-card__image {
  width: 86px;
  height: 86px;
  object-fit: cover;
  border-radius: 17px;
  background: var(--panel-2);
}
.order-card__main h3 {
  margin: 8px 0;
}
.order-card__top,
.order-card__details {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.order-card__top {
  justify-content: space-between;
}
.order-card__details {
  color: var(--muted);
  font-size: 13px;
}
.order-card__details span:not(:last-child)::after {
  content: "•";
  margin-inline-start: 10px;
  opacity: .45;
}
.order-card__side {
  min-width: 170px;
  display: grid;
  justify-items: end;
  gap: 8px;
}
.order-card__side time {
  color: var(--muted);
  font-size: 12px;
}
.payment-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,209,102,.09);
  color: var(--accent);
  font-size: 11px;
}
.order-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.order-status--new { background: rgba(255,209,102,.12); color: #ffd166; }
.order-status--confirmed { background: rgba(76,201,240,.12); color: #65d7f3; }
.order-status--preparing { background: rgba(171,113,255,.14); color: #c49aff; }
.order-status--shipped { background: rgba(72,149,239,.14); color: #75aff5; }
.order-status--delivered { background: rgba(103,215,161,.14); color: #67d7a1; }
.order-status--cancelled { background: rgba(255,107,107,.14); color: #ff8f8f; }

.order-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,.54);
  backdrop-filter: blur(3px);
}
.order-drawer-backdrop[hidden] {
  display: none;
}
.order-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 81;
  width: min(620px, 100%);
  transform: translateX(105%);
  display: grid;
  grid-template-rows: auto 1fr;
  background: #08182b;
  border-inline-start: 1px solid var(--border);
  box-shadow: -20px 0 70px rgba(0,0,0,.38);
  transition: transform .25s ease;
}
.order-drawer.is-open {
  transform: translateX(0);
}
.order-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}
.order-drawer__head h2 {
  margin: 4px 0 0;
}
.order-drawer__body {
  overflow-y: auto;
  padding: 20px;
}
.order-pipeline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5px;
  margin-bottom: 22px;
  overflow-x: auto;
}
.pipeline-step {
  min-width: 74px;
  display: grid;
  justify-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}
.pipeline-step__dot {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--panel);
}
.pipeline-step.is-complete {
  color: var(--text);
}
.pipeline-step.is-complete .pipeline-step__dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #071427;
}
.pipeline-step.is-current .pipeline-step__dot {
  box-shadow: 0 0 0 6px rgba(255,209,102,.1);
}
.pipeline-line {
  min-width: 22px;
  flex: 1;
  height: 2px;
  margin-top: 15px;
  background: var(--border);
}
.drawer-section {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.drawer-section__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer-section h3 {
  margin: 0 0 14px;
}
.customer-details-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}
.customer-details-grid > div {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
}
.customer-details-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}
.drawer-items {
  display: grid;
  gap: 10px;
}
.drawer-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 11px;
  align-items: center;
}
.drawer-item__image {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--panel-2);
  color: var(--accent);
}
.drawer-totals {
  display: grid;
  gap: 9px;
}
.drawer-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.drawer-total {
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 18px;
}
.order-history {
  display: grid;
}
.history-entry {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 11px;
  padding-bottom: 18px;
}
.history-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 17px;
  right: 7px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.history-entry__dot {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 3px solid rgba(255,209,102,.24);
  border-radius: 50%;
  background: var(--accent);
}
.history-entry p {
  margin: 6px 0;
  color: var(--muted);
}
.history-entry small {
  color: var(--muted);
}
.drawer-actions {
  display: grid;
  gap: 12px;
  padding-top: 18px;
}
.drawer-actions__buttons,
.order-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.orders-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}
.orders-empty__icon {
  font-size: 54px;
  color: var(--accent);
}

.customer-order-page {
  min-height: 75vh;
  display: grid;
  place-items: center;
  padding-block: 38px;
}
.customer-order-card {
  width: min(100%,850px);
}
.customer-order-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.customer-order-head h1 {
  margin: 5px 0 0;
}
.customer-order-pipeline {
  display: flex;
  align-items: center;
  margin: 30px 0;
  overflow-x: auto;
}
.customer-pipeline-step {
  min-width: 95px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
.customer-pipeline-step > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 50%;
}
.customer-pipeline-step.is-complete {
  color: var(--text);
}
.customer-pipeline-step.is-complete > span {
  border-color: var(--accent);
  background: var(--accent);
  color: #071427;
}
.customer-order-pipeline > i {
  min-width: 30px;
  flex: 1;
  height: 2px;
  background: var(--border);
}
.customer-order-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.customer-order-summary > div {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 16px;
}
.customer-order-summary span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .orders-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .order-card {
    grid-template-columns: 72px 1fr;
  }
  .order-card__image {
    width: 72px;
    height: 72px;
  }
  .order-card__side {
    grid-column: 2;
    justify-items: start;
  }
}
@media (max-width: 620px) {
  .orders-stats {
    grid-template-columns: 1fr 1fr;
  }
  .order-card {
    grid-template-columns: 58px 1fr;
    gap: 11px;
  }
  .order-card__image {
    width: 58px;
    height: 58px;
  }
  .customer-details-grid,
  .customer-order-summary {
    grid-template-columns: 1fr;
  }
}

.store-admin-orders-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 66px 1fr 46px;
  gap: 16px;
  align-items: center;
  margin: 26px 0 18px;
  padding: 20px;
  border: 1px solid rgba(255,209,102,.28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 0%, rgba(255,209,102,.16), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.store-admin-orders-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,209,102,.55);
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
}
.store-admin-orders-card__icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255,209,102,.12);
  border: 1px solid rgba(255,209,102,.25);
  font-size: 30px;
}
.store-admin-orders-card__body {
  min-width: 0;
}
.store-admin-orders-card__eyebrow {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}
.store-admin-orders-card__body strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
}
.store-admin-orders-card__body p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.7;
}
.store-admin-orders-card__arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,209,102,.1);
  color: var(--accent);
  font-size: 22px;
}

.my-orders-page {
  padding-bottom: 70px;
}
.my-orders-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 42px 0 22px;
}
.my-orders-hero h1 {
  margin: 4px 0 8px;
  font-size: clamp(36px, 6vw, 62px);
}
.my-orders-hero p {
  color: var(--muted);
}
.my-orders-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.my-orders-stats article {
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 19px;
  background: var(--panel);
}
.my-orders-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.my-orders-stats strong {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-size: 31px;
}
.my-orders-list {
  display: grid;
  gap: 12px;
}
.my-order-card {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  transition: transform .17s ease, border-color .17s ease;
}
.my-order-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,209,102,.45);
}
.my-order-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(255,209,102,.1);
  font-size: 26px;
}
.my-order-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}
.my-order-card__main small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}
.my-order-card__side {
  min-width: 150px;
  display: grid;
  justify-items: end;
  gap: 8px;
}
.my-order-card__side span {
  color: var(--accent);
  font-size: 12px;
}
@media (max-width: 680px) {
  .store-admin-orders-card {
    grid-template-columns: 54px 1fr;
  }
  .store-admin-orders-card__icon {
    width: 54px;
    height: 54px;
  }
  .store-admin-orders-card__arrow {
    display: none;
  }
  .my-orders-stats {
    grid-template-columns: 1fr;
  }
  .my-order-card {
    grid-template-columns: 50px 1fr;
  }
  .my-order-card__side {
    grid-column: 2;
    justify-items: start;
  }
}

/* ===== Orders visual polish ===== */

/* Shared statistic containers */
.my-orders-stats,
.orders-stats {
  gap: 16px !important;
}

.my-orders-stats article,
.order-stat-card {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 20px !important;
  border: 1px solid rgba(255,209,102,.18) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,209,102,.12), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    var(--panel) !important;
  box-shadow:
    0 16px 38px rgba(0,0,0,.18),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.my-orders-stats article::after,
.order-stat-card::after {
  content: "";
  position: absolute;
  width: 92px;
  height: 92px;
  inset: auto -28px -34px auto;
  border-radius: 50%;
  background: rgba(255,209,102,.07);
  pointer-events: none;
}

.my-orders-stats span,
.order-stat-card span {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.my-orders-stats strong,
.order-stat-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 14px !important;
  color: var(--accent);
  font-size: clamp(32px, 4vw, 42px) !important;
  line-height: 1;
}

/* My Orders cards */
.my-orders-list {
  gap: 16px !important;
}

.my-order-card {
  position: relative;
  overflow: hidden;
  min-height: 118px;
  padding: 18px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    var(--panel) !important;
  box-shadow:
    0 14px 34px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.my-order-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(255,209,102,.12));
}

.my-order-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255,209,102,.42) !important;
  box-shadow: 0 20px 46px rgba(0,0,0,.22) !important;
}

.my-order-card__icon {
  border: 1px solid rgba(255,209,102,.22);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

.my-order-card__top {
  margin-bottom: 10px !important;
}

.my-order-card__main > .muted {
  line-height: 1.7;
}

.my-order-card__side {
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--border);
}

/* Admin orders cards */
.orders-list {
  gap: 16px !important;
}

.order-card {
  position: relative;
  overflow: hidden;
  min-height: 126px;
  padding: 18px !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 24px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.02)),
    var(--panel) !important;
  box-shadow:
    0 14px 34px rgba(0,0,0,.16),
    inset 0 1px 0 rgba(255,255,255,.04);
}

.order-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), rgba(255,209,102,.12));
}

.order-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(255,209,102,.42) !important;
  box-shadow: 0 20px 46px rgba(0,0,0,.22) !important;
}

.order-card__image {
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 24px rgba(0,0,0,.16);
}

.order-card__main {
  min-width: 0;
}

.order-card__main h3 {
  font-size: 19px;
  margin: 10px 0 8px !important;
}

.order-card__details {
  line-height: 1.7;
}

.order-card__side {
  align-self: stretch;
  min-width: 190px !important;
  padding-inline-start: 18px;
  border-inline-start: 1px solid var(--border);
  align-content: center;
}

/* Toolbar container polish */
.orders-toolbar {
  padding: 18px !important;
  border-radius: 22px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    var(--panel) !important;
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
}

.orders-search {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,.12);
}

/* Drawer organization */
.order-drawer {
  background:
    radial-gradient(circle at 100% 0%, rgba(255,209,102,.08), transparent 28%),
    #08182b !important;
}

.order-drawer__head {
  padding: 22px 24px !important;
  background: rgba(255,255,255,.025);
}

.order-drawer__body {
  padding: 22px !important;
}

.order-pipeline {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(0,0,0,.13);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.drawer-section {
  margin-top: 16px;
  padding: 18px !important;
  border: 1px solid var(--border) !important;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.045), rgba(255,255,255,.015)),
    rgba(0,0,0,.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.drawer-section:first-of-type {
  margin-top: 0;
}

.drawer-section h3 {
  margin-bottom: 16px !important;
  color: var(--accent);
  font-size: 16px;
}

.customer-details-grid {
  gap: 12px !important;
}

.customer-details-grid > div {
  padding: 14px !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.025);
}

.drawer-items {
  gap: 12px !important;
}

.drawer-item {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.drawer-item__image {
  border: 1px solid rgba(255,209,102,.18);
}

.drawer-totals {
  gap: 12px !important;
}

.drawer-totals > div {
  padding: 10px 12px;
  border-radius: 13px;
  background: rgba(255,255,255,.025);
}

.drawer-total {
  padding: 14px 12px !important;
  border: 1px solid rgba(255,209,102,.18) !important;
  background: rgba(255,209,102,.06) !important;
  border-radius: 15px;
}

.order-history {
  gap: 2px;
}

.history-entry {
  padding: 12px 12px 18px;
  border-radius: 15px;
  background: rgba(255,255,255,.018);
}

.drawer-actions {
  margin-top: 16px;
  padding: 18px !important;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(0,0,0,.13);
}

/* Customer tracking card */
.customer-order-card {
  border-radius: 26px !important;
  padding: 22px !important;
}

.customer-order-summary {
  gap: 14px !important;
}

.customer-order-summary > div {
  min-height: 104px;
  padding: 18px !important;
  border-radius: 19px !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
    rgba(0,0,0,.12);
}

.customer-order-summary strong {
  display: block;
  margin-top: 10px;
  color: var(--accent);
  font-size: 20px;
}

/* Responsive cleanup */
@media (max-width: 900px) {
  .order-card__side,
  .my-order-card__side {
    padding-inline-start: 0;
    border-inline-start: 0;
  }
}

@media (max-width: 620px) {
  .my-orders-stats,
  .orders-stats {
    gap: 10px !important;
  }

  .my-orders-stats article,
  .order-stat-card {
    min-height: 110px;
    padding: 16px !important;
  }

  .my-order-card,
  .order-card {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .order-drawer__body {
    padding: 14px !important;
  }

  .drawer-section,
  .drawer-actions,
  .order-pipeline {
    padding: 14px !important;
    border-radius: 18px;
  }
}

.inventory-center {
  padding-bottom: 70px;
}
.inventory-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 0 24px;
}
.inventory-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(36px, 6vw, 64px);
}
.inventory-hero p {
  max-width: 660px;
  color: var(--muted);
  line-height: 1.8;
}
.inventory-stats {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.inventory-stats article {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  padding: 20px;
  border: 1px solid rgba(255,209,102,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,209,102,.12), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}
.inventory-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.inventory-stats strong {
  display: block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 40px;
}
.inventory-toolbar {
  display: grid;
  gap: 14px;
  padding: 18px !important;
}
.inventory-search {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(0,0,0,.12);
}
.inventory-search > span {
  color: var(--accent);
  font-size: 25px;
}
.inventory-search .input {
  border: 0;
  background: transparent;
}
.inventory-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.inventory-filter {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.inventory-filter.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #071427;
  font-weight: 800;
}
.inventory-list {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}
.inventory-product-card {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 23px;
  background: var(--panel);
  color: var(--text);
  text-align: right;
  transition: transform .17s ease, border-color .17s ease;
}
.inventory-product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,209,102,.4);
}
.inventory-product-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 17px;
  background: var(--panel-2);
}
.inventory-product-card__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.inventory-product-card__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
.inventory-product-card__side {
  min-width: 90px;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: rgba(0,0,0,.12);
}
.inventory-product-card__side strong {
  color: var(--accent);
  font-size: 27px;
}
.inventory-product-card__side span {
  color: var(--muted);
  font-size: 12px;
}
.inventory-state {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}
.inventory-state--ok {
  background: rgba(103,215,161,.14);
  color: #67d7a1;
}
.inventory-state--low {
  background: rgba(255,209,102,.14);
  color: #ffd166;
}
.inventory-state--out {
  background: rgba(255,107,107,.14);
  color: #ff8f8f;
}
.inventory-product-summary {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
.inventory-product-summary > div {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.inventory-product-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.inventory-product-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--accent);
  font-size: 24px;
}
.inventory-variants-grid {
  display: grid;
  gap: 13px;
}
.inventory-variant-card {
  padding: 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.inventory-variant-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.inventory-variant-identity {
  display: flex;
  gap: 11px;
  align-items: center;
}
.inventory-variant-identity small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.inventory-adjust-row {
  display: grid;
  grid-template-columns: 40px 82px 40px;
  justify-content: start;
  gap: 8px;
  margin: 14px 0;
}
.inventory-variant-settings {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.inventory-history {
  display: grid;
  gap: 9px;
}
.inventory-history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
}
.inventory-history-item small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.store-admin-inventory-card {
  border-color: rgba(103,215,161,.24);
}
@media (max-width: 850px) {
  .inventory-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}
@media (max-width: 620px) {
  .inventory-stats,
  .inventory-product-summary,
  .inventory-variant-settings {
    grid-template-columns: 1fr;
  }
  .inventory-product-card {
    grid-template-columns: 64px 1fr;
  }
  .inventory-product-card img {
    width: 64px;
    height: 64px;
  }
  .inventory-product-card__side {
    grid-column: 2;
    justify-items: start;
  }
}

/* ===== Premium product detail redesign ===== */
.product-breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 22px 0 8px;
  color: var(--muted);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}
.product-breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}
.product-breadcrumb strong {
  color: var(--text);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  gap: 30px;
  align-items: start;
  padding: 22px 0 34px;
}

.product-gallery-panel--premium {
  position: sticky;
  top: 92px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0%, rgba(255,209,102,.08), transparent 32%),
    var(--surface);
  box-shadow: 0 22px 58px rgba(0,0,0,.18);
  overflow: hidden;
  isolation: isolate;
}
.product-main-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  background: var(--panel-2);
}
.product-gallery-panel--premium .gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border: 0;
  border-radius: 22px;
  box-shadow: none;
  transition: opacity .14s ease, transform .16s ease;
}
.product-gallery-panel--premium .gallery-main.is-switching {
  opacity: .5;
  transform: scale(.996);
}
.product-gallery-badges {
  position: absolute;
  inset: 30px 30px auto auto;
  z-index: 6;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.product-type-badge,
.product-live-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(7,20,39,.72);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
}
.product-live-badge {
  color: #67d7a1;
}
.product-gallery-panel--premium .gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}
.product-gallery-panel--premium .gallery-thumb-btn {
  padding: 3px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  transition: border-color .16s ease, transform .16s ease, opacity .16s ease;
}
.product-gallery-panel--premium .gallery-thumb-btn:hover,
.product-gallery-panel--premium .gallery-thumb-btn.is-active {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.product-gallery-panel--premium .gallery-thumb-btn img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}
.product-gallery-panel--premium .gallery-loader {
  position: absolute;
  inset: 50% auto auto 50%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  z-index: 12;
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none;
}
.product-gallery-panel--premium.is-loading .gallery-main,
.product-gallery-panel--premium.is-loading .gallery-thumbs {
  opacity: 1 !important;
  filter: none !important;
}
.product-gallery-panel--premium.is-fading-out .gallery-main,
.product-gallery-panel--premium.is-fading-out .gallery-thumbs {
  opacity: .68;
  transform: scale(.998);
}
.product-gallery-panel--premium.is-fading-in .gallery-main,
.product-gallery-panel--premium.is-fading-in .gallery-thumbs {
  animation: premium-gallery-fade .16s ease-out both;
}
@keyframes premium-gallery-fade {
  from { opacity: .68; transform: scale(.998); }
  to { opacity: 1; transform: scale(1); }
}

.product-purchase-panel {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,209,102,.09), transparent 34%),
    var(--surface);
  box-shadow: 0 22px 58px rgba(0,0,0,.18);
}
.product-kicker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
}
.product-heading-block h1 {
  margin: 8px 0 10px;
  font-size: clamp(29px, 4vw, 43px);
  line-height: 1.2;
}
.product-heading-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.product-price-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding: 17px 0;
  border-block: 1px solid var(--line-soft);
}
.product-price-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}
.product-price {
  font-size: clamp(30px, 4vw, 42px) !important;
  line-height: 1;
}
.product-stock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}
.product-stock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 15%, transparent);
}
.product-stock--available,
.product-stock--digital {
  background: rgba(103,215,161,.1);
  color: #67d7a1;
}
.product-stock--low {
  background: rgba(255,209,102,.1);
  color: var(--accent);
}
.product-stock--out {
  background: rgba(255,107,107,.1);
  color: #ff8f8f;
}
.product-stock--neutral {
  background: rgba(255,255,255,.06);
  color: var(--muted);
}

.product-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.product-benefits > div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.product-benefits span,
.product-benefits strong,
.product-benefits small {
  display: block;
}
.product-benefits span {
  color: var(--accent);
  font-weight: 900;
}
.product-benefits strong {
  margin-top: 7px;
  font-size: 12px;
}
.product-benefits small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

.product-selection-card {
  position: relative;
  min-height: 116px;
  padding: 17px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: 20px !important;
  background: transparent !important;
  overflow: hidden;
}
.product-selection-card .selection-loading {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  background: transparent !important;
  backdrop-filter: none !important;
  pointer-events: none;
}
.product-selection-card .selection-loading[hidden] {
  display: none;
}
.product-selection-head {
  padding-bottom: 14px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--line-soft);
}
.product-selection-head strong,
.product-selection-head span {
  display: block;
}
.product-selection-head strong {
  font-size: 15px;
}
.product-selection-head span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.product-selection-card .option-group {
  margin: 0 0 18px !important;
}
.product-selection-card .option-group:last-child {
  margin-bottom: 0 !important;
}
.option-group__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.option-group__head strong {
  color: var(--text) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 13px !important;
}
.option-group__head small {
  color: var(--muted);
  font-size: 11px;
}
.option-values--sizes,
.option-values--colors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.size-option,
.color-option {
  min-height: 64px;
  justify-content: flex-start !important;
  gap: 10px;
  padding: 10px 12px !important;
  border-radius: 15px !important;
  background: rgba(255,255,255,.025) !important;
  text-align: right;
}
.size-option {
  display: grid !important;
  justify-items: start;
}
.size-option strong,
.size-option small {
  display: block;
}
.size-option small,
.color-option__copy small {
  color: var(--muted);
  font-size: 10px;
}
.color-option__copy {
  min-width: 0;
}
.color-option__copy strong,
.color-option__copy small {
  display: block;
}
.color-option__copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.size-option.is-selected,
.color-option.is-selected {
  border-color: var(--accent) !important;
  background: rgba(255,209,102,.08) !important;
  box-shadow: 0 0 0 2px rgba(255,209,102,.07);
}
.size-option.is-unavailable,
.color-option.is-unavailable {
  position: relative;
  opacity: .42;
  cursor: not-allowed;
}
.size-option.is-unavailable::after,
.color-option.is-unavailable::after {
  content: "";
  position: absolute;
  inset: 50% 8px auto 8px;
  height: 1px;
  background: currentColor;
  transform: rotate(-8deg);
  opacity: .45;
}

.product-buy-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: end;
  padding-top: 4px;
}
.product-quantity-block > span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}
.product-add-button {
  min-height: 52px;
  display: flex !important;
  justify-content: space-between !important;
  padding-inline: 19px !important;
  font-size: 15px;
}
.product-add-button:disabled {
  filter: grayscale(.3);
}
.product-message {
  min-height: 0;
}
.product-added-toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(103,215,161,.2);
  border-radius: 16px;
  background: rgba(103,215,161,.07);
}
.product-added-toast > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(103,215,161,.16);
  color: #67d7a1;
  font-weight: 900;
}
.product-added-toast strong,
.product-added-toast a {
  display: block;
}
.product-added-toast a {
  margin-top: 3px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}

.product-content-section {
  margin: 0 0 50px;
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0,0,0,.13);
}
.product-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
}
.product-tab {
  min-height: 42px;
  padding: 9px 15px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}
.product-tab.is-active {
  background: rgba(255,209,102,.1);
  color: var(--accent);
}
.product-tab-panels {
  padding: 24px;
}
.product-tab-panel {
  display: none;
}
.product-tab-panel.is-active {
  display: block;
  animation: product-tab-fade .18s ease both;
}
@keyframes product-tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-copy-block {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: start;
}
.product-copy-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(255,209,102,.1);
  color: var(--accent);
  font-size: 22px;
}
.product-copy-block h2 {
  margin: 0 0 9px;
}
.product-copy-block p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}
.product-specifications {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.spec-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 15px;
  background: rgba(255,255,255,.02);
}
.spec-row span {
  color: var(--muted);
}
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.delivery-grid article {
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(255,255,255,.02);
}
.delivery-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}
.delivery-grid strong {
  display: block;
  margin-top: 10px;
}
.delivery-grid p {
  margin: 7px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

@media (max-width: 1020px) {
  .product-detail-layout {
    grid-template-columns: 1fr;
  }
  .product-gallery-panel--premium,
  .product-purchase-panel {
    position: static;
  }
}

@media (max-width: 680px) {
  .product-breadcrumb {
    padding-top: 14px;
  }
  .product-detail-layout {
    gap: 15px;
    padding-top: 14px;
  }
  .product-gallery-panel--premium,
  .product-purchase-panel {
    padding: 14px;
    border-radius: 21px;
  }
  .product-gallery-panel--premium .gallery-main,
  .product-main-image-wrap {
    border-radius: 17px;
  }
  .product-gallery-badges {
    inset: 23px 23px auto auto;
  }
  .product-gallery-panel--premium .gallery-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .product-heading-block h1 {
    font-size: 30px;
  }
  .product-price-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .product-benefits {
    grid-template-columns: 1fr;
  }
  .option-values--sizes,
  .option-values--colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-buy-box {
    grid-template-columns: 1fr;
  }
  .product-quantity-block .cart-quantity {
    width: 100%;
    grid-template-columns: 44px 1fr 44px;
  }
  .product-quantity-block .qty-input {
    width: 100%;
  }
  .product-tab-panels {
    padding: 17px;
  }
  .product-specifications,
  .delivery-grid {
    grid-template-columns: 1fr;
  }
  .product-copy-block {
    grid-template-columns: 1fr;
  }
  .product-copy-icon {
    width: 48px;
    height: 48px;
  }
}

.analytics-center {
  padding-bottom: 70px;
}
.analytics-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 42px 0 24px;
}
.analytics-hero h1 {
  margin: 4px 0 10px;
  font-size: clamp(36px, 6vw, 64px);
}
.analytics-hero p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
}
.analytics-toolbar {
  padding: 16px !important;
  margin-bottom: 18px;
}
.analytics-range-buttons {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.analytics-range {
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}
.analytics-range.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #071427;
  font-weight: 800;
}
.analytics-stats {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.analytics-stats article {
  position: relative;
  overflow: hidden;
  min-height: 138px;
  padding: 20px;
  border: 1px solid rgba(255,209,102,.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 88% 0%, rgba(255,209,102,.12), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: 0 16px 38px rgba(0,0,0,.18);
}
.analytics-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}
.analytics-stats strong {
  display: block;
  margin-top: 14px;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}
.analytics-stats small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 16px;
}
.analytics-card {
  min-height: 390px;
  border-radius: 24px !important;
}
.analytics-card--wide {
  grid-column: 1 / -1;
  min-height: 430px;
}
.analytics-card__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}
.analytics-card__head h2 {
  margin: 4px 0 0;
}
.analytics-chart {
  min-height: 300px;
  display: grid;
  place-items: center;
}
.analytics-card--wide .analytics-chart {
  min-height: 340px;
}
.analytics-chart canvas {
  width: 100% !important;
  height: 100% !important;
}
.analytics-empty {
  min-height: 260px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.store-admin-analytics-card {
  border-color: rgba(72,149,239,.26);
}
@media (max-width: 900px) {
  .analytics-stats {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .analytics-card--wide {
    grid-column: auto;
  }
}
@media (max-width: 620px) {
  .analytics-stats {
    grid-template-columns: 1fr;
  }
  .analytics-card,
  .analytics-card--wide {
    min-height: 360px;
  }
}

/* ============================================================
   نافذة تسجيل الدخول السريع عبر Google (السلة)
   ============================================================ */

.ntf-auth-dialog {
  border: none;
  padding: 0;
  background: transparent;
  color: var(--ink);
  max-width: min(380px, calc(100vw - 32px));
  width: 100%;
}

.ntf-auth-dialog::backdrop {
  background: rgba(4, 9, 18, 0.7);
  backdrop-filter: blur(3px);
}

@starting-style {
  .ntf-auth-dialog[open] {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}

.ntf-auth-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), overlay 0.22s allow-discrete, display 0.22s allow-discrete;
}

.ntf-auth-dialog__panel {
  position: relative;
  margin: 0;
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ntf-auth-dialog__close {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-3);
  color: var(--ink-dim);
  cursor: pointer;
  font-size: 13px;
  line-height: 1;
}

.ntf-auth-dialog__close:hover { color: var(--ink); }

.ntf-auth-dialog__icon {
  font-size: 34px;
  margin-bottom: 4px;
}

.ntf-auth-dialog__panel h2 {
  margin: 0;
  font-size: 19px;
}

.ntf-auth-dialog__panel p.muted {
  margin: 0 0 14px;
  font-size: 14px;
}

.ntf-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-soft);
  background: #fff;
  color: #1f1f1f;
  font-family: var(--font-ar);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.ntf-google-btn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.ntf-google-btn:disabled { opacity: 0.7; cursor: progress; }
.ntf-google-btn.is-loading span { opacity: 0.6; }

.ntf-auth-dialog__error {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 13px;
  width: 100%;
}

.cart-loading-surface {
  position: relative;
}

.cart-spinner-overlay {
  position: absolute;
  inset: 0;
  z-index: 12;
  min-height: 220px;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(7, 20, 39, 0.34);
  pointer-events: auto;
  transition: opacity 0.16s ease;
}

.cart-spinner-overlay[hidden] {
  display: none;
}

.cart-spinner-overlay.is-compact {
  position: fixed;
  inset: auto 24px 24px auto;
  width: 58px;
  height: 58px;
  min-height: 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.cart-spinner-overlay.is-compact .ntf-loader {
  transform: scale(0.72);
}
/* Coupons */
.store-admin-coupons-card{border-color:rgba(255,193,7,.28)}
.coupon-editor__head,.coupon-list-head,.coupon-code-field,.coupon-form-actions,.coupon-card{display:flex;align-items:center;gap:12px}.coupon-editor__head,.coupon-list-head{justify-content:space-between}.coupon-code-field .input{flex:1}.coupon-filters{display:flex;gap:10px}.coupons-list{display:grid;gap:12px}.coupon-card{justify-content:space-between;padding:18px;border:1px solid var(--line);border-radius:18px;background:var(--surface-2)}.coupon-card h3{margin:6px 0}.coupon-card code{font:700 15px monospace;color:var(--accent)}.coupon-card__meta{text-align:center}.coupon-card__meta strong{display:block;font-size:26px}.coupon-state{display:inline-flex;padding:4px 9px;border-radius:999px;font-size:12px;background:var(--surface-3)}.coupon-state.active{color:var(--success)}.coupon-state.expired{color:var(--danger)}.coupon-state.scheduled{color:var(--accent)}
.checkout-coupon{margin-top:18px;padding-top:18px;border-top:1px solid var(--line)}.checkout-coupon__row{display:flex;gap:8px}.checkout-coupon__row .input{flex:1}.coupon-applied{display:flex;justify-content:space-between;gap:12px;margin-top:10px;padding:10px 12px;border-radius:12px;background:var(--success-bg);color:var(--success)}
@media(max-width:700px){.coupon-card,.coupon-list-head{align-items:stretch;flex-direction:column}.coupon-filters,.checkout-coupon__row{flex-direction:column}}


/* Searchable ambassador user picker */
.promoter-picker{align-self:start}.promoter-picker>span{font-weight:700}.promoter-users-list{display:grid;gap:8px;max-height:360px;overflow:auto;padding:4px;border-radius:16px}.promoter-user-option{width:100%;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px;padding:11px;border:1px solid var(--line);border-radius:14px;background:var(--surface-2);color:var(--ink);font-family:inherit;text-align:right;cursor:pointer;transition:border-color .16s ease,transform .16s ease,background .16s ease}.promoter-user-option:hover{transform:translateY(-1px);border-color:var(--accent);background:var(--surface-3)}.promoter-user-option.is-selected{border-color:var(--success);box-shadow:0 0 0 2px color-mix(in srgb,var(--success) 18%,transparent)}.promoter-user-option__avatar{width:44px;height:44px;display:grid;place-items:center;border-radius:50%;background:var(--surface-3);border:1px solid var(--line);font-weight:800;color:var(--accent)}.promoter-user-option__body{min-width:0;display:grid;gap:2px}.promoter-user-option__body strong,.promoter-user-option__body small,.promoter-user-option__body em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.promoter-user-option__body small{color:var(--muted);font-style:normal}.promoter-user-option__body em{color:var(--muted);font-size:11px;font-style:normal;direction:ltr;text-align:right}.promoter-user-option__action{font-size:12px;font-weight:700;color:var(--accent)}.selected-promoter{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--success);border-radius:14px;background:var(--success-bg)}.selected-promoter__info{min-width:0;display:grid;gap:3px}.selected-promoter__info strong,.selected-promoter__info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.selected-promoter__info span{color:var(--muted);font-size:13px}.promoter-users-empty{padding:20px}.promoter-picker[hidden]{display:none!important}@media(max-width:620px){.promoter-user-option{grid-template-columns:40px minmax(0,1fr)}.promoter-user-option__action{grid-column:2}.selected-promoter{align-items:stretch;flex-direction:column}}

/* Checkout summary refresh */
.checkout-summary {
  overflow: hidden;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(255,209,102,.08), transparent 34%),
    var(--surface);
}
.checkout-summary__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.checkout-summary__head h2 { margin: 2px 0 0; }
.checkout-summary__eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
}
.checkout-summary__count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 700;
}
.checkout-summary-group {
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
}
.checkout-summary-group + .checkout-summary-group { margin-top: 12px; }
.checkout-summary-group__title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 800;
}
.checkout-summary-group__title small {
  color: var(--ink-dim);
  font-weight: 600;
}
.checkout-lines { gap: 10px; }
.checkout-line {
  grid-template-columns: 62px minmax(0,1fr) auto;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: var(--surface);
}
.checkout-line:last-child { border-bottom: 1px solid transparent; }
.checkout-line img {
  width: 62px;
  height: 62px;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
}
.checkout-line__price {
  font-size: 12px;
  white-space: nowrap;
  padding-top: 5px;
  padding-bottom: 5px;
}
.checkout-totals { margin-top: 0; gap: 0; }
.checkout-amount-row,
.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.checkout-amount-row {
  padding: 10px 2px;
  border-bottom: 1px dashed var(--line-soft);
}
.checkout-amount-row span,
.checkout-total-row span {
  display: grid;
  gap: 2px;
}
.checkout-amount-row small,
.checkout-total-row small {
  color: var(--ink-dim);
  font-size: 11px;
  font-weight: 500;
}
.checkout-amount-row--discount strong { color: var(--ok); }
.checkout-total-row {
  margin-top: 4px;
  padding: 16px 2px 2px;
  border-top: 0;
  font-size: 17px;
}
.checkout-total-price {
  flex: 0 0 auto;
  font-size: 15px;
}
.checkout-trust-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 12px 2px 0;
  padding: 11px 12px;
  border: 1px solid rgba(103,215,161,.18);
  border-radius: 14px;
  background: rgba(103,215,161,.07);
  color: var(--ink-dim);
}
.checkout-trust-note p { margin: 0; font-size: 12px; line-height: 1.65; }
.checkout-trust-note__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(103,215,161,.16);
  color: var(--ok);
  font-weight: 900;
}
@media (max-width: 560px) {
  .checkout-summary { padding: 14px; }
  .checkout-summary-group { padding: 10px; }
  .checkout-line { grid-template-columns: 54px minmax(0,1fr); }
  .checkout-line img { width: 54px; height: 54px; }
  .checkout-line__price { grid-column: 2; justify-self: start; margin-top: 4px; }
}


/* Checkout: translucent gold grouping + faster loading feedback */
.checkout-summary-group {
  border-color: rgba(255, 209, 102, .24);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, .13), rgba(255, 209, 102, .055));
  box-shadow: inset 0 1px 0 rgba(255, 235, 178, .08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.checkout-line {
  border-color: rgba(255, 209, 102, .12);
  background: rgba(255, 209, 102, .055);
}
.checkout-summary-group--totals .checkout-total-row {
  margin-inline: -4px;
  padding: 16px 10px 8px;
  border-radius: 14px;
  background: rgba(255, 209, 102, .09);
}
.checkout-summary-fast-loader {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 22px;
  border: 1px solid rgba(255, 209, 102, .22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 209, 102, .12), rgba(255, 209, 102, .045));
  text-align: right;
}
.checkout-summary-fast-loader > div {
  display: grid;
  gap: 4px;
}
.checkout-summary-fast-loader small {
  color: var(--ink-dim);
  line-height: 1.55;
}

/* ===== Product catalog view switcher ===== */
.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.catalog-tools .search-field {
  flex: 1 1 260px;
  min-width: min(100%, 230px);
}
.product-view-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(242, 194, 48, .22);
  border-radius: 15px;
  background: rgba(242, 194, 48, .055);
  flex: 0 0 auto;
}
.product-view-toggle__btn {
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--ink-dim);
  font: 800 12px var(--font-main);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}
.product-view-toggle__btn svg { width: 18px; height: 18px; }
.product-view-toggle__btn.is-active {
  color: #071427;
  background: linear-gradient(135deg, var(--gold), var(--gold-strong));
  box-shadow: 0 7px 18px rgba(242, 194, 48, .18);
}
.product-view-toggle__btn:focus-visible {
  outline: 2px solid var(--gold-strong);
  outline-offset: 2px;
}

/* Grid is the default and remains compact on phones. */
.products-grid[data-view="grid"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Horizontal list view. */
.products-grid[data-view="list"] {
  grid-template-columns: 1fr;
  gap: 14px;
}
.products-grid[data-view="list"] .product-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 190px;
  overflow: hidden;
}
.products-grid[data-view="list"] .product-card__image {
  width: 100%;
  height: 100%;
  min-height: 190px;
  aspect-ratio: auto;
}
.products-grid[data-view="list"] .product-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.products-grid[data-view="list"] .product-card .muted {
  min-height: 0;
}
.products-grid[data-view="list"] .product-card__footer {
  margin-top: auto;
  padding-top: 14px;
}
.products-grid[data-view="list"] .product-card--skeleton .skeleton--image {
  width: 100%;
  height: 100%;
  min-height: 190px;
}

@media (max-width: 980px) {
  .products-grid[data-view="grid"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .catalog-panel--products .section-title {
    align-items: stretch;
  }
  .catalog-tools {
    width: 100%;
    justify-content: space-between;
  }
  .catalog-tools .search-field {
    flex-basis: 100%;
  }
  .product-view-toggle {
    margin-inline-start: auto;
  }
  .products-grid[data-view="grid"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .products-grid[data-view="grid"] .product-card {
    border-radius: 17px;
  }
  .products-grid[data-view="grid"] .product-card__body {
    padding: 11px;
  }
  .products-grid[data-view="grid"] .product-card__title {
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .products-grid[data-view="grid"] .product-card .muted {
    display: none;
  }
  .products-grid[data-view="grid"] .product-card__meta {
    margin-bottom: 6px;
  }
  .products-grid[data-view="grid"] .product-card__footer {
    margin-top: 8px;
    gap: 5px;
  }
  .products-grid[data-view="grid"] .price {
    font-size: 11px;
    line-height: 1.45;
  }
  .products-grid[data-view="grid"] .product-card__arrow {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  .products-grid[data-view="list"] .product-card {
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 132px;
    border-radius: 18px;
  }
  .products-grid[data-view="list"] .product-card__image,
  .products-grid[data-view="list"] .product-card--skeleton .skeleton--image {
    min-height: 132px;
  }
  .products-grid[data-view="list"] .product-card__body {
    padding: 12px;
  }
  .products-grid[data-view="list"] .product-card__title {
    font-size: 15px;
    margin-bottom: 5px;
  }
  .products-grid[data-view="list"] .product-card .muted {
    font-size: 11px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .products-grid[data-view="list"] .product-card__footer {
    padding-top: 7px;
    margin-top: 0;
  }
}

@media (max-width: 390px) {
  .product-view-toggle__btn span { display: none; }
  .product-view-toggle__btn { width: 40px; padding-inline: 0; }
  .products-grid[data-view="grid"] { gap: 8px; }
}

/* ===== NTF Store Reviews ===== */
.gold-glass{border:1px solid rgba(242,193,78,.28);background:radial-gradient(circle at 92% 0,rgba(255,215,100,.18),transparent 36%),linear-gradient(135deg,rgba(242,193,78,.12),rgba(242,193,78,.045));box-shadow:0 18px 45px rgba(0,0,0,.2);backdrop-filter:blur(14px)}
.reviews-shell{margin:24px 0;padding:20px;border-radius:26px}.reviews-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}.reviews-head h2,.reviews-admin-hero h1{margin:4px 0;color:var(--gold,#f2c14e)}.reviews-kicker{color:#ffd77a;font-size:.78rem;font-weight:900;letter-spacing:.06em}.reviews-layout{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,.7fr);gap:16px;margin-top:18px}.review-form-card{padding:16px;border-radius:22px;align-self:start}.review-form-card h3{margin-top:0}.review-stars,.product-card-rating span{display:inline-flex;direction:ltr;gap:2px}.review-stars span,.product-card-rating i{font-style:normal;color:rgba(255,255,255,.18);text-shadow:0 1px 4px rgba(0,0,0,.2)}.review-stars span.is-on,.product-card-rating i.is-on{color:#ffd34e;text-shadow:0 0 12px rgba(255,211,78,.3)}.review-stars-input{display:flex;direction:ltr;justify-content:flex-end;gap:5px;margin:12px 0}.review-stars-input button{border:0;background:transparent;color:rgba(255,255,255,.2);font-size:2rem;cursor:pointer;padding:2px}.review-stars-input button.is-on{color:#ffd34e}.review-image-field{display:grid;gap:7px;margin:12px 0}.rating-summary-card{display:flex;gap:18px;align-items:center;flex-wrap:wrap;padding:14px;border-radius:20px;background:rgba(0,0,0,.16);border:1px solid rgba(242,193,78,.18)}.rating-summary-main{display:grid;justify-items:center;min-width:130px}.rating-summary-main>strong{font-size:2.5rem;color:#ffd77a}.rating-summary-main>span:last-child{color:var(--muted);font-size:.78rem}.rating-bars{min-width:210px;display:grid;gap:5px}.rating-bars>div{display:grid;grid-template-columns:38px 1fr 28px;gap:7px;align-items:center;font-size:.75rem}.rating-bars i{height:7px;background:rgba(255,255,255,.1);border-radius:99px;overflow:hidden}.rating-bars b{display:block;height:100%;background:linear-gradient(90deg,#e9b93f,#ffd77a);border-radius:inherit}.rating-bars em{font-style:normal;color:var(--muted)}.reviews-list{display:grid;gap:12px}.review-card{padding:16px;border-radius:20px;background:rgba(0,0,0,.18);border:1px solid rgba(255,255,255,.1)}.review-card.is-own{border-color:rgba(242,193,78,.35)}.review-card__head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.review-card__head>div{display:grid;gap:5px}.review-card p{line-height:1.8}.review-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:900}.review-status.pending{background:rgba(255,193,7,.13);color:#ffd77a;border:1px solid rgba(255,193,7,.28)}.review-status.approved{background:rgba(82,210,145,.12);color:#8be3b4;border:1px solid rgba(82,210,145,.25)}.review-status.rejected{background:rgba(255,95,95,.12);color:#ffb1b1;border:1px solid rgba(255,95,95,.25)}.review-images{display:flex;gap:8px;overflow:auto;margin:10px 0}.review-images img{width:82px;height:82px;object-fit:cover;border-radius:14px;border:1px solid rgba(242,193,78,.22)}.admin-reply{margin-top:12px;padding:12px;border-radius:16px;background:rgba(242,193,78,.09);border:1px solid rgba(242,193,78,.18)}.admin-reply strong{color:#ffd77a}.admin-reply p{margin-bottom:0}.review-votes{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;color:var(--muted)}.review-votes button{border:1px solid rgba(242,193,78,.2);background:rgba(242,193,78,.07);color:inherit;border-radius:999px;padding:7px 10px;cursor:pointer}.reviews-empty{padding:22px;text-align:center;border:1px dashed rgba(242,193,78,.26);border-radius:20px;color:var(--muted)}.product-card-rating{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}.product-card-rating small{color:var(--muted);font-size:.72rem}.reviews-admin-hero{margin:22px 0 14px;padding:20px;border-radius:26px;display:flex;justify-content:space-between;gap:16px;align-items:center;flex-wrap:wrap}.reviews-admin-toolbar{display:grid;grid-template-columns:1fr 220px;gap:10px;padding:12px;border-radius:20px;margin-bottom:14px}.reviews-admin-list{display:grid;gap:14px}.review-admin-card{padding:18px;border-radius:24px}.review-admin-card__top{display:flex;justify-content:space-between;gap:15px}.review-admin-card__top h3{margin:7px 0 3px}.review-admin-stat{display:inline-grid;justify-items:center;padding:10px 14px;border-radius:16px;background:rgba(0,0,0,.18);margin-inline-start:8px}.review-admin-stat strong{font-size:1.5rem;color:#ffd77a}.review-admin-stat span{font-size:.75rem;color:var(--muted)}
@media(max-width:800px){.reviews-layout{grid-template-columns:1fr}.reviews-admin-toolbar{grid-template-columns:1fr}.rating-summary-card{width:100%}.rating-bars{min-width:0;flex:1}.reviews-shell{padding:14px}.review-stars-input{justify-content:center}}

/* ===== Reviews refinement: dark grouped containers, no yellow glass background ===== */
.reviews-shell {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.review-form-card,
.rating-summary-card,
.review-card {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}
.review-form-card[hidden] {
  display: none !important;
}
.review-card.is-own {
  border-color: rgba(255,255,255,.14);
}
.admin-reply {
  background: rgba(255,255,255,.045);
  border-color: rgba(255,255,255,.10);
}
.reviews-empty {
  border-color: rgba(255,255,255,.14);
}


/* ===== Reviews admin refinement: dark surfaces, no yellow translucent fills ===== */
.reviews-admin-hero,
.reviews-admin-toolbar,
.review-admin-card {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  box-shadow: 0 18px 45px rgba(0,0,0,.18);
  backdrop-filter: blur(12px);
}
.reviews-admin-hero {
  background: linear-gradient(145deg, rgba(255,255,255,.05), rgba(0,0,0,.14));
}
.reviews-admin-toolbar {
  background: rgba(0,0,0,.16);
}
.review-admin-card {
  background: rgba(0,0,0,.20);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 34px rgba(0,0,0,.16);
}
.review-admin-card .field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.review-admin-card .field > span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 800;
}
.review-admin-card .input {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.10);
}
.review-admin-card .nav-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.review-admin-stat {
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.20);
}

/* Product stock option feedback */
.size-option.is-unavailable,
.color-option.is-unavailable {
  cursor: pointer;
}

.size-option.is-unavailable:hover,
.color-option.is-unavailable:hover {
  border-color: rgba(255,255,255,.16) !important;
  background: rgba(255,255,255,.035) !important;
}

.product-stock-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 193, 7, .24);
  border-radius: 15px;
  background: rgba(17, 21, 31, .96);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
  animation: productStockToastIn .18s ease both;
}

.product-stock-toast > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(255, 193, 7, .12);
  color: #ffd166;
  font-weight: 900;
}

.product-stock-toast strong {
  color: var(--text);
  font-size: 13px;
}

.product-stock-toast.is-hiding {
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .18s ease, transform .18s ease;
}

@keyframes productStockToastIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== NTF Store Wishlist ===== */
.product-card-wrap{position:relative;min-width:0}.product-card-wrap>.product-card{height:100%}
.wishlist-button{appearance:none;border:1px solid rgba(255,255,255,.16);background:rgba(7,26,47,.82);color:rgba(233,241,255,.72);display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:transform .18s ease,border-color .18s ease,color .18s ease,background .18s ease;z-index:5;font-family:inherit}
.wishlist-button:hover{transform:translateY(-1px);border-color:rgba(242,193,78,.52);color:#ffd77a}
.wishlist-button.is-saved{color:#ffd166;background:rgba(242,193,78,.14);border-color:rgba(242,193,78,.46)}
.wishlist-button.is-loading{opacity:.6;pointer-events:none}
.wishlist-button__icon{font-size:1.25rem;line-height:1}
.wishlist-button--card{position:absolute;top:10px;left:10px;width:40px;height:40px;border-radius:999px;box-shadow:0 10px 26px rgba(0,0,0,.28)}
.wishlist-button--labeled{min-height:42px;padding:9px 13px;border-radius:14px;font-weight:900;white-space:nowrap}
.product-heading-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.product-heading-row h1{margin:0}
.wishlist-page{padding-top:28px;padding-bottom:80px}.wishlist-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;border:1px solid rgba(255,255,255,.1);border-radius:24px;background:rgba(255,255,255,.045);margin-bottom:18px}.wishlist-hero h1{margin:5px 0}.wishlist-hero__heart{width:68px;height:68px;border-radius:22px;display:grid;place-items:center;font-size:2rem;color:#ffd166;background:rgba(242,193,78,.1);border:1px solid rgba(242,193,78,.28)}
.wishlist-card{position:relative;overflow:hidden}.wishlist-card__link{display:block;color:inherit;text-decoration:none;height:100%}.wishlist-remove{width:calc(100% - 24px);margin:0 12px 12px;padding:9px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18);color:rgba(233,241,255,.8);font:inherit;font-weight:800;cursor:pointer}.wishlist-remove:hover{border-color:rgba(255,120,120,.35);color:#ffb4b4}.wishlist-empty{grid-column:1/-1;text-align:center;padding:42px 18px}.wishlist-empty>span{font-size:3rem;color:#ffd166}.wishlist-empty h2{margin:8px 0}
@media(max-width:620px){.product-heading-row{align-items:stretch;flex-direction:column}.wishlist-button--product{align-self:flex-start}.wishlist-button--card{width:36px;height:36px;top:8px;left:8px}}

/* ===== Wishlist card layout fix ===== */
.product-card-wrap {
  position: relative;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.products-grid[data-view="grid"] .product-card-wrap > .product-card {
  display: block;
  width: 100%;
  height: 100%;
}

.products-grid[data-view="list"] .product-card-wrap > .product-card {
  display: grid;
  width: 100%;
  height: 100%;
}

.wishlist-button--card {
  top: 12px;
  right: 12px;
  left: auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px);
}

.wishlist-button--card .wishlist-button__icon {
  font-size: 1.08rem;
}

@media (max-width: 700px) {
  .wishlist-button--card {
    top: 7px;
    right: 7px;
    left: auto;
    width: 31px;
    height: 31px;
    border-width: 1px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .28);
  }

  .wishlist-button--card .wishlist-button__icon {
    font-size: .92rem;
  }

  .products-grid[data-view="list"] .wishlist-button--card {
    top: 8px;
    right: 8px;
  }
}


/* ===== Perfectly centered circular icons ===== */
.wishlist-button--card,
.product-card__arrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 0 !important;
  text-align: center;
}

.wishlist-button--card .wishlist-button__icon,
.product-card__arrow svg {
  display: block;
  flex: 0 0 auto;
  margin: 0;
}

.wishlist-button--card .wishlist-button__icon {
  width: 17px;
  height: 17px;
  line-height: 0;
}

.wishlist-button--card .wishlist-button__icon svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wishlist-button--card.is-saved .wishlist-button__icon svg {
  fill: currentColor;
}

.product-card__arrow svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 700px) {
  .wishlist-button--card .wishlist-button__icon {
    width: 14px;
    height: 14px;
  }

  .products-grid[data-view="grid"] .product-card__arrow svg {
    width: 13px;
    height: 13px;
  }
}

/* ===== Equal product-card content alignment ===== */
.products-grid[data-view="grid"] {
  align-items: stretch;
}

.products-grid[data-view="grid"] .product-card-wrap,
.products-grid[data-view="grid"] .product-card-wrap > .product-card {
  height: 100%;
}

.products-grid[data-view="grid"] .product-card-wrap > .product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.products-grid[data-view="grid"] .product-card__image {
  flex: 0 0 auto;
}

.products-grid[data-view="grid"] .product-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.products-grid[data-view="grid"] .product-card__title,
.products-grid[data-view="list"] .product-card__title {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.products-grid[data-view="grid"] .product-card__title {
  min-height: calc(2 * 1.45em);
  max-height: calc(2 * 1.45em);
  line-height: 1.45;
}

.products-grid[data-view="grid"] .product-card .muted,
.products-grid[data-view="list"] .product-card .muted {
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.products-grid[data-view="grid"] .product-card .muted {
  min-height: calc(2 * 1.6em);
  max-height: calc(2 * 1.6em);
  line-height: 1.6;
}

.products-grid[data-view="grid"] .product-card-rating {
  margin-top: 8px;
}

.products-grid[data-view="grid"] .product-card__footer {
  margin-top: auto;
  padding-top: 14px;
}

/* Horizontal cards remain compact, while text is still limited to two lines. */
.products-grid[data-view="list"] .product-card__title {
  max-height: calc(2 * 1.45em);
  line-height: 1.45;
}

.products-grid[data-view="list"] .product-card .muted {
  max-height: calc(2 * 1.6em);
  line-height: 1.6;
}

@media (max-width: 700px) {
  .products-grid[data-view="grid"] .product-card__title {
    min-height: calc(2 * 1.45em);
    max-height: calc(2 * 1.45em);
  }

  .products-grid[data-view="grid"] .product-card .muted {
    display: none;
    min-height: 0;
    max-height: none;
  }

  .products-grid[data-view="grid"] .product-card-rating {
    margin-top: 6px;
  }

  .products-grid[data-view="grid"] .product-card__footer {
    margin-top: auto;
    padding-top: 9px;
  }
}

/* Auto SKU controls */
.sku-auto-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 8px;
  color: var(--store-muted, rgba(233, 241, 255, 0.72));
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}
.sku-auto-toggle input { accent-color: #f2c14e; }
.input.is-auto-sku,
.input[readonly].is-auto-sku {
  color: #ffd77a;
  border-color: rgba(242, 193, 78, 0.32);
  background: rgba(242, 193, 78, 0.07);
  cursor: default;
}


/* ===== Shipping management & tracking ===== */
.shipping-admin-panel,
.shipping-customer-card {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(4, 16, 30, .72);
  border-radius: 22px;
  padding: 16px;
}
.shipping-admin-grid, .shipping-customer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 16px;
}
.shipping-admin-grid label > span, .shipping-customer-grid span {
  display: block; color: var(--muted); font-size: .78rem; margin-bottom: 6px;
}
.shipping-status-pill {
  display:inline-flex; align-items:center; padding:7px 10px; border-radius:999px;
  border:1px solid rgba(242,193,78,.26); color:var(--gold2); background:rgba(242,193,78,.07); font-weight:900; font-size:.78rem;
}
.shipping-timeline-admin, .shipping-timeline-customer {
  display:flex; align-items:center; gap:8px; margin-top:16px; overflow-x:auto; padding:6px 2px 10px;
}
.shipping-step {
  min-width:112px; border:0; background:transparent; color:var(--muted); font-family:inherit; font-weight:800; cursor:pointer;
  display:grid; justify-items:center; gap:7px;
}
.shipping-step__dot, .shipping-customer-step > span {
  width:34px; height:34px; border-radius:50%; display:grid; place-items:center;
  border:1px solid rgba(255,255,255,.16); background:#091b31; color:transparent; flex:0 0 auto;
}
.shipping-step.is-complete, .shipping-customer-step.is-complete { color:var(--gold2); }
.shipping-step.is-complete .shipping-step__dot, .shipping-customer-step.is-complete > span {
  color:#08162d; background:var(--gold); border-color:var(--gold);
}
.shipping-step.is-current .shipping-step__dot, .shipping-customer-step.is-current > span { box-shadow:0 0 0 5px rgba(242,193,78,.12), 0 0 22px rgba(242,193,78,.24); }
.shipping-step__line, .shipping-timeline-customer > i { min-width:34px; height:2px; background:rgba(255,255,255,.14); border-radius:999px; }
.shipping-customer-card { margin-top:16px; }
.shipping-customer-card__head, .shipping-customer-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.shipping-customer-card__head h3 { margin:4px 0 0; }
.shipping-customer-actions { margin-top:14px; justify-content:flex-start; }
.shipping-customer-step { min-width:108px; display:grid; justify-items:center; text-align:center; gap:6px; color:var(--muted); }
.shipping-customer-step small { min-height:1.2em; font-size:.66rem; color:var(--muted); }
@media (max-width:680px) {
  .shipping-admin-grid, .shipping-customer-grid { grid-template-columns:1fr; }
  .shipping-admin-grid .span2 { grid-column:auto; }
  .shipping-step, .shipping-customer-step { min-width:92px; font-size:.76rem; }
}

/* ===== Customer 360 ===== */
.customer-stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:18px 0}.stat-card{border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(0,0,0,.18);padding:16px}.stat-card span{display:block;color:var(--muted);font-size:.8rem}.stat-card strong{display:block;color:var(--gold,#ffd166);font-size:1.2rem;margin-top:7px}.customer-search-panel{display:grid;grid-template-columns:1fr 220px;gap:10px;margin-bottom:14px}.customers-grid{display:grid;gap:12px}.customer-card{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:15px;border:1px solid rgba(255,255,255,.1);border-radius:20px;background:rgba(0,0,0,.16);color:inherit;text-decoration:none;transition:.18s}.customer-card:hover{transform:translateY(-2px);border-color:rgba(255,209,102,.4)}.customer-card__avatar,.customer-hero__avatar{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;overflow:hidden;background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.24);font-weight:900;color:var(--gold,#ffd166)}.customer-card__avatar img,.customer-hero__avatar img{width:100%;height:100%;object-fit:cover}.customer-card__body{min-width:0}.customer-card__top{display:flex;gap:8px;align-items:center}.customer-card__body>span,.customer-card__body small{display:block;color:var(--muted);margin-top:5px}.customer-card__value{text-align:left}.customer-card__value span{display:block;color:var(--muted);font-size:.72rem}.customer-chip{display:inline-flex;padding:4px 8px;border-radius:999px;border:1px solid rgba(255,209,102,.25);background:rgba(255,209,102,.08);color:var(--gold,#ffd166);font-size:.72rem;font-weight:900}.customer-hero{display:flex;align-items:center;gap:16px}.customer-hero__avatar{width:82px;height:82px;border-radius:25px;font-size:1.5rem}.customer-hero__body{flex:1}.customer-hero h1{margin:3px 0}.customer-hero p{color:var(--muted)}.customer-chips{display:flex;gap:7px;flex-wrap:wrap}.customer-tabs{display:flex;gap:8px;overflow:auto;margin:18px 0 10px;padding-bottom:4px}.customer-tabs button{white-space:nowrap;border:1px solid rgba(255,255,255,.1);background:rgba(0,0,0,.18);color:var(--muted);padding:10px 14px;border-radius:999px;font-family:inherit;font-weight:900;cursor:pointer}.customer-tabs button.is-active{background:rgba(255,209,102,.14);border-color:rgba(255,209,102,.4);color:var(--gold,#ffd166)}.customer-tab-content{min-height:280px}.customer-overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.customer-overview-grid article,.customer-mini-card{border:1px solid rgba(255,255,255,.09);border-radius:17px;background:rgba(0,0,0,.14);padding:14px}.customer-overview-grid dl{display:grid;grid-template-columns:120px 1fr;gap:8px}.customer-overview-grid dt{color:var(--muted)}.customer-overview-grid dd{margin:0}.customer-table{display:grid;gap:8px}.customer-table a{display:grid;grid-template-columns:1.2fr .7fr .7fr 1fr;gap:10px;align-items:center;color:inherit;text-decoration:none;padding:12px;border:1px solid rgba(255,255,255,.08);border-radius:15px;background:rgba(0,0,0,.12)}.customer-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.customer-mini-card{color:inherit;text-decoration:none}.customer-mini-card p{color:var(--muted);line-height:1.7}.customer-mini-card span,.customer-mini-card small{display:block;color:var(--muted);margin-top:7px}@media(max-width:850px){.customer-stats-grid{grid-template-columns:repeat(2,1fr)}.customer-mini-grid{grid-template-columns:1fr 1fr}.customer-overview-grid{grid-template-columns:1fr}}@media(max-width:560px){.customer-search-panel{grid-template-columns:1fr}.customer-card{grid-template-columns:auto 1fr}.customer-card__value{grid-column:1/-1;text-align:right;padding-top:8px;border-top:1px solid rgba(255,255,255,.07)}.customer-hero{align-items:flex-start;flex-wrap:wrap}.customer-hero__body{min-width:calc(100% - 100px)}.customer-stats-grid,.customer-mini-grid{grid-template-columns:1fr 1fr}.customer-table a{grid-template-columns:1fr 1fr}.customer-table small{grid-column:1/-1}}

/* ===== Customer 360 advanced ===== */
.customer-quick-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;max-width:390px}.tier-chip{border-color:rgba(255,209,102,.48);background:rgba(255,209,102,.13)}.customer-journey{margin-top:18px}.customer-timeline{position:relative;display:grid;gap:0;padding-inline-start:8px}.customer-timeline::before{content:"";position:absolute;right:18px;top:18px;bottom:18px;width:2px;background:linear-gradient(var(--gold,#ffd166),rgba(255,255,255,.08))}.customer-timeline__item{position:relative;display:grid;grid-template-columns:38px 1fr;gap:12px;padding:12px;color:inherit;text-decoration:none;border-radius:15px}.customer-timeline__item:hover{background:rgba(255,255,255,.04)}.customer-timeline__dot{width:14px;height:14px;border-radius:50%;background:var(--gold,#ffd166);box-shadow:0 0 0 5px rgba(255,209,102,.1);align-self:start;margin-top:4px;z-index:1}.customer-timeline__item strong{color:var(--gold,#ffd166)}.customer-timeline__item p{margin:4px 0;color:var(--muted)}.customer-timeline__item small{color:var(--muted)}.wishlist-alert-state{display:grid;gap:5px;margin-top:10px;padding-top:9px;border-top:1px solid rgba(255,255,255,.08)}.wishlist-alert-state span{font-size:.74rem;color:var(--muted)}.customer-note-form{margin-bottom:16px}.customer-notes-history{display:grid;gap:10px}.customer-notes-history article{border:1px solid rgba(255,255,255,.09);border-radius:17px;background:rgba(0,0,0,.14);padding:14px}.customer-notes-history header{display:flex;align-items:center;justify-content:space-between;gap:10px}.customer-notes-history time{font-size:.72rem;color:var(--muted)}.customer-notes-history p{margin:10px 0 0;line-height:1.8;white-space:pre-wrap}.customer-dialog{width:min(560px,calc(100% - 28px));padding:0;border:0;background:transparent;color:inherit}.customer-dialog::backdrop{background:rgba(0,0,0,.7);backdrop-filter:blur(4px)}.customer-dialog .panel{display:grid;gap:13px;margin:0}.customer-dialog__head{display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-dialog__head h3{margin:0}.customer-dialog .field{display:grid;gap:7px}.customer-dialog .input{width:100%}@media(max-width:700px){.customer-quick-actions{max-width:none;width:100%;justify-content:flex-start}.customer-quick-actions .btn{flex:1 1 auto}.customer-timeline::before{right:17px}}
/* ===== NTF Support Center ===== */
.support-shell{padding-block:28px}.support-ticket-list{display:grid;gap:12px}.support-ticket-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:18px;background:rgba(0,0,0,.16);color:inherit;text-decoration:none}.support-ticket-card strong,.support-ticket-card span,.support-ticket-card small{display:block}.support-ticket-card span,.support-ticket-card small{color:var(--muted);margin-top:4px}.support-ticket-card b,.support-status{padding:7px 10px;border-radius:999px;border:1px solid rgba(242,193,78,.28);color:var(--gold);background:rgba(242,193,78,.08);white-space:nowrap}.support-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.support-tabs button{border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.18);color:var(--text);padding:10px 14px;border-radius:999px;cursor:pointer}.support-tabs button.is-active{border-color:rgba(242,193,78,.45);color:var(--gold);background:rgba(242,193,78,.1)}.support-chat{display:flex;flex-direction:column;gap:10px;max-height:62vh;overflow:auto;padding:12px;margin:14px 0;border:1px solid rgba(255,255,255,.08);border-radius:18px;background:rgba(0,0,0,.12)}.support-message{max-width:78%;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}.support-message--customer{align-self:flex-start}.support-message--admin{align-self:flex-end;border-color:rgba(242,193,78,.24);background:rgba(242,193,78,.08)}.support-message--system{align-self:center;max-width:92%;text-align:center;color:var(--muted);background:rgba(255,255,255,.035)}.support-message p{margin:6px 0;white-space:pre-wrap}.support-message time{font-size:.72rem;color:var(--muted)}.support-reply{display:grid;grid-template-columns:1fr auto;gap:10px}.support-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}@media(max-width:620px){.support-ticket-card{align-items:flex-start;flex-direction:column}.support-message{max-width:92%}.support-reply{grid-template-columns:1fr}}


/* ===== Support links and related orders ===== */
.support-order-card{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:14px;padding:14px 16px;border:1px solid rgba(255,209,102,.22);border-radius:18px;background:rgba(255,255,255,.045);color:inherit;text-decoration:none}.support-order-card div{display:grid;gap:4px}.support-order-card span,.support-order-card small{color:var(--muted)}.support-order-card b{color:var(--gold);white-space:nowrap}.support-ticket-card em{display:block;margin-top:5px;color:var(--gold);font-style:normal;font-size:.76rem}.my-order-card-wrap{display:grid;gap:8px}.my-order-support-btn{justify-self:end;margin-inline-end:10px;margin-bottom:8px}.customer-order-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.linked-support-list{display:grid;gap:8px}.linked-support-list a{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid rgba(255,255,255,.1);border-radius:14px;background:rgba(255,255,255,.035);color:inherit;text-decoration:none}.linked-support-list a strong{color:var(--gold)}.linked-support-list a small{color:var(--muted)}.support-count-pill{display:inline-grid;place-items:center;min-width:28px;height:28px;border-radius:999px;background:rgba(255,209,102,.12);border:1px solid rgba(255,209,102,.25);color:var(--gold);font-weight:900}@media(max-width:600px){.support-order-card{align-items:flex-start;flex-direction:column}.my-order-support-btn{justify-self:stretch;margin-inline:0}.linked-support-list a{grid-template-columns:1fr}.customer-order-actions>*{flex:1}}

/* ===== Support conversation refinements ===== */
.support-chat-loading{
  min-height:180px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  color:var(--muted);
  font-weight:800;
}
.support-chat-spinner,.support-btn-spinner{
  display:inline-block;
  width:25px;
  height:25px;
  border-radius:50%;
  border:2px solid rgba(242,193,78,.2);
  border-top-color:rgba(242,193,78,.95);
  animation:supportSpin .75s linear infinite;
  flex:0 0 auto;
}
.support-btn-spinner{width:16px;height:16px;border-width:2px}
@keyframes supportSpin{to{transform:rotate(360deg)}}
.support-message.is-pending{opacity:.68}
.support-message.is-failed{border-color:rgba(255,95,95,.45);background:rgba(255,95,95,.08)}
.support-system-event{
  align-self:center;
  max-width:92%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:2px 6px;
  color:rgba(242,193,78,.68);
  font-size:.73rem;
  font-weight:750;
  line-height:1.6;
  text-align:center;
  background:transparent;
  border:0;
}
.support-system-event time{
  color:rgba(242,193,78,.42);
  font-size:.65rem;
  white-space:nowrap;
}
.support-toast-stack{
  position:fixed;
  top:18px;
  inset-inline-end:18px;
  z-index:10050;
  display:grid;
  gap:9px;
  width:min(360px,calc(100vw - 28px));
  pointer-events:none;
}
.support-toast{
  transform:translateY(-10px);
  opacity:0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(7,26,47,.97);
  color:var(--text);
  box-shadow:0 16px 38px rgba(0,0,0,.38);
  font-weight:850;
  line-height:1.65;
  transition:opacity .2s ease,transform .2s ease;
  pointer-events:auto;
}
.support-toast.is-visible{transform:none;opacity:1}
.support-toast--success{border-color:rgba(92,211,153,.38)}
.support-toast--warning{border-color:rgba(242,193,78,.5);color:var(--gold)}
.support-toast--error{border-color:rgba(255,95,95,.42);color:#ffd0d0}
@media(max-width:620px){
  .support-toast-stack{top:10px;inset-inline:10px;width:auto}
  .support-system-event{font-size:.68rem;flex-wrap:wrap}
}

/* ===== Shipping timeline alignment refinement ===== */
.shipping-timeline-admin,
.shipping-timeline-customer {
  align-items: flex-start;
  gap: 6px;
}

.shipping-step,
.shipping-customer-step {
  flex: 0 0 104px;
  min-width: 104px;
  grid-template-rows: 34px 2.7em auto;
  align-items: start;
  justify-items: center;
  gap: 5px;
  line-height: 1.35;
}

.shipping-step > span:not(.shipping-step__dot),
.shipping-customer-step > strong {
  width: 100%;
  min-height: 2.7em;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  font-size: .69rem;
  font-weight: 800;
  line-height: 1.35;
}

.shipping-customer-step small {
  min-height: 1.15em;
  font-size: .61rem;
  line-height: 1.2;
}

.shipping-step__line,
.shipping-timeline-customer > i {
  flex: 1 0 26px;
  min-width: 26px;
  margin-top: 16px;
}

@media (max-width: 680px) {
  .shipping-step,
  .shipping-customer-step {
    flex-basis: 82px;
    min-width: 82px;
    grid-template-rows: 30px 2.7em auto;
  }

  .shipping-step__dot,
  .shipping-customer-step > span {
    width: 30px;
    height: 30px;
    font-size: .72rem;
  }

  .shipping-step > span:not(.shipping-step__dot),
  .shipping-customer-step > strong {
    font-size: .62rem;
  }

  .shipping-step__line,
  .shipping-timeline-customer > i {
    min-width: 20px;
    margin-top: 14px;
  }
}

/* ===== Checkout saved addresses ===== */
.checkout-address-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}.checkout-address-heading h3{margin:0 0 4px}.checkout-address-heading p{margin:0;font-size:.84rem}.saved-addresses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}.saved-addresses__loading,.saved-addresses__empty{grid-column:1/-1;padding:14px;border:1px dashed rgba(255,255,255,.12);border-radius:16px;color:var(--muted);text-align:center}.saved-address-card{position:relative;display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid rgba(255,255,255,.12);border-radius:18px;background:rgba(0,0,0,.16);cursor:pointer;transition:.18s}.saved-address-card:hover{border-color:rgba(242,193,78,.34);transform:translateY(-1px)}.saved-address-card.is-selected{border-color:rgba(242,193,78,.62);box-shadow:0 0 0 3px rgba(242,193,78,.08);background:rgba(242,193,78,.07)}.saved-address-card input{margin-top:4px;accent-color:#f2c14e}.saved-address-card__body{min-width:0}.saved-address-card__title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px}.saved-address-card__title strong{color:var(--gold2,#ffd77a)}.saved-address-card__default{font-size:.65rem;padding:3px 7px;border-radius:999px;background:rgba(242,193,78,.12);border:1px solid rgba(242,193,78,.24);color:var(--gold)}.saved-address-card p{margin:0;color:var(--muted);font-size:.8rem;line-height:1.65}.address-new-option,.address-save-option{display:flex;align-items:center;gap:9px;color:var(--text);font-weight:800}.address-new-option{padding:12px 13px;margin-bottom:12px;border:1px solid rgba(255,255,255,.12);border-radius:16px;background:rgba(0,0,0,.13);cursor:pointer}.address-new-option input,.address-save-option input{accent-color:#f2c14e}.address-form[hidden]{display:none!important}@media(max-width:680px){.saved-addresses{grid-template-columns:1fr}.saved-address-card{padding:12px}}

/* ===== Shipping carrier integrations ===== */
.shipping-settings-page{padding-bottom:64px}.shipping-carrier-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.shipping-carrier-tab{display:inline-flex;align-items:center;gap:9px;border:1px solid rgba(255,255,255,.12);background:rgba(0,0,0,.16);color:var(--text);border-radius:999px;padding:10px 15px;font:inherit;font-weight:900;cursor:pointer}.shipping-carrier-tab.is-active{border-color:rgba(255,209,102,.55);background:rgba(255,209,102,.1);color:var(--gold)}.carrier-config-dot{width:9px;height:9px;border-radius:50%;background:#ff6b6b}.carrier-config-dot.is-ready{background:#67d7a1;box-shadow:0 0 10px rgba(103,215,161,.45)}.shipping-credential-status{padding:7px 11px;border-radius:999px;font-size:.78rem;font-weight:900;border:1px solid rgba(255,255,255,.12)}.shipping-credential-status.is-ready{color:#8ce8bb;background:rgba(103,215,161,.08);border-color:rgba(103,215,161,.25)}.shipping-credential-status.is-missing{color:#ffb4b4;background:rgba(255,107,107,.08);border-color:rgba(255,107,107,.25)}.shipping-integration-box{margin-top:18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.09)}.shipping-provider-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}.shipping-provider-head strong,.shipping-provider-head small{display:block}.shipping-provider-head small{color:var(--muted);margin-top:4px}.shipping-integration-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.shipping-integration-fields .field span{display:block;color:var(--muted);font-size:.82rem;margin-bottom:6px}@media(max-width:650px){.shipping-integration-fields{grid-template-columns:1fr}.shipping-provider-head{align-items:flex-start;flex-direction:column}}

/* ===== Shipping label mode: API / manual ===== */
.shipping-integration-selector{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:12px 0 14px;
}
.shipping-integration-selector .field span{
  display:block;
  margin-bottom:6px;
  color:var(--muted);
  font-size:.82rem;
}
.shipping-integration-status{
  display:flex;
  align-items:flex-start;
  gap:7px;
  flex-wrap:wrap;
  margin:10px 0 14px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(0,0,0,.14);
  font-size:.8rem;
  line-height:1.65;
}
.shipping-integration-status strong{color:var(--gold2,#ffd77a)}
.shipping-integration-status span{color:var(--muted)}
.shipping-integration-status.is-waiting{border-color:rgba(242,193,78,.28)}
.shipping-integration-status.is-success{border-color:rgba(103,215,161,.3);background:rgba(103,215,161,.06)}
.shipping-integration-status.is-success strong{color:#8ce8bb}
.shipping-integration-status.is-danger{border-color:rgba(255,107,107,.32);background:rgba(255,107,107,.06)}
.shipping-integration-status.is-danger strong{color:#ffb4b4}
.shipping-integration-actions{margin-top:14px;align-items:center}
.shipping-integration-fields textarea{resize:vertical}
@media(max-width:650px){
  .shipping-integration-selector{grid-template-columns:1fr}
  .shipping-integration-actions .btn{width:100%}
}

/* ===== Clear shipping workflow stages ===== */
.shipping-stage-note{
  margin:10px 0 14px;
  padding:11px 13px;
  border-radius:14px;
  background:rgba(125,211,252,.055);
  border:1px solid rgba(125,211,252,.16);
  color:var(--muted);
  font-size:.8rem;
  line-height:1.7;
}
.shipping-label-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.shipping-label-summary>div{
  min-width:0;
  padding:12px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.09);
  background:rgba(0,0,0,.14);
}
.shipping-label-summary span{
  display:block;
  color:var(--muted);
  font-size:.72rem;
  margin-bottom:5px;
}
.shipping-label-summary strong{
  display:block;
  color:var(--gold2,#ffd77a);
  font-size:.84rem;
  overflow-wrap:anywhere;
}
.shipping-label-summary--compact{grid-template-columns:repeat(2,minmax(0,1fr))}
.shipping-followup-box{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.09);
}
.shipping-api-progress{
  min-height:110px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  color:var(--muted);
  font-weight:800;
  text-align:center;
}
.shipping-integration-selector select:disabled{
  opacity:.72;
  cursor:not-allowed;
}
@media(max-width:760px){
  .shipping-label-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:520px){
  .shipping-label-summary,.shipping-label-summary--compact{grid-template-columns:1fr}
}

/* ===== Abandoned carts center ===== */
.abandoned-toolbar{display:grid;grid-template-columns:1fr minmax(220px,.45fr);gap:12px;margin-bottom:16px}.abandoned-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.abandoned-card{border:1px solid var(--border);border-radius:20px;background:rgba(0,0,0,.16);padding:15px;display:grid;gap:12px}.abandoned-card header,.abandoned-card footer{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.abandoned-card header small{display:block;color:var(--muted);margin-top:4px}.abandoned-card__metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.abandoned-card__metrics span{padding:9px;border-radius:12px;background:rgba(255,255,255,.035);color:var(--muted);font-size:.78rem}.abandoned-card__metrics b{display:block;color:var(--gold2);margin-top:4px}.abandoned-products{display:flex;gap:6px;flex-wrap:wrap}.abandoned-products span{font-size:.72rem;padding:5px 8px;border-radius:999px;border:1px solid var(--border);color:var(--muted)}.status-pill{padding:5px 9px;border-radius:999px;font-size:.72rem;font-weight:900;border:1px solid var(--border)}.status-abandoned{color:#ffd166}.status-reminded{color:#7dd3fc}.status-recovered{color:#7fe0a3}@media(max-width:760px){.abandoned-toolbar,.abandoned-grid{grid-template-columns:1fr}.abandoned-card__metrics{grid-template-columns:1fr 1fr}}


/* ===== Abandoned cart reminder composer ===== */
.abandoned-reminder-dialog{width:min(680px,calc(100vw - 28px));max-height:min(88vh,820px);overflow:auto}
.abandoned-reminder-customer{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 14px;border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.09);margin-bottom:14px}
.abandoned-reminder-customer span{color:var(--muted);font-size:.85rem}
.abandoned-reminder-options{display:grid;gap:9px}
.abandoned-reminder-option{display:flex;gap:11px;align-items:flex-start;padding:13px;border:1px solid rgba(255,255,255,.1);border-radius:16px;background:rgba(0,0,0,.14);cursor:pointer}
.abandoned-reminder-option:has(input:checked){border-color:rgba(242,193,78,.48);box-shadow:0 0 0 3px rgba(242,193,78,.07)}
.abandoned-reminder-option input{margin-top:4px;accent-color:var(--gold,#f2c14e)}
.abandoned-reminder-option strong,.abandoned-reminder-option small{display:block}.abandoned-reminder-option small{color:var(--muted);margin-top:4px;line-height:1.55}
.abandoned-reminder-fields{margin-top:13px;padding:14px;border-radius:16px;background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.08)}
.abandoned-reminder-fields label{display:grid;gap:7px;font-weight:800}.abandoned-reminder-preview{margin-top:13px;padding:13px 14px;border-right:3px solid rgba(242,193,78,.7);background:rgba(242,193,78,.055);border-radius:12px}.abandoned-reminder-preview p{margin:5px 0 0;color:var(--muted);line-height:1.7}.abandoned-last-coupon{display:block;color:rgba(242,193,78,.9)}
@media(max-width:620px){.abandoned-reminder-customer{align-items:flex-start;flex-direction:column}.abandoned-reminder-fields .grid.two{grid-template-columns:1fr}}

/* ===== Shared store modal ===== */
.store-modal[hidden]{display:none!important}
.store-modal{position:fixed;inset:0;z-index:10050;display:grid;place-items:center;padding:18px;direction:rtl}
.store-modal__backdrop{position:absolute;inset:0;background:rgba(0,0,0,.68);backdrop-filter:blur(7px)}
.store-modal__dialog{position:relative;z-index:1;border:1px solid rgba(255,255,255,.12);border-radius:22px;background:linear-gradient(180deg,rgba(10,29,53,.99),rgba(5,18,35,.99));box-shadow:0 28px 80px rgba(0,0,0,.55);padding:18px;color:var(--text,#e9f1ff)}
.store-modal__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:14px}.store-modal__head h2{margin:3px 0 0;color:var(--gold,#f2c14e)}
.store-modal__actions{display:flex;justify-content:flex-end;gap:9px;flex-wrap:wrap;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.08)}
body.modal-open{overflow:hidden}
