:root {
  --bg: #faf8f5;
  --panel: #ffffff;
  --ink: #1c1a17;
  --ink-soft: #6b655c;
  --gold: #a8863c;
  --gold-soft: #c9a96a;
  --line: #e8e2d8;
  --shadow: 0 10px 30px rgba(28, 26, 23, 0.08);
  --radius: 14px;
}

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

body {
  font-family: "Helvetica Neue", "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-controls { display: flex; align-items: center; gap: 12px; }
.currency-tag {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  padding: 3px 12px;
  font-weight: 600;
}
#langSelect {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 72px 24px 56px;
}
.hero-eyebrow {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: 0.25em;
  font-weight: 500;
  text-transform: uppercase;
}
.hero-tagline {
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ---------- Sections ---------- */
.section { max-width: 1200px; margin: 0 auto; padding: 24px 24px 72px; }
.section-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 28px;
  text-align: center;
}

/* ---------- Category cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.cat-card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,26,23,0.14); }
.cat-img-wrap { aspect-ratio: 1; overflow: hidden; }
.cat-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.cat-card:hover .cat-img-wrap img { transform: scale(1.04); }
.cat-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}
.cat-name { font-size: 17px; font-weight: 600; }
.cat-count { font-size: 13px; color: var(--ink-soft); }

/* ---------- Category page head ---------- */
.cat-head { text-align: center; margin-bottom: 34px; }
.back-link {
  display: inline-block;
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
  transition: color 0.2s;
}
.back-link:hover { color: var(--gold); }
.cat-sub { color: var(--ink-soft); font-size: 14px; margin-top: -16px; }

/* ---------- Product grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 26px;
}
.card {
  background: var(--panel);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(28,26,23,0.14); }
.img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .img-wrap img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 12px;
  inset-inline-start: 12px;
  background: rgba(28, 26, 23, 0.82);
  color: #f5efe4;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
}
.sku-tag {
  position: absolute;
  bottom: 10px;
  inset-inline-end: 10px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.08em;
}
.card-info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
}
.card-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-price { font-size: 14px; color: var(--gold); font-weight: 700; white-space: nowrap; }

/* ---------- Product detail page ---------- */
.grid-single {
  grid-template-columns: minmax(0, 360px);
  justify-content: center;
}
.pdp {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.pdp-media { position: sticky; top: 92px; }
.pdp-main {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #f1ece3;
  box-shadow: var(--shadow);
}
.pdp-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.18s ease; }
.pdp-main .badge { top: 16px; inset-inline-start: 16px; }
.hidden { display: none !important; }
.pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.thumb {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s, border-color 0.2s;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--gold); opacity: 1; }

.pdp-info { padding-top: 4px; }
.pdp-eyebrow {
  margin-top: 14px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}
.pdp-title {
  margin-top: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.25;
}
.pdp-price { margin-top: 12px; font-size: 30px; font-weight: 700; color: var(--gold); }
.pdp-meta { margin-top: 2px; font-size: 12px; letter-spacing: 0.06em; color: var(--ink-soft); }
.pdp-desc { margin-top: 16px; font-size: 14px; line-height: 1.75; color: var(--ink-soft); }

.pdp-option { margin-top: 24px; }
.pdp-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.pdp-label strong {
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
}
.pdp-label-spaced { margin-top: 22px; }
.swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.spec-list {
  list-style: none;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec-list li span:first-child { color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip {
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
}
.swatch {
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s;
}
.swatch img { width: 100%; height: 100%; object-fit: cover; }
.swatch.active { border-color: var(--gold); }
.swatch:hover { border-color: var(--gold-soft); }

/* ---------- Footer ---------- */
.footer {
  text-align: center;
  padding: 36px 24px 48px;
  color: var(--ink-soft);
  font-size: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- Brand lockup ---------- */
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  letter-spacing: 0.32em;
  font-weight: 600;
  color: var(--ink);
  text-transform: uppercase;
}
.brand-sub {
  margin-top: 4px;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}

/* ---------- WhatsApp ---------- */
.wa-svg { width: 20px; height: 20px; flex: 0 0 auto; }
.wa-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-icon-btn:hover { transform: translateY(-1px) scale(1.05); box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45); }
.wa-icon-btn .wa-svg { width: 22px; height: 22px; }

.wa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(37, 211, 102, 0.38); background: #1fbe5b; }
.wa-btn .wa-svg { width: 19px; height: 19px; }
.wa-btn-block { display: flex; width: 100%; }
.wa-btn-hero { margin-top: 26px; }

.hero-subtitle {
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hero-wa { display: flex; justify-content: center; }

.pdp-wa { margin-top: 22px; }
.pdp-wa-note {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Contact card on home */
.contact-section { padding-top: 0; }
.contact-card {
  display: flex;
  align-items: center;
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
  padding: 26px 30px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}
.contact-icon .wa-svg { width: 30px; height: 30px; }
.contact-text { flex: 1 1 auto; }
.contact-text h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  font-weight: 500;
}
.contact-text p { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.contact-num {
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink) !important;
}

/* Footer contact */
.footer-wa { margin-bottom: 20px; }
.footer-brand {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 6px;
}
.footer-contact { margin-bottom: 8px; }
.footer-num { font-weight: 600; color: var(--ink); }
.footer-sep { margin: 0 6px; opacity: 0.5; }

/* Floating WhatsApp button */
.wa-fab {
  position: fixed;
  inset-inline-end: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.42);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wa-fab .wa-svg { width: 26px; height: 26px; }
.wa-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(37, 211, 102, 0.5); }
.wa-fab::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(37, 211, 102, 0.55);
  animation: waPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0% { transform: scale(1); opacity: 0.7; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pdp {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding: 24px 18px 60px;
  }
  .pdp-media { position: static; min-width: 0; }
  .pdp-main { aspect-ratio: 1; }
  .pdp-thumbs { min-width: 0; max-width: 100%; }
  .pdp-info { min-width: 0; }
  .thumb { width: 50px; height: 50px; }
  .swatch-grid { grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); }
  .grid-single { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; text-align: center; gap: 16px; }
  .contact-text h3 { font-size: 17px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 16px; gap: 10px; }
  .brand-name { font-size: 19px; letter-spacing: 0.24em; }
  .brand-sub { font-size: 8px; letter-spacing: 0.16em; }
  .header-controls { gap: 8px; }
  .wa-icon-btn { width: 34px; height: 34px; }
  #langSelect { max-width: 104px; }
  .currency-tag { display: none; }
  .hero { padding: 52px 18px 40px; }
  .hero-subtitle { font-size: 11px; letter-spacing: 0.2em; }
  .wa-fab { inset-inline-end: 14px; bottom: 14px; height: 52px; padding: 0 16px; }
  .wa-fab-label { display: none; }
  .footer { padding-bottom: 90px; }
}
