:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --bg-soft: #eee6d8;
  --ink: #15130f;
  --ink-soft: #403a31;
  --muted: #776d5f;
  --line: #ddd2c1;
  --line-strong: #a99578;
  --surface: #fffdf8;
  --surface-soft: #f2ece1;
  --charcoal: #181611;
  --forest: #18382f;
  --navy: #172133;
  --gold: #b58c56;
  --gold-soft: #dcc49d;
  --danger: #8c2430;
  --success: #255a3c;
  --warning: #7f5527;
  --sold: #7c2931;
  --whatsapp: #25d366;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(21, 19, 15, 0.14);
  --shadow-soft: 0 14px 34px rgba(21, 19, 15, 0.09);
  --max: 1440px;
  --shell-pad: clamp(18px, 4vw, 72px);
  --fs-micro: clamp(9px, 0.72vw, 11px);
  --fs-xs: clamp(11px, 0.78vw, 12px);
  --fs-sm: clamp(12px, 0.9vw, 14px);
  --fs-base: clamp(14px, 0.95vw, 17px);
  --fs-md: clamp(15px, 1.05vw, 19px);
  --fs-lead: clamp(16px, 1.25vw, 20px);
  --fs-h3: clamp(17px, 1.22vw, 21px);
  --fs-h2: clamp(28px, 3vw, 52px);
  --fs-hero: clamp(42px, 6.1vw, 92px);
  --lh-tight: 1.05;
  --lh-title: 1.12;
  --lh-body: 1.58;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(24, 56, 47, 0.10), rgba(24, 56, 47, 0) 420px),
    var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans Hebrew", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: "Noto Sans Hebrew", Inter, sans-serif;
}

body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }

.shell {
  width: min(var(--max), calc(100% - (var(--shell-pad) * 2)));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  inset-block-start: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(221, 210, 193, 0.86);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: clamp(72px, 5.4vw, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 22px);
  flex-wrap: wrap;
  padding-block: clamp(6px, 0.8vw, 10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: clamp(9px, 1.2vw, 14px);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: clamp(36px, 3.4vw, 46px);
  height: clamp(36px, 3.4vw, 46px);
  border: 1px solid var(--gold);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--gold);
}

.brand-name {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: clamp(21px, 1.9vw, 28px);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  overflow-wrap: anywhere;
}

.brand-caption {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.18;
}

html[dir="rtl"] .brand-caption { letter-spacing: 0; }

.nav-links {
  display: none;
  gap: clamp(16px, 2.1vw, 34px);
  align-items: center;
}

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: var(--fs-xs);
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
}

html[dir="rtl"] .nav-links a { letter-spacing: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: clamp(7px, 1vw, 10px);
  justify-content: flex-end;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.btn,
.ghost-toggle,
.chip,
.menu-item {
  min-height: clamp(44px, 3.5vw, 52px);
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(7px, 0.8vw, 10px);
  padding: 10px clamp(14px, 1.55vw, 22px);
  color: inherit;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.18;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
  white-space: normal;
  text-align: center;
  overflow-wrap: normal;
  word-break: normal;
}

html[dir="rtl"] .btn,
html[dir="rtl"] .ghost-toggle,
html[dir="rtl"] .chip,
html[dir="rtl"] .menu-item {
  letter-spacing: 0;
}

.btn:hover,
.ghost-toggle:hover,
.chip:hover,
.menu-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}

