@font-face {
  font-family: "Vazirmatn";
  src: url("assets/fonts/Vazirmatn-variable.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #173c32;
  --ink-muted: #64746b;
  --paper: #f7f8f2;
  --line: #dce4d6;
  --accent: #e4efc4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
}
.image-viewer-open { overflow: hidden; }
a { color: inherit; }
button { font: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #789c4d; outline-offset: 4px; }

.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { text-decoration: none; font-size: 30px; line-height: 1; font-weight: 800; letter-spacing: -2px; }
.brand-dot { color: #91ab58; }
.header-instagram { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-instagram:hover { color: #7d4a8c; }
.header-instagram svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.page-content { flex: 1; padding-block: 56px 90px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 10px; color: #658248; font-size: 12px; font-weight: 700; letter-spacing: .03em; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 52px); line-height: 1.4; letter-spacing: -.04em; }
.intro-copy { margin: 8px 0 0; color: var(--ink-muted); font-size: 15px; }
.product-count { margin: 0 0 5px; color: var(--ink-muted); white-space: nowrap; font-size: 13px; }
.sample-notice { margin: 0 0 24px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; color: #52634d; font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.catalog-sentinel { height: 1px; }
.load-more { display: block; margin: 28px auto 0; padding: 10px 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; }
.load-more:hover { border-color: var(--ink); }
.product-card { min-width: 0; text-decoration: none; }
.card-image-frame { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 4.6; border-radius: 18px; background: #e8eadf; }
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.product-card:hover .card-image { transform: scale(1.035); }
.card-badge { position: absolute; top: 14px; right: 14px; padding: 4px 12px; border-radius: 100px; background: rgba(247,248,242,.94); font-size: 11px; font-weight: 700; }
.card-name { display: block; margin-top: 12px; font-size: 20px; font-weight: 700; }
.card-price { display: block; margin-top: 2px; color: var(--ink); font-size: 15px; font-weight: 700; }
.empty-message { margin-top: 50px; color: var(--ink-muted); }
.site-footer { border-top: 1px solid var(--line); color: var(--ink-muted); font-size: 12px; padding-block: 20px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer-inner a { text-decoration: none; }
.footer-inner a:hover, .footer-inner a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

.location-page { max-width: 860px; }
.location-page h1 { margin-bottom: 26px; }
.location-card { padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.location-card + .location-card { margin-top: 18px; }
.location-card h2 { margin: 0 0 12px; font-size: clamp(20px, 3vw, 26px); line-height: 1.5; }
.location-card address { max-width: 58ch; font-style: normal; font-size: 16px; line-height: 2.2; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.map-option { display: flex; gap: 8px; }
.map-link, .copy-link { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.map-link { gap: 10px; min-width: 130px; padding: 10px 16px; text-decoration: none; font-weight: 700; }
.copy-link { width: 46px; min-height: 46px; cursor: pointer; }
.copy-link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.map-link:hover, .copy-link:hover { border-color: var(--ink); background: var(--paper); }
.copy-status { min-height: 1.5em; margin: 10px 0 0; color: var(--ink-muted); font-size: 12px; }
.phone-link { display: inline-block; color: var(--ink); font-size: 22px; font-weight: 700; text-decoration: none; }
.phone-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.detail-page { padding-top: 35px; }
.back-link { display: inline-block; margin-bottom: 32px; color: var(--ink-muted); text-decoration: none; font-size: 13px; }
.back-link::before { content: "←"; display: inline-block; margin-left: 9px; }
.back-link:hover { color: var(--ink); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(36px, 6vw, 90px); align-items: start; }
.main-image-frame { overflow: hidden; border-radius: 20px; background: #e8eadf; }
.main-image-button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: none; color: white; cursor: zoom-in; }
.main-image { width: 100%; height: auto; }
.image-zoom-hint { position: absolute; bottom: 14px; left: 14px; padding: 5px 12px; border-radius: 8px; background: rgba(23, 60, 50, .85); font-size: 12px; }
.image-viewer { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 24px; border: 0; background: #15251e; color: white; }
.image-viewer[open] { display: flex; align-items: center; justify-content: center; }
.image-viewer::backdrop { background: rgba(0, 0, 0, .85); }
.image-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
.image-viewer-close { position: absolute; top: 14px; left: 14px; z-index: 1; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .18); color: white; font-size: 32px; line-height: 1; cursor: pointer; }
.image-viewer-close:hover { background: rgba(255, 255, 255, .3); }
.thumbnails { display: flex; gap: 12px; margin-top: 14px; }
.thumbnail { width: 78px; height: 78px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 10px; background: #e8eadf; cursor: pointer; }
.thumbnail[aria-pressed="true"] { border-color: var(--ink); }
.thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding-top: 42px; }
.detail-copy h1 { margin-bottom: 18px; }
.sample-badge { display: inline-block; margin: 0 0 16px; padding: 3px 11px; border-radius: 100px; background: var(--accent); font-size: 11px; font-weight: 700; }
.detail-price { margin: 0 0 14px; font-size: 25px; font-weight: 800; }
.description { max-width: 50ch; margin: 0; color: #485d51; font-size: 16px; line-height: 2.2; white-space: pre-line; }
.video-link, .return-button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; margin-top: 28px; padding: 12px 20px; border-radius: 10px; background: var(--ink); color: white; font-size: 14px; font-weight: 700; text-decoration: none; }
.video-link:hover, .return-button:hover { background: #285b49; }
.play-icon { font-size: 12px; line-height: 1; }
.not-found { max-width: 560px; margin: 90px auto; text-align: center; }
.not-found h1 { font-size: 34px; }
.not-found p { color: var(--ink-muted); }

@media (max-width: 800px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
  .gallery { max-width: 680px; }
  .detail-copy { padding-top: 0; }
}

@media (max-width: 520px) {
  .shell { width: min(100% - 32px, 440px); }
  .header-inner { min-height: 70px; gap: 10px; }
  .brand { font-size: 27px; }
  .header-instagram { gap: 5px; font-size: 10px; }
  .header-instagram svg { width: 19px; height: 19px; }
  .page-content { padding-block: 34px 65px; }
  .intro { align-items: start; flex-direction: column; gap: 7px; margin-bottom: 22px; }
  .product-count { margin: 0; }
  .product-grid { grid-template-columns: 1fr; gap: 32px; }
  .card-image-frame { aspect-ratio: 4 / 4; }
  .detail-page { padding-top: 24px; }
  .back-link { margin-bottom: 22px; }
  .description { font-size: 15px; }
  .map-links { display: grid; grid-template-columns: 1fr; }
  .map-link { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card-image { transition: none; }
}
