/* ============================================================================
   WT_Waddah_Talal — أنماط المتجر
   لوحة: كحلي داكن + ذهبي شامبانيا + عاجي
   ========================================================================== */

:root {
  --navy-950: #060b14;
  --navy-900: #0a1220;
  --navy-800: #101b2d;
  --navy-700: #16243a;
  --ivory: #f7f2e7;
  --ivory-2: #efe6d4;
  --paper: #fffdf8;
  --champagne: #c8a86b;
  --champagne-light: #e6d3a8;
  --champagne-dark: #a8874a;
  --ink: #16202e;
  --muted: #6c7787;
  --muted-2: #8b94a1;
  --line: rgba(22, 32, 46, 0.12);
  --line-strong: rgba(22, 32, 46, 0.2);
  --gold-line: rgba(200, 168, 107, 0.35);
  --green: #1f7a5c;
  --green-dark: #155f47;
  --danger: #a33a3a;
  --radius-lg: 26px;
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-lg: 0 30px 80px -40px rgba(6, 11, 20, 0.55);
  --shadow: 0 18px 50px -30px rgba(6, 11, 20, 0.35);
  --font: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100svh;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 92% -8%, rgba(200, 168, 107, 0.12), transparent 62%),
    radial-gradient(900px 520px at 0% 8%, rgba(16, 27, 45, 0.05), transparent 58%),
    var(--ivory);
  overflow-x: hidden;
}

body.has-price-note {
  padding-bottom: 44px;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

::selection {
  background: rgba(200, 168, 107, 0.35);
  color: var(--navy-950);
}

:focus-visible {
  outline: 2px solid var(--champagne);
  outline-offset: 3px;
}

.icon,
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.icon svg,
[data-icon] svg {
  width: 1.15em;
  height: 1.15em;
  display: block;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 28px);
}

.skip-link {
  position: fixed;
  top: -80px;
  inset-inline-start: 16px;
  z-index: 300;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--ivory);
  font-size: 12px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ============================== الأزرار ============================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--ivory);
}

.btn-primary:hover {
  background: var(--navy-800);
}

.btn-gold {
  background: var(--champagne);
  border-color: var(--champagne);
  color: var(--navy-950);
}

.btn-gold:hover {
  background: var(--champagne-light);
}

