/* ============================================================
   LUXIA HOME — Everyday Essentials
   ============================================================ */
:root {
  --brand: #146356;
  --brand-dark: #0e4c44;
  --brand-soft: #e6f1ee;
  --accent: #c2703d;
  --ink: #1f2a26;
  --ink-2: #55605c;
  --ink-3: #8b9591;
  --line: #e3ddd2;
  --bg: #ffffff;
  --bg-2: #faf7f2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 42, 38, .06), 0 8px 24px rgba(31, 42, 38, .06);
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", -apple-system, "PingFang SC", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* ---------- announcement + header ---------- */
.announce {
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
  text-align: center;
  padding: 9px 16px;
}
.announce span { opacity: .85; }

header.site {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 19px;
  color: var(--brand);
}
.logo small {
  font-size: 10px;
  letter-spacing: .18em;
  color: var(--ink-3);
  font-weight: 600;
}
nav.main { display: flex; gap: 26px; margin-left: auto; }
nav.main a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover, nav.main a.active { color: var(--brand); border-color: var(--brand); }

.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.cart-link:hover { border-color: var(--brand); color: var(--brand); }
.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: .18s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.94); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* PayPal-branded checkout button (gold on deep blue, PayPal's own button colours) */
.btn-paypal {
  background: #ffc439;
  color: #003087;
  border: 1px solid #e0ac13;
  font-size: 16px;
  padding: 14px 26px;
}
.btn-paypal:hover { background: #f6bc2b; color: #003087; transform: translateY(-1px); }
.btn-paypal .pp {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 18px;
  letter-spacing: -.02em;
  color: #003087;
}

/* quick-pay product picker */
.hint { font-size: 13.5px; color: var(--ink-3); margin-bottom: 12px; }
.qp-list {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: 340px;
  overflow-y: auto;
}
.qp-row {
  display: grid;
  grid-template-columns: 52px 24px 1fr auto 72px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  font-size: 14.5px;
}
.qp-row:last-child { border-bottom: none; }
.qp-row:hover { background: var(--bg-2); }
.qp-row input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--brand); }
.qp-row .pmedia { width: 44px; height: 44px; flex: none; border-radius: 8px; overflow: hidden; }
.qp-row .pmedia-fallback svg { width: 60%; height: 60%; }
.qp-name { font-weight: 500; }
.qp-price { color: var(--brand); font-weight: 700; white-space: nowrap; }
.qp-qty {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  outline: none;
}
.qp-qty:focus { border-color: var(--brand); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--brand-soft) 0%, #fff 100%);
  padding: 72px 0 64px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 {
  font-size: 46px;
  line-height: 1.16;
  letter-spacing: -.02em;
  font-weight: 700;
  margin-bottom: 18px;
}
.hero p.lede { font-size: 17px; color: var(--ink-2); max-width: 30em; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-size: 24px; color: var(--brand); }
.hero-stats div span { font-size: 13px; color: var(--ink-3); }

.hero-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.hero-art .tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-art .tile .pmedia { position: absolute; inset: 0; }
.hero-art .tile .pmedia-fallback svg { width: 52%; height: 52%; }
.hero-art .tile:nth-child(4) { grid-column: span 3; }

