/* ============================================================
   PC OEB — Storefront
   Calm retail system: neutral surfaces, one accent, hairline
   borders. No decorative gradients or glows.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Light theme (default) */
  --bg: #f7f6f3;
  --bg-soft: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1efea;
  --surface-3: #e6e3dc;
  --border: #e4e0d8;
  --border-strong: #cbc5b9;

  --text: #17181b;
  --text-soft: #3f434a;
  --muted: #6c7179;

  --primary: #1f4bd8;
  --primary-hover: #1a3fba;
  --on-primary: #ffffff;
  --accent: #1f4bd8;
  --accent-soft: rgba(31, 75, 216, 0.07);

  --success: #0f7b4f;
  --warning: #8a5200;
  --danger: #b42318;

  --image-tile: #f2f1ed;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --header-h: 64px;
  --container: 1180px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0e0f11;
  --bg-soft: #141518;
  --surface: #17181c;
  --surface-2: #1d1f24;
  --surface-3: #262932;
  --border: #26282e;
  --border-strong: #3b3f48;

  --text: #f2f3f5;
  --text-soft: #cfd2d8;
  --muted: #9aa0a9;

  --primary: #2f5fe0;
  --primary-hover: #4070ef;
  --on-primary: #ffffff;
  --accent: #8fb0ff;
  --accent-soft: rgba(143, 176, 255, 0.1);

  --success: #5ec98f;
  --warning: #e0a458;
  --danger: #f08a83;

  --image-tile: #efeeea;

  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }
[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

::selection { background: var(--primary); color: #fff; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: clamp(64px, 7vw, 96px) 0; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--text);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.skip-link:focus { top: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}

.gradient-text {
  background: none;
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

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

.section-head h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }

.section-head.centered {
  justify-content: center;
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-sub {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 54ch;
  margin-top: 8px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s var(--ease), border-color 0.15s var(--ease),
              color 0.15s var(--ease);
}

.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
}
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--text-soft);
}

.btn-link {
  min-height: 36px;
  padding: 6px 8px;
  color: var(--muted);
  font-weight: 500;
}
.btn-link:hover { color: var(--text); }

.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 0.84rem; }
.btn-lg { min-height: 46px; padding: 11px 20px; font-size: 0.95rem; }
.btn-block { width: 100%; }

.icon-btn,
.cart-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.icon-btn:hover,
.cart-btn:hover { background: var(--surface-2); color: var(--text); }

/* ---------- Announcement ---------- */
.announce {
  background: #17181b;
  color: #f4f4f2;
  padding: 8px 20px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.announce p { margin: 0; }

/* ---------- Closed banner ---------- */
.closed-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff4e5;
  border-bottom: 1px solid #f0d9b5;
  color: var(--warning);
  font-size: 0.8rem;
  text-align: center;
}
[data-theme="dark"] .closed-banner {
  background: #241c10;
  border-bottom-color: #3a2c17;
}
.closed-banner strong { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--border); }

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}
/* The storefront uses a typographic wordmark; the logo file stays as favicon. */
.brand-logo { display: none; }
.brand-name {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-name span { color: var(--accent); }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.15s var(--ease), background 0.15s var(--ease);
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 1px;
  height: 1.5px;
  background: var(--text);
}

.nav-cta {
  margin-left: 8px;
  background: transparent;
  color: var(--text-soft);
  border-color: transparent;
}
.nav-cta:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 2px; }

.cart-btn { position: relative; }

.cart-count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--bg);
}