.btn-outline {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-outline:hover {
  border-color: var(--champagne-dark);
  background: rgba(200, 168, 107, 0.08);
}

.btn-wa {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-wa:hover {
  background: var(--green-dark);
}

.btn-block {
  width: 100%;
  border-radius: 14px;
}

.btn-sm {
  min-height: 44px;
  padding: 0 16px;
  font-size: 10.5px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================== الهيكل ============================== */

.skeleton {
  background: linear-gradient(
    100deg,
    rgba(22, 32, 46, 0.07) 20%,
    rgba(22, 32, 46, 0.13) 38%,
    rgba(22, 32, 46, 0.07) 56%
  );
  background-size: 220% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: 14px;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

.boot-hero {
  aspect-ratio: 16 / 9;
  min-height: 230px;
  margin-top: 18px;
  border-radius: var(--radius-lg);
}

.boot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.boot-card {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.boot-img {
  aspect-ratio: 4 / 5;
  border-radius: 10px;
}

.boot-line {
  height: 10px;
  margin-top: 10px;
  border-radius: 6px;
}

.boot-line.short {
  width: 55%;
}

/* ============================== الشريط التجريبي ============================== */

.demo-banner {
  padding: 7px 14px;
  border-bottom: 1px solid rgba(91, 71, 28, 0.15);
  background: #f6e2a8;
  color: #5b471c;
  font-size: 10px;
  line-height: 1.8;
  text-align: center;
}

.demo-banner strong {
  font-weight: 700;
}

.demo-banner code {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(91, 71, 28, 0.1);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 9.5px;
  direction: ltr;
}

.demo-banner[hidden] {
  display: none;
}

/* ============================== الترويسة ============================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(10, 18, 32, 0.93);
  border-bottom: 1px solid rgba(200, 168, 107, 0.16);
  box-shadow: 0 10px 30px -24px #000;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 44px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(200, 168, 107, 0.35);
  border-radius: 50%;
  background: #000;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--ivory);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-en {
  color: var(--champagne);
  font-size: 8.5px;
  line-height: 1.5;
  letter-spacing: 0.16em;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(247, 242, 231, 0.64);
  font-size: 11.5px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nav-link:hover {
  background: rgba(247, 242, 231, 0.06);
  color: var(--ivory);
}

.nav-link.active {
  background: rgba(200, 168, 107, 0.1);
  color: var(--champagne-light);
}

.nav-icon {
  font-size: 16px;
}

.count-badge {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--champagne);
  color: var(--navy-950);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.count-badge[hidden] {
  display: none;
}

/* ============================== البنر ============================== */

.hero {
  position: relative;
  margin-top: 18px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.hero-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 260px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.hero-slide.active {
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 11, 20, 0.94) 0%,
    rgba(6, 11, 20, 0.5) 42%,
    rgba(6, 11, 20, 0.05) 78%
  );
}

.hero-copy {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  max-width: 760px;
  padding: clamp(18px, 4vw, 36px);
  color: var(--ivory);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--champagne);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-title {
  margin: 6px 0 4px;
  color: #fff;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-meta {
  color: rgba(247, 242, 231, 0.65);
  font-size: 10.5px;
}

.hero-cta {
  margin-top: 14px;
}

.hero-dots {
  position: absolute;
  top: 10px;
  inset-inline-start: 16px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 44px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(6, 11, 20, 0.4);
  backdrop-filter: blur(8px);
}

.hero-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}

.hero-dot::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(247, 242, 231, 0.4);
  transition:
    width 0.25s ease,
    background 0.25s ease;
}

.hero-dot.active {
  width: 38px;
}

.hero-dot.active::before {
  width: 22px;
  background: var(--champagne);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 242, 231, 0.22);
  border-radius: 50%;
  background: rgba(6, 11, 20, 0.35);
  color: var(--ivory);
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.hero-arrow:hover {
  background: rgba(6, 11, 20, 0.6);
}

.hero-arrow.prev {
  inset-inline-start: 12px;
}

.hero-arrow.next {
  inset-inline-end: 12px;
}

.hero-fallback {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 34px 22px;
  text-align: center;
  background:
    radial-gradient(500px 300px at 50% 20%, rgba(200, 168, 107, 0.16), transparent 70%),
    linear-gradient(135deg, var(--navy-700), var(--navy-950));
}

.hero-fallback-inner {
  max-width: 560px;
}

.hero-fallback .hero-title {
  margin-top: 8px;
}

.hero-fallback p {
  color: rgba(247, 242, 231, 0.6);
  font-size: 11.5px;
  line-height: 1.9;
  margin-top: 8px;
}

/* ============================== المقدمة والبحث ============================== */

.home-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: end;
  gap: clamp(18px, 4vw, 48px);
  padding: clamp(28px, 5vw, 48px) 0 8px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.home-intro h1 {
  margin: 8px 0 10px;
  color: var(--navy-900);
  font-size: clamp(26px, 4.4vw, 44px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.95;
}

.intro-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.intro-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.intro-badges span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--champagne);
}

.intro-tools {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 6px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 10px 30px -26px rgba(6, 11, 20, 0.5);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--champagne);
  box-shadow: 0 0 0 4px rgba(200, 168, 107, 0.14);
}

.search-icon {
  color: var(--champagne-dark);
  font-size: 18px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  height: 50px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
}

.search-box input::placeholder {
  color: var(--muted-2);
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(22, 32, 46, 0.06);
  color: var(--muted);
}

.search-clear:hover {
  background: rgba(22, 32, 46, 0.12);
  color: var(--ink);
}

.search-clear[hidden] {
  display: none;
}

