@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/arabic.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Arabic";
  src: url("assets/arabic-semibold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Noto Naskh Arabic";
  src: url("assets/naskh-display.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f8f5ee;
  --white: #fffdf8;
  --ink: #28221e;
  --muted: #62584e;
  --line: #d9cfc0;
  --wash: #ede5d8;
  --accent: #8b402e;
  --dark: #28211c;
  --sand: #e9c59c;
  --on-dark: #fff7e9;
  --display: "Noto Naskh Arabic", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 "IBM Plex Sans Arabic", Tahoma, Arial, sans-serif;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.16; }
.wrap { width: min(1240px, calc(100% - 112px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 4; top: 0; background: #f8f5eef2; border-bottom: 1px solid transparent; backdrop-filter: blur(8px); }
html { scroll-padding-top: 96px; }
.header-inner {
  min-height: 87px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}
.brand {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 12px;
}
.site-header .brand { min-width: 0; }
.brand-logo {
  display: block;
  width: 57px;
  height: 57px;
  flex: none;
  object-fit: contain;
}
.brand-name {
  font-size: clamp(1.0625rem, 1.6vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}
nav { display: flex; gap: clamp(22px, 4vw, 54px); font-weight: 600; }
nav a { padding-block: 10px; }
nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-cta {
  justify-self: end;
  text-align: center;
  min-height: 44px;
  padding: 8px 17px;
  border: 1px solid var(--line);
  font-weight: 600;
  white-space: nowrap;
}
.header-cta:hover { border-color: var(--accent); color: var(--accent); }

.hero { background: var(--dark); color: var(--on-dark); }
.hero-inner { display: grid; grid-template-columns: 46% 54%; max-width: 1720px; margin-inline: auto; }
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: clamp(47px, 6vw, 94px) clamp(27px, 6.1vw, 108px) clamp(53px, 6.5vw, 104px) 24px;
}
h1 { font-size: clamp(3.05rem, 5.4vw, 5.8rem); line-height: 1.12; }
h1 span { display: block; }
h1 span + span { color: var(--sand); }
.intro { max-width: 350px; margin-top: 18px; color: #ecdccd; font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 26px; }
.hero-link { min-height: 44px; display: inline-flex; align-items: center; color: var(--sand); font-weight: 600; text-decoration: underline; text-underline-offset: 6px; }
.hero-link:hover { color: #f2d8ba; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 49px;
  padding: 10px 20px;
  background: var(--sand);
  color: var(--dark);
  font-weight: 600;
}
.button:hover { background: #f2d8ba; }
.hero :focus-visible, footer :focus-visible { outline-color: var(--sand); }
.hero-photo { position: relative; overflow: hidden; min-height: clamp(440px, 43vw, 660px); background: #705040; }
.hero-photo img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% 51%; }

.catalog-section { padding-block: clamp(52px, 6.1vw, 95px); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 19px;
}
h2 { font-size: clamp(2.65rem, 4.15vw, 4.4rem); }
.section-head p { margin-top: 3px; color: var(--muted); }
.muted { color: var(--muted); }
.filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(173px, .29fr); gap: 10px; margin-bottom: 22px; }
.filters label { position: relative; }
.filters input, .filters select {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--white);
  padding: 7px 15px;
  border-radius: 0;
}
.filters input { padding-inline-start: 45px; }
.filters input::placeholder { color: var(--muted); }
.filters select { appearance: none; padding-inline-end: 39px; }
.filter-select::after {
  content: "";
  position: absolute;
  inset-inline-end: 18px;
  top: 20px;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  pointer-events: none;
}
.search-icon {
  position: absolute;
  inset-inline-start: 16px;
  top: 17px;
  width: 14px;
  height: 14px;
  border: 1.6px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 1.5px;
  background: var(--accent);
  transform: rotate(-45deg);
  inset-inline-end: 8px;
  top: 12px;
}
.catalog-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 25px); }
.catalog-card { min-width: 0; border: 1px solid var(--line); background: var(--white); }
.fabric {
  background-color: var(--tone);
  background-image: linear-gradient(138deg, #ffffff28, transparent 45%, #26362d29),
    repeating-linear-gradient(0deg, #fff0 0 2px, #ffffff30 2.5px 3px, #24211b26 3px 4px),
    repeating-linear-gradient(90deg, #fff0 0 2px, #fff3 2.5px 3px, #24211b26 3px 4px);
}
.velvet {
  background-image: linear-gradient(135deg, #071c11a6, #ffffff38 40%, #071c115e 67%, transparent),
    repeating-linear-gradient(47deg, transparent 0 2px, #ffffff0f 2px 3px);
}
.card-fabric { overflow: hidden; aspect-ratio: 1.55; }
.card-fabric img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; transition: transform .4s ease; }
.catalog-card:hover img, .catalog-card:focus-within img { transform: scale(1.035); }
.card-body { padding: 15px clamp(12px, 1.6vw, 22px) 12px; }
.card-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.code { font: 600 .85rem/1.3 ui-monospace, monospace; letter-spacing: .025em; color: var(--muted); }
h3 { font-size: clamp(1.54rem, 2.35vw, 2.2rem); }
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  border-top: 1px solid var(--line);
  margin-top: 9px;
  padding-top: 5px;
}
.swatches { display: flex; gap: 5px; }
.swatches span { width: 17px; height: 17px; border: 1px solid #28221e30; background: var(--tone); }
.details-button {
  min-height: 44px;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}
.details-button:hover { text-decoration: underline; text-underline-offset: 5px; }
.empty { grid-column: 1 / -1; padding: 26px; border: 1px solid var(--line); }

.fabric-guide {
  padding-block: clamp(28px, 5vw, 60px);
  border-block: 1px solid var(--line);
  background: var(--wash);
}
.fabric-guide h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.fabric-guide-frame {
  margin-block-start: clamp(14px, 2.5vw, 25px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}
.fabric-guide-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.fabric-guide-table th,
.fabric-guide-table td {
  padding: clamp(10px, 1.5vw, 21px);
  text-align: start;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.fabric-guide-table thead { background: var(--dark); color: var(--on-dark); }
.fabric-guide-table thead th:first-child { width: 23%; }
.fabric-guide-table thead th:nth-child(2) { background: #664635; }
.fabric-guide-table tbody tr + tr { border-block-start: 1px solid var(--line); }
.fabric-guide-table tbody td:nth-child(2) { background: #f4ebde; }
.fabric-guide-table tbody td:last-child { color: var(--muted); }

.branch-section { padding-block: 40px; }
.branch-inner h2 { font-size: clamp(2.45rem, 3.4vw, 3.5rem); }
.branch-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-block: 18px 22px;
}
.branch-card {
  padding: 17px 19px;
  border: 1px solid var(--line);
  background: var(--white);
}
.branch-card h3, .social-section h3 { font-size: 1.45rem; }
.branch-name { margin-block-start: 5px; font-weight: 600; }
.branch-card address { margin-block-start: 3px; color: var(--muted); font-style: normal; }
.contact-link { display: inline-flex; align-items: center; min-height: 36px; }
.branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block-start: 10px; }
.branch-phone, .branch-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 6px;
}
.branch-phone { gap: 7px; padding-inline: 8px; border: 1px solid var(--line); font-weight: 600; }
.branch-whatsapp { width: 44px; background: #0b694d; }
.branch-whatsapp:hover { background: #07543e; }
.contact-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.branch-phone:hover { text-decoration: underline; text-underline-offset: 4px; }
.social-section { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; }
.social-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.social-link {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  color: #fff;
}
.social-link svg { width: 25px; height: 25px; }
.social-link--instagram { background: radial-gradient(circle at 24% 105%, #e5a13a 1%, #c63769 48%, #5736a4 93%); }
.social-link--tiktok { background: #161616; }
.social-link:hover:not(:focus-visible) { outline: 1px solid var(--accent); outline-offset: 2px; }
footer { background: var(--dark); color: var(--on-dark); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-block: 25px; }
.brand-footer .brand-logo { width: 40px; height: 40px; filter: brightness(1.55) saturate(.78); }
.brand-legal { font: 600 1.35rem/1.25 var(--display); }
.footer-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; color: #e1cdbb; font-size: .93rem; }
.footer-meta a { text-decoration: underline; text-underline-offset: 4px; }
.business-details {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 6px 24px;
  margin: 0;
  padding-block-start: 12px;
  border-block-start: 1px solid #fff7e933;
  color: #e1cdbb;
  font-size: .93rem;
}
.business-details > div { display: flex; flex-wrap: wrap; column-gap: 8px; }
.business-details dd { margin: 0; color: var(--on-dark); font-variant-numeric: tabular-nums; }

.cookie-notice:not([hidden]) {
  position: fixed;
  z-index: 5;
  inset-inline: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 6px 18px;
  width: min(620px, calc(100% - 28px));
  margin-inline: auto;
  padding: 15px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 6px 24px #28211c1c;
}
.cookie-notice > div { flex: 1 1 280px; }
.cookie-notice h2 { font-size: 1.35rem; }
.cookie-notice p { margin-block-start: 3px; color: var(--muted); font-size: .93rem; }
.cookie-notice .button { min-height: 44px; border: 0; }
.privacy-page { max-width: 720px; padding-block: clamp(32px, 7vw, 80px); }
.privacy-page h1 { margin-block: 14px 20px; font-size: clamp(2.45rem, 6vw, 4rem); }
.privacy-page section { margin-block: 24px; }
.privacy-page h2 { margin-block-end: 8px; font-size: 1.55rem; }
.privacy-page p { color: var(--muted); }
.privacy-business-link { margin-inline-start: 12px; }

dialog {
  width: min(610px, calc(100% - 30px));
  max-height: calc(100% - 30px);
  border: 1px solid var(--line);
  padding: 0;
  background: var(--paper);
  color: var(--ink);
}
dialog::backdrop { background: #231b16b8; }
.dialog-inner { position: relative; padding: clamp(20px, 4vw, 34px); }
.dialog-inner h2 { margin-block: 8px 3px; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; margin-inline-end: 38px; }
.dialog-inner > form {
  position: sticky;
  z-index: 2;
  top: 0;
  height: 0;
  display: flex;
  justify-content: flex-end;
  margin-inline-end: calc(-1 * clamp(6px, 2vw, 20px));
  margin-block-start: calc(-1 * clamp(6px, 2vw, 20px));
}
.close {
  flex: none;
  box-shadow: 0 2px 10px #28211c24;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: 1.55rem/1 Arial, sans-serif;
}
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 19px; }
.color-item { display: grid; gap: 4px; }
.color-fabric { height: 84px; border: 1px solid #28221e25; }
.color-item bdi { width: max-content; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 960px) {
  .wrap { width: calc(100% - 66px); }
  .hero-copy { padding-inline-start: 33px; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: minmax(0, 1fr) auto; min-height: 65px; gap: 0 12px; padding-block: 11px 3px; }
  .brand { gap: 7px; }
  .brand-logo { width: 46px; height: 46px; }
  .brand-footer .brand-logo { width: 33px; height: 33px; }
  .brand-legal { font-size: 1.17rem; }
  .site-header { position: static; }
  html { scroll-padding-top: 0; }
  nav { grid-area: 2 / 1 / 3 / -1; justify-content: center; gap: 18px; font-size: .95rem; }
  nav a { padding-block: 7px; }
  .header-cta { grid-area: 1 / 2; padding-inline: 11px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding: 36px 18px 34px; }
  h1 { font-size: clamp(3rem, 9.9vw, 4.6rem); }
  .intro { margin-top: 13px; font-size: 1rem; }
  .hero-actions { margin-top: 19px; }
  .hero-photo { min-height: 0; aspect-ratio: 1.62; }
  .catalog-section { padding-block: 41px; }
  .section-head { align-items: start; flex-direction: column; gap: 8px; padding-bottom: 14px; }
  .card-heading, .card-bottom { flex-wrap: wrap; }
  .branch-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (max-width: 420px) {
  .fabric-guide-table { font-size: .875rem; line-height: 1.55; }
  .fabric-guide-table th, .fabric-guide-table td { padding: 10px 7px; }
  .fabric-guide-table thead th:first-child { width: 24%; }
  .filters { grid-template-columns: 1fr; }
  .card-body { padding: 10px 9px 4px; }
  .card-heading { row-gap: 2px; }
  .swatches span { width: 13px; height: 13px; }
}
@media (max-width: 340px) {
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-fabric img { transition: none; }
}

.catalog-card--collection .card-heading { align-items: center; flex-wrap: wrap; }
.catalog-card--collection .card-bottom { justify-content: flex-start; flex-wrap: wrap; }
.collection-cover { padding: clamp(6px, .9vw, 12px); background: var(--wash); }
.collection-cover img { border: 1px solid #47382820; box-shadow: 0 2px 5px #47382820; }
.catalog-count { font-size: .9rem; font-weight: 600; color: var(--accent); }
.collection-meta { color: var(--ink); margin-block: 3px 5px; }
.collection-note, .card-demo { color: var(--muted); font-size: .88rem; }
.card-demo { margin-block: 4px 6px; }
.detail-grid { list-style: none; padding: 0; }
.detail-grid--codes { grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 8px; }
.detail-grid--codes .color-item {
  justify-items: center;
  padding: 10px 6px;
  border: 1px solid var(--line);
  background: var(--white);
}
.detail-grid .color-item--match { outline: 2px solid var(--accent); outline-offset: 1px; }
.catalog-detail--photos { width: min(1190px, calc(100% - 20px)); }
.catalog-detail--photos .dialog-inner { padding-inline: clamp(10px, 2.2vw, 26px); }
.detail-grid--photos {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(12px, 2vw, 24px);
}
@media (min-width: 900px) {
  .detail-grid--photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sample-photo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--wash);
}
.sample-photo-link { display: block; border: 1px solid var(--line); background: var(--white); }
.sample-photo-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 2px 10px;
  padding: 7px clamp(6px, 1.1vw, 12px);
  font-size: .875rem;
}
.sample-photo-number { font-weight: 600; }
.sample-photo-number bdi { font-variant-numeric: tabular-nums; }
.sample-photo-action { color: var(--accent); }
.sample-photo-link:hover .sample-photo-action,
.sample-photo-link:focus-visible .sample-photo-action { text-decoration: underline; }

/* Ordering steps */
.order-steps { padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.order-steps h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  margin: clamp(16px, 2.5vw, 26px) 0 0;
  padding: 0;
  list-style: none;
}
.steps li { padding: clamp(16px, 2vw, 24px); border: 1px solid var(--line); background: var(--white); }
.step-number {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-block-end: 12px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--sand);
  font: 600 1.35rem/1 var(--display);
}
.steps h3 { font-size: 1.5rem; }
.steps p { margin-block-start: 6px; color: var(--muted); }
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; }
  .step-number { grid-row: span 2; margin: 0; }
}

/* WhatsApp branch menus */
.wa-menu { position: relative; }
.wa-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 6px;
  background: #0b694d;
  color: #fff;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.wa-menu summary::-webkit-details-marker { display: none; }
.wa-menu summary:hover { background: #07543e; }
.wa-menu ul {
  position: absolute;
  z-index: 3;
  inset-inline-start: 0;
  top: calc(100% + 6px);
  min-width: 220px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 26px #28211c2e;
}
.wa-menu a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--ink); font-weight: 600; }
.wa-menu a:hover, .wa-menu a:focus-visible { background: var(--wash); color: var(--accent); }
.wa-menu--sample summary { min-height: 40px; padding-inline: 10px; font-size: .9rem; }
.color-item .wa-menu { justify-self: start; }
.wa-float {
  position: fixed;
  z-index: 4;
  inset-inline-end: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
}
.wa-menu--float summary { min-height: 54px; padding-inline: 14px 18px; border-radius: 28px; box-shadow: 0 6px 20px #0b694d55; }
.wa-menu--float ul { top: auto; bottom: calc(100% + 8px); inset-inline-start: auto; inset-inline-end: 0; }
body:has(.cookie-notice:not([hidden])) .wa-float,
body:has(dialog[open]) .wa-float { display: none; }
@media (max-width: 720px) {
  .wa-menu--float summary span { display: none; }
  .wa-menu--float summary { width: 56px; padding: 0; justify-content: center; }
}

/* Full-size sample viewer */
.viewer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: #17120f;
  color: var(--on-dark);
}
.viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.viewer::backdrop { background: #17120f; }
.viewer :focus-visible { outline-color: var(--sand); }
.viewer-bar, .viewer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px clamp(12px, 3vw, 28px);
}
.viewer-title { font-weight: 600; font-size: 1.1rem; }
.viewer-title bdi { font-variant-numeric: tabular-nums; }
.viewer-count { margin-inline-start: 10px; color: #cbb8a6; font-size: .9rem; font-weight: 400; }
.viewer-close {
  width: 44px;
  height: 44px;
  border: 1px solid #fff7e940;
  background: transparent;
  color: var(--on-dark);
  font: 1.55rem/1 Arial, sans-serif;
}
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 0; padding-inline: clamp(0px, 6vw, 80px); }
.viewer-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  -webkit-user-drag: none;
}
.viewer-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 64px;
  border: 0;
  background: #17120fb3;
  color: var(--on-dark);
  font: 2.4rem/1 Arial, sans-serif;
}
.viewer-nav:hover { background: #17120f; color: var(--sand); }
.viewer-prev { inset-inline-start: 0; }
.viewer-next { inset-inline-end: 0; }
.viewer-open { color: var(--sand); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; display: inline-flex; align-items: center; }
.viewer .wa-menu ul { top: auto; bottom: calc(100% + 6px); }

/* Nearest branch (index.html#nearest) */
.nearest { display: grid; gap: 14px; margin-block: 8px 22px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); }
.nearest-intro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; }
.nearest-intro p { margin: 0; max-width: 560px; color: var(--muted); }
#nearest-button { display: inline-flex; align-items: center; gap: 8px; }
#nearest-button:disabled { opacity: .7; cursor: progress; }
.nearest-status { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--wash); }
.nearest-result { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(0, 1.6fr); gap: 16px; align-items: stretch; }
.nearest-card h3 { margin: 0 0 4px; font-size: 1.5rem; }
.nearest-card .eyebrow { margin: 0; }
.nearest-distance { margin: 0 0 12px; }
.nearest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.nearest-actions a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; }
.nearest-wa { padding-inline: 12px; border-radius: 8px; background: #0b694d; color: #fff; }
.nearest-rep { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.nearest-rep p { margin: 0 0 6px; }
.nearest-map { width: 100%; min-height: 320px; height: 100%; border: 0; border-radius: 8px; background: var(--wash); }
.branch-card.is-nearest { box-shadow: 0 0 0 2px var(--accent); }
@media (max-width: 720px) {
  .nearest { padding: 14px; }
  .nearest-result { grid-template-columns: 1fr; }
  .nearest-map { min-height: 280px; }
  #nearest-button { width: 100%; justify-content: center; }
}
