/* ============ PEIMI — Epoxy Resin & Wood Cutting Boards ============ */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f6f2;
  --bg-warm: #f3efe8;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --line: #e7e3dc;
  --accent: #0e6b6f;        /* deep ocean teal */
  --accent-soft: #e6f0f0;
  --sale: #c2410c;          /* warm burnt orange */
  --gold: #b08a4a;
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(20,20,20,.04);
  --shadow-md: 0 8px 24px rgba(20,20,20,.06);
  --shadow-lg: 0 20px 60px rgba(20,20,20,.18);
  --container: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ============ Announcement Bar ============ */
.announcement-bar {
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 10px 44px;
  position: relative;
  overflow: hidden;
}
.announcement-track {
  display: flex;
  gap: 36px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.announcement-track span { padding: 0 8px; }
.announcement-close {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  color: #fff; font-size: 18px; opacity: .7; line-height: 1;
}
.announcement-close:hover { opacity: 1; }
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ Header ============ */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.logo { grid-column: 2; justify-self: center; }
.nav-right { grid-column: 3; justify-self: end; }
.nav-left { display: flex; gap: 28px; justify-content: flex-start; }
.nav-link {
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: var(--ink); transition: width .25s ease;
}
.nav-link:hover::after { width: 100%; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 2px 0;
}
.logo-mark {
  display: inline-flex;
  flex-shrink: 0;
  transition: transform .3s ease;
}
.logo-mark svg { display: block; filter: drop-shadow(0 2px 4px rgba(14,107,111,.18)); }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.05); }
.logo-content {
  display: flex; flex-direction: column;
  align-items: center; line-height: 1;
}
.logo-text {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-family: 'Fredoka', 'Inter', sans-serif;
  font-size: 30px; font-weight: 600;
}
.logo-text span { display: inline-block; transition: transform .25s ease; }
.logo-text span:nth-child(1) { transform: translateY(-3px); }
.logo-text span:nth-child(3) { transform: translateY(3px); }
.logo-text span:nth-child(5) { transform: translateY(-3px); }
.logo:hover .logo-text span { transform: translateY(0); }
.logo-accent { color: var(--accent); position: relative; }
.logo-leaf {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 12px;
}
.logo-wave {
  width: 92%; height: 7px; margin-top: 2px;
  color: var(--accent); display: block;
}
@media (max-width: 768px) {
  .logo-mark svg { width: 36px; height: 36px; }
  .logo-text { font-size: 24px; }
}

.nav-right { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }

/* Main navigation (left side, three dropdowns with sub-pages) */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav-item { position: relative; }
.main-nav-trigger {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 12px;
  background: transparent; border: none;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  font-weight: 600; color: var(--ink);
  cursor: pointer; white-space: nowrap; border-radius: 999px;
  transition: color .15s, background .15s;
}
.main-nav-trigger:hover { background: var(--bg-soft); }
.main-nav-trigger .nav-chev { opacity: .5; transition: transform .2s; }
.main-nav-item.open .main-nav-trigger .nav-chev { transform: rotate(180deg); }
.main-nav-flyout {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 196px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
  padding: 6px; z-index: 60;
  display: none;
}
.main-nav-item.open .main-nav-flyout { display: block; animation: langFade .15s ease; }
.main-nav-flyout a {
  display: block; width: 100%;
  padding: 9px 14px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink);
  text-decoration: none; transition: background .15s, color .15s;
}
.main-nav-flyout a:hover { background: var(--bg-soft); color: var(--accent); }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); transition: background .2s, color .2s;
  position: relative;
}
.icon-btn:hover { background: var(--bg-soft); }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 600;
  width: 16px; height: 16px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  transform: scale(0); transition: transform .2s;
}
.cart-count.has-items { transform: scale(1); }

/* ============ Collection Hero (video background) ============ */
.collection-hero {
  position: relative;
  padding: 120px 0 96px;
  text-align: center;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #0a1f22;
}
.hero-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,31,34,.55), rgba(10,31,34,.72));
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; }
.collection-title {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: .02em;
  margin-bottom: 16px;
  color: #fff;
}
.collection-sub {
  max-width: 640px;
  margin: 0 auto;
  color: rgba(255,255,255,.85);
  font-size: 16px;
}

