/* ==========================================================================
   BASILVER — style.css : tokens, base, header, footer, page banner
   Direction: "Modern Iranian Luxury" — deep navy #102336 + white + silver,
   turquoise only as a hairline accent. Small type, generous white space.
   ========================================================================== */
:root {
  --navy: #102336;
  --navy-deep: #0a1827;
  --navy-soft: #1c3550;
  --navy-line: rgba(201, 208, 216, .15);
  --turq: #2a9d98;
  --turq-deep: #1c7a76;
  --turq-soft: #8fd0cb;
  --turq-tint: #eaf5f4;
  --silver: #c9d0d8;
  --silver-lo: #8d99a6;
  --white: #fff;
  --paper: #fbfaf7;
  --mist: #f3f4f6;
  --ink: #1a2a3a;
  --muted: #5e6c7a;
  --line: #e4e6ea;
  --ok: #2f7d5b;
  --warn: #a7701a;
  --bad: #a43b3b;
  --shadow: 0 8px 26px -16px rgba(16, 35, 54, .3);
  --shadow-hover: 0 18px 38px -20px rgba(16, 35, 54, .4);

  /* faint khatam tile (inline SVG) */
  --pat-silver: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%23c9d0d8' stroke-width='.7'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 0l16 16M64 0L48 16M0 64l16-16M64 64L48 48'/%3E%3C/svg%3E");
  --pat-turq: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64' fill='none' stroke='%232a9d98' stroke-width='.7'%3E%3Crect x='16' y='16' width='32' height='32'/%3E%3Crect x='16' y='16' width='32' height='32' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3Cpath d='M0 0l16 16M64 0L48 16M0 64l16-16M64 64L48 48'/%3E%3C/svg%3E");
  --orn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24'%3E%3Cpath d='M12 1Q12 12 23 12Q12 12 12 23Q12 12 1 12Q12 12 12 1Z' fill='%232a9d98'/%3E%3C/svg%3E");

  --font: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif;
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --radius: 8px;
  --ease: cubic-bezier(.25, .6, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; font-family: var(--font); font-size: 15px; font-weight: 400; line-height: 1.95; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--turq); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 8px 16px; }
.skip-link:focus { top: 8px; }
[hidden] { display: none !important; }
h1, h2, h3 { text-wrap: balance; }