.search-hint {
  padding-inline-start: 6px;
  color: var(--muted-2);
  font-size: 9.5px;
  line-height: 1.8;
}

/* ============================== الكتالوج ============================== */

.catalog {
  padding-top: 18px;
}

.catalog-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.catalog-head h2 {
  margin-top: 3px;
  color: var(--navy-900);
  font-size: clamp(19px, 3vw, 26px);
  font-weight: 700;
}

.result-count {
  color: var(--muted);
  font-size: 10.5px;
  white-space: nowrap;
}

.groups {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 14px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.groups::-webkit-scrollbar {
  display: none;
}

.group-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  scroll-snap-align: start;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.group-chip:hover {
  border-color: var(--champagne-dark);
  color: var(--ink);
}

.group-chip.active {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--champagne-light);
  box-shadow: 0 8px 20px -14px rgba(6, 11, 20, 0.8);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 8px 24px -22px rgba(6, 11, 20, 0.45);
  content-visibility: auto;
  contain-intrinsic-size: 320px 360px;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.product-card:hover {
  border-color: rgba(200, 168, 107, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #e9dfcc, #d8cbb2);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.35s ease;
}

.product-card:hover .card-media img {
  transform: scale(1.04);
}

.product-card.is-out .card-media img {
  filter: brightness(0.58) saturate(0.75);
}

.badge-available {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: #25634f;
  font-size: 8.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.badge-available::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2f8f6b;
}

.out-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(6, 11, 20, 0.22);
  text-align: center;
  backdrop-filter: blur(1.5px);
}

.out-pill {
  display: inline-block;
  padding: 7px 14px;
  border: 1px solid rgba(200, 168, 107, 0.5);
  border-radius: 999px;
  background: rgba(6, 11, 20, 0.88);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  color: var(--ivory);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 11px 11px 12px;
}

.card-name {
  display: -webkit-box;
  min-height: 38px;
  overflow: hidden;
  color: var(--navy-900);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  color: #5c6674;
  font-size: 9px;
}

.card-group {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-unit {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(22, 32, 46, 0.05);
  color: #4f5a69;
  font-weight: 600;
}

.card-code {
  margin-top: 7px;
  color: #5c6674;
  font-size: 8.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.sentinel {
  height: 1px;
}

.state-card {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.55);
  text-align: center;
}

.state-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(200, 168, 107, 0.12);
  color: var(--champagne-dark);
  font-size: 22px;
}

.state-card h3 {
  color: var(--navy-900);
  font-size: 16px;
  font-weight: 700;
}

.state-card p {
  max-width: 42ch;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}

.data-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 9px 12px;
  border: 1px solid rgba(200, 168, 107, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(200, 168, 107, 0.1);
  color: #6b5528;
  font-size: 10px;
  line-height: 1.7;
}

/* ============================== شريط السعر ============================== */

.price-note {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(200, 168, 107, 0.25);
  background: rgba(10, 18, 32, 0.96);
  color: var(--champagne-light);
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  backdrop-filter: blur(14px);
}

.price-note[hidden] {
  display: none;
}

.price-note-icon {
  color: var(--champagne);
  font-size: 14px;
}

/* ============================== صفحة الصنف ============================== */

.product-view {
  padding-top: 18px;
  padding-bottom: 40px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted-2);
  font-size: 10.5px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--muted);
  font-weight: 600;
}

.back-link:hover {
  color: var(--champagne-dark);
}

.product-layout {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: start;
  gap: clamp(22px, 4vw, 44px);
}

.gallery {
  position: sticky;
  top: 88px;
  min-width: 0;
}

.gallery-main {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #e9dfcc, #d8cbb2);
  cursor: zoom-in;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease;
}

.gallery-main.zoomed {
  cursor: zoom-out;
}

.gallery-main.zoomed img {
  transform: scale(1.8);
}

.gallery-main .out-overlay {
  background: rgba(6, 11, 20, 0.3);
}

.gallery-badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  z-index: 3;
}

