/* ============ IWLUFK Storefront ============ */
:root {
  --accent: #e8590c;
  --accent-dark: #c44a08;
  --ink: #1a1d21;
  --ink-soft: #555c63;
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --line: #e6e8eb;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(20, 24, 28, 0.08);
  --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.4px;
  padding: 8px 16px;
}
.announce b { color: #ffb26b; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
}
.logo span { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.cart-btn {
  position: relative;
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  padding: 6px;
}
.cart-count {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.cart-count.hidden { display: none; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #1d2429 0%, #2c343b 55%, #3a2a1c 100%);
  color: #fff;
  padding: 96px 0 110px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(232, 89, 12, 0.25), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 680px; }
.hero .eyebrow {
  color: #ffb26b;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 18px;
}
.hero p { color: #c9ced4; font-size: 17px; max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  border: none;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(232, 89, 12, 0.35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn-outline:hover { background: rgba(232, 89, 12, 0.06); }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 700;
}
.section-head h2 { font-size: 32px; margin-top: 8px; }
.section-head p { color: var(--ink-soft); margin-top: 10px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.product-card .img-wrap { background: var(--bg-soft); aspect-ratio: 1; overflow: hidden; }
.product-card .img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-card .info { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-size: 12px; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
.product-card h3 { font-size: 17px; margin: 8px 0 6px; line-height: 1.4; }
.product-card h3 a:hover { color: var(--accent); }
.stars { color: #f5a623; font-size: 14px; letter-spacing: 1px; }
.rating-line { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.price-row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.price { font-size: 22px; font-weight: 800; color: var(--ink); }
.price .was { font-size: 14px; color: #9aa0a6; text-decoration: line-through; font-weight: 500; margin-left: 6px; }
.add-cart {
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}
.add-cart:hover { background: var(--accent); }

/* ---------- Value props ---------- */
.values { background: var(--bg-soft); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}
.value {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 26px;
  text-align: center;
  border: 1px solid var(--line);
}
.value .icon { font-size: 30px; margin-bottom: 12px; }
.value h3 { font-size: 17px; margin-bottom: 6px; }
.value p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Product detail page ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-soft); padding: 22px 0 0; }
.breadcrumb a:hover { color: var(--accent); }
.pdp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 36px 0 60px;
}
.gallery { display: flex; flex-direction: column; gap: 14px; }
.gallery .main-img {
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery .main-img img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumbs img {
  background: var(--bg-soft);
  border: 2px solid var(--line);
  border-radius: 10px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.thumbs img:hover, .thumbs img.active { border-color: var(--accent); }
.pdp-info h1 { font-size: 26px; line-height: 1.35; margin: 10px 0 12px; }
.pdp-price { font-size: 30px; font-weight: 800; margin: 18px 0 6px; }
.pdp-price .was { font-size: 16px; color: #9aa0a6; text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.stock-note { color: #1f7a3d; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.pdp-bullets { margin: 20px 0; }
.pdp-bullets li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-soft);
  font-size: 15px;
}
.pdp-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}
.buy-box { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 10px; }
.trust-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  font-size: 13px;
  color: var(--ink-soft);
}
.trust-row span { display: flex; align-items: center; gap: 6px; }

.desc-section { background: var(--bg-soft); }
.desc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.desc-grid img { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.desc-grid h2 { font-size: 26px; margin-bottom: 14px; }
.desc-grid p { color: var(--ink-soft); margin-bottom: 12px; }

.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.spec-table th { color: var(--ink-soft); font-weight: 600; width: 40%; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.review {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.review .stars { margin-bottom: 8px; }
.review p { font-size: 14px; color: var(--ink-soft); margin: 8px 0 12px; }
.review .who { font-size: 13px; font-weight: 700; }
.review .who span { color: #1f7a3d; font-weight: 500; }

/* ---------- Newsletter / CTA ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--accent) 0%, #d9480f 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.cta-band h2 { font-size: 30px; margin-bottom: 10px; }
.cta-band p { opacity: 0.9; margin-bottom: 24px; }
.cta-band .btn { background: #fff; color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #b8bec5; padding: 56px 0 28px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.site-footer li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c3138; padding-top: 22px; text-align: center; font-size: 13px; color: #7d848b; }

/* ---------- Cart drawer ---------- */
.drawer-mask {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 21, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  z-index: 90;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 92vw;
  height: 100%;
  background: #fff;
  z-index: 100;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
}
.cart-drawer.open { right: 0; }
.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  font-size: 17px;
}
.cart-close { background: none; border: none; font-size: 22px; color: var(--ink-soft); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 60px 20px; }
.cart-empty .big { font-size: 40px; margin-bottom: 12px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--bg-soft);
  border-radius: 10px;
  padding: 6px;
}
.cart-item .ci-name { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cart-item .ci-price { font-size: 14px; color: var(--accent); font-weight: 700; margin-top: 2px; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.qty-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}
.qty-num { min-width: 20px; text-align: center; font-weight: 700; font-size: 14px; }
.ci-remove { margin-left: auto; background: none; border: none; color: #9aa0a6; font-size: 13px; text-decoration: underline; }
.ci-remove:hover { color: var(--accent); }
.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px; }
.cart-total { display: flex; justify-content: space-between; font-size: 17px; font-weight: 800; margin-bottom: 14px; }
.cart-foot .btn { width: 100%; justify-content: center; }
.cart-foot .note { font-size: 12px; color: var(--ink-soft); text-align: center; margin-top: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--ink);
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0;
  transition: all 0.3s;
  z-index: 120;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .pdp, .desc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .nav-links { display: none; }
}

/* ---------- 可视化编辑器 ---------- */
.edit-bar {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 200;
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.edit-bar button {
  border: none;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  font-size: 13px;
}
.edit-bar button.alt { background: var(--accent); }
.edit-bar button.ghost { background: #eef0f3; color: var(--ink); }
.edit-bar button.ghost:hover { background: #e2e5ea; }
body.editing [data-e] {
  outline: 2px dashed rgba(232, 89, 12, 0.65);
  outline-offset: 3px;
  border-radius: 4px;
  cursor: text;
}
body.editing [data-e]:hover { background: rgba(232, 89, 12, 0.07); }
.edit-hint {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 80px;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 13px;
  z-index: 200;
  display: none;
  max-width: 90vw;
}
body.editing .edit-hint { display: block; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 18px; }
.faq-item {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.faq-item h3 { font-size: 16px; margin-bottom: 6px; }
.faq-item p { font-size: 14px; color: var(--ink-soft); }
.thumbs { grid-template-columns: repeat(auto-fit, minmax(70px, 1fr)); }

/* ---------- 物流说明 ---------- */
.ship-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.5;
}

/* ---------- A+ 图文区 ---------- */
.desc-text p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 14px;
  max-width: 880px;
}
.aplus-gallery {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.aplus-banner {
  width: 100%;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 支付弹窗 ---------- */
.pay-modal {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(20,24,28,.55);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.pay-card {
  position: relative;
  background: var(--bg, #fff);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  width: 100%; max-width: 420px;
  padding: 28px;
}
.pay-card h3 { margin-bottom: 6px; font-size: 20px; }
.pay-total { font-size: 15px; color: var(--ink-soft); margin-bottom: 18px; }
.pay-total b { font-size: 20px; color: var(--ink); }
.pay-close {
  position: absolute; top: 12px; right: 14px;
  border: none; background: none; font-size: 18px; cursor: pointer;
  color: var(--ink-soft);
}
.pay-note { margin-top: 14px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.pay-err { color: #c0392b; font-size: 14px; padding: 12px 0; }

/* ---------- 亚马逊评分引用 ---------- */
.amz-link { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.amz-link:hover { text-decoration: underline; }
.amz-review-card {
  display: flex; align-items: center; gap: 48px; flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 44px;
}
.amz-score { text-align: center; min-width: 180px; }
.amz-num { font-size: 56px; font-weight: 800; line-height: 1; }
.amz-stars { font-size: 22px; margin: 8px 0 6px; }
.amz-based { font-size: 13px; color: var(--ink-soft); }
.amz-cta { flex: 1; min-width: 260px; }
.amz-cta p { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.6; }

/* ---------- 缺货按钮 ---------- */
.btn.out-of-stock, .add-cart.out-of-stock {
  background: #9ca3af !important;
  color: #f3f4f6 !important;
  cursor: not-allowed !important;
  opacity: .85;
  border: none !important;
  pointer-events: none;
}

/* ---------- 法律页面 ---------- */
.legal-main { padding: 64px 0 80px; }
.legal-card {
  max-width: 860px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 44px 48px;
}
.legal-card h1 { font-size: 30px; margin-bottom: 6px; }
.legal-updated { font-size: 13px; color: var(--ink-soft); margin-bottom: 28px; }
.legal-card h2 { font-size: 18px; margin: 26px 0 8px; }
.legal-card p { font-size: 14.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 10px; }
.legal-card a { color: var(--accent); }
@media (max-width: 640px) { .legal-card { padding: 28px 20px; } }

/* ---------- 结账收货表单 ---------- */
.ship-form { margin-bottom: 16px; }
.ship-form-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; letter-spacing: .5px; }
.ship-form input {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
.ship-form input:focus { outline: none; border-color: var(--accent); }
.ship-row { display: flex; gap: 8px; }
.ship-row input { margin-bottom: 0; }
.ship-row input:nth-child(2) { flex: .8; }
.ship-err { color: #c0392b; font-size: 12.5px; min-height: 16px; margin-top: 4px; }
/* ---------- 订单成功视图 ---------- */
.ord-success { text-align: center; padding: 8px 0; }
.ord-icon { font-size: 40px; margin-bottom: 8px; }
.ord-id { margin: 8px 0 14px; font-size: 14px; color: var(--ink-soft); word-break: break-all; }
.ord-items { text-align: left; background: var(--bg-soft); border-radius: 8px; padding: 12px 14px; margin-bottom: 12px; }
.ord-row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; color: var(--ink-soft); }
.ord-note { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; line-height: 1.6; }
