@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;
}
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-note { color: var(--ink-muted); font-size: 13px; }
.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; }
.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; }

.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; aspect-ratio: 4 / 4.4; border-radius: 20px; background: #e8eadf; }
.main-image { width: 100%; height: 100%; object-fit: cover; }
.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; }
.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; }
  .brand { font-size: 27px; }
  .header-note { font-size: 11px; }
  .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; }
  .main-image-frame { aspect-ratio: 4 / 4.5; }
  .description { font-size: 15px; }
}

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