:root {
  --p-bg: #a8a8aa; --p-surface: #b4b4b6; --p-ink: #0e0e0e; --p-muted: #3a3a3c;
  --p-accent: #1f5c49; --p-accent-ink: #fff; --p-action: #1f5c49; --p-action-ink: #fff;
  --p-inv-bg: #1b1b1c; --p-inv-surface: #232324; --p-inv-ink: #f1f1ed; --p-inv-muted: #c4c4c4;
  --font-display: "Vazirmatn", "Figtree", sans-serif;
  --font-text: "Vazirmatn", "Figtree", sans-serif;
  --display-weight: 400;
  --display-tracking: -.025em;
  --display-tracking-xl: -.035em;
  --wrap: min(100% - 48px, 1280px);
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--p-bg); color: var(--p-ink); font-family: var(--font-text); }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.wrap { width: var(--wrap); margin-inline: auto; }

.shop-nav { position: fixed; inset: 0 0 auto; height: 72px; z-index: 50; background: rgba(168,168,170,.98); border-bottom: 1px solid rgba(14,14,14,.14); }
.shop-nav .wrap { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Figtree", var(--font-text); font-size: 20px; font-weight: 600; direction: ltr; justify-self: end; }
.brand__mark, .admin-mark { width: 28px; height: 12px; border: 2px solid currentColor; border-radius: 50%; position: relative; display: inline-block; }
.brand__mark::after, .admin-mark::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--p-accent); border-radius: 50%; top: 1px; left: 9px; }
.nav__links { display: flex; gap: 28px; align-items: center; }
.nav__links a, .cart-link { text-decoration: none; font-size: 15px; font-weight: 500; position: relative; }
.nav__links a::after, .cart-link::after { content: ""; position: absolute; inset: auto 0 -7px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .15s ease; }
.nav__links a:hover::after, .nav__links a:focus-visible::after, .cart-link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__actions { justify-self: start; display: flex; align-items: center; gap: 16px; }
.shop-nav .nav__actions { display: flex !important; }
.cart-link span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; margin-inline-start: 6px; color: #fff; background: var(--p-accent); border-radius: 999px; font-size: 12px; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(14,14,14,.25); background: transparent; border-radius: 999px; padding: 13px 10px; }
.nav__toggle span { display: block; height: 1px; background: currentColor; margin: 5px 0; }
.mobile-menu { display: none; }
.skip-link { position: fixed; top: 8px; right: 24px; transform: translateY(-140%); background: #fff; padding: 10px 14px; z-index: 100; }
.skip-link:focus { transform: translateY(0); }

.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 10px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--p-action); text-decoration: none; font-weight: 500; cursor: pointer; }
.btn--primary { background: var(--p-action); color: var(--p-action-ink); }
.btn--secondary { background: transparent; color: inherit; border-color: currentColor; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
html[dir="rtl"][data-buttons="pill"] .btn--primary::after,
html[dir="rtl"][data-buttons="arrow"] :is(.btn--primary, .btn--secondary)::after {
  margin-inline: -2px 0;
  transform: scaleX(-1);
}
@media (hover: hover) and (pointer: fine) {
  html[dir="rtl"]:is([data-buttons="pill"], [data-buttons="arrow"]) .btn:hover::after {
    transform: translateX(-3px) scaleX(-1);
  }
}

.messages { position: fixed; top: 88px; left: 24px; z-index: 60; width: min(360px, calc(100% - 48px)); }
.message { background: #fff; border: 1px solid rgba(14,14,14,.14); padding: 14px 18px; border-radius: 12px; box-shadow: 0 14px 35px rgba(0,0,0,.12); }

.eyewin-hero { height: 100svh; min-height: 700px; position: relative; overflow: hidden; padding-top: 72px; }
.eyewin-hero__media { position: absolute; inset: 72px 0 0; overflow: hidden; }
.eyewin-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.eyewin-hero .hero-text { height: 100%; display: flex; align-items: center; position: relative; z-index: 2; }
.hero-copy { width: min(600px, 50%); background: var(--p-bg); padding: 48px; border-radius: 20px; margin-right: auto; }
.hero-kicker { font-family: "Figtree", sans-serif; direction: ltr; text-align: left; font-weight: 600; margin: 0 0 18px; }
.hero-copy h1 { font-size: clamp(44px, 5.4vw, 80px); line-height: 1.08; letter-spacing: -.035em; margin: 0; font-weight: 400; }
.hero__lead { font-size: 19px; line-height: 1.8; margin: 24px 0 32px; max-width: 48ch; }
.home-page > .section { height: 100svh; min-height: 760px; padding: 120px 0 72px; }
.home-page > .section > .wrap { height: 100%; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 48px; }
.section-head h2, .feature-copy h2 { font-size: clamp(32px, 4.2vw, 56px); line-height: 1.15; font-weight: 400; letter-spacing: -.025em; margin: 0; }
.section-head p { max-width: 430px; font-size: 17px; line-height: 1.8; margin: 0; color: var(--p-muted); }

.range-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.range-card { color: inherit; text-decoration: none; border: 1px solid rgba(14,14,14,.18); border-radius: 20px; overflow: hidden; background: var(--p-surface); }
.range-card__image { display: block; overflow: hidden; height: clamp(250px, 36vh, 340px); background: #eee; }
.range-card img { width: 100%; height: 100%; object-fit: cover; }
.range-card > span:last-child { display: grid; gap: 7px; padding: 22px; }
.range-card strong { font-size: 22px; font-weight: 500; }
.range-card small { font-size: 15px; color: var(--p-muted); }

.ground-inverse { background: var(--p-inv-bg); color: var(--p-inv-ink); }
.split-feature { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.feature-copy p { color: var(--p-inv-muted); font-size: 18px; line-height: 1.9; margin: 28px 0; }
.featured-links { display: grid; gap: 12px; }
.feature-photo { margin: 0; height: clamp(380px, 55vh, 520px); overflow: hidden; border-radius: 20px; }
.feature-photo img { width: 100%; height: 100%; object-fit: cover; }
.ground-inverse .btn--secondary { color: var(--p-inv-ink); }

.process-list { list-style: none; padding: 0; margin: 80px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.process-list li { min-height: 390px; border-top: 1px solid rgba(14,14,14,.35); padding-top: 24px; display: flex; flex-direction: column; }
.process-list li > span { display: block; color: var(--p-accent); font-family: "Figtree",sans-serif; font-size: 82px; line-height: 1; margin-bottom: auto; }
.process-list strong { display: block; font-size: 26px; font-weight: 500; }
.process-list p { line-height: 1.8; color: var(--p-muted); max-width: 34ch; }

.inner-page { padding-top: 72px; min-height: 80vh; }
.inner-page > section { min-height: calc(100vh - 72px); padding: 88px 0 120px; }
.page-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 48px; }
.page-head h1, .product-detail h1, .success-card h1 { font-size: clamp(42px, 6vw, 76px); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; margin: 0 0 16px; }
.page-head p { font-size: 18px; color: var(--p-muted); margin: 0; }
.catalog-tools { display: grid; grid-template-columns: 2fr 1fr auto; gap: 16px; align-items: end; background: var(--p-surface); padding: 20px; border-radius: 16px; margin-bottom: 40px; }
label { display: grid; gap: 8px; font-weight: 500; }
input, textarea, select { width: 100%; min-height: 48px; padding: 10px 14px; background: #fff; border: 1px solid rgba(14,14,14,.25); border-radius: 10px; color: #111; }
textarea { resize: vertical; }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card { background: var(--p-surface); border: 1px solid rgba(14,14,14,.12); border-radius: 16px; overflow: hidden; }
.product-card__media { display: block; height: 300px; background: #ececeb; overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: #d5d5d3; color: #555; font-size: 20px; }
.product-card__body { padding: 20px; }
.product-card__body > span { font-size: 13px; color: var(--p-muted); }
.product-card__body h2 { font-size: 21px; margin: 10px 0 20px; font-weight: 500; }
.product-card__body h2 a { text-decoration: none; }
.product-card__body p { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.product-card__body small { color: var(--p-muted); }
.empty-state { min-height: 420px; display: grid; place-content: center; justify-items: center; text-align: center; border: 1px solid rgba(14,14,14,.18); border-radius: 20px; padding: 48px; }
.empty-state h2 { font-size: 36px; font-weight: 400; margin: 0 0 12px; }
.empty-state p { color: var(--p-muted); margin: 0 0 28px; }

.product-detail__grid { display: grid; grid-template-columns: 7fr 5fr; gap: 72px; align-items: center; }
.product-detail__media { height: min(70vh, 720px); background: var(--p-surface); border-radius: 20px; overflow: hidden; }
.product-detail__media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail__copy > span { display: block; color: var(--p-muted); margin-top: 36px; }
.back-link { text-underline-offset: 5px; }
.product-price { font-size: 26px; font-weight: 500; }
.product-detail__copy > p:not(.product-price) { line-height: 1.9; color: var(--p-muted); }
.product-detail dl { margin: 32px 0; }
.product-detail dl div { display: flex; justify-content: space-between; border-bottom: 1px solid rgba(14,14,14,.18); padding: 14px 0; }
.product-detail dt { color: var(--p-muted); }

.cart-layout, .checkout-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; align-items: start; }
.cart-lines { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 24px; background: var(--p-surface); padding: 24px; border-radius: 16px; }
.cart-line h2 { margin: 0 0 6px; font-size: 20px; }
.cart-line h2 a { text-decoration: none; }
.cart-line p { margin: 0; color: var(--p-muted); }
.cart-line form { display: flex; gap: 10px; align-items: end; }
.cart-line input { width: 76px; }
.cart-summary, .checkout-summary { background: var(--p-inv-bg); color: var(--p-inv-ink); padding: 32px; border-radius: 20px; position: sticky; top: 96px; }
.cart-summary h2, .checkout-summary h2 { font-size: 22px; font-weight: 500; margin-top: 0; }
.cart-summary > p { font-size: 32px; }
.cart-summary .btn { width: 100%; }
.cart-summary small { display: block; color: var(--p-inv-muted); margin-top: 16px; line-height: 1.7; }
.checkout-form { background: var(--p-surface); padding: 32px; border-radius: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.checkout-form label:nth-of-type(n+4), .checkout-form button { grid-column: 1 / -1; }
.field-error { color: #9d1f1f; }
.checkout-summary > p, .checkout-summary > div { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.success-page .wrap { min-height: 60vh; display: grid; place-items: center; }
.success-card { max-width: 780px; text-align: center; }
.success-card > span { color: var(--p-accent); font-weight: 500; }
.success-card p { font-size: 18px; line-height: 1.9; color: var(--p-muted); }

.site-footer { background: var(--p-inv-bg); color: var(--p-inv-ink); padding: 80px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.site-footer h2 { font-size: 16px; font-weight: 500; margin: 0 0 18px; }
.site-footer a { display: block; width: fit-content; margin: 10px 0; text-decoration: none; color: var(--p-inv-muted); }
.site-footer p { color: var(--p-inv-muted); }
.brand--footer { color: var(--p-inv-ink) !important; }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px; display: flex; justify-content: space-between; color: var(--p-inv-muted); }
.footer-legal a { margin: 0; }

@media (max-width: 1023px) {
  .shop-nav .wrap { grid-template-columns: 1fr auto; }
  .nav__links { display: none; }
  .brand { justify-self: end; }
  .nav__actions { justify-self: start; }
  .nav__toggle { display: block; }
  .mobile-menu { position: fixed; inset: 72px 0 auto; background: var(--p-bg); padding: 36px 24px; border-bottom: 1px solid rgba(14,14,14,.15); }
  .mobile-menu.is-open { display: grid; gap: 20px; }
  .mobile-menu a { min-height: 48px; display: flex; align-items: center; font-size: 20px; text-decoration: none; }
  .hero-copy { width: min(650px, 72%); }
  .range-grid { grid-template-columns: repeat(3, 1fr); }
  .range-card__image { height: 290px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 640px) and (max-height: 800px) {
  .home-page > .section { padding-top: 88px; padding-bottom: 40px; }
  .range-card__image { height: 250px; }
  .feature-photo { height: 360px; }
  .process-list { margin-top: 40px; }
  .process-list li { min-height: 300px; }
}

@media (max-width: 639px) {
  :root { --wrap: min(100% - 48px, 1280px); }
  .shop-nav { height: 56px; }
  .shop-nav .wrap { gap: 12px; }
  .brand { font-size: 16px; }
  .brand__mark { width: 23px; }
  .cart-link { font-size: 0; }
  .cart-link span { font-size: 12px; margin: 0; }
  .nav__toggle { width: 42px; height: 42px; }
  .mobile-menu { inset-block-start: 56px; }
  .eyewin-hero { height: 100svh; min-height: 0; padding-top: 56px; background: var(--p-bg); display: grid; grid-template-rows: 42svh minmax(0, 1fr); }
  .eyewin-hero__media { position: relative; inset: auto; grid-row: 1; width: 100%; height: 100%; min-height: 0; align-self: stretch; }
  .eyewin-hero .hero-text { grid-row: 2; display: block; padding-top: 28px; }
  .hero-copy { width: 100%; background: transparent; padding: 0; margin: 0; }
  .hero-copy h1 { font-size: 42px; line-height: 1.12; }
  .hero__lead { font-size: 17px; line-height: 1.7; margin: 18px 0 24px; }
  .hero-copy .btn { width: 100%; }
  .home-page > .section { height: calc(var(--hm, 1) * 100lvh); min-height: calc(var(--hm, 1) * 100lvh); padding: 96px 0 64px; }
  .section-head { display: block; margin-bottom: 32px; }
  .section-head h2, .feature-copy h2 { font-size: 32px; }
  .section-head p { margin-top: 16px; }
  .range-grid { grid-template-columns: 1fr; }
  .range-card__image { height: 250px; }
  .split-feature { grid-template-columns: 1fr; gap: 32px; }
  .feature-photo { height: 300px; order: -1; }
  .process-list { grid-template-columns: 1fr; gap: 40px; margin-top: 48px; }
  .process-list li { min-height: 260px; }
  .process-list li > span { font-size: 54px; margin-bottom: auto; }
  .inner-page { padding-top: 56px; }
  .inner-page > section { padding: 64px 0 88px; }
  .page-head h1, .product-detail h1, .success-card h1 { font-size: 42px; }
  .catalog-tools { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .product-card__media { height: 340px; }
  .product-detail__grid, .cart-layout, .checkout-grid { grid-template-columns: 1fr; gap: 32px; }
  .product-detail__media { height: 420px; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-line form { align-items: end; }
  .cart-summary, .checkout-summary { position: static; }
  .checkout-form { grid-template-columns: 1fr; padding: 24px; }
  .checkout-form label { grid-column: 1 !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { display: grid; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