/* ============ Toolbar ============ */
.toolbar {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky; top: 82px; z-index: 40;
}
.toolbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  gap: 24px;
  flex-wrap: wrap;
}
.filter-chips {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  background: #fff;
  color: var(--ink);
  transition: all .15s;
  letter-spacing: .04em;
}
.chip:hover { border-color: var(--ink); }
.chip.active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.toolbar-right { display: flex; align-items: center; gap: 20px; }
.product-count { font-size: 13px; color: var(--ink-soft); }
.sort-wrap { display: flex; align-items: center; gap: 8px; }
.sort-label { font-size: 13px; color: var(--ink-soft); }
.sort-select {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 32px 8px 12px;
  font-family: inherit; font-size: 13px;
  border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%231a1a1a' stroke-width='1.4' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

/* ============ Product Grid ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px 24px;
  padding: 40px 0 80px;
}
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

/* ============ Hover model image ============ */
.product-media .product-link {
  display: block; position: relative;
  width: 100%; height: 100%;
}
.product-media .hover-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 1;
  transition: opacity .45s ease;
}
.product-card:hover .product-media .hover-img { opacity: 1; }
.product-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease, opacity .25s;
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--ink); color: #fff;
  font-size: 11px; letter-spacing: .14em; font-weight: 600;
  padding: 5px 10px; border-radius: 3px;
  text-transform: uppercase;
  z-index: 2;
}
.product-tag.sale { background: var(--sale); }
.product-tag.new { background: var(--accent); }

.quick-add {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: #fff; color: var(--ink);
  padding: 12px;
  text-align: center;
  font-size: 12px; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius);
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s, background .15s;
  box-shadow: var(--shadow-md);
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.quick-add:hover { background: var(--ink); color: #fff; }

.product-info { padding: 14px 2px 0; }
.product-category {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 6px;
}
.product-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5em;
}
.product-price {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 14px;
  color: var(--ink);
}
.product-price .price-regular { color: var(--ink); font-weight: 500; }
.product-price .price-sale { color: var(--sale); font-weight: 600; }
.product-price .price-compare { color: var(--ink-soft); text-decoration: line-through; font-size: 13px; }
.product-reviews {
  font-size: 12px; color: var(--ink-soft);
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
}
.product-reviews .star { color: var(--gold); }
.product-reviews .count { color: var(--ink-soft); }

/* ============ Brand Story ============ */
.brand-story { background: var(--bg-warm); padding: 100px 0; }
.brand-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.brand-image img {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
}
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
  display: block; margin-bottom: 16px;
}
.brand-text h2 {
  font-family: var(--serif);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 24px;
}
.brand-text p {
  color: var(--ink-soft);
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.7;
}
.btn-text {
  display: inline-block; margin-top: 16px;
  color: var(--accent); font-weight: 600;
  font-size: 14px; letter-spacing: .04em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
}

/* ============ Our Craft ============ */
.craft { background: #fff; padding: 100px 0; border-top: 1px solid var(--line); }
.craft-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.craft-head h2 {
  font-family: var(--serif);
  font-size: 42px; font-weight: 500; line-height: 1.12;
  margin-bottom: 18px;
}
.craft-head p { color: var(--ink-soft); font-size: 17px; line-height: 1.7; }
.craft-video-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(14,107,111,.12);
  margin-bottom: 56px;
}
.craft-video {
  display: block; width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #0a1f22;
}
.craft-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.craft-step { text-align: left; }
.craft-step-num {
  font-family: var(--serif);
  font-size: 28px; color: var(--accent);
  display: block; margin-bottom: 12px;
}
.craft-step h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.craft-step p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.craft-cta { text-align: center; margin-top: 48px; }
[dir="rtl"] .craft-step { text-align: right; }

@media (max-width: 768px) {
  .craft { padding: 64px 0; }
  .craft-head h2 { font-size: 30px; }
  .craft-steps { grid-template-columns: 1fr; gap: 28px; }
  .craft-video { aspect-ratio: 4 / 3; }
}

/* ============ Custom Options ============ */
.custom-options {
  background: #f8f6f2;
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.custom-head {
  text-align: center;
  margin-bottom: 64px;
}
.custom-head .eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.custom-head h2 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 500;
  line-height: 1.12;
}
.custom-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.custom-item {
  position: relative;
  padding: 40px 32px;
  border-radius: var(--radius);
  background: transparent;
}
.custom-item.highlight {
  background: #ede9e1;
}
.custom-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 400;
  color: rgba(14,107,111,.35);
  display: block;
  margin-bottom: 18px;
  line-height: 1;
}
.custom-item h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
}
.custom-item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
.custom-item.highlight h3 { color: var(--ink); }
[dir="rtl"] .custom-item { text-align: right; }

