:root {
  --ink: #201a17;
  --ink-soft: #5d534c;
  --paper: #faf7f1;
  --card: #ffffff;
  --line: #e8e0d3;
  --brand: #b45309;
  --brand-dark: #8a3f07;
  --brand-soft: #fdf0df;
  --success: #2f6b45;
  --danger: #a33a2c;
  --shadow: 0 18px 50px rgba(54, 39, 24, 0.1);
  --radius: 20px;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(circle at 90% -10%, rgba(180, 83, 9, 0.1), transparent 38rem),
    var(--paper);
  color: var(--ink);
  font-family: "Cairo", "Segoe UI", Tahoma, "Noto Naskh Arabic", Arial, sans-serif;
  line-height: 1.7;
  min-height: 100dvh;
}

body.modal-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

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

.contact-bar :focus-visible {
  outline-color: #ffd8a8;
}

.skip {
  position: fixed;
  inset-inline-start: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.7rem 1rem;
  border-radius: 0.6rem;
}

.skip:focus {
  top: 1rem;
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 247, 241, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(232, 224, 211, 0.8);
}

.header-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brand-soft);
  font-size: 1.3rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem;
}

.main-nav a {
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--ink);
  color: white;
}

.badge {
  display: inline-grid;
  place-items: center;
  min-width: 1.3rem;
  height: 1.3rem;
  margin-inline-start: 0.2rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  font-size: 0.7rem;
}

.header-call {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-dark);
}

main {
  min-height: 60vh;
}

.page {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3.5rem 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 0.7rem;
}

h2 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.muted {
  color: var(--ink-soft);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.65rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
}

.button:hover:not(:disabled) {
  background: #332a25;
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 1;
  background: #76706a;
  color: #ffffff;
  border-color: #76706a;
  cursor: not-allowed;
}

.button.ghost:disabled {
  background: transparent;
  color: #59524c;
  border-color: #9a948d;
}

.button.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button.ghost:hover:not(:disabled) {
  background: white;
}

.button.wide {
  width: 100%;
}

.link-button {
  border: 0;
  padding: 0;
  background: none;
  text-align: inherit;
  font-weight: 700;
}

.link-button:hover {
  color: var(--brand-dark);
}

.text-link {
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.92rem;
}

.hero {
  width: min(1180px, calc(100% - 2rem));
  margin: 2rem auto 0;
  min-height: 500px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(253, 240, 223, 0.86)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(180, 83, 9, 0.04) 18px 19px);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 44ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.hero-art {
  position: relative;
  height: 330px;
}

.lens {
  position: absolute;
  border-radius: 50%;
  border: 12px solid var(--ink);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.9), transparent 24%),
    linear-gradient(140deg, rgba(180, 83, 9, 0.5), rgba(32, 26, 23, 0.75));
  box-shadow: 0 30px 50px rgba(54, 39, 24, 0.2);
}

.lens-one {
  width: 220px;
  height: 220px;
  top: 18px;
  right: 20px;
}

.lens-two {
  width: 170px;
  height: 170px;
  bottom: 10px;
  left: 30px;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.85), transparent 24%),
    linear-gradient(140deg, rgba(32, 26, 23, 0.65), rgba(180, 83, 9, 0.45));
}