/* ---------- section shell ---------- */
section { padding: 68px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { font-size: 32px; letter-spacing: -.01em; margin-bottom: 10px; }
.section-head p { color: var(--ink-2); }
.section-head.left { text-align: left; margin-left: 0; }

/* ---------- category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: .2s ease;
}
.cat-card:hover { background: #fff; box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card .ic {
  width: 60px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 16px;
}
.cat-card h3 { font-size: 17px; margin-bottom: 4px; }
.cat-card p { font-size: 14px; color: var(--ink-2); margin-bottom: 12px; }
.cat-card .more { font-size: 14px; font-weight: 600; color: var(--brand); }

/* ---------- product grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: .2s ease;
}
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d6cdbf; }
.product-card .thumb {
  position: relative;
  background: var(--bg-2);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.product-card .thumb .pmedia { position: absolute; inset: 0; }
.product-card .thumb .pmedia-fallback svg { width: 52%; height: 52%; }
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.product-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .cat-tag { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.product-card h3 { font-size: 16px; line-height: 1.4; font-weight: 600; }
.product-card h3 a:hover { color: var(--brand); }
.product-card .short { font-size: 13.5px; color: var(--ink-2); }
.rating { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.rating b { color: var(--accent); }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 6px; }
.price { font-size: 19px; font-weight: 700; color: var(--brand); }
.price-old { font-size: 14px; color: var(--ink-3); text-decoration: line-through; }
.stock-line { font-size: 12.5px; color: var(--ink-3); }
.product-card .btn { margin-top: 8px; padding: 11px 18px; font-size: 14px; }

/* ---------- value strip ---------- */
.strip { background: var(--brand-soft); }
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value-item { display: flex; gap: 14px; }
.value-item .ic { width: 44px; flex: none; }
.value-item h4 { font-size: 15.5px; margin-bottom: 3px; }
.value-item p { font-size: 13.5px; color: var(--ink-2); }

/* ---------- reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: #fff;
}
.review .stars { color: var(--accent); letter-spacing: 2px; margin-bottom: 10px; }
.review p { color: var(--ink-2); font-size: 14.5px; }
.review .who { margin-top: 14px; font-size: 13px; font-weight: 600; }
.review .who span { display: block; font-weight: 400; color: var(--ink-3); }

/* ---------- newsletter ---------- */
.newsletter {
  background: var(--brand);
  color: #fff;
  border-radius: 18px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
}
.newsletter h2 { font-size: 26px; margin-bottom: 6px; }
.newsletter p { opacity: .85; font-size: 15px; }
.newsletter form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter input {
  padding: 13px 18px;
  border-radius: 999px;
  border: none;
  min-width: 260px;
  outline: none;
}
.newsletter .btn { background: #fff; color: var(--brand); }
.newsletter small { display: block; margin-top: 10px; opacity: .7; font-size: 12.5px; }

/* ---------- footer ---------- */
footer.site {
  background: #16221f;
  color: #cfd8d5;
  padding: 56px 0 28px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
footer h4 { color: #fff; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
footer ul { list-style: none; display: grid; gap: 9px; font-size: 14px; }
footer ul a:hover { color: #fff; }
footer .about p { font-size: 14px; max-width: 32em; }
footer .logo { color: #fff; margin-bottom: 14px; }
footer .logo small { color: #8fa09b; }
.contact-list { font-size: 14px; display: grid; gap: 8px; }
.contact-list b { color: #fff; font-weight: 600; }
.pay-icons { display: flex; gap: 10px; margin-top: 18px; }
.pay-icons span {
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 6px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}
.footer-bottom {
  padding-top: 22px;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #9db0ab;
}

/* ---------- breadcrumb + page head ---------- */
.page-head {
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}
.page-head h1 { font-size: 30px; margin-bottom: 6px; }
.crumb { font-size: 13px; color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }

/* ---------- shop toolbar ---------- */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 14px;
  cursor: pointer;
}
.chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.toolbar select {
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  outline: none;
}
.result-count { font-size: 14px; color: var(--ink-3); }

/* ---------- product detail ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-top: 36px;
}
.detail-art {
  position: relative;
  background: var(--bg-2);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.detail-art .pmedia { position: absolute; inset: 0; }
.detail-art .pmedia-fallback svg { width: 46%; height: 46%; }
.detail-info h1 { font-size: 32px; line-height: 1.25; margin-bottom: 10px; }
.detail-price { display: flex; align-items: baseline; gap: 12px; margin: 16px 0 6px; }
.detail-price .price { font-size: 30px; }
.detail-desc { color: var(--ink-2); margin: 16px 0 22px; }
.spec-list { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; }
.spec-list li { font-size: 14px; color: var(--ink-2); padding-left: 20px; position: relative; }
.spec-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.qty button {
  width: 42px;
  height: 44px;
  border: none;
  background: #fff;
  font-size: 18px;
  cursor: pointer;
}
.qty button:hover { background: var(--brand-soft); }
.qty input { width: 54px; height: 44px; border: none; text-align: center; font-weight: 600; outline: none; }
.buy-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.assure { display: grid; gap: 8px; font-size: 13.5px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 18px; }

/* ---------- cart & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1.6fr .9fr; gap: 36px; padding: 36px 0 60px; align-items: start; }
table.cart { width: 100%; border-collapse: collapse; }
table.cart th {
  text-align: left;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
table.cart td { padding: 18px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cart-item { display: flex; gap: 16px; align-items: center; }
.cart-item .pmedia { width: 68px; height: 68px; flex: none; border-radius: 10px; overflow: hidden; }
.cart-item h4 { font-size: 15px; margin-bottom: 3px; }
.cart-item .sku { font-size: 12px; color: var(--ink-3); }
.cart-item .rm { font-size: 13px; color: var(--ink-3); background: none; border: none; cursor: pointer; text-decoration: underline; }
.summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--bg-2);
  position: sticky;
  top: 96px;
}
.summary h3 { font-size: 18px; margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; font-size: 14.5px; margin-bottom: 10px; color: var(--ink-2); }
.sum-row.total { font-size: 19px; font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.summary .btn { margin-top: 14px; }
.summary .note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

.empty { text-align: center; padding: 60px 20px; }
.empty .ic { width: 90px; margin: 0 auto 18px; opacity: .5; }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); margin-bottom: 20px; }

.form-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  background: #fff;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.pay-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-2);
  padding: 22px;
}
.pay-box h3 { font-size: 17px; margin-bottom: 12px; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
}
.pay-opt.active { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-soft); }
.pay-opt input { accent-color: var(--brand); width: 18px; height: 18px; }
.pay-opt .lbl { font-weight: 600; font-size: 14.5px; }
.pay-opt .sub { font-size: 12.5px; color: var(--ink-3); }
.paypal-tag {
  display: inline-block;
  background: #003087;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: .02em;
}

/* ---------- content pages ---------- */
.content { max-width: 820px; padding: 44px 0 66px; }
.content h2 { font-size: 24px; margin: 34px 0 12px; }
.content h3 { font-size: 18px; margin: 24px 0 8px; }
.content p, .content li { color: var(--ink-2); font-size: 15.5px; }
.content ul, .content ol { padding-left: 22px; display: grid; gap: 8px; }
.content .lead { font-size: 17px; color: var(--ink); }
.content .meta { font-size: 13px; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 6px; }
.info-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--bg-2);
  margin: 20px 0;
}
.info-card strong { display: block; margin-bottom: 6px; color: var(--ink); }
table.simple { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
table.simple th, table.simple td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; }
table.simple th { background: var(--bg-2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px 0 60px; }
.contact-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; }
.contact-block h3 { font-size: 16px; margin-bottom: 6px; }
.contact-block p { color: var(--ink-2); font-size: 14.5px; }
.contact-block a { color: var(--brand); font-weight: 600; }

/* ---------- toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
  z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid, .value-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid, .detail-grid, .cart-layout, .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  nav.main { display: none; }
  nav.main.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px 24px;
    gap: 14px;
  }
  .burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
    cursor: pointer;
    margin-left: auto;
  }
  .product-grid, .review-grid { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: repeat(2, 1fr); }
  .hero-art .tile:nth-child(4) { grid-column: span 2; }
  .newsletter { grid-template-columns: 1fr; padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}

/* ---- product media: real photo over svg fallback ---- */
.pmedia { position: relative; display: block; width: 100%; height: 100%; }
.pmedia-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pmedia-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pmedia-fallback svg { width: 56%; height: 56%; opacity: .85; }