@media (max-width: 980px) {
  .custom-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .custom-options { padding: 64px 0; }
  .custom-head { margin-bottom: 40px; }
  .custom-head h2 { font-size: 30px; }
  .custom-grid { grid-template-columns: 1fr; gap: 12px; }
  .custom-item { padding: 28px 24px; }
}

/* ============ Wholesale Quote ============ */
.wholesale {
  background: #f9f6f2;
  padding: 100px 0;
}
.wholesale-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 80px;
  align-items: start;
}
.wholesale-info .eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}
.wholesale-info h2 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.0;
  margin-bottom: 22px;
  color: var(--ink);
}
.wholesale-lead {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 40px;
}
.wholesale-advisor {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 30px rgba(26,26,26,.05);
}
.advisor-avatar {
  flex-shrink: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  overflow: hidden;
  background: #f9f6f2;
}
.advisor-avatar svg { width: 100%; height: 100%; }
.advisor-name {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
}
.advisor-status {
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 3px rgba(37,211,102,.2);
}
.advisor-note {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 18px;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-size: 12px;
  letter-spacing: .1em;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .15s, transform .1s;
}
.btn-whatsapp:hover { background: #1ebe57; }
.wholesale-form-wrap {
  padding: 40px;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 40px rgba(26,26,26,.06);
}
.wholesale-form-wrap h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 28px;
}
.wholesale-form { display: flex; flex-direction: column; gap: 20px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(26,26,26,.55);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 14px 16px;
  border: 1px solid #ebe5da;
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: #f5f0e8;
  outline: none;
  transition: border-color .15s, background .15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  background: #fff;
}
.form-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%231a1a1a' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.form-field textarea { resize: vertical; min-height: 96px; }
.btn-submit {
  background: #1a1a1a;
  color: #fff;
  padding: 18px;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-submit:hover { background: #333; }
[dir="rtl"] .wholesale-info .eyebrow,
[dir="rtl"] .wholesale-info h2,
[dir="rtl"] .wholesale-lead,
[dir="rtl"] .wholesale-form-wrap h3 { text-align: right; }
[dir="rtl"] .advisor-status { justify-content: flex-end; }
[dir="rtl"] .form-field label,
[dir="rtl"] .form-field input,
[dir="rtl"] .form-field select,
[dir="rtl"] .form-field textarea { text-align: right; }
[dir="rtl"] .form-field select {
  background-position: left 14px center;
  padding-right: 16px;
  padding-left: 36px;
}
@media (max-width: 768px) {
  .wholesale { padding: 64px 0; }
  .wholesale-grid { grid-template-columns: 1fr; gap: 48px; }
  .wholesale-info h2 { font-size: 38px; }
  .form-row { grid-template-columns: 1fr; }
  .wholesale-form-wrap { padding: 28px; }
}

/* ============ Newsletter ============ */
.newsletter {
  padding: 90px 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.newsletter-inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 {
  font-family: var(--serif);
  font-size: 38px; font-weight: 500;
  margin-bottom: 12px;
}
.newsletter p { color: var(--ink-soft); margin-bottom: 28px; font-size: 15px; }
.newsletter-form {
  display: flex; gap: 8px;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 6px;
  background: #fff;
}
.newsletter-form input {
  flex: 1; border: 0; padding: 12px 14px;
  font-family: inherit; font-size: 14px;
  outline: none; background: transparent;
  color: var(--ink);
}
.btn-primary {
  background: var(--ink); color: #fff;
  padding: 12px 28px;
  font-size: 12px; letter-spacing: .14em; font-weight: 600;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .15s;
}
.btn-primary:hover { background: var(--accent); }
.btn-full { width: 100%; padding: 16px; font-size: 13px; }
.newsletter-message {
  margin-top: 14px;
  font-size: 14px;
  min-height: 22px;
  transition: opacity .2s;
}
.newsletter-message.success { color: var(--accent); }
.newsletter-message.error { color: #c2410c; }

/* ============ Footer ============ */
.site-footer { background: #fff; padding: 80px 0 0; border-top: 1px solid var(--line); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 60px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--ink);
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a { color: var(--ink-soft); font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: var(--ink); }
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-brand .logo { margin-bottom: 4px; }
.footer-brand .logo-mark svg { width: 46px; height: 46px; }
.footer-brand .logo-text { font-size: 34px; }
.footer-slogan {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.4;
}
.footer-line {
  font-size: 12px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
  max-width: 240px;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .footer-brand { align-items: center; text-align: center; }
  .footer-brand .logo { justify-content: center; }
  .footer-line { max-width: 100%; }
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 13px; color: var(--ink-soft); }
.payment-icons { display: flex; gap: 12px; flex-wrap: wrap; }
.payment-icons span {
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 8px;
  background: #fff;
}

/* ============ Cart Drawer ============ */
.cart-drawer {
  position: fixed; inset: 0; z-index: 100;
  pointer-events: none;
}
.cart-drawer.open { pointer-events: auto; }
.cart-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.4);
  opacity: 0; transition: opacity .25s;
}
.cart-drawer.open .cart-overlay { opacity: 1; }
.cart-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 90vw;
  background: #fff;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.cart-head {
  padding: 20px 24px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 {
  font-family: var(--serif);
  font-size: 24px; font-weight: 500;
}
.cart-body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.cart-item {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 4px; }
.cart-item-info h4 { font-family: var(--serif); font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.cart-item-info .cart-line-price { font-size: 14px; color: var(--ink); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button {
  width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.cart-item-qty span { font-size: 13px; min-width: 20px; text-align: center; }
.cart-item-remove {
  font-size: 12px; color: var(--ink-soft); align-self: flex-start;
  text-decoration: underline;
}
.cart-foot {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 4px;
  font-size: 16px;
}
.cart-subtotal strong { font-size: 18px; }
.cart-shipping { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; }

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .brand-grid { gap: 48px; }
  .brand-text h2 { font-size: 36px; }
}
@media (max-width: 768px) {
  .header-inner { grid-template-columns: 1fr auto 1fr; }
  .nav-left { display: none; }
  .logo { font-size: 24px; }
  .collection-title { font-size: 40px; }
  .collection-hero { padding: 56px 0 40px; }
  .toolbar { top: 70px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .product-name { font-size: 17px; }
  .brand-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand-story { padding: 64px 0; }
  .brand-text h2 { font-size: 30px; }
  .newsletter { padding: 60px 0; }
  .newsletter h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; padding-bottom: 40px; }
  .footer-bottom-inner { justify-content: center; text-align: center; }
  .toolbar-inner { flex-direction: column; align-items: stretch; }
  .toolbar-right { justify-content: space-between; }
  .quick-add { opacity: 1; transform: none; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .product-name { font-size: 15px; min-height: 2.4em; }
  .product-category { display: none; }
}

/* ============ WhatsApp ============ */
.wa-float {
  position: fixed;
  right: 24px; bottom: 24px;
  z-index: 90;
  background: #25D366;
  color: #fff;
  width: 60px; height: 60px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37,211,102,.55); }
.wa-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.wa-float-label {
  position: absolute; right: 72px;
  background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 6px;
  font-size: 13px; white-space: nowrap;
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.wa-float:hover .wa-float-label { opacity: 1; transform: translateX(0); }

/* nav WhatsApp icon */
.wa-icon { color: #25D366; }
.wa-icon:hover { background: rgba(37,211,102,.12); color: #1da851; }

/* quick-add with WA icon */
.quick-add { display: flex; align-items: center; justify-content: center; gap: 6px; }
.wa-mini { flex-shrink: 0; }

/* product inquire link */
.inquire-link {
  display: inline-block; margin-top: 6px;
  font-size: 13px; font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  transition: color .15s, border-color .15s;
}
.inquire-link:hover { color: #25D366; border-color: #25D366; }

/* footer WA link */
.footer-wa {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: #25D366;
}
.footer-wa:hover { color: #1da851; }
.footer-mail {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink);
  text-decoration: none;
}
.footer-mail::before { content: "✉"; font-size: 14px; }
.footer-mail:hover { color: #0e6b6f; text-decoration: underline; }
.contact-mail {
  display: inline-block;
  font-size: 19px; font-weight: 600; color: #0e6b6f;
  text-decoration: none;
  border-bottom: 2px solid #d4a574;
  padding-bottom: 2px;
}
.contact-mail:hover { color: #0a5256; border-bottom-color: #0e6b6f; }

@media (max-width: 480px) {
  .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; }
  .wa-float-label { display: none; }
}

/* ============ Language Switcher ============ */
.lang-switcher { position: relative; }
.lang-current {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 10px;
  border-radius: 999px;
  color: var(--ink); font-size: 13px; font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.lang-current:hover { background: var(--bg-soft); }
.lang-chev { opacity: .55; transition: transform .2s; }
.lang-switcher:has(.lang-menu.open) .lang-chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 168px; max-height: 340px; overflow-y: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px; z-index: 60;
  display: none;
}
.lang-menu.open { display: block; animation: langFade .15s ease; }
@keyframes langFade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.lang-option {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 4px;
  font-size: 13px; color: var(--ink);
  transition: background .12s;
}
.lang-option:hover { background: var(--bg-soft); }

/* ============ RTL (Arabic) ============ */
[dir="rtl"] body { text-align: right; }
[dir="rtl"] .nav-left { justify-content: flex-end; }
[dir="rtl"] .nav-right { justify-content: flex-start; }
[dir="rtl"] .nav-link::after { left: auto; right: 0; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
[dir="rtl"] .lang-option { text-align: right; }
[dir="rtl"] .main-nav-flyout { left: auto; right: 0; }
[dir="rtl"] .main-nav-flyout a { text-align: right; }
[dir="rtl"] .product-tag { left: auto; right: 12px; }
[dir="rtl"] .wa-float { right: auto; left: 24px; }
[dir="rtl"] .wa-float-label { right: auto; left: 72px; }
[dir="rtl"] .footer-bottom-inner { flex-direction: row-reverse; }
[dir="rtl"] .toolbar-inner { flex-direction: row-reverse; }
[dir="rtl"] .sort-wrap { flex-direction: row-reverse; }
[dir="rtl"] .newsletter-form { flex-direction: row-reverse; }
[dir="rtl"] .announcement-track { animation-direction: reverse; }

@media (max-width: 768px) {
  [dir="rtl"] .toolbar-right { flex-direction: row-reverse; }
}
@media (max-width: 480px) {
  [dir="rtl"] .wa-float { right: auto; left: 16px; }
  .lang-current span { display: none; } /* 移动端只显示地球图标 */
  .lang-current { padding: 0 8px; }
}

/* ============ Search Modal ============ */
.search-modal {
  position: fixed; inset: 0; z-index: 110;
  pointer-events: none;
}
.search-modal.open { pointer-events: auto; }
.search-overlay {
  position: absolute; inset: 0;
  background: rgba(20,20,20,.55);
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .2s;
}
.search-modal.open .search-overlay { opacity: 1; }
.search-panel {
  position: absolute; top: 0; left: 0; right: 0;
  background: #fff;
  max-height: 80vh;
  display: flex; flex-direction: column;
  transform: translateY(-100%);
  transition: transform .25s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,.15);
}
.search-modal.open .search-panel { transform: translateY(0); }
.search-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
}
.search-bar svg { color: var(--ink-soft); flex-shrink: 0; }
.search-bar input {
  flex: 1; border: 0; outline: none;
  font-family: inherit; font-size: 18px;
  background: transparent;
  color: var(--ink);
}
.search-bar input::placeholder { color: var(--ink-soft); }
.search-close {
  border: 0; background: transparent;
  font-size: 18px; color: var(--ink-soft);
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer;
  transition: background .15s;
}
.search-close:hover { background: var(--bg-soft); }
.search-results {
  flex: 1; overflow-y: auto;
  padding: 12px 28px 28px;
}
.search-group {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
  padding: 14px 0 8px;
}
.search-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
  transition: background .12s;
}
.search-item:hover { background: var(--bg-soft); }
.search-item-img {
  width: 52px; height: 52px; object-fit: cover;
  border-radius: 4px; flex-shrink: 0;
}
.search-item-info { flex: 1; min-width: 0; }
.search-item-name {
  font-family: var(--serif);
  font-size: 17px; font-weight: 500;
  line-height: 1.25;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-item-cat {
  font-size: 12px; color: var(--ink-soft); margin-top: 2px;
}
.search-item-arrow {
  font-size: 20px; flex-shrink: 0;
  color: var(--ink-soft);
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 4px;
}
.search-empty {
  text-align: center; color: var(--ink-soft);
  padding: 60px 20px; font-size: 15px;
}

[dir="rtl"] .search-item-arrow { transform: scaleX(-1); }

/* ============ Static Catalog (SEO/GEO) ============ */
.static-catalog {
  background: var(--bg-soft);
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.static-catalog h2 {
  font-family: var(--serif);
  font-size: 34px; font-weight: 500;
  text-align: center; margin-bottom: 8px;
}
.static-catalog .catalog-sub-line {
  text-align: center; color: var(--ink-soft); font-size: 14px; margin-bottom: 32px;
}
.catalog-list {
  columns: 3; column-gap: 40px;
  max-width: 1000px; margin: 0 auto;
  list-style: none; padding: 0;
}
.catalog-list li { margin-bottom: 10px; break-inside: avoid; }
.catalog-list li a {
  color: var(--ink-soft); font-size: 14px; text-decoration: none;
  border-bottom: 1px dotted var(--line); padding-bottom: 1px;
  transition: color .15s, border-color .15s;
}
.catalog-list li a:hover { color: var(--accent); border-color: var(--accent); }
.catalog-note {
  text-align: center; margin-top: 28px;
  font-size: 13px; color: var(--accent); font-weight: 600;
}
.catalog-note a {
  border-bottom: 1px solid currentColor;
  transition: color .15s;
}
.catalog-note a:hover { color: #0a5256; }
@media (max-width: 768px) {
  .catalog-list { columns: 2; column-gap: 24px; }
  .static-catalog { padding: 48px 0; }
}
@media (max-width: 480px) {
  .catalog-list { columns: 1; }
}

@media (max-width: 768px) {
  .search-bar { padding: 16px 20px; }
  .search-results { padding: 8px 16px 20px; }
  .search-item-name { font-size: 15px; }
}


/* ============ Static Pages (Our Story / Studio / Sustainability / Journal) ============ */
.page-hero {
  background: var(--bg-soft);
  padding: 92px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero .page-eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.page-hero .page-title {
  font-family: var(--serif); font-size: 48px; font-weight: 500;
  line-height: 1.15; margin-bottom: 18px;
}
.page-hero .page-lead {
  max-width: 720px; margin: 0 auto;
  font-size: 17px; color: var(--ink-soft); line-height: 1.7;
}

.page-content { padding: 64px 0; }
.page-section { padding: 56px 0; }
.page-section.alt { background: var(--bg-warm); }
.page-section-inner {
  max-width: 760px; margin: 0 auto; padding: 0 24px;
}
.page-section h2 {
  font-family: var(--serif); font-size: 32px; font-weight: 500;
  margin-bottom: 18px;
}
.page-section p {
  font-size: 16px; color: var(--ink-soft); line-height: 1.8;
  margin-bottom: 16px;
}
.page-section ul {
  list-style: disc; padding-left: 22px; color: var(--ink-soft);
  line-height: 1.8; margin-bottom: 16px;
}
.page-section ul li { margin-bottom: 8px; }

.page-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px;
  align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 24px;
}
.page-split.reverse { direction: rtl; }
.page-split.reverse > * { direction: ltr; }
.page-split img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.page-split-text h3 {
  font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 14px;
}
.page-split-text p { font-size: 15px; color: var(--ink-soft); line-height: 1.75; }

.journal-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
}
.journal-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .2s, box-shadow .2s;
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.journal-card img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
}
.journal-card-body { padding: 24px; }
.journal-card-body .date {
  font-size: 12px; color: var(--accent); font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px;
}
.journal-card-body h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 10px;
}
.journal-card-body p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.65; margin-bottom: 14px;
}
.journal-card-body a {
  font-size: 13px; font-weight: 600; color: var(--accent);
  border-bottom: 1px solid var(--accent); padding-bottom: 2px;
}
.journal-card-body a:hover { color: var(--gold); border-color: var(--gold); }

.cta-bar {
  background: var(--ink); color: #fff;
  padding: 64px 24px; text-align: center;
}
.cta-bar h3 {
  font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 12px;
}
.cta-bar p { max-width: 560px; margin: 0 auto 22px; color: rgba(255,255,255,.75); }
.cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff;
  padding: 14px 28px; border-radius: 999px;
  font-weight: 600; transition: background .15s, transform .15s;
}
.cta-btn:hover { background: #0b595c; transform: translateY(-1px); }

.breadcrumb {
  font-size: 12px; color: var(--ink-soft); margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: .1em;
  padding-top: 18px;          /* clear sticky header */
  position: relative; z-index: 1;
}
.breadcrumb a {
  color: var(--accent);
  display: inline-block;
  padding: 4px 2px;           /* larger click target */
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb a:hover { border-bottom: 1px solid var(--accent); }

/* ============ Product Detail Page ============ */
.product-detail {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: start; max-width: 1120px; margin: 0 auto; padding: 0 24px;
}
.pd-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pd-gallery .pd-main { grid-column: 1 / -1; }
.pd-gallery img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft);
}
.pd-info { padding-top: 6px; }
.pd-cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.pd-cat {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 600;
}
.pd-tag {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: #fff; background: var(--accent); padding: 4px 9px; border-radius: 3px;
}
.pd-tag.sale { background: var(--sale); }
.pd-title {
  font-family: var(--serif); font-size: 38px; font-weight: 500; line-height: 1.15;
  margin-bottom: 18px; color: var(--ink);
}
.pd-lead { font-size: 16px; color: var(--ink-soft); line-height: 1.8; margin-bottom: 24px; }
.pd-specs { list-style: none; padding: 0; margin: 0 0 28px; border-top: 1px solid var(--line); }
.pd-specs li {
  display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--ink-soft);
}
.pd-specs li > span:first-child {
  flex: 0 0 110px; color: var(--ink); font-weight: 600; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
}
.pd-specs a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.pd-specs a:hover { color: var(--gold); border-color: var(--gold); }
.pd-inquire {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 15px 30px; border-radius: 999px; text-decoration: none;
  transition: background .15s, transform .15s;
}
.pd-inquire:hover { background: #0b595c; transform: translateY(-1px); }
.pd-inquire svg { width: 18px; height: 18px; }
.pd-note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); line-height: 1.7; }

.pd-related { background: var(--bg-soft); padding: 72px 0; border-top: 1px solid var(--line); }
.pd-related h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 500; text-align: center;
  margin-bottom: 36px;
}
.pd-related-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1000px; margin: 0 auto; padding: 0 24px;
}
.pd-related .product-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pd-related .product-info { padding: 16px; }

@media (max-width: 768px) {
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .pd-title { font-size: 30px; }
  .pd-related-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 72px 0 56px; }
  .page-hero .page-title { font-size: 36px; }
  .page-split { grid-template-columns: 1fr; gap: 32px; }
  .journal-grid { grid-template-columns: 1fr; }
  .page-section h2 { font-size: 26px; }
}

/* ============ Article / Blog Pages ============ */
.article-page { background: #fff; }
.article-hero { padding: 52px 0 40px; text-align: center; border-bottom: 1px solid var(--line); }
.article-hero .page-eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 18px; font-weight: 600;
}
.article-title {
  font-family: var(--serif); font-size: 42px; font-weight: 500; line-height: 1.15;
  max-width: 900px; margin: 0 auto 14px; color: var(--ink);
}
.article-meta {
  font-size: 14px; color: var(--ink-soft); margin-bottom: 36px;
}
.article-meta a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.article-meta a:hover { color: var(--gold); border-color: var(--gold); }
.article-hero-img {
  max-width: 640px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.article-hero-img img { width: 100%; height: auto; }
.article-hero-img figcaption {
  font-size: 13px; color: var(--ink-soft); padding: 14px 18px; background: var(--bg-soft);
}

.article-body { padding: 52px 0 90px; }
.article-wrap {
  display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start;
}
.article-toc {
  position: sticky; top: 120px; background: var(--bg-soft); border-radius: var(--radius);
  padding: 24px; font-size: 14px; border: 1px solid var(--line);
}
.article-toc h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 600; margin-bottom: 16px;
}
.article-toc ul { display: flex; flex-direction: column; gap: 10px; }
.article-toc a { color: var(--ink-soft); display: block; line-height: 1.4; }
.article-toc a:hover { color: var(--accent); }

.article-content {
  max-width: 740px; font-size: 16px; line-height: 1.75; color: var(--ink-soft);
}
.article-content h2 {
  font-family: var(--serif); font-size: 30px; font-weight: 500; color: var(--ink);
  margin: 48px 0 18px; line-height: 1.25;
}
.article-content h3 {
  font-family: var(--sans); font-size: 18px; font-weight: 600; color: var(--ink);
  margin: 28px 0 12px;
}
.article-content p { margin-bottom: 18px; }
.article-content .lead {
  font-size: 18px; line-height: 1.7; color: var(--ink); margin-bottom: 20px;
}
.article-content ul, .article-content ol {
  margin: 0 0 20px 22px; list-style: disc; display: flex; flex-direction: column; gap: 10px;
}
.article-content ol { list-style: decimal; }
.article-content li { color: var(--ink-soft); }
.article-content a { color: var(--accent); border-bottom: 1px solid var(--accent); }
.article-content a:hover { color: var(--gold); border-color: var(--gold); }

.cta-inline {
  background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 24px 28px; margin: 32px 0;
}
.cta-inline p { color: var(--ink); font-weight: 500; margin-bottom: 14px; }
.cta-inline h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; color: var(--ink); }
.cta-inline.cta-final { background: var(--bg-warm); border-left-color: var(--gold); text-align: center; }
.cta-inline .cta-btn {
  display: inline-flex; background: var(--accent); color: #fff; font-weight: 600;
  padding: 14px 26px; border-radius: 999px; text-decoration: none;
}
.cta-inline .cta-btn:hover { background: #0b595c; }

.article-table {
  width: 100%; border-collapse: collapse; margin: 24px 0 28px;
  font-size: 15px; border: 1px solid var(--line);
}
.article-table th, .article-table td {
  padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left;
}
.article-table th {
  background: var(--bg-soft); font-weight: 600; color: var(--ink);
}
.article-table tr:last-child td { border-bottom: 0; }

.article-faq { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
.article-faq h2 { margin-top: 0; }
.faq-item { margin-bottom: 24px; }
.faq-item h3 {
  font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--ink);
  margin-bottom: 8px;
}
.faq-item p { color: var(--ink-soft); }

.article-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.article-tags .tag {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--bg-soft); border: 1px solid var(--line);
  padding: 6px 12px; border-radius: 999px;
}