.gallery-zoom {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 242, 231, 0.25);
  border-radius: 50%;
  background: rgba(6, 11, 20, 0.4);
  color: var(--ivory);
  backdrop-filter: blur(6px);
}

.gallery-arrows {
  position: absolute;
  inset-inline: 10px;
  top: 50%;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}

.gallery-arrow {
  pointer-events: auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(247, 242, 231, 0.25);
  border-radius: 50%;
  background: rgba(6, 11, 20, 0.4);
  color: var(--ivory);
  backdrop-filter: blur(6px);
}

.gallery-arrow[hidden],
.gallery-arrows[hidden] {
  display: none;
}

.gallery-count {
  position: absolute;
  inset-inline-end: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(6, 11, 20, 0.55);
  color: var(--ivory);
  font-size: 9px;
  backdrop-filter: blur(6px);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.gallery-thumb {
  aspect-ratio: 1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #e3d8c4;
  opacity: 0.72;
  transition:
    border-color 0.2s ease,
    opacity 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: var(--champagne);
  opacity: 1;
}

.gallery-thumb[hidden],
.gallery-thumbs[hidden] {
  display: none;
}

.product-info {
  min-width: 0;
  padding-top: 4px;
}

.product-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.group-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(200, 168, 107, 0.08);
  color: var(--champagne-dark);
  font-size: 9.5px;
  font-weight: 700;
}

.product-code {
  color: var(--muted-2);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.product-title {
  margin: 10px 0 6px;
  color: var(--navy-900);
  font-size: clamp(23px, 3.6vw, 36px);
  font-weight: 700;
  line-height: 1.3;
}

.product-sub {
  color: var(--muted);
  font-size: 11.5px;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
}

.icon-btn:hover {
  border-color: var(--champagne);
  color: var(--ink);
}

.divider {
  height: 1px;
  margin: 20px 0;
  background: linear-gradient(to left, transparent, var(--gold-line), transparent);
}

.opt {
  margin-bottom: 20px;
}

.opt-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.opt-title {
  color: var(--navy-900);
  font-size: 12.5px;
  font-weight: 700;
}

.opt-hint {
  color: var(--muted-2);
  font-size: 9.5px;
}

.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.color-swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.color-swatch:hover {
  border-color: var(--champagne-dark);
  transform: translateY(-1px);
}

.color-swatch[aria-pressed="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  box-shadow: 0 0 0 3px rgba(200, 168, 107, 0.2);
  color: var(--champagne-light);
}

.color-swatch[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid var(--champagne);
  border-radius: 50%;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  outline: none;
  background: var(--paper);
  color: var(--ink);
  font-size: 12px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.text-input:focus {
  border-color: var(--champagne);
  box-shadow: 0 0 0 4px rgba(200, 168, 107, 0.12);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice {
  flex: 1 1 130px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.choice[aria-pressed="true"] {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--champagne-light);
}

.qty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--paper);
}

.stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.stepper button:hover {
  background: rgba(22, 32, 46, 0.05);
}

.stepper input {
  width: 64px;
  height: 46px;
  border: 0;
  border-inline: 1px solid var(--line);
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  -moz-appearance: textfield;
}

.stepper input::-webkit-outer-spin-button,
.stepper input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.unit-pill {
  padding: 5px 12px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: rgba(200, 168, 107, 0.1);
  color: var(--champagne-dark);
  font-size: 10px;
  font-weight: 700;
}

.missing-hint {
  min-height: 20px;
  margin: 2px 0 10px;
  color: #8a6a2a;
  font-size: 10.5px;
}

.missing-hint.ok {
  color: #2f7a5c;
}

.order-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.order-actions .btn {
  min-height: 52px;
  border-radius: 14px;
  font-size: 13px;
}

.order-note {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 9.5px;
  text-align: center;
}

.stock-out-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(200, 168, 107, 0.35);
  border-radius: var(--radius);
  background: rgba(200, 168, 107, 0.07);
  text-align: center;
}