.btn-dark { background: var(--charcoal); color: #fffaf0; }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-forest { background: var(--forest); color: #fffaf0; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn.compact { min-height: 40px; padding-inline: 14px; }
.btn.full { width: 100%; }
.danger { color: var(--danger); border-color: rgba(140, 36, 48, 0.38); }
.ghost-toggle { border-color: var(--line); background: rgba(255, 253, 248, 0.65); }
.wa-dot { width: 9px; height: 9px; border-radius: 999px; background: currentColor; opacity: 0.82; }

h1, h2, h3, p { margin: 0; }
h1, .display {
  font-family: "Playfair Display", serif;
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  font-weight: 600;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h2 {
  font-family: "Playfair Display", serif;
  font-size: var(--fs-h2);
  line-height: var(--lh-title);
  font-weight: 600;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.lead {
  color: var(--ink-soft);
  font-size: var(--fs-lead);
  line-height: var(--lh-body);
  max-width: 68ch;
}

html[dir="rtl"] h1,
html[dir="rtl"] .display {
  font-family: "Noto Sans Hebrew", Inter, sans-serif;
  font-size: clamp(38px, 5.15vw, 76px);
  line-height: 1.08;
  font-weight: 800;
}

html[dir="rtl"] h2,
html[dir="rtl"] .detail-info h2 {
  font-family: "Noto Sans Hebrew", Inter, sans-serif;
  font-size: clamp(27px, 3.1vw, 48px);
  line-height: 1.16;
  font-weight: 800;
}

html[dir="rtl"] .lead {
  line-height: 1.72;
}

.eyebrow,
.mini-label,
.pill {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(181, 140, 86, 0.58);
  color: var(--gold);
  padding: 7px 12px;
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.18;
  text-wrap: balance;
}

html[dir="rtl"] .eyebrow,
html[dir="rtl"] .mini-label,
html[dir="rtl"] .pill {
  letter-spacing: 0;
}

.pill { background: rgba(255,255,255,0.5); color: var(--ink-soft); border-color: var(--line); }

.hero {
  padding: clamp(38px, 6vw, 96px) 0 clamp(32px, 4vw, 54px);
  display: grid;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: clamp(16px, 2vw, 28px);
  align-content: start;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(10px, 1.2vw, 14px);
}

.product-form > .button-row {
  position: sticky;
  bottom: 14px;
  z-index: 4;
  margin: 4px -6px -6px;
  padding: 10px;
  border: 1px solid rgba(221, 210, 193, 0.82);
  border-radius: var(--radius);
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(14px);
}

.hero-feature {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: clamp(380px, 36vw, 580px);
  display: grid;
  grid-template-rows: 1fr auto;
  color: #fffaf0;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.hero-feature-art,
.product-art {
  position: relative;
  min-height: clamp(240px, 22vw, 340px);
  overflow: hidden;
  background: linear-gradient(135deg, #b58c56, #171511 72%);
}

.hero-feature-art::before,
.product-art::before {
  content: "";
  position: absolute;
  width: 45%;
  height: 55%;
  left: 22%;
  bottom: 14%;
  border-radius: 28px 28px 12px 12px;
  border: 1px solid rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.12);
}

.hero-feature-art::after,
.product-art::after {
  content: "";
  position: absolute;
  width: 34%;
  height: 34%;
  right: 14%;
  top: 16%;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(24, 56, 47, 0.48);
}

.art-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Playfair Display", serif;
  font-size: clamp(38px, 7vw, 64px);
  z-index: 1;
  color: rgba(255,250,240,0.94);
}

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

.product-art.has-image::before,
.product-art.has-image::after,
.gallery-main.has-image::before,
.gallery-main.has-image::after {
  display: none;
}

.hero-feature-body {
  padding: clamp(20px, 2.2vw, 30px);
  display: grid;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.hero-feature-body p { color: rgba(255,250,240,0.74); line-height: 1.5; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
  padding: 12px 0 clamp(46px, 5vw, 78px);
}

.trust-strip article,
.how-grid article,
.panel,
.admin-stats article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 1px 0 rgba(255,255,255,0.72) inset;
}

.trust-strip article {
  padding: clamp(18px, 1.9vw, 26px);
  display: grid;
  gap: 8px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.trust-strip b,
.how-grid b {
  color: var(--gold);
  font-family: "Playfair Display", serif;
  font-size: clamp(22px, 1.8vw, 30px);
  line-height: 1;
}

.catalogue {
  display: grid;
  gap: clamp(24px, 2.6vw, 40px);
  align-items: start;
  padding-bottom: clamp(68px, 7vw, 112px);
}

.catalogue-side {
  display: grid;
  gap: clamp(18px, 1.8vw, 24px);
}

.panel {
  padding: clamp(20px, 2vw, 30px);
  display: grid;
  gap: clamp(16px, 1.5vw, 22px);
}

.dark-panel {
  background: var(--charcoal);
  color: #fffaf0;
  border-color: rgba(255,255,255,0.14);
}

.dark-panel p { color: rgba(255,250,240,0.72); line-height: 1.55; }

.panel-heading {
  display: grid;
  gap: 10px;
}

.panel-heading.spread {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.panel-heading p,
.panel p {
  color: var(--muted);
  line-height: var(--lh-body);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.4vw, 18px);
}

.stat-grid span {
  border-top: 1px solid rgba(181,140,86,0.35);
  padding-top: 12px;
  display: grid;
  gap: 4px;
}

.stat-grid b,
.admin-stats b {
  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 2.2vw, 34px);
  line-height: 1;
}

.stat-grid small,
.admin-stats span {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
}

.dark-panel .stat-grid small { color: rgba(255,250,240,0.7); }

.filters {
  display: grid;
  gap: clamp(14px, 1.4vw, 20px);
  margin-bottom: clamp(22px, 2.2vw, 32px);
}

.filters.slim { margin: 0 0 clamp(18px, 1.8vw, 26px); }

.search-field input,
.form-grid input,
.form-grid select,
.form-grid textarea,
.product-form > label input,
.product-form > label textarea,
.product-form > label select,
.code-textarea {
  width: 100%;
  min-height: clamp(50px, 3.6vw, 58px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  padding: 13px clamp(15px, 1.35vw, 18px);
  outline: 0;
  font-size: var(--fs-base);
  line-height: 1.35;
}

textarea,
.code-textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}

.search-field input:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus,
.product-form > label input:focus,
.product-form > label textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(181, 140, 86, 0.18);
}

.chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.chip {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
  min-height: clamp(38px, 2.9vw, 44px);
  flex: 0 0 auto;
  white-space: nowrap;
  overflow-wrap: normal;
}

.chip.is-active {
  background: var(--charcoal);
  color: #fffaf0;
  border-color: var(--charcoal);
}

.filter-footer,
.check-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.check-line {
  justify-content: flex-start;
  cursor: pointer;
}

.check-line input {
  width: 19px;
  height: 19px;
  accent-color: var(--forest);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(16px, 1.9vw, 28px);
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 253, 248, 0.82);
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.product-card:hover,
.product-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: var(--line-strong);
  outline: 0;
}

.product-card .product-art {
  aspect-ratio: 4 / 5;
  min-height: 0;
}

.card-body {
  padding: clamp(16px, 1.55vw, 22px);
  display: grid;
  gap: clamp(11px, 1vw, 15px);
}

.card-top,
.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.brand-label {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

html[dir="rtl"] .brand-label { letter-spacing: 0; }

.price {
  font-family: "Playfair Display", serif;
  font-size: clamp(16px, 1.35vw, 22px);
  font-weight: 600;
  line-height: 1.15;
}

.product-title {
  min-height: clamp(40px, 3.2vw, 52px);
  font-weight: 750;
  line-height: 1.35;
  font-size: var(--fs-base);
  overflow-wrap: anywhere;
}

.badge-row,
.variant-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge,
.variant-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.62);
  color: var(--ink-soft);
  min-height: 28px;
  padding: 5px 9px;
  font-size: var(--fs-micro);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[dir="rtl"] .badge,
html[dir="rtl"] .variant-pill { letter-spacing: 0; }

.badge.available { background: #e6f0e7; color: var(--success); border-color: #e6f0e7; }
.badge.warning { background: #f2e5ce; color: var(--warning); border-color: #f2e5ce; }
.badge.sold { background: #f5e3e6; color: var(--sold); border-color: #f5e3e6; }

.mini-button {
  min-height: clamp(38px, 2.8vw, 44px);
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  font-size: var(--fs-micro);
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.15;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

html[dir="rtl"] .mini-button { letter-spacing: 0; }
.mini-button.dark { background: var(--charcoal); color: #fffaf0; border-color: var(--charcoal); }

.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  justify-items: center;
  gap: clamp(10px, 1.2vw, 14px);
  padding: clamp(24px, 3vw, 42px);
  text-align: center;
}

.how {
  padding: clamp(18px, 2vw, 28px) 0 clamp(50px, 5vw, 78px);
  display: grid;
  gap: clamp(18px, 2vw, 26px);
}

.how-grid {
  display: grid;
  gap: clamp(10px, 1.4vw, 16px);
}

.how-grid article {
  padding: clamp(16px, 1.6vw, 22px);
  display: grid;
  gap: 8px;
}

.how-grid p { color: var(--muted); line-height: 1.55; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: clamp(30px, 3vw, 42px) 0 clamp(42px, 4vw, 60px);
}

.footer-grid {
  display: grid;
  gap: 18px;
  color: var(--muted);
  line-height: 1.6;
}

.product-dialog {
  width: min(1220px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(920px, calc(100dvh - 24px));
}

.product-dialog::backdrop {
  background: rgba(21, 19, 15, 0.54);
  backdrop-filter: blur(8px);
}

.dialog-top {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: clamp(60px, 5vw, 70px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px clamp(12px, 1.5vw, 18px);
  border-bottom: 1px solid var(--line);
  background: rgba(246,241,232,0.94);
  backdrop-filter: blur(16px);
}

.icon-button {
  width: clamp(38px, 3.2vw, 44px);
  height: clamp(38px, 3.2vw, 44px);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  font-size: clamp(20px, 1.6vw, 24px);
}

.dialog-body {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
  padding: clamp(14px, 2vw, 26px);
  min-height: 0;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.gallery {
  display: grid;
  gap: 10px;
}

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #70583b, #181611);
}

.gallery-main .art-initials { font-size: clamp(50px, 9vw, 96px); }

.thumb-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.thumb {
  width: clamp(62px, 6vw, 82px);
  height: clamp(62px, 6vw, 82px);
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  cursor: pointer;
}

.thumb.is-active { border-color: var(--ink); box-shadow: 0 0 0 2px rgba(21,19,15,0.1); }
.thumb .product-art { width: 100%; height: 100%; min-height: 0; }
.thumb .art-initials { font-size: clamp(18px, 1.4vw, 22px); }

.detail-info {
  display: grid;
  gap: clamp(14px, 1.6vw, 20px);
  align-content: start;
}

.detail-info h2 {
  font-size: clamp(32px, 4.2vw, 60px);
}

.spec-list {
  display: grid;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec-row {
  display: grid;
  grid-template-columns: minmax(104px, 0.34fr) minmax(0, 1fr);
  gap: clamp(10px, 1.2vw, 16px);
  padding: clamp(10px, 1.1vw, 14px) 0;
  border-bottom: 1px solid rgba(221, 210, 193, 0.72);
  line-height: 1.45;
}

.spec-row:last-child { border-bottom: 0; }
.spec-key {
  color: var(--muted);
  font-size: var(--fs-micro);
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

html[dir="rtl"] .spec-key { letter-spacing: 0; }

.detail-actions {
  display: grid;
  gap: 10px;
}

.notice {
  border-inline-start: 2px solid var(--gold);
  background: rgba(255,253,248,0.72);
  padding: clamp(11px, 1.1vw, 15px) clamp(12px, 1.3vw, 16px);
  color: var(--ink-soft);
  line-height: 1.55;
  font-size: var(--fs-sm);
}

body[data-page="login"] {
  display: grid;
  place-items: center;
  padding: clamp(28px, 5vw, 72px) 0;
}

.login-shell {
  width: min(640px, calc(100% - (var(--shell-pad) * 2)));
}

.login-card {
  padding: clamp(28px, 5vw, 52px);
  box-shadow: var(--shadow);
  background:
    linear-gradient(145deg, rgba(255, 253, 248, 0.96), rgba(242, 236, 225, 0.9)),
    var(--surface);
}

.login-card h1 {
  font-size: clamp(34px, 5vw, 58px);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.login-card .product-form > .auth-actions {
  position: static;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  align-items: stretch;
}

.auth-actions .btn {
  flex: 1 1 220px;
}

.auth-message {
  min-height: 24px;
  color: var(--danger);
  font-size: var(--fs-sm);
  font-weight: 750;
  line-height: 1.45;
}

.auth-hint {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  color: var(--muted);
  font-size: var(--fs-sm);
  line-height: 1.55;
}

.admin-shell {
  padding: clamp(38px, 4vw, 64px) 0 clamp(72px, 7vw, 112px);
}

.admin-hero {
  display: grid;
  gap: clamp(24px, 2.5vw, 38px);
  align-items: end;
  margin-bottom: clamp(28px, 3vw, 42px);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}

.admin-stats article {
  padding: clamp(18px, 1.9vw, 26px);
  display: grid;
  gap: 8px;
}

.admin-layout {
  display: grid;
  gap: clamp(22px, 2.4vw, 36px);
  align-items: start;
}

.admin-menu {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow: visible;
  padding-bottom: 0;
}

.menu-item {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink-soft);
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
}

.menu-item.is-active {
  background: var(--charcoal);
  color: #fffaf0;
  border-color: var(--charcoal);
}

.admin-tab { display: none; }
.admin-tab.is-active { display: block; }

.admin-product-list {
  display: grid;
  gap: clamp(12px, 1.4vw, 18px);
}

.admin-product-row {
  display: grid;
  gap: clamp(14px, 1.5vw, 20px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(16px, 1.8vw, 24px);
}

.admin-product-main {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-product-main h3,
.admin-product-main p {
  overflow-wrap: anywhere;
}

.admin-product-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.product-form {
  display: grid;
  gap: clamp(14px, 1.7vw, 20px);
}

.form-grid {
  display: grid;
  gap: clamp(10px, 1.2vw, 14px);
}

.form-grid.two {
  grid-template-columns: 1fr;
}

.form-grid label,
.product-form > label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: var(--fs-xs);
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

html[dir="rtl"] .form-grid label,
html[dir="rtl"] .product-form > label { letter-spacing: 0; }

.form-grid small {
  color: var(--muted);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.check-grid {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.code-textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  min-height: 220px;
  text-transform: none;
  letter-spacing: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  border-radius: 999px;
  background: var(--charcoal);
  color: #fffaf0;
  box-shadow: var(--shadow);
  padding: 12px 16px;
  max-width: calc(100% - 36px);
  text-align: center;
  font-size: var(--fs-sm);
  transition: opacity 180ms ease, transform 180ms ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 760px) {
  .shell { width: min(var(--max), calc(100% - (var(--shell-pad) * 2))); }
  .nav-links { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr); }
  .trust-strip { grid-template-columns: repeat(4, 1fr); }
  .catalogue { grid-template-columns: minmax(270px, 320px) minmax(0, 1fr); }
  .catalogue-side { position: sticky; top: 104px; }
  .filters { grid-template-columns: minmax(260px, 400px) 1fr; align-items: start; }
  .filters .chip-row:nth-of-type(2), .filter-footer { grid-column: 1 / -1; }
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
  .how { grid-template-columns: 0.72fr 1.28fr; align-items: start; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 320px 1fr; align-items: start; }
  .dialog-body { grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr); padding: clamp(24px, 2.4vw, 34px); }
  .detail-actions { grid-template-columns: 1fr 1fr; }
  .detail-actions .btn-whatsapp { grid-column: 1 / -1; }
  .admin-hero { grid-template-columns: minmax(0, 1fr) minmax(390px, 0.75fr); }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
  .admin-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .admin-menu { position: sticky; top: 104px; flex-direction: column; overflow: visible; }
  .menu-item { justify-content: flex-start; }
  html[dir="rtl"] .menu-item { justify-content: flex-end; }
  .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-product-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
}

@media (min-width: 1120px) {
  .product-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
  .card-actions { align-items: stretch; }
}

@media (min-width: 1440px) {
  :root {
    --max: 1520px;
    --fs-hero: clamp(56px, 5vw, 96px);
  }

  .product-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(420px, 0.72fr); }
  .catalogue { grid-template-columns: 340px minmax(0, 1fr); }
}

@media (min-width: 1800px) {
  :root {
    --max: 1680px;
    --fs-hero: 98px;
    --fs-h2: 54px;
  }

  .hero-feature { min-height: 600px; }
}

@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 11px; }
  .btn,
  .ghost-toggle,
  .chip,
  .menu-item {
    letter-spacing: 0.055em;
  }

  .brand-caption { max-width: 160px; }
}

@media (max-width: 700px) {
  .nav {
    align-items: flex-start;
    padding-block: 10px;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  html[dir="rtl"] .nav-actions {
    justify-content: flex-end;
  }

  body[data-page="admin"] .nav-actions .btn,
  body[data-page="login"] .auth-actions .btn {
    flex: 1 1 180px;
  }
}

@media (max-width: 520px) {
  :root {
    --shell-pad: 16px;
    --fs-hero: clamp(36px, 11.8vw, 48px);
    --fs-h2: clamp(26px, 8vw, 34px);
    --fs-lead: 15px;
  }

  .nav { min-height: 72px; }
  .brand-mark { width: 36px; height: 36px; flex: 0 0 auto; }
  .brand-name { font-size: 21px; max-width: 150px; }
  .brand-caption, .nav-actions .btn-whatsapp { display: none; }
  h1 { font-size: var(--fs-hero); line-height: 1.02; }
  html[dir="rtl"] h1 { font-size: clamp(33px, 10.5vw, 44px); line-height: 1.14; }
  html[dir="rtl"] h2,
  html[dir="rtl"] .detail-info h2 { font-size: clamp(25px, 7.5vw, 34px); }
  .hero { padding-top: 34px; gap: 24px; }
  .hero-feature { min-height: 330px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-body { padding: 16px; }
  .card-actions { align-items: stretch; flex-direction: column; }
  .mini-button { width: 100%; }
  .filter-footer { align-items: flex-start; flex-direction: column; }
  .spec-row { grid-template-columns: 1fr; gap: 4px; }
  .panel-heading.spread { flex-direction: column; }
  .product-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
  }
  .product-dialog[open] {
    height: calc(100dvh - 12px);
  }
  .dialog-top {
    gap: 8px;
  }
  .dialog-top .mini-label {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .dialog-top .btn {
    min-height: 38px;
    padding-inline: 12px;
  }
  .gallery-main { max-height: 62dvh; }
  .detail-info h2 { font-size: clamp(30px, 9vw, 40px); }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-product-actions .mini-button { flex: 1 1 100%; }
  .login-card { padding: 24px; }
}

@media (max-width: 380px) {
  :root {
    --shell-pad: 14px;
    --fs-base: 13px;
    --fs-hero: clamp(32px, 10.5vw, 40px);
  }

  .brand-name { max-width: 124px; }
  .ghost-toggle { min-width: 42px; padding-inline: 10px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-feature-art,
  .product-art { min-height: 210px; }
  .trust-strip article,
  .panel,
  .how-grid article { padding: 14px; }
}
