@font-face {
  font-family: Geist;
  src: url("../fonts/GeistVF.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: Cairo;
  src: url("../fonts/Cairo.ttf") format("truetype");
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --paper: #faf9f6;
  --card: #fff;
  --ink: #181a18;
  --muted: #60645f;
  --line: #dcded7;
  --accent: #c8ff00;
  --soft: #eeeee7;
  --radius: 4px;
  --font: Geist, Arial, sans-serif;
  color-scheme: light;
}
:root[lang="ar"] {
  --font: Cairo, Arial, sans-serif;
}
:root[data-theme="dark"] {
  --paper: #111310;
  --card: #191c17;
  --ink: #f6f7f1;
  --muted: #b1b6ac;
  --line: #393f33;
  --soft: #252b21;
  color-scheme: dark;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  cursor: auto;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 15px/1.6 var(--font);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
summary {
  cursor: pointer;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
input,
textarea {
  cursor: text;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.2;
}
button,
input,
select,
textarea {
  min-height: 44px;
}
button {
  border: 0;
  background: none;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 11px 13px;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--ink);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}
dialog :focus-visible {
  outline-offset: 2px;
}
button svg,
a svg {
  width: 20px;
  height: 20px;
  flex: none;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.wrap {
  width: min(1280px, 100% - 48px);
  margin-inline: auto;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 650;
}
[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 22px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}
.btn:hover {
  filter: brightness(0.9);
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.accent {
  background: var(--accent);
  color: #181a18;
  border-color: var(--accent);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  position: relative;
}
.icon-btn:hover {
  background: var(--soft);
}
.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;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: 10px;
  inset-inline-start: 10px;
  transform: translateY(-150%);
  z-index: 100;
  background: var(--accent);
  color: #111;
  padding: 12px;
}
.skip-link:focus {
  transform: none;
}
.demo-bar {
  background: var(--soft);
  color: var(--muted);
  text-align: center;
  font-size: 11px;
  padding: 7px 16px;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  width: 112px;
  flex: none;
}
.logo img {
  width: 112px;
  height: 38px;
  object-fit: contain;
}
:root[data-theme="dark"] .logo img {
  filter: invert(1);
}
.desktop-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
}
.desktop-nav a {
  padding-block: 12px;
  border-bottom: 2px solid transparent;
}
.desktop-nav a[aria-current="page"] {
  border-color: var(--ink);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.lang-btn {
  font-size: 12px;
  font-weight: 650;
  min-width: 44px;
}
.cart-badge {
  position: absolute;
  top: 0;
  inset-inline-end: 0;
  background: var(--accent);
  color: #111;
  border-radius: 100px;
  font-size: 10px;
  line-height: 18px;
  min-width: 18px;
  text-align: center;
  font-family: Geist, Arial, sans-serif;
}
.mobile-only {
  display: none;
}
.hero {
  background: #171b13;
  color: #faf9f6;
  border-bottom: 1px solid #30372a;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 60px;
  padding-block: 38px;
}
.hero .eyebrow {
  color: #c8ff00;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(36px, 4vw, 60px);
  font-weight: 650;
  letter-spacing: -0.045em;
  max-width: 570px;
}
.hero p.description {
  color: #ccd0c5;
  max-width: 420px;
  margin: 18px 0 23px;
  font-size: 14px;
}
.hero-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 302px;
}
.hero-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #eee6da;
}
.hero-photos img:nth-child(2) {
  margin-top: 12px;
  height: calc(100% - 24px);
}
[dir="rtl"] .hero h1 {
  letter-spacing: 0;
  font-size: clamp(34px, 3.5vw, 52px);
}
.collections {
  padding-block: 36px 64px;
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.section-heading h2 {
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.section-heading p {
  font-size: 13px;
  color: var(--muted);
}
.filter-toolbar {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 200px 200px auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-size: 12px;
  font-weight: 600;
}
.search-field {
  position: relative;
}
.search-field svg {
  position: absolute;
  inset-inline-start: 13px;
  top: 13px;
  width: 19px;
  height: 19px;
  pointer-events: none;
  color: var(--muted);
}
.search-field input {
  padding-inline-start: 41px;
}
.group-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.group-tabs button {
  border: 1px solid var(--line);
  padding: 9px 14px;
  font-size: 12px;
  border-radius: 100px;
  white-space: nowrap;
}
.group-tabs button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.filter-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 15px 0 24px;
}
.result-count {
  font-size: 12px;
  color: var(--muted);
}
.clear-filters {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0 6px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 36px 24px;
}
.product-card {
  min-width: 0;
  position: relative;
}
.product-card .photo {
  display: block;
  position: relative;
  aspect-ratio: 3/4;
  background: #eee6da;
  border-radius: var(--radius);
  overflow: hidden;
}
.product-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s;
}
.product-card .photo:hover img {
  transform: scale(1.025);
}
.product-card .category {
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0 5px;
}
.product-card h3 {
  font-weight: 550;
  font-size: 14px;
  line-height: 1.55;
  min-height: 44px;
}
.product-card .price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.price {
  font-weight: 650;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card-link {
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.stock-badge {
  position: absolute;
  inset-inline-start: 12px;
  top: 12px;
  background: #faf9f6;
  color: #252a20;
  font-size: 10px;
  padding: 3px 7px;
  border-radius: 2px;
  pointer-events: none;
}
.empty-state {
  border: 1px dashed var(--line);
  padding: 60px 20px;
  text-align: center;
  grid-column: 1/-1;
}
.empty-state h2 {
  font-size: 21px;
  margin-bottom: 9px;
}
.empty-state p {
  max-width: 440px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 14px;
}
.skeleton {
  aspect-ratio: 3/4;
  background: var(--soft);
  border-radius: 4px;
}
.results-error {
  padding: 22px;
  border: 1px solid #ad3f36;
  border-radius: 4px;
  margin-bottom: 24px;
}
.filter-dialog {
  max-width: 420px;
  width: calc(100% - 32px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.dialog-heading h2 {
  font-size: 23px;
}
.filter-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.dialog-actions .btn {
  flex: 1;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
  background: var(--card);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.footer-links {
  display: flex;
  gap: 24px;
  font-size: 12px;
}
.footer-copy {
  font-size: 11px;
  color: var(--muted);
}
.footer-brand {
  font-size: 16px;
  letter-spacing: 0.05em;
  font-weight: 750;
}
.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100vh;
  max-height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  width: min(460px, 100%);
  max-width: 100%;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  border: none;
  border-inline-start: 1px solid var(--line);
}
[dir="rtl"] .drawer {
  inset: 0 auto 0 0;
}
.drawer::backdrop,
.filter-dialog::backdrop {
  background: #1119;
}
.drawer-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.drawer-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.drawer-head h2 {
  font-size: 20px;
  font-weight: 650;
}
.drawer-body {
  padding: 10px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  flex: 1;
}
.drawer-foot {
  border-top: 1px solid var(--line);
  padding: 20px 24px;
  padding-bottom: max(20px, env(safe-area-inset-bottom));
  background: var(--paper);
}
.drawer-foot .btn {
  width: 100%;
  margin-top: 16px;
}
.cart-item {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 16px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.cart-item img {
  width: 80px;
  height: 108px;
  object-fit: contain;
  background: #eee6da;
}
.cart-item h3 {
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 4px;
}
.variant-info {
  font-size: 11px;
  color: var(--muted);
}
.cart-item .price {
  font-size: 13px;
  margin-block: 7px;
}
.qty-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.stepper {
  display: inline-flex;
  border: 1px solid var(--line);
  align-items: center;
  border-radius: 3px;
}
.stepper button {
  width: 40px;
  min-height: 38px;
  font-size: 18px;
}
.stepper span {
  min-width: 24px;
  text-align: center;
  font-size: 12px;
}
.text-btn {
  font-size: 12px;
  text-decoration: underline;
  padding: 5px 0;
}
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-weight: 650;
}
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-block: 18px;
}
.menu-links a {
  padding: 14px 0;
  font-size: 20px;
  border-bottom: 1px solid var(--line);
}
.menu-bottom {
  margin-top: auto;
  padding: 24px;
}
.toast {
  position: fixed;
  bottom: 24px;
  inset-inline-start: 50%;
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 24px;
  max-width: calc(100% - 32px);
  min-width: 230px;
  text-align: center;
  border-radius: 4px;
  font-size: 13px;
}
[dir="rtl"] .toast {
  transform: translateX(50%);
}
.page-intro {
  padding: 40px 0 28px;
}
.breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-intro h1 {
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.page-intro p {
  color: var(--muted);
  font-size: 14px;
}
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 72px;
  padding-bottom: 64px;
  align-items: start;
}
.detail-photo {
  aspect-ratio: 4/5;
  background: #eee6da;
  position: sticky;
  top: 100px;
}
.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.detail-info {
  padding-block: 14px;
}
.detail-info h1 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  margin: 10px 0 18px;
}
.detail-info .price {
  font-size: 24px;
}
.detail-description {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.85;
  margin: 22px 0;
}
.variant-section {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 20px;
}
.variant-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 12px;
}
.variant-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.variant-options button {
  border: 1px solid var(--line);
  border-radius: 3px;
  min-width: 48px;
  padding: 9px 13px;
  font-size: 13px;
}
.variant-options button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.stock-line {
  font-size: 12px;
  color: var(--muted);
  margin: 20px 0;
}
.product-submit {
  display: flex;
  gap: 12px;
}
.product-submit .btn {
  flex: 1;
}
.help-note {
  font-size: 12px;
  color: var(--muted);
  padding: 15px 0;
}
.related {
  border-top: 1px solid var(--line);
  padding: 32px 0 64px;
}
.related h2 {
  font-size: 24px;
  margin-bottom: 24px;
}
.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.size-table th,
.size-table td {
  text-align: start;
  padding: 10px 7px;
  border-bottom: 1px solid var(--line);
}
.checkout-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 48px;
  align-items: start;
  margin-bottom: 64px;
}
.form-panel {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 28px;
  border-radius: 4px;
}
.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
  min-width: 0;
}
.form-section legend {
  font-size: 17px;
  font-weight: 650;
  margin-bottom: 20px;
  padding: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.field.full {
  grid-column: 1/-1;
}
.field small {
  font-size: 11px;
  color: var(--muted);
}
.field-error {
  color: #ad3028;
  font-size: 12px;
  min-height: 0;
}
.field-error:not(:empty) {
  margin-top: 3px;
}
[aria-invalid="true"] {
  border-color: #ad3028;
}
.check-label {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  cursor: pointer;
}
.check-label input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--ink);
  flex: none;
}
.payment-note {
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-bottom: 22px;
}
.payment-note h2 {
  font-size: 14px;
  margin-bottom: 5px;
}
.payment-note p {
  color: var(--muted);
  font-size: 12px;
}
.checkout-submit {
  width: 100%;
  margin-top: 22px;
}
.summary {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 26px;
  border-radius: 4px;
  position: sticky;
  top: 100px;
}
.summary h2 {
  font-size: 18px;
  margin-bottom: 22px;
}
.summary-item {
  display: grid;
  grid-template-columns: 55px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.summary-item img {
  width: 55px;
  height: 74px;
  background: #eee6da;
  object-fit: contain;
}
.summary-item h3 {
  font-size: 12px;
  line-height: 1.5;
}
.summary-item .price {
  font-size: 13px;
  display: block;
  margin-top: 5px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  margin-top: 18px;
}
.summary-total {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 17px;
  font-weight: 650;
}
.contact-info {
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.contact-info h2 {
  font-size: 21px;
  margin-bottom: 14px;
}
.contact-info p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.contact-info a {
  text-decoration: underline;
}
.success-box {
  max-width: 680px;
  margin: 48px auto 64px;
  padding: 36px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.success-mark {
  background: var(--accent);
  color: #111;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.success-box h1 {
  font-size: 30px;
  margin-bottom: 14px;
}
.success-box p {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.order-ref {
  font-family: Geist, Arial, sans-serif;
  font-size: 13px;
  word-break: break-all;
  background: var(--soft);
  padding: 15px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0;
}
.progress div {
  padding: 12px;
  font-size: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.progress .current {
  border-color: var(--ink);
  font-weight: 650;
}
.form-status {
  margin-top: 20px;
  padding: 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 14px;
}
.font-num {
  font-variant-numeric: tabular-nums;
}
@media (min-width: 1440px) {
  .hero-inner {
    padding-block: 44px;
  }
  .hero-photos {
    height: 320px;
  }
}
@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hero-inner {
    gap: 28px;
  }
  .filter-toolbar {
    grid-template-columns: minmax(140px, 1fr) 175px 175px auto;
  }
  .checkout-layout,
  .contact-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }
  .product-detail {
    gap: 36px;
  }
  .desktop-nav {
    gap: 20px;
  }
}
@media (max-width: 850px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .desktop-nav {
    display: none;
  }
  .mobile-only {
    display: inline-flex;
  }
  .hero-photos {
    height: 250px;
  }
  .hero h1 {
    font-size: 40px;
  }
  .filter-toolbar {
    grid-template-columns: 1fr 1fr auto;
  }
  .filter-toolbar .search {
    grid-column: 1/-1;
  }
  .checkout-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .summary {
    position: static;
    order: -1;
  }
  .summary-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
  }
  .product-detail {
    gap: 24px;
  }
  .detail-info h1 {
    font-size: 24px;
  }
  .form-panel {
    padding: 24px;
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .header-inner {
    height: 64px;
    gap: 8px;
  }
  .logo,
  .logo img {
    width: 86px;
    height: 32px;
  }
  .header-actions {
    gap: 0;
  }
  .theme-control {
    display: none;
  }
  .hero-inner {
    grid-template-columns: 1.35fr 1fr;
    padding-block: 24px;
    gap: 18px;
  }
  .hero h1 {
    font-size: 32px;
  }
  [dir="rtl"] .hero h1 {
    font-size: 28px;
  }
  .hero .eyebrow {
    font-size: 9px;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
  }
  .hero .description {
    font-size: 12px;
    line-height: 1.65;
    margin: 12px 0 16px;
  }
  .hero .btn {
    font-size: 11px;
    padding: 10px 13px;
    min-height: 44px;
  }
  .hero-photos {
    height: 220px;
    display: block;
    min-width: 0;
  }
  .hero-photos img {
    height: 100%;
    object-fit: cover;
  }
  .hero-photos img:nth-child(n + 2) {
    display: none;
  }
  .collections {
    padding-top: 26px;
  }
  .section-heading {
    align-items: start;
    margin-bottom: 18px;
  }
  .section-heading h2 {
    font-size: 22px;
  }
  .section-heading p {
    font-size: 11px;
    max-width: 130px;
    text-align: end;
  }
  .filter-toolbar {
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .filter-toolbar .category-field {
    grid-column: 1/-1;
  }
  .filter-toolbar .sort-field {
    min-width: 0;
  }
  .filter-toolbar label {
    font-size: 11px;
  }
  .filter-toolbar .btn {
    padding: 10px 14px;
  }
  .group-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
    max-width: 100%;
    scrollbar-width: thin;
  }
  .group-tabs button {
    font-size: 11px;
    padding: 8px 13px;
    min-height: 38px;
  }
  .filter-bottom {
    padding: 10px 0 18px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
  .product-card h3 {
    font-size: 13px;
    min-height: 40px;
  }
  .product-card .price-row {
    flex-direction: column;
    align-items: start;
    gap: 0;
  }
  .stock-badge {
    top: 8px;
    inset-inline-start: 8px;
  }
  .page-intro {
    padding-top: 26px;
  }
  .page-intro h1 {
    font-size: 29px;
  }
  .product-detail {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 36px;
  }
  .detail-photo {
    position: static;
    aspect-ratio: 4/5;
  }
  .detail-info {
    padding: 0;
  }
  .detail-info h1 {
    font-size: 27px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form-panel,
  .summary {
    padding: 20px;
  }
  .summary-items {
    display: block;
  }
  .summary {
    order: 0;
  }
  .contact-layout {
    gap: 20px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: start;
    gap: 20px;
  }
  .footer-links {
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-copy {
    line-height: 1.7;
  }
  .drawer-head,
  .drawer-foot {
    padding-inline: 20px;
  }
  .drawer-body {
    padding-inline: 20px;
  }
  .success-box {
    padding: 24px;
    margin-block: 30px;
  }
  .progress {
    grid-template-columns: 1fr;
  }
  .toast {
    bottom: 16px;
  }
  .filter-fields {
    gap: 14px;
  }
}
@media (max-width: 479px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  .product-card .photo {
    aspect-ratio: 4/5;
  }
  .product-card h3 {
    min-height: 0;
    font-size: 15px;
  }
  .product-card .price-row {
    flex-direction: row;
    align-items: center;
  }
  .hero h1 {
    font-size: 27px;
  }
  [dir="rtl"] .hero h1 {
    font-size: 25px;
  }
  .hero .description {
    display: none;
  }
  .hero-photos {
    height: 176px;
  }
  .hero-inner {
    gap: 14px;
  }
  .hero .eyebrow {
    letter-spacing: 0;
    font-size: 9px;
  }
  .hero .btn {
    margin-top: 16px;
    font-size: 10px;
    gap: 5px;
  }
  .demo-bar {
    font-size: 10px;
  }
  .group-tabs {
    margin-inline-end: 0;
  }
  .btn {
    padding-inline: 16px;
  }
  .filter-fields {
    grid-template-columns: 1fr;
  }
  .filter-toolbar select {
    font-size: 13px;
  }
  .header-actions .icon-btn {
    width: 42px;
    min-width: 42px;
  }
  .header-actions .lang-btn {
    min-width: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}

/* Keep controls usable with iOS focus zoom, a notch and short foldable viewports. */
.drawer-head,
.drawer-foot,
.menu-bottom {
  flex-shrink: 0;
}
.drawer-head {
  padding-top: max(18px, env(safe-area-inset-top));
}
.filter-dialog {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.menu-bottom {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
@media (max-width: 850px) {
  input,
  select,
  textarea,
  .filter-toolbar select {
    font-size: 16px;
  }
  .stepper button {
    width: 44px;
    min-height: 44px;
  }
  .wrap {
    width: min(
      1280px,
      calc(
        100% - max(16px, env(safe-area-inset-left)) -
          max(16px, env(safe-area-inset-right))
      )
    );
  }
  .drawer-body,
  .drawer-foot {
    padding-inline: max(16px, env(safe-area-inset-left))
      max(16px, env(safe-area-inset-right));
  }
}
@media (max-height: 450px) and (orientation: landscape) {
  .demo-bar {
    display: none;
  }
  .header-inner {
    height: 56px;
  }
  .hero-inner {
    padding-block: 20px;
  }
  .hero-photos {
    height: 180px;
  }
  .drawer-head {
    padding-block: 8px;
  }
  .drawer-foot {
    padding-block: 10px max(10px, env(safe-area-inset-bottom));
  }
  .drawer-foot .help-note {
    display: none;
  }
  .drawer-foot .btn {
    margin-top: 8px;
  }
  .menu-bottom {
    padding-block: 12px;
  }
}

/* Reserve a real gutter for the native select indicator in LTR and RTL. */
select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("../img/chevron.svg");
  background-repeat: no-repeat;
  background-size: 16px;
  background-position: right 16px center;
  padding-inline: 16px 46px;
  min-height: 50px;
}
[dir="rtl"] select {
  background-position: left 16px center;
}
.money {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.money-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.money-currency {
  font-size: 0.75em;
  font-weight: 500;
  color: var(--muted);
}
.product-card .price-row {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  gap: 16px;
}
.product-card .price {
  font-size: 20px;
}
.product-card .card-link {
  flex-shrink: 0;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
}
.product-card .card-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
@media (max-width: 479px) {
  .product-card .price {
    font-size: 21px;
  }
  .filter-toolbar {
    gap: 14px 12px;
  }
  .field {
    gap: 8px;
  }
}