@media (max-width: 980px) {
  .article-wrap { grid-template-columns: 1fr; gap: 32px; }
  .article-toc { position: static; }
  .article-title { font-size: 34px; }
}
@media (max-width: 768px) {
  .article-hero { padding: 40px 0 32px; }
  .article-title { font-size: 28px; }
  .article-content h2 { font-size: 24px; }
  .article-content .lead { font-size: 16px; }
  .article-table th, .article-table td { padding: 12px 14px; }
}

/* 文章页全文翻译按钮（Google 翻译接入） */
.article-translate { margin: 36px 0 8px; padding: 18px 22px; border: 1px solid rgba(14,107,111,.20); border-radius: 14px; background: rgba(14,107,111,.05); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.article-translate .at-label { font-weight: 600; color: #0e6b6f; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; }
.translate-toggle { appearance: none; border: 1px solid #0e6b6f; background: #0e6b6f; color: #fff; font-family: 'Inter', system-ui, sans-serif; font-weight: 600; font-size: 14px; padding: 10px 18px; border-radius: 10px; cursor: pointer; transition: .2s; }
.translate-toggle:hover { background: #0a565a; }
#google_translate_element { display: none; }
/* 隐藏 Google 默认横幅，仅保留语言下拉 */
.goog-te-banner-frame, .goog-te-balloon-frame { display: none !important; }
body { top: 0 !important; }
.goog-te-menu-value, .goog-te-menu-value span { color: #0e6b6f !important; }

.article-translate-hint {
  margin: 36px 0 8px;
  padding: 18px 22px;
  border: 1px solid rgba(14,107,111,.20);
  border-radius: 14px;
  background: rgba(14,107,111,.05);
  color: #0e6b6f;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}
.article-translate-hint p { margin: 0; }

/* Translating indicator (article body machine translation) */
#artTranslating {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  padding: 9px 16px;
  border-radius: 999px;
  background: #0e6b6f;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .2px;
  box-shadow: 0 6px 20px rgba(14,107,111,.35);
  animation: artTranslatingPulse 1.1s ease-in-out infinite;
  pointer-events: none;
}
@keyframes artTranslatingPulse { 0%,100% { opacity: .7; } 50% { opacity: 1; } }