.menu-btn {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-btn span {
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.18s var(--ease), opacity 0.18s var(--ease);
}
.site-header.nav-open .menu-btn span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.site-header.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
.site-header.nav-open .menu-btn span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Theme icon swap */
.icon-sun { display: none; }
[data-theme="light"] .icon-sun { display: block; }
[data-theme="light"] .icon-moon { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(44px, 5.5vw, 76px) 0 clamp(52px, 6vw, 88px);
  overflow: hidden;
}

.hero-aura { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 4.4vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 18px;
}

.lede {
  color: var(--muted);
  font-size: clamp(0.97rem, 1.1vw, 1.05rem);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.hero-stats div { min-width: 0; }
.hero-stats dt {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}
.hero-stats dd { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

.hero-media { min-width: 0; }

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.hero-frame > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.hero-chip { display: none; }

.hero-dots { display: flex; gap: 6px; margin-top: 22px; }
.hero-dots button {
  width: 18px;
  height: 3px;
  padding: 0;
  border-radius: 999px;
  background: var(--border-strong);
  transition: width 0.18s var(--ease), background 0.18s var(--ease);
}
.hero-dots button.is-active { width: 30px; background: var(--text); }

/* ---------- Feature strip ---------- */
.features {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 26px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.feature-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--text-soft);
}
.feature h3 { font-size: 0.87rem; font-weight: 600; letter-spacing: -0.01em; }
.feature p { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

/* ---------- Shop ---------- */
.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.sort-control select {
  appearance: none;
  min-height: 40px;
  padding: 8px 34px 8px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background-color: var(--bg-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236c7179' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.sort-control select:hover { border-color: var(--text-soft); }

.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.chip {
  min-height: 34px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 500;
  transition: background 0.15s var(--ease), color 0.15s var(--ease),
              border-color 0.15s var(--ease);
}
.chip:hover { background: var(--surface-2); color: var(--text); }
.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

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

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(252px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.product-card:hover { border-color: var(--border-strong); }
.product-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--image-tile);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
}

.product-tags {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #ffffff;
  color: #17181b;
  border: 1px solid rgba(23, 24, 27, 0.12);
}
.tag-featured { background: rgba(255, 255, 255, 0.94); color: #17181b; border-color: rgba(23, 24, 27, 0.2); }
.tag-sale { background: var(--primary); border-color: var(--primary); color: #fff; }
.tag-out { background: #17181b; border-color: #17181b; color: #fff; }

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 6px;
  padding: 14px 16px 16px;
}

.product-cat {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-name {
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: auto;
  padding-top: 8px;
}

.price {
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.old-price {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
}

.stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.stock::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.stock-in { color: var(--success); }
.stock-low { color: var(--warning); }
.stock-out { color: var(--danger); }

.product-actions { display: flex; gap: 6px; margin-top: 10px; }
.product-actions .btn { flex: 1; min-height: 38px; padding: 8px 10px; font-size: 0.82rem; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: 56px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--muted);
}
.empty-state h3 { font-size: 1.05rem; margin-bottom: 4px; }
.empty-state p { color: var(--muted); font-size: 0.88rem; margin-bottom: 18px; }

/* ---------- Categories ---------- */
.categories {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.category-grid:has(.category-card:only-child) {
  grid-template-columns: minmax(0, 480px);
  justify-content: center;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  text-align: left;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.category-card:hover { border-color: var(--border-strong); background: var(--surface-2); }

.category-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text-soft);
}

.category-name { display: block; font-size: 0.92rem; font-weight: 600; }
.category-count { display: block; font-size: 0.76rem; color: var(--muted); margin-top: 1px; }

.category-arrow { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.category-card:hover .category-arrow { color: var(--text); }

/* ---------- About ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

.about-media { position: relative; }
.about-media > img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.about-card { display: none; }

.about-copy h2 { font-size: clamp(1.55rem, 2.7vw, 2.15rem); margin-bottom: 14px; }
.about-copy > p { color: var(--muted); margin-bottom: 22px; max-width: 52ch; }

.check-list { display: grid; gap: 10px; margin-bottom: 28px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.check {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}

.contact-aside h2 { font-size: clamp(1.55rem, 2.7vw, 2.1rem); margin-bottom: 10px; }

.contact-cards { display: grid; gap: 8px; margin-top: 24px; }

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease);
}
.contact-card:hover { border-color: var(--border-strong); background: var(--surface-2); }

.contact-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text-soft);
}

.contact-text { display: flex; flex-direction: column; min-width: 0; }
.contact-text strong { font-size: 0.86rem; font-weight: 600; }
.contact-text small {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-card .arrow { margin-left: auto; color: var(--muted); flex-shrink: 0; }
.contact-card:hover .arrow { color: var(--text); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-form h3 { font-size: 1.05rem; margin-bottom: 18px; }

/* ---------- Forms ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { margin-bottom: 14px; }
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-soft);
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.field input::placeholder,
.field textarea::placeholder { color: color-mix(in srgb, var(--muted) 75%, transparent); }

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field textarea { resize: vertical; min-height: 96px; }

.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }

.field-error {
  display: none;
  margin-top: 5px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--danger);
}
.field.has-error .field-error { display: block; }

.form-msg {
  min-height: 0;
  margin-top: 12px;
  font-size: 0.83rem;
  font-weight: 500;
}
.form-msg:empty { display: none; }
.form-msg.is-success { color: var(--success); }
.form-msg.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 52px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.85rem;
  max-width: 32ch;
  margin: 14px 0 18px;
}

.footer-social { display: flex; gap: 6px; }
.footer-social a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease),
              background 0.15s var(--ease);
}
.footer-social a:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.footer-col a,
.footer-note {
  font-size: 0.84rem;
  color: var(--text-soft);
  transition: color 0.15s var(--ease);
}
.footer-col a:hover { color: var(--text); }
.footer-note { color: var(--muted); font-size: 0.78rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid var(--border);
}
.footer-bottom p { font-size: 0.76rem; color: var(--muted); }

/* ---------- Footer hours ---------- */
.footer-hours { display: grid; gap: 3px; }
.footer-hour {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.76rem;
  color: var(--text-soft);
}
.footer-hour.is-closed { color: var(--muted); }
.open-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 500;
}
.open-indicator::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.open-indicator.is-open { color: var(--success); }
.open-indicator.is-closed { color: var(--danger); }

/* ---------- Cart drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.5);
  opacity: 0;
  transition: opacity 0.22s var(--ease);
}
.drawer.is-open .drawer-overlay { opacity: 1; }

.drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-soft);
  border-left: 1px solid var(--border);
  box-shadow: -24px 0 48px -24px rgba(0, 0, 0, 0.35);
  transform: translateX(100%);
  transition: transform 0.26s var(--ease);
}
.drawer.is-open .drawer-panel { transform: translateX(0); }

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 { font-size: 1.02rem; }
.drawer-sub { font-size: 0.78rem; color: var(--muted); margin-top: 1px; }

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 20px;
  overscroll-behavior: contain;
}

.cart-empty {
  text-align: center;
  padding: 64px 8px;
  color: var(--muted);
  font-size: 0.88rem;
}
.cart-empty svg { margin: 0 auto 12px; color: var(--border-strong); }

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: 0; }

.cart-thumb {
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--image-tile);
  object-fit: contain;
  padding: 5px;
}

.cart-info { min-width: 0; }
.cart-info h4 {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-info .cart-price { font-size: 0.78rem; color: var(--muted); }

.cart-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line-total { font-size: 0.84rem; font-weight: 600; white-space: nowrap; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.qty button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  font-size: 0.9rem;
  transition: background 0.15s var(--ease);
}
.qty button:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.qty button:disabled { opacity: 0.4; cursor: not-allowed; }
.qty span {
  min-width: 26px;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 3px 0;
}

.remove-item {
  font-size: 0.7rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.remove-item:hover { color: var(--danger); }

.drawer-foot {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}
.summary-row span:last-child { color: var(--text); font-weight: 600; }

.drawer-hint { font-size: 0.74rem; color: var(--muted); margin: 5px 0 14px; }

.drawer-foot .btn-block + .btn-block { margin-top: 4px; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 14, 0.55);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}
.modal.is-open .modal-overlay { opacity: 1; }

.modal-panel {
  position: relative;
  width: min(540px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.modal.is-open .modal-panel { opacity: 1; transform: translateY(0); }
.modal-wide { width: min(860px, 100%); }

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 { font-size: 1.12rem; }
.modal-sub { font-size: 0.8rem; color: var(--muted); margin-top: 3px; max-width: 52ch; }

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
}

.checkout-fields { padding: 20px 24px 24px; }

.checkout-summary {
  padding: 20px 24px 24px;
  border-left: 1px solid var(--border);
  background: var(--surface-2);
}
.checkout-summary h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.checkout-items {
  display: grid;
  gap: 10px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}

.checkout-item { display: flex; align-items: center; gap: 10px; }
.checkout-item img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  object-fit: contain;
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--image-tile);
}
.checkout-item-info { flex: 1; min-width: 0; }
.checkout-item-info strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-item-info span { font-size: 0.74rem; color: var(--muted); }
.checkout-item-total { font-size: 0.82rem; font-weight: 600; white-space: nowrap; }

.summary-total {
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border-strong);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.summary-total span:last-child { font-size: 1.08rem; }

.checkout-note { font-size: 0.72rem; color: var(--muted); margin-top: 10px; line-height: 1.5; }

.checkout-success { padding: 40px 28px 32px; text-align: center; }
.success-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--success);
}
.checkout-success h3 { font-size: 1.25rem; margin-bottom: 8px; }
.success-order,
.success-total { font-size: 0.88rem; color: var(--muted); }
.success-order strong,
.success-total strong { color: var(--text); }
.checkout-success .modal-sub { margin: 12px auto 20px; }
.checkout-success .btn { max-width: 320px; margin: 0 auto; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 2000;
  max-width: min(420px, calc(100vw - 32px));
  padding: 11px 18px;
  border-radius: var(--radius-md);
  background: #17181b;
  border: 1px solid #2c2e34;
  box-shadow: 0 16px 32px -16px rgba(0, 0, 0, 0.5);
  font-size: 0.84rem;
  font-weight: 500;
  color: #f4f4f2;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Scrollbars ---------- */
.drawer-body::-webkit-scrollbar,
.checkout-items::-webkit-scrollbar,
.modal-panel::-webkit-scrollbar { width: 6px; }
.drawer-body::-webkit-scrollbar-thumb,
.checkout-items::-webkit-scrollbar-thumb,
.modal-panel::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: 3px;
}

/* ---------- Product detail ---------- */
.modal-product { width: min(800px, 100%); }

.product-detail { display: grid; grid-template-columns: 0.92fr 1.08fr; }

.pd-media {
  position: relative;
  padding: 24px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  background: var(--image-tile);
}
.pd-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

.pd-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px 24px;
}

.pd-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
}
.pd-price { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }

.pd-block h4 {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}
.pd-desc {
  font-size: 0.89rem;
  line-height: 1.6;
  color: var(--text-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.pd-facts {
  display: grid;
  gap: 7px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pd-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
}
.pd-facts span { color: var(--muted); flex-shrink: 0; }
.pd-facts strong { font-weight: 600; text-align: right; word-break: break-word; }

.pd-buy { display: flex; align-items: stretch; gap: 8px; }
.pd-buy .btn { flex: 1; min-height: 46px; }
.pd-buy .qty { height: 46px; }
.pd-buy .qty button { height: 100%; width: 34px; }
.pd-buy .qty span { display: flex; align-items: center; justify-content: center; height: 100%; }
.pd-ask { align-self: flex-start; }

/* ---------- Coupon & payment ---------- */
.coupon-row { display: flex; gap: 6px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-row .btn { flex-shrink: 0; }
.coupon-msg { display: block; min-height: 1em; margin-top: 5px; font-size: 0.75rem; }
.coupon-msg:empty { display: none; }
.coupon-msg.is-error { color: var(--danger); }
.coupon-msg.is-success { color: var(--success); }

.payment-options { display: grid; gap: 6px; }
.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-soft);
  cursor: pointer;
}
.payment-option input { margin-top: 3px; accent-color: var(--primary); }
.payment-option span { display: flex; flex-direction: column; }
.payment-option strong { font-size: 0.82rem; font-weight: 600; }
.payment-option small { font-size: 0.73rem; color: var(--muted); }
.payment-option:has(input:checked) {
  border-color: var(--primary);
  background: var(--accent-soft);
}
.payment-option.is-disabled { opacity: 0.62; cursor: not-allowed; }

#checkoutDiscountRow span:last-child { color: var(--success) !important; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 350;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #128c7e;
  color: #fff;
  transition: background 0.15s var(--ease);
}
.wa-float:hover { background: #0e7367; }
.wa-float span { display: none; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr 0.95fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 28px; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-col:nth-last-child(-n + 2) { grid-column: span 1; }
}

@media (max-width: 900px) {
  :root,
  [data-theme="dark"] { --header-h: 60px; }

  .container { padding: 0 20px; }

  .menu-btn { display: flex; }

  .primary-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 10px 16px 16px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 20px 32px -24px rgba(0, 0, 0, 0.35);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    display: none;
  }
  .site-header.nav-open .primary-nav { display: flex; }

  .nav-link { padding: 11px 10px; font-size: 0.95rem; min-height: 44px; display: flex; align-items: center; }
  .nav-link.is-active { background: var(--surface-2); }
  .nav-link.is-active::after { display: none; }
  .nav-cta {
    margin: 6px 0 0;
    padding: 11px 10px;
    min-height: 44px;
    justify-content: flex-start;
    border: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
  }

  .hero { padding-top: 36px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-media { max-width: 100%; width: 100%; }
  .hero-frame > img { aspect-ratio: 16 / 10; }

  .about-inner { grid-template-columns: 1fr; }
  .about-media { order: 2; }
  .about-copy { order: 1; }

  .contact-inner { grid-template-columns: 1fr; }

  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary {
    border-left: 0;
    border-top: 1px solid var(--border);
    order: -1;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 640px) {
  .section { padding: 52px 0; }

  .header-actions { gap: 0; }
  .admin-link { display: none; }
  .icon-btn,
  .cart-btn { width: 44px; height: 44px; }
  .sort-control select { min-height: 44px; }
  .footer-social a { width: 40px; height: 40px; }

  .brand-name { font-size: 1rem; }

  .hero { padding-top: 28px; padding-bottom: 52px; }
  .hero-copy h1 { font-size: clamp(2rem, 8.6vw, 2.5rem); }
  .hero-cta { gap: 8px; margin-bottom: 28px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-stats { gap: 14px 22px; padding-top: 18px; }
  .hero-stats dt { font-size: 0.87rem; }
  .hero-stats dd { font-size: 0.72rem; }

  .features { padding: 20px 0; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 18px 20px; }
  .feature { gap: 10px; }
  .feature h3 { font-size: 0.82rem; }
  .feature p { font-size: 0.74rem; }

  .section-head { align-items: flex-start; gap: 14px; margin-bottom: 22px; }
  .sort-control { width: 100%; justify-content: space-between; }
  .sort-control select { flex: 1; max-width: 230px; }

  .filter-row { gap: 10px; margin-bottom: 18px; }
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 -20px;
    padding: 0 20px 2px;
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .result-count { width: 100%; }

  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .product-media { aspect-ratio: 1 / 1; }
  .product-media img { padding: 10px; }
  .product-body { padding: 10px 10px 12px; gap: 4px; }
  .product-name { font-size: 0.83rem; line-height: 1.35; }
  .product-desc { display: none; }
  .product-cat { font-size: 0.6rem; }
  .price { font-size: 0.9rem; }
  .stock { font-size: 0.66rem; }
  .product-actions { flex-direction: column; gap: 5px; margin-top: 8px; }
  .product-actions .btn { min-height: 40px; padding: 7px 8px; font-size: 0.75rem; gap: 5px; }
  .tag { font-size: 0.58rem; padding: 2px 6px; }

  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .category-card { padding: 12px; gap: 10px; }
  .category-icon { width: 32px; height: 32px; }
  .category-name { font-size: 0.82rem; }
  .category-count { font-size: 0.7rem; }
  .category-arrow { display: none; }

  .card { padding: 18px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer { padding-top: 40px; }
  .footer-grid { gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 4px; }

  .modal { padding: 0; align-items: flex-end; }
  .modal-panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border-bottom: 0;
  }
  .modal-head { padding: 16px 18px; }
  .modal-head h3 { font-size: 1.02rem; }
  .checkout-fields { padding: 16px 18px 20px; }
  .checkout-summary { padding: 16px 18px; }
  .checkout-success { padding: 32px 20px 26px; }

  .drawer-panel { width: 100%; border-left: 0; }
  .drawer-head { padding: 14px 18px; }
  .drawer-body { padding: 2px 18px; }
  .drawer-foot { padding: 14px 18px 18px; }

  .toast { bottom: 14px; font-size: 0.8rem; }

  .wa-float { right: 14px; bottom: 14px; width: 48px; height: 48px; }

  .announce { font-size: 0.72rem; padding: 7px 14px; }
  .closed-banner { font-size: 0.74rem; padding: 8px 14px; }
  .coupon-row { flex-direction: column; }
  .coupon-row .btn { width: 100%; }

  .product-detail { grid-template-columns: 1fr; }
  .pd-media { border-right: 0; border-bottom: 1px solid var(--border); padding: 14px; }
  .pd-media img { aspect-ratio: 16 / 10; max-height: 220px; }
  .pd-info { padding: 14px 18px 20px; gap: 12px; }
  .pd-price { font-size: 1.3rem; }
  .modal-product .modal-sub { display: none; }
  .pd-ask { align-self: stretch; }
}

@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 16 / 11; }
  .category-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ============================================================
   Language switcher
   ============================================================ */
.lang { position: relative; display: flex; align-items: center; }

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 9px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-soft);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.lang-btn:hover { background: var(--surface-2); color: var(--text); }
.lang-btn svg { opacity: 0.75; }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 140;
  min-width: 152px;
  padding: 5px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.45);
}
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  color: var(--text-soft);
  text-align: start;
}
.lang-menu button:hover { background: var(--surface-2); color: var(--text); }
.lang-menu button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.lang-menu button[aria-selected="true"]::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.lang-menu [data-lang="ar"] { font-family: 'IBM Plex Sans Arabic', 'Inter', sans-serif; }

/* ============================================================
   Arabic typography + RTL layout
   ============================================================ */
html[lang="ar"] {
  --font-sans: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
}
html[lang="ar"] body { line-height: 1.75; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 { letter-spacing: 0; line-height: 1.3; }
html[lang="ar"] .hero-copy h1 { line-height: 1.25; }
html[lang="ar"] .product-name { line-height: 1.55; }
html[lang="ar"] .brand-name { letter-spacing: 0; }
html[lang="ar"] .eyebrow,
html[lang="ar"] .product-cat,
html[lang="ar"] .footer-col h4,
html[lang="ar"] .checkout-summary h4,
html[lang="ar"] .pd-block h4 { letter-spacing: 0; text-transform: none; }

[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .cart-count { right: auto; left: -3px; }
[dir="rtl"] .product-tags { left: auto; right: 10px; }
[dir="rtl"] .category-arrow,
[dir="rtl"] .icon-arrow { transform: scaleX(-1); }
[dir="rtl"] .wa-float { right: auto; left: 18px; }
[dir="rtl"] .nav-cta { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .sort-control select {
  padding: 8px 12px 8px 34px;
  background-position: left 11px center;
}
[dir="rtl"] .field input[type="tel"],
[dir="rtl"] .field input[type="email"],
[dir="rtl"] #ckCoupon { direction: ltr; text-align: right; }
[dir="rtl"] .drawer-panel {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--border);
  transform: translateX(-100%);
}
[dir="rtl"] .drawer.is-open .drawer-panel { transform: translateX(0); }
[dir="rtl"] .checkout-summary { border-left: 0; border-right: 1px solid var(--border); }
[dir="rtl"] .pd-media { border-right: 0; border-left: 1px solid var(--border); }

@media (max-width: 900px) {
  [dir="rtl"] .nav-cta { margin-right: 0; }
  [dir="rtl"] .checkout-summary { border-right: 0; }
}

@media (max-width: 640px) {
  .lang-btn { height: 44px; }
  [dir="rtl"] .wa-float { right: auto; left: 14px; }
  [dir="rtl"] .pd-media { border-left: 0; }
}
