/* ---------- Multilingual overrides ---------- */

html[lang="ru"] { --serif: "PT Serif", "Iowan Old Style", Georgia, serif; }
html[lang="fr"] { --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; }
html[lang="pt"] { --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif; }
html[lang="ar"] { --serif: "Noto Naskh Arabic", "Traditional Arabic", Georgia, serif; --sans: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; }
html[lang="zh-CN"] { --serif: "Noto Serif SC", "Songti SC", SimSun, serif; --sans: "Inter", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="vi"] { --serif: "Playfair Display", "Iowan Old Style", Georgia, serif; }

html[lang="ar"] body { letter-spacing: 0; }
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] .display,
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.18; }
html[lang="ar"] .eyebrow,
html[lang="ar"] .nav a,
html[lang="ar"] .btn,
html[lang="ar"] .chip { letter-spacing: 0; text-transform: none; }
html[lang="ar"] .hero h1 em,
html[lang="ar"] .feature h2 em { font-style: normal; }
html[lang="zh-CN"] .hero h1 { letter-spacing: 0; line-height: 1.08; }
html[lang="zh-CN"] .hero h1 em,
html[lang="zh-CN"] .feature h2 em { font-style: normal; }
html[lang="vi"] .hero h1 { line-height: 1.02; }

/* language switcher */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  font: 600 10px/1 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 0; height: 0; border-left: 3px solid transparent; border-right: 3px solid transparent; border-top: 4px solid currentColor; opacity: .6; }
.lang-menu[open] summary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.lang-menu__panel {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  min-width: 178px;
  padding: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(20, 23, 26, .14);
  z-index: 60;
  display: grid;
  gap: 2px;
}
.lang-menu__panel a {
  display: block;
  padding: 9px 10px;
  font-size: 12px;
  color: var(--ink-2);
  text-decoration: none;
}
.lang-menu__panel a:hover { background: var(--paper-2); }
.lang-menu__panel a.is-current { font-weight: 600; color: var(--accent); }

/* five category tiles */
.cat-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cat-grid--5 .cat-card__title { font-size: 19px; }
.cat-grid--5 .cat-card__sub { font-size: 11px; }

/* company block */
.company-card {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: start;
  padding: 42px;
  background: var(--card);
  border: 1px solid var(--line);
}
.company-card h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 14px 0 18px;
}
.company-card p { color: var(--muted); max-width: 52ch; line-height: 1.65; }
.company-card__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.company-card__badges span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.company-facts { display: grid; gap: 14px; margin: 0; }
.company-facts dt { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.company-facts dd { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: var(--ink); }
.company-facts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); }

/* about */
.about-heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 16px 0 22px;
  max-width: 16ch;
}
.about-copy { margin-top: 16px; max-width: 46ch; line-height: 1.7; }

/* wholesale */
.wholesale-terms { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wholesale-terms li { position: relative; padding-inline-start: 18px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.wholesale-terms li::before { content: ""; position: absolute; inset-inline-start: 0; top: .55em; width: 7px; height: 7px; background: var(--accent); }

/* footer languages */
.footer-langs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 22px 0 6px;
  border-top: 1px solid rgba(243, 237, 226, .14);
}
.footer-langs a { font-size: 11px; color: rgba(243, 237, 226, .62); text-decoration: none; }
.footer-langs a:hover { color: var(--paper); }
.footer-langs a.is-current { color: var(--paper); }

/* RTL */
[dir="rtl"] .nav a::after { left: auto; right: 0; }
[dir="rtl"] .brand,
[dir="rtl"] .header-inner,
[dir="rtl"] .topbar__inner,
[dir="rtl"] .footer-bottom,
[dir="rtl"] .hero__grid,
[dir="rtl"] .section-head,
[dir="rtl"] .shop-toolbar,
[dir="rtl"] .shop-meta,
[dir="rtl"] .product-card__foot,
[dir="rtl"] .buy-row { direction: rtl; }
[dir="rtl"] .link-arrow { display: inline-flex; gap: 8px; }
[dir="rtl"] .link-arrow::after { transform: scaleX(-1); }
[dir="rtl"] .hero__side { right: auto; left: 10px; }
[dir="rtl"] .product-tag { right: auto; left: 12px; }
[dir="rtl"] .quote-drawer { right: auto; left: 0; }
[dir="rtl"] .quote-item,
[dir="rtl"] .form-grid,
[dir="rtl"] .contact-row,
[dir="rtl"] .feature__row,
[dir="rtl"] .product-layout,
[dir="rtl"] .breadcrumb,
[dir="rtl"] .company-card,
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .hero__tag { right: auto; left: 18px; }
[dir="rtl"] .toast { left: auto; right: 24px; }
[dir="rtl"] .wa-float { right: auto; left: 22px; }
[dir="rtl"] .marquee__group { direction: rtl; }
[dir="rtl"] .footer-langs { justify-content: flex-start; }
[dir="rtl"] .quote-close,
[dir="rtl"] .quote-remove { margin-inline-start: 0; }

@media (max-width: 1100px) {
  .cat-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .company-card { grid-template-columns: 1fr; gap: 30px; padding: 30px; }
}
@media (max-width: 820px) {
  .cat-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lang-menu summary { height: 38px; padding: 0 9px; }
  .lang-menu__panel { inset-inline-end: auto; inset-inline-start: 0; }
}
@media (max-width: 560px) {
  .cat-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cat-grid--5 .cat-card__title { font-size: 16px; }
  .company-card { padding: 22px; }
}