.hero-line {
  position: absolute;
  width: 95px;
  height: 14px;
  background: var(--ink);
  border-radius: 999px;
  top: 120px;
  right: 205px;
  transform: rotate(-12deg);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.6rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.product-card {
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(54, 39, 24, 0.05);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card-hit {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  text-align: inherit;
  cursor: pointer;
}

.product-visual {
  position: relative;
  aspect-ratio: 1 / 0.82;
  width: 100%;
  border: 0;
  background: linear-gradient(160deg, #f3eee5, #fff);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.product-card:hover .product-visual img,
.product-card-hit:hover .product-visual img,
.product-card-hit:focus-visible .product-visual img {
  transform: scale(1.04);
}

.product-placeholder {
  font-size: 4rem;
  color: #cfc6b9;
}

.sale-flag {
  position: absolute;
  top: 0.8rem;
  inset-inline-start: 0.8rem;
  background: var(--brand);
  color: white;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.product-copy {
  min-width: 0;
  padding: 1rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.product-copy .eyebrow,
.product-copy .price,
.product-copy .old-price,
.product-copy .stock {
  display: block;
}

.product-copy .eyebrow {
  margin-bottom: 0.1rem;
  font-size: 0.68rem;
}

.product-copy h3,
.product-copy .product-name {
  margin-bottom: 0.25rem;
  font-size: 1.02rem;
  font-weight: 700;
  display: block;
}

.price {
  font-weight: 800;
  color: var(--brand-dark);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.old-price {
  color: var(--ink-soft);
  text-decoration: line-through;
  font-size: 0.82rem;
  margin-bottom: 0;
}

.stock {
  margin: auto 0 0;
  padding-top: 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.stock.in {
  color: var(--success);
}

.stock.out {
  color: var(--danger);
}

.skeleton-card {
  height: 360px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #eee7dc 30%, #f8f4ed 50%, #eee7dc 70%);
  background-size: 300% 100%;
}

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

.empty {
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.45);
}

.highlights {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 0;
}

.highlight {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.highlight-number {
  color: var(--brand);
  font-weight: 800;
  font-size: 0.78rem;
}

.highlight p {
  margin: 0.3rem 0 0;
  font-weight: 700;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.branch-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.branch-card h3 {
  font-size: 1.2rem;
}

.branch-card a {
  color: var(--brand-dark);
  font-weight: 700;
}

.contact-bar {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.contact-bar p {
  margin: 0;
}

.contact-bar strong {
  color: #ffd8a8;
  direction: ltr;
  unicode-bidi: embed;
}

.contact-bar .button.ghost {
  color: white;
  border-color: rgba(255, 255, 255, 0.3);
}

.filters {
  display: grid;
  grid-template-columns: 1fr 220px 190px;
  gap: 0.75rem;
  margin-bottom: 1.6rem;
  padding: 0.75rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
}

.filters input::placeholder,
.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: var(--ink-soft);
  opacity: 1;
}

.filters input,
.filters select,
.form-grid input,
.form-grid select,
.form-grid textarea,
.buy-row input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fffdf9;
  padding: 0.7rem 0.85rem;
  min-height: 44px;
}

.filters input:focus,
.filters select:focus,
.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 3px solid var(--brand-dark);
  outline-offset: 1px;
  border-color: var(--brand);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-button {
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  font-weight: 700;
}

.page-button.active {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.page-button:disabled {
  opacity: 1;
  color: #59524c;
  border-color: #cfc8bd;
  background: #f3eee7;
  cursor: not-allowed;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(22, 17, 14, 0.55);
  backdrop-filter: blur(6px);
}

.modal {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  background: var(--card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 1.2rem;
}

.modal-loading {
  padding: 3rem;
  text-align: center;
}

.modal-close {
  position: absolute;
  top: 0.8rem;
  inset-inline-end: 0.8rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  font-size: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.modal-visual {
  border-radius: 20px;
  background: linear-gradient(160deg, #f3eee5, #fff);
  display: grid;
  place-items: center;
  min-height: 320px;
  overflow: hidden;
  padding: 1rem;
}

.modal-visual > img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: contain;
  padding: 0.5rem;
}

.gallery {
  width: 100%;
  display: grid;
  gap: 0.75rem;
}

.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #fbf8f2;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
  display: block;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0;
  background: #fbf8f2;
  cursor: pointer;
  overflow: hidden;
}

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

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: var(--brand, #b45309);
}

.gallery-thumb:focus-visible {
  outline: 2px solid var(--brand, #b45309);
  outline-offset: 2px;
}

.modal-copy {
  padding: 1.5rem 0.5rem;
}

.modal-copy h2 {
  font-size: 1.8rem;
}

.product-meta {
  display: grid;
  gap: 0.5rem;
  margin: 1.2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.product-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.product-meta dt {
  color: var(--ink-soft);
}

.product-meta dd {
  margin: 0;
  font-weight: 700;
}

.buy-row {
  display: flex;
  align-items: end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.buy-row label {
  width: 110px;
  font-size: 0.85rem;
  font-weight: 700;
}

.buy-row input {
  margin-top: 0.25rem;
}

.qty-field {
  width: 140px;
}

.qty-field label {
  display: block;
  width: auto;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.qty-field input {
  margin-top: 0;
}

.stock-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  min-height: 1.2em;
}

.price-block {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.5rem;
}

.price-block .price {
  margin: 0;
}

.price-block .old-price {
  margin: 0;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 0.82rem;
  font-weight: 800;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.modal-actions .button {
  min-width: 140px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1.5rem;
  align-items: start;
}

.cart-line {
  min-width: 0;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin-bottom: 0.8rem;
}

.cart-thumb {
  width: 96px;
  height: 82px;
  border-radius: 14px;
  background: #f5f0e8;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.4rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.qty-control button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  font-weight: 800;
}

.qty-control .remove {
  width: auto;
  border: 0;
  border-radius: 0;
  color: var(--danger);
  font-size: 0.8rem;
  margin-inline-start: 0.4rem;
}

.checkout-card,
.track-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  position: sticky;
  top: 94px;
}

.track-card {
  position: static;
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

.form-grid.compact {
  grid-template-columns: 1fr 1fr auto;
  align-items: end;
}

.form-grid label {
  display: grid;
  gap: 0.3rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.payment-options {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.payment-options legend {
  padding: 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.payment-options input {
  width: auto;
  min-height: auto;
}

.totals {
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals dt {
  color: var(--ink-soft);
}

.totals dd {
  margin: 0;
  font-weight: 700;
}

.totals .grand {
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 1.15rem;
}

.fine-print {
  color: var(--ink-soft);
  font-size: 0.75rem;
  margin: 0;
}

.track-result {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--brand-soft);
}

.status-pill {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: var(--success);
  color: white;
  font-size: 0.8rem;
  font-weight: 700;
}

.order-confirmation {
  margin-top: 1.2rem;
  padding: 1.2rem;
  border: 1px solid #cfe4d7;
  border-radius: 16px;
  background: #f2faf5;
}

.success-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.notice {
  padding: 1.1rem 1.3rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
}

.notice.error {
  border-color: #efc9c3;
  background: #fff6f4;
  color: var(--danger);
}

.notice p {
  margin-bottom: 0.8rem;
}

.policy-page {
  max-width: 860px;
}

.policy-body {
  margin-top: 1.8rem;
  padding: clamp(1.2rem, 4vw, 2.5rem);
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1.02rem;
}

.policy-body h2,
.policy-body h3,
.policy-body h4 {
  margin-top: 1.6rem;
}

.policy-body a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-body ul,
.policy-body ol {
  padding-inline-start: 1.4rem;
}

.updated {
  margin-top: 1rem;
  font-size: 0.82rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
  background: #f3ede3;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid h2 {
  font-size: 0.9rem;
  margin-bottom: 0.7rem;
}

.footer-grid a {
  display: block;
  color: var(--ink-soft);
  font-size: 0.9rem;
  padding: 0.12rem 0;
}

.footer-grid a:hover {
  color: var(--brand-dark);
}

.footer-brand {
  margin-bottom: 0.7rem;
}

.footer-note {
  width: min(1180px, calc(100% - 2rem));
  margin: 2.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.78rem;
}

#toast {
  position: fixed;
  bottom: 1.4rem;
  inset-inline-start: 50%;
  transform: translate(-50%, 1rem);
  z-index: 100;
  background: var(--ink);
  color: white;
  padding: 0.75rem 1.2rem;
  border-radius: 999px;
  font-size: 0.88rem;
  opacity: 0;
  pointer-events: none;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 950px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art {
    display: none;
  }

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

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

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

  .checkout-card {
    position: static;
  }

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

  .filters .search-field {
    grid-column: 1 / -1;
  }

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

  .modal-visual {
    min-height: 240px;
  }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .cart-line {
    grid-template-columns: 64px 1fr;
  }

  .cart-thumb {
    width: 64px;
    height: 58px;
  }
}

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

  .header-call {
    display: none;
  }

  .main-nav a {
    padding: 0.45rem 0.7rem;
    font-size: 0.85rem;
  }

  .brand span:not(.brand-mark) {
    font-size: 0.95rem;
  }

  .hero {
    margin-top: 1rem;
    border-radius: 24px;
    padding: 1.6rem;
  }

  .page {
    padding: 2.2rem 0;
  }

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

  .product-copy {
    padding: 0.8rem;
  }

  .product-copy h3 {
    font-size: 0.9rem;
  }

  .price {
    font-size: 0.92rem;
  }

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

  .cart-line {
    grid-template-columns: 74px 1fr;
  }

  .cart-thumb {
    width: 74px;
    height: 70px;
  }

  .cart-line > strong {
    grid-column: 2;
  }

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

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

.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }


/* Cairo everywhere, including form controls (they do not inherit by default). */
button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: inherit;
}
/* Prices, quantities and totals keep equal-width digits so columns line up. */
.totals dd,
.cart-line strong,
.qty-control span,
[class*="price"] {
  font-variant-numeric: tabular-nums lining-nums;
}


@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  .main-nav a {
    transition: background 0.2s, color 0.2s;
  }

  .button {
    transition: transform 0.15s, background 0.2s, opacity 0.2s;
  }

  .product-card {
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .product-visual img {
    transition: transform 0.35s;
  }

  .skeleton-card {
    animation: shimmer 1.2s infinite linear;
  }

  #toast {
    transition: opacity 0.2s, transform 0.2s;
  }
}