.wrap { width: min(100% - var(--gutter) * 2, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(48px, 6vw, 80px); }
.section-tint { background: var(--paper); }
.section-navy { background: var(--navy); color: #e8edf1; position: relative; }

/* ---------- Section heading ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 500; color: var(--turq-deep); }
.eyebrow::before { content: ''; width: 12px; height: 12px; background: var(--orn) center / contain no-repeat; }
.section-navy .eyebrow { color: var(--turq-soft); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: clamp(24px, 3.5vw, 36px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(21px, 2.2vw, 27px); font-weight: 600; line-height: 1.6; color: var(--navy); }
.sec-head p { max-width: 42ch; font-size: 14px; color: var(--muted); }
.link-more { font-size: 13.5px; font-weight: 500; color: var(--turq-deep); display: inline-flex; gap: 6px; align-items: center; }
.link-more i { transition: transform .3s var(--ease); }
.link-more:hover i { transform: translateX(-3px); }

/* ---------- Header: white, compact, hairline ---------- */
.site-header { position: sticky; top: 0; z-index: 90; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .3s; }
.site-header::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(42, 157, 152, .55) 20%, rgba(42, 157, 152, .55) 80%, transparent); }
.site-header.is-stuck { box-shadow: 0 8px 24px -16px rgba(16, 35, 54, .35); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: var(--header-h); }
.brand { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; flex-shrink: 0; }
.brand-latin { font-weight: 700; font-size: 18px; letter-spacing: .24em; padding-inline-start: .24em; color: var(--navy); }
.brand-fa { font-size: 10.5px; font-weight: 500; letter-spacing: .34em; padding-inline-start: .34em; color: var(--turq-deep); margin-top: 4px; }
.main-nav { flex: 1; }
.main-nav > ul { display: flex; justify-content: center; gap: clamp(8px, 1.4vw, 20px); }
.main-nav > ul > li { position: relative; }
.main-nav a { position: relative; display: block; padding: 6px 4px; font-size: 13.5px; font-weight: 500; color: var(--navy); white-space: nowrap; transition: color .2s; }
.main-nav > ul > li > a::after { content: ''; position: absolute; inset-inline: 4px; bottom: 0; height: 1.5px; background: var(--turq); transform: scaleX(0); transition: transform .3s var(--ease); }
.main-nav a:hover { color: var(--turq-deep); }
.main-nav a[aria-current="page"] { color: var(--turq-deep); }
.main-nav > ul > li > a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.has-sub > a i { font-size: 10px; margin-inline-start: 4px; }
.sub { position: absolute; top: 100%; inset-inline-start: -12px; min-width: 170px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { padding: 6px 12px; border-radius: 6px; font-weight: 400; }
.sub a:hover { background: var(--turq-tint); }
.header-tools { display: flex; align-items: center; gap: 2px; margin-inline-start: auto; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--navy); font-size: 18px; transition: background .2s, color .2s; }
.icon-btn:hover { background: var(--turq-tint); color: var(--turq-deep); }
.cart-count { position: absolute; top: 2px; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 9px; background: var(--navy); color: #fff; font-size: 10.5px; font-weight: 600; line-height: 1; }
.cart-count.is-empty { background: var(--silver); color: var(--navy); }
.cart-count.bump { animation: bump .4s var(--ease); }
@keyframes bump { 40% { transform: scale(1.25); } }

/* Search overlay */
.search-panel { position: fixed; inset: 0 0 auto 0; z-index: 120; background: var(--navy); color: #fff; padding-block: 22px; transform: translateY(-101%); transition: transform .4s var(--ease); }
.search-panel.is-open { transform: none; }
.search-form { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--navy-line); padding-bottom: 12px; }
.search-form > i { font-size: 19px; color: var(--turq-soft); }
.search-form input { flex: 1; min-width: 0; background: transparent; border: 0; font-size: 16px; color: #fff; padding: 8px 4px; }
.search-form input::placeholder { color: var(--silver-lo); }
.search-form input:focus { outline: none; }
.search-form .icon-btn { color: #fff; }
.search-form .icon-btn:hover { background: var(--navy-soft); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy); color: var(--silver); padding-top: 48px; }
.site-footer::before { content: ''; position: absolute; inset: 0; background: var(--pat-silver) center top / 64px; opacity: .06; pointer-events: none; mask-image: linear-gradient(to bottom, #000, transparent 75%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 75%); }
.site-footer::after { content: ''; position: absolute; inset-inline: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--turq), transparent); opacity: .6; }
.site-footer .wrap { position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: clamp(24px, 4vw, 48px); padding-bottom: 36px; }
.site-footer h2 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.site-footer p { font-size: 13.5px; color: var(--silver-lo); }
.site-footer li { margin-bottom: 4px; font-size: 13.5px; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: var(--turq-soft); }
.footer-brand .brand-latin { color: #fff; }
.footer-brand .brand { align-items: flex-start; margin-bottom: 12px; }
.footer-brand .brand-fa { color: var(--turq-soft); }
.footer-about p { margin-bottom: 14px; max-width: 34ch; }
.social { display: flex; gap: 8px; }
.social li { margin: 0; }
.social a { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--navy-line); border-radius: 50%; font-size: 15px; transition: background .2s, border-color .2s, color .2s; }
.social a:hover { background: var(--turq-deep); border-color: var(--turq-deep); color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--silver-lo); }
.contact-list i { color: var(--turq-soft); margin-top: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--navy-line); padding-block: 16px; }
.footer-bottom p { font-size: 12px; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner { background: var(--navy); color: #fff; padding-block: clamp(28px, 4vw, 44px); position: relative; overflow: hidden; }
.page-banner::before { content: ''; position: absolute; inset: 0; background: var(--pat-silver) 0 0 / 64px; opacity: .07; mask-image: linear-gradient(to left, #000, transparent 65%); -webkit-mask-image: linear-gradient(to left, #000, transparent 65%); pointer-events: none; }
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner .eyebrow { color: var(--turq-soft); }
.page-banner h1 { font-size: clamp(22px, 2.8vw, 32px); font-weight: 600; line-height: 1.6; margin-top: 2px; }
.page-banner p { color: var(--silver); max-width: 56ch; margin-top: 4px; font-size: 14px; }
.crumbs { display: flex; gap: 8px; font-size: 12px; color: var(--silver-lo); margin-bottom: 10px; }
.crumbs a:hover { color: #fff; }
.crumbs li + li::before { content: '‹'; margin-inline-end: 8px; opacity: .7; }

/* ---------- Reveal (gentle) ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Logo image ---------- */
.brand-logo { height: 42px; width: auto; max-width: none; }
.footer-brand .brand-logo { height: 52px; }
@media (max-width: 960px) { .brand-logo { height: 38px; } }

/* ---------- Mobile quick-access bar ---------- */
.quick-bar { display: none; }
@media (max-width: 960px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .quick-bar { position: fixed; z-index: 95; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 24, 39, .96); backdrop-filter: blur(12px); border-top: 1px solid rgba(143, 208, 203, .35); box-shadow: 0 -10px 30px -12px rgba(0, 0, 0, .5); }
  .quick-bar a { display: grid; justify-items: center; gap: 1px; padding: 4px 2px; color: #aebbc8; font-size: 11px; font-weight: 500; line-height: 1.5; border-radius: 10px; white-space: nowrap; transition: color .25s; }
  .quick-bar i { font-size: 20px; line-height: 1.2; }
  .quick-bar a[aria-current="page"] { color: var(--turq-soft); }
  .quick-bar a:active { background: rgba(255, 255, 255, .06); }
  .quick-bar .quick-cta { position: relative; margin-top: -22px; color: #102336; font-weight: 700; }
  .quick-bar .quick-cta i { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 1px; border-radius: 50%; background: linear-gradient(135deg, #f4f7fa, #b9c6d2); color: #102336; font-size: 22px; box-shadow: 0 8px 20px -6px rgba(143, 208, 203, .55), 0 0 0 4px rgba(10, 24, 39, .96); }
  .quick-bar .quick-cta span { color: #e9eef3; }
  .toasts { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
}