.stock-out-box .out-pill {
  margin-bottom: 10px;
  background: rgba(6, 11, 20, 0.9);
}

.stock-out-box p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}

.info-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.info-strip span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(22, 32, 46, 0.04);
  color: var(--muted);
  font-size: 9.5px;
}

/* ============================== قائمة الطلب ============================== */

.list-view {
  padding-top: 26px;
  padding-bottom: 40px;
}

.page-head h1 {
  margin: 6px 0 4px;
  color: var(--navy-900);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  line-height: 1.3;
}

.page-head p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.list-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: start;
  gap: 24px;
  margin-top: 22px;
}

.list-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.list-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.list-thumb {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 12px;
  background: #e3d8c4;
}

.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.list-body {
  min-width: 0;
}

.list-name {
  overflow: hidden;
  color: var(--navy-900);
  font-size: 12.5px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.8;
}

.list-code {
  color: var(--muted-2);
  font-size: 8.5px;
  direction: ltr;
  text-align: end;
}

.list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.list-qty {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.list-qty button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
}

.list-qty button:hover {
  background: rgba(22, 32, 46, 0.05);
}

.list-qty span {
  min-width: 28px;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.list-remove {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--danger);
}

.list-remove:hover {
  background: rgba(163, 58, 58, 0.08);
}

.summary-card {
  position: sticky;
  top: 88px;
  padding: 18px;
  border: 1px solid rgba(200, 168, 107, 0.25);
  border-radius: 18px;
  background: var(--navy-900);
  box-shadow: var(--shadow);
  color: var(--ivory);
}

.summary-card h2 {
  margin-bottom: 4px;
  color: var(--ivory);
  font-size: 15px;
}

.summary-card p {
  color: rgba(247, 242, 231, 0.55);
  font-size: 10.5px;
  line-height: 1.8;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid rgba(247, 242, 231, 0.1);
  color: rgba(247, 242, 231, 0.7);
  font-size: 11px;
}

.summary-row strong {
  color: var(--champagne-light);
}

.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.summary-actions .btn {
  min-height: 48px;
  border-radius: 12px;
}

.chunk-note {
  margin: 10px 0 0;
  color: rgba(247, 242, 231, 0.5);
  font-size: 9.5px;
  line-height: 1.8;
}

.clear-list {
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: rgba(247, 242, 231, 0.45);
  font-size: 9.5px;
  text-decoration: underline;
}

.empty-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 50px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.55);
  text-align: center;
}

.empty-list h2 {
  color: var(--navy-900);
  font-size: 18px;
}

.empty-list p {
  max-width: 38ch;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.9;
}

/* ============================== التذييل ============================== */

.site-footer {
  margin-top: 40px;
  padding: 40px 0 calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(200, 168, 107, 0.2);
  background: var(--navy-950);
  color: var(--ivory);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.2fr 0.8fr;
  align-items: start;
  gap: 22px;
}

.footer-mark {
  display: block;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  overflow: hidden;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: #000;
}

.footer-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.footer-name {
  color: var(--ivory);
  font-size: 15px;
  font-weight: 700;
}

.footer-tag {
  margin-top: 4px;
  color: rgba(247, 242, 231, 0.5);
  font-size: 10.5px;
}

.footer-heading {
  margin-bottom: 8px;
  color: var(--champagne);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.map-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(200, 168, 107, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(247, 242, 231, 0.08), rgba(247, 242, 231, 0.03));
}

.map-card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(200, 168, 107, 0.16);
  color: var(--champagne);
  font-size: 18px;
}

.map-card p {
  color: rgba(247, 242, 231, 0.55);
  font-size: 10px;
  line-height: 1.8;
}

.map-card .btn {
  align-self: flex-start;
}

.socials {
  display: flex;
  gap: 8px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(200, 168, 107, 0.3);
  border-radius: 50%;
  color: var(--champagne-light);
  font-size: 18px;
  transition:
    background 0.2s ease,
    border-color 0.2s ease;
}

.socials a:hover {
  border-color: var(--champagne);
  background: rgba(200, 168, 107, 0.12);
}

.socials a[hidden] {
  display: none;
}

.footer-note {
  margin-top: 10px;
  color: rgba(247, 242, 231, 0.72);
  font-size: 9.5px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 14px;
  border-top: 1px solid rgba(247, 242, 231, 0.08);
  color: rgba(247, 242, 231, 0.72);
  font-size: 9.5px;
}

.footer-en {
  color: rgba(230, 211, 168, 0.82);
  font-size: 8.5px;
  letter-spacing: 0.12em;
}

/* ============================== الأزرار العائمة ============================== */

.fab {
  position: fixed;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  box-shadow: 0 14px 30px -12px rgba(6, 11, 20, 0.55);
  font-size: 23px;
  transition:
    transform 0.2s ease,
    bottom 0.2s ease;
}

.fab:hover {
  transform: translateY(-2px);
}

.fab-wa {
  inset-inline-end: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  background: var(--green);
  color: #fff;
}

.fab-list {
  inset-inline-start: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  border: 1px solid rgba(200, 168, 107, 0.35);
  background: var(--navy-900);
  color: var(--champagne-light);
}

body.has-price-note .fab-wa,
body.has-price-note .fab-list {
  bottom: calc(62px + env(safe-area-inset-bottom));
}

body[data-route="product"] .fab-wa,
body[data-route="list"] .fab-wa {
  display: none;
}

.fab-count {
  position: absolute;
  top: -4px;
  inset-inline-end: -4px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--ivory);
  border-radius: 999px;
  background: var(--champagne);
  color: var(--navy-950);
  font-size: 9px;
  font-weight: 700;
}

.fab[hidden],
.fab-count[hidden] {
  display: none;
}

/* ============================== التنبيهات ============================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 120;
  max-width: min(92vw, 420px);
  padding: 10px 16px;
  border: 1px solid rgba(200, 168, 107, 0.4);
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  box-shadow: var(--shadow);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[hidden] {
  display: none;
}

body.has-price-note .toast {
  bottom: calc(70px + env(safe-area-inset-bottom));
}

.update-toast {
  position: fixed;
  inset-inline: 16px;
  bottom: calc(70px + env(safe-area-inset-bottom));
  z-index: 125;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  max-width: 460px;
  margin-inline: auto;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--champagne-light);
  box-shadow: var(--shadow);
  color: var(--navy-900);
  font-size: 10.5px;
  font-weight: 600;
}

.update-toast[hidden] {
  display: none;
}

.update-toast button {
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--navy-900);
  color: var(--ivory);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.noscript-note {
  position: fixed;
  inset-inline: 16px;
  bottom: 16px;
  z-index: 200;
  padding: 12px 16px;
  border: 1px solid rgba(200, 168, 107, 0.4);
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: var(--ivory);
  font-size: 12px;
  text-align: center;
}

/* ============================== الاستجابة ============================== */

@media (min-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .boot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-stage {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 900px) {
  .home-intro {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }

  .gallery {
    position: static;
  }

  .list-layout {
    grid-template-columns: 1fr;
  }

  .summary-card {
    position: static;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 62px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    max-width: 120px;
    font-size: 11.5px;
  }

  .brand-en {
    font-size: 7.5px;
  }

  .nav-link {
    padding: 0 8px;
    font-size: 10.5px;
  }

  .hero-stage {
    aspect-ratio: 4 / 3;
    min-height: 250px;
  }

  .hero-title {
    font-size: clamp(20px, 6vw, 28px);
  }

  .hero-arrow {
    display: none;
  }

  .demo-banner {
    font-size: 9px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-contact {
    grid-column: auto;
  }

  .product-title {
    font-size: 24px;
  }

  .list-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .list-thumb {
    width: 64px;
    height: 64px;
  }

  .list-side {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 360px) {
  .brand-text {
    display: none;
  }

  .nav-link[data-nav="home"] .nav-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
