.page-main { background: var(--bg); padding: 22px 0 80px; min-height: 70vh; }

.pdp {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  align-items: start;
  min-width: 0;
}
/* rev.93-pdp-layout: กันคอลัมน์ถูก content (รูปหลายใบ) ดันกว้างเกิน grid */
.pdp > * { min-width: 0; max-width: 100%; }
.pdp-gallery, .pdp-buy, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
  max-width: 100%;
}
.pdp-gallery {
  padding: 18px 18px 14px;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 12px);
}
.pdp-stage {
  position: relative;
  width: 100%;
  height: 420px;
  overflow: hidden;
  display: block;
  background: #fafafa;
  border-radius: 12px;
}
.pdp-stage picture { display: contents; }
.pdp-stage img,
.pdp-stage iframe,
.pdp-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  border: 0;
  background: #0b1220;
}
.pdp-stage img { background: transparent; }
.pdp-stage.is-video { background: #0b1220; }
.pdp-stage .vid-open {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
}
.pdp-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
  max-width: 100%;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}
.pdp-thumbs button.more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #2563eb;
  background: #eff6ff;
  line-height: 1.15;
}
.pdp-thumbs button.more span.n { font-size: 15px; }
.pdp-thumbs button.more span.t { font-size: 10px; color: #64748b; }
.pdp-thumbs button {
  flex: 0 0 52px;
  width: 52px; height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  padding: 3px;
}
.pdp-thumbs button.on { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-ring); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pdp-thumbs button.vid img { object-fit: cover; }
.pdp-thumbs .vid-ph { width: 100%; height: 100%; display: block; }
.pdp-thumbs button.vid { position: relative; background: #111; }
.pdp-thumbs button.vid .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.94);
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
  pointer-events: none;
}
.pdp-thumbs button.vid .play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 6px 0 0 8px;
  border-style: solid;
  border-width: 5px 0 5px 8px;
  border-color: transparent transparent transparent #2563eb;
}
.pdp-thumbs .vid-ph { background: linear-gradient(135deg, #1d4ed8, #38bdf8); }
.pdp-thumbs .vid-ph[data-p="tiktok"] { background: linear-gradient(160deg, #111 0%, #25f4ee 48%, #fe2c55 100%); }
.trait-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trait {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f6fb;
  color: #445;
  font-weight: 500;
}

.pdp-buy { padding: 18px 20px 16px; }
.pdp-desc, .pdp-specs {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px 28px;
  margin-top: 16px;
}
.pdp-desc > h2, .pdp-specs > h2 { font-size: 18px; margin: 0 0 12px; letter-spacing: -.02em; }
.pdp-buy .brand { font-size: 12px; letter-spacing: .04em; color: var(--muted); text-transform: none; }
.pdp-buy h1 { font-size: 22px; letter-spacing: -0.03em; margin: 6px 0 10px; line-height: 1.28; font-weight: 700; }
.lead { color: #555; font-size: 13.5px; margin-bottom: 10px; white-space: pre-line; } /* rev.95.2: คงเว้นบรรทัดจาก Excel */
.price-lg { font-size: 24px; font-weight: 700; }
.price-lg em { font-size: 13px; font-weight: 500; font-style: normal; color: #555; }
.step-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.step-block h2, .step-block h3 {
  font-size: 13px;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #555;
  font-weight: 600;
}
.step-block h2 small, .step-block h3 small { font-weight: 400; color: var(--muted); font-size: 12.5px; }

.choice-grid { display: grid; gap: 8px; }

.choice {
  text-align: left;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 10px;
  background: #fff;
  transition: border .15s, background .15s;
}
.choice:hover { border-color: #c7d7fe; }
.choice.on {
  border-color: var(--green);
  background: var(--green-soft);
}
.choice .row { display: flex; align-items: center; gap: 10px; }
.choice .opt-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  background: #f6f6f6;
  flex-shrink: 0;
}
.dot {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid rgba(0,0,0,.12);
  flex-shrink: 0;
}
.choice b { display: block; font-size: 13px; font-weight: 600; }
.choice em { display: block; font-style: normal; font-size: 11.5px; color: #666; margin-top: 1px; }
.choice .tag { margin-left: auto; font-size: 12.5px; font-weight: 600; color: #333; white-space: nowrap; }

.extra-list { display: grid; gap: 8px; }
.extra {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
}
.extra.on { border-color: var(--green); background: var(--green-soft); }
.extra input { accent-color: var(--green); }
.extra .grow { flex: 1; font-size: 13.5px; }
.extra .baht { font-size: 13px; font-weight: 600; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.spec-table th { text-align: left; width: 34%; color: #6b7280; font-weight: 500; padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.pdp-infos {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 8px 24px 10px;
  margin-top: 16px;
}
.info-list { margin: 0; }
.info-row {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 24px 40px;
  padding: 14px 0;
  align-items: baseline;
}
.info-row dt {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
}
.info-row dd {
  margin: 0;
  color: #3a3a3a;
  font-size: 14px;
  font-weight: 400;
}

.buybar {
  margin-top: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}
/* rev.93-pdp-layout: ชื่อตัวเลือกยาว/ปุ่ม 2 ปุ่ม ไม่บีบจนข้อความห่อพัง */
.buybar .qty-lg { flex: 0 0 auto; }
.buybar .sum { flex: 1 1 100px; min-width: 0; order: 0; }
.buybar .sum small {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.buybar .sum .price { font-size: 18px; white-space: nowrap; }
.buybar .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
  flex: 0 0 auto;
  white-space: nowrap;
}
@media (min-width: 961px) {
  .buybar .btn { flex: 1 1 auto; }
}
.qty-lg { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; }
.qty-lg button { width: 32px; height: 32px; font-size: 16px; }
.qty-lg span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }

.pdp-desc img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
}

.card-reviews.is-pdp {
  height: auto;
  min-height: 120px;
  overflow: hidden;
}


/* rev.93-pdp-lightbox: ดูรูปเต็มจอแบบ Shopee (เปิดจากปุ่ม +N / คลิกรูปหลัก) */
.pdp-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
}
.pdp-lightbox[hidden] { display: none !important; }
.pdp-stage .lb-zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  padding: 0;
}
.pdp-stage .lb-zoom-hint:hover { background: rgba(37, 99, 235, 0.92); }
.pdp-lightbox .lb-img {
  max-width: min(96vw, 1200px);
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  -webkit-user-drag: none;
}
.pdp-lightbox .lb-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.pdp-lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}
.pdp-lightbox .lb-prev { left: 12px; }
.pdp-lightbox .lb-next { right: 12px; }
.pdp-lightbox .lb-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #cbd5e1;
  font-size: 13px;
  background: rgba(15,23,42,.55);
  padding: 6px 12px;
  border-radius: 999px;
}
.pdp-lightbox .lb-nav:disabled { opacity: 0.35; cursor: default; }

@media (max-width: 960px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-stage { height: 280px; }
  .buybar { margin: 14px 0 0; }
}

.pdp-dock,
.pdp-sheet-mask,
.pdp-sheet { display: none; }
.pdp-dock.is-off,
.pdp-sheet-mask.is-off,
.pdp-sheet.is-off { display: none !important; }

@media (max-width: 768px) {
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .pdp-stage { height: auto; min-height: 280px; aspect-ratio: 1 / 1; }
  .page-main { padding-bottom: 88px; }
  .pdp-buy { display: none; }
  .pdp-dock {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    min-height: 56px;
    height: 56px;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #2563EB;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-sizing: border-box;
  }
  .pdp-sheet-mask {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
  .pdp-sheet-mask.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .pdp-sheet {
    display: grid;
    grid-template-rows: 48px 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 99999;
    height: 420px;
    max-height: 86vh;
    margin: 0;
    padding: 8px 16px 16px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -8px 28px rgba(15, 23, 42, .12);
    box-sizing: border-box;
    transform: translateY(100%);
    transition: transform .22s ease;
    pointer-events: none;
  }
  .pdp-sheet.is-on {
    transform: translateY(0);
    pointer-events: auto;
  }
  .pdp-sheet-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 48px;
    min-height: 48px;
  }
  .pdp-sheet-bar h2 {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    height: 24px;
    line-height: 24px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .pdp-sheet-x {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: 0;
    background: #f1f5f9;
    border-radius: 999px;
    font-size: 16px;
    color: #334155;
  }
  .pdp-sheet-body {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }
  .pdp-sheet-name {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
  }
  .pdp-sheet .buybar {
    flex-wrap: wrap;
    min-height: 48px;
    position: sticky;
    bottom: 0;
  }
}
@media (max-width: 768px) {
  /* rev.10.14-mobile */
  .pdp-dock, .pdp-sheet {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
  .pdp-dock {
    height: auto;
    min-height: 56px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .pdp-sheet {
    height: auto;
    min-height: 280px;
    max-height: min(86dvh, 100%);
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .page-main { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .info-row { grid-template-columns: 1fr; gap: 4px 0; }
  .pdp-desc, .pdp-specs, .pdp-infos { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 768px) {
  /* rev.10.15-pdp-mobile — หน้ารายละเอียดสินค้ามือถือ · ไม่แตะเดสก์ท็อป */
  .page-main, .pdp, .pdp-gallery, .pdp-desc, .pdp-specs, .pdp-infos {
    max-width: 100%;
    overflow-x: hidden;
  }
  .pdp-gallery { padding: 10px; }
  .pdp-stage {
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }
  .pdp-buy {
    display: block;
    padding: 12px 14px 14px;
  }
  .pdp-buy h1 { font-size: 18px; line-height: 1.3; word-break: break-word; }
  .pdp-buy .step-block,
  .pdp-buy .buybar { display: none; }
  .pdp-desc img,
  .pdp-desc picture,
  .pdp-desc video,
  .article-body img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
  .pdp-desc p,
  .article-body p {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .breadcrumb { overflow-wrap: anywhere; }
  .breadcrumb .here { word-break: break-word; }
  .choice .row { min-width: 0; }
  .choice .row > span:not(.tag) { min-width: 0; flex: 1; }
  .choice b { overflow-wrap: anywhere; }
  .choice .tag { flex-shrink: 0; }
  .pdp-sheet {
    height: min(88dvh, 100%);
    max-height: 88dvh;
    min-height: 280px;
  }
  .pdp-sheet .buybar {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 1;
    margin: 8px 0 0;
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -10px 12px #fff;
  }
  .pdp-sheet .buybar .qty-lg { grid-column: 1; }
  .pdp-sheet .buybar .sum { grid-column: 2; min-width: 0; }
  .pdp-sheet .buybar .btn {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 0 10px;
    font-size: 14px;
  }
  .pdp-sheet .qty-lg button { width: 44px; height: 44px; }
  .spec-table { font-size: 13px; }
  .spec-table th { width: 38%; }
}

/* rev.95.3-mobile-a11y: stage ไม่ต้อง repaint ถ้าไม่เปลี่ยนรูป */
@media (max-width: 768px) {
  .pdp-stage { contain: layout paint; }
  .pdp-thumbs { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
}

/* rev.97.12.14: รูปในรายละเอียดสินค้าไม่ยืดเต็มจอบนจอใหญ่ (เดิม width:100% เต็มคอลัมน์เสมอ) — มือถือคงเดิม */
@media (min-width:769px) {
  .pdp-desc img { width: auto; max-width: min(100%, 560px); margin-inline: auto; }
}

/* ── rev.97.13.35-mobile: แถวสั่งซื้อบนจอเล็ก ≤480px — แถว 1 = จำนวน+ราคา · แถว 2 = ปุ่มคู่กว้างครึ่ง สูง 44px (ไม่แตะบล็อก pdp-sheet เดิมทุกบรรทัด) ── */
@media (max-width: 480px) {
  .buybar { gap: 8px 10px; }
  .buybar .qty-lg { order: 1; }
  .buybar .sum { order: 2; flex: 1 1 auto; text-align: right; }
  .buybar .sum .price { font-size: 17px; }
  .buybar .btn { order: 3; flex: 1 1 calc(50% - 5px); height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

/* rev.97.13.94-detimg: DETIMG-PDP-CSS — รูปจากลิงก์ในรายละเอียดสินค้า */
.pdp-det-img { max-width: 100%; width: auto; height: auto; border-radius: 12px; border: 1px solid var(--line, #e5e7eb); margin: 8px 0; display: block; background: #fff; }

.page-main { background: var(--bg); padding: 22px 0 80px; min-height: 70vh; }

.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.cart-layout:not(.has-items) { grid-template-columns: 1fr; }   /* rev.97.13.157z66-cartlogin: ตะกร้าว่าง = ไม่ทิ้งคอลัมน์ขวา */
.summary[hidden] { display: none !important; }                 /* กันกรอบขาวเปล่า */
.cart-list { display: grid; gap: 12px; }
.cart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 16px;
}
.cart-card img { width: 110px; height: 110px; object-fit: contain; mix-blend-mode: multiply; }
.cart-card h3 { font-size: 16px; margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip {
  font-size: 12px;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 3px 10px;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.chip .dot { width: 10px; height: 10px; }
.mini-specs { font-size: 12.5px; color: #666; line-height: 1.55; }
.cart-side { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.cart-side .price { font-size: 18px; }
.line-actions { display: flex; gap: 8px; margin-top: 10px; }
.line-actions a, .line-actions button { font-size: 12.5px; color: var(--green-ink); }
.summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  position: sticky;
  top: calc(var(--header-h) + var(--nav-h) + 12px);
}
.summary h2 { font-size: 16px; margin-bottom: 12px; }
.sum-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: 13.5px; color: #555; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; color: var(--ink); font-weight: 600; font-size: 15px; }
.sum-row.total strong { font-size: 20px; }
.summary .btn { width: 100%; justify-content: center; margin-top: 12px; }

.check-layout { display: grid; grid-template-columns: 1fr 360px; gap: 22px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: #666; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.field textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-ring);
}
.pay-list { display: grid; gap: 8px; }
.pay {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: #fff;
}
.pay.on { border-color: var(--green); background: var(--green-soft); }
.pay b { display: block; font-size: 14px; }
.pay em { display: block; font-style: normal; font-size: 12.5px; color: #666; margin-top: 2px; }
.ok-card {
  background: #fff;
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
  border: 1px solid var(--line);
}
.ok-card .mark {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-size: 28px; margin: 0 auto 16px;
}

@media (max-width: 960px) {
  .cart-layout, .check-layout { grid-template-columns: 1fr; }
  .cart-card { grid-template-columns: 80px 1fr; }
  .cart-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .cart-layout, .check-layout { grid-template-columns: 1fr; }
  .cart-layout.has-items .cart-list { min-height: 160px; }
  .cart-card { grid-template-columns: 72px 1fr; gap: 12px; min-height: 96px; }
  .cart-card img { width: 72px; height: 72px; max-width: 100%; }
  .cart-card h3 {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    line-clamp: 2; overflow: hidden; word-break: break-word;
  }
  .page-main { padding-bottom: 120px; }
}

.sheet-mask,
.cart-dock,
.cart-sheet,
.sheet-close { display: none; }

@media (max-width: 768px) {
  .sheet-mask {
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, .45);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: none;
    contain: layout;
  }
  .sheet-mask.is-on {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 99998;
  }
  .cart-dock {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    min-height: 64px;
    z-index: 80;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 14px;
    box-sizing: border-box;
    background: #fff;
    border-top: 1px solid var(--line);
    contain: layout;
  }
  .cart-dock[hidden] { display: none !important; }
  .cart-dock .btn {
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    flex: 0 0 auto;
  }
  .cart-dock-sum { font-size: 14px; min-width: 0; }
  .cart-dock-sum b { font-size: 18px; }
  .cart-sheet {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 88vh;
    max-height: 88vh;
    background: #fff;
    border-radius: 16px 16px 0 0;
    z-index: 99999;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: none;
    contain: layout;
    pointer-events: none;
    box-sizing: border-box;
  }
  .cart-sheet.is-on {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 99999;
  }
  .cart-sheet-bar {
    height: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0 14px;
    border-bottom: 1px solid var(--line);
    flex: 0 0 48px;
  }
  .cart-sheet-body {
    flex: 1;
    min-height: 160px;
    overflow: auto;
    padding: 12px 14px 24px;
  }
  .sheet-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
  }
  .check-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    min-height: 240px;
  }
  .sheet-item {
    display: grid;
    grid-template-columns: 16px 56px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    min-height: 72px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }
  .sheet-pick {
    width: 16px; height: 16px; min-width: 16px; min-height: 16px;
    margin: 4px 0 0; padding: 0; flex: 0 0 16px;
    accent-color: #2563EB;
  }
  .sheet-item img, .sheet-ph {
    width: 56px; height: 56px; object-fit: contain;
    background: #f3f4f6; border-radius: 8px; display: block;
  }
  .sheet-item b { font-size: 14px; word-break: break-word; }
  .sheet-pay { width: 100%; justify-content: center; min-height: 44px; height: 44px; margin-top: 12px; }
}

.pay-modal[hidden] { display: none !important; }
.pay-modal {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(15, 23, 42, .45);
  display: grid; place-items: center;
}
.pay-modal-card {
  width: min(360px, calc(100% - 24px));
  min-height: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.pay-modal-card h2 { margin: 0; font-size: 18px; }
.pay-qr { width: 180px; height: 180px; min-height: 180px; }
.pay-qr svg { display: block; width: 180px; height: 180px; }
.pay-amt { margin: 0; font-size: 15px; }
.pay-amt b { font-size: 20px; }
.pay-no, .pay-wait { margin: 0; font-size: 13px; color: #6b7280; }
.pay-expire { margin: 0; font-size: 13px; color: #DC3545; min-height: 40px; line-height: 1.45; }

.pay-sim {
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 8px 10px;
  border: 1px dashed #94a3b8;
  background: #fff;
  color: #334155;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
}

.ship-check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; font-size: 13.5px; }
.ship-check input { margin-top: 3px; }
.field input:read-only { background: #f4f4f4; color: #111; }

.pay-ok-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: #2563EB; color: #fff;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}
@media (max-width: 768px) {
  /* rev.10.14-mobile */
  .cart-sheet, .sheet-mask {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }
  .cart-dock {
    height: auto;
    min-height: 64px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .field input, .field select, .field textarea { font-size: 16px; }
  .pay-modal { place-items: end center; padding: 0; }
  .pay-modal-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: min(92dvh, 100%);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .pay-qr, .pay-qr svg {
    width: min(180px, 56vw);
    height: min(180px, 56vw);
    min-height: 0;
  }
  .checkout { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

.page-main { background: var(--bg); padding: 22px 0 80px; min-height: 70vh; }

.account-page { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; padding-bottom: 120px; }
.account-side { width: 220px; box-sizing: border-box; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.acc-sheet { min-width: 0; }
.acc-pane-x, .acc-pane-mask { display: none; }
.account-avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
  background: #eff6ff; color: #14532d; display: grid; place-items: center;
  font-weight: 700; font-size: 24px; margin: 0 0 10px;
}
.account-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account-hello { font-weight: 700; margin: 0 0 12px; }
.account-side nav { display: grid; gap: 4px; }
.account-side nav a {
  display: block; padding: 8px 10px; border-radius: 10px; color: #374151; font-size: 14px;
}
.account-side nav a.on { background: #2563EB; color: #fff; font-weight: 700; }
.acc-group { border: 0; padding: 0; margin: 0 0 6px; }
.acc-group summary {
  list-style: none; cursor: pointer; font-weight: 700; font-size: 14px;
  padding: 8px 10px; border-radius: 10px; color: #111;
}
.acc-group summary::-webkit-details-marker { display: none; }
.acc-group summary::after { content: "▾"; float: right; color: #6b7280; font-weight: 400; }
.acc-group:not([open]) summary::after { content: "▸"; }
.acc-group a { padding-left: 16px; font-size: 13.5px; }
.order-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.order-tabs button {
  height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; color: #444;
}
.order-tabs button.on { background: var(--green); color: #fff; border-color: var(--green); font-weight: 600; }
.promo-list { display: grid; gap: 12px; }
.promo-card { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.promo-card img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; background: #f3f4f6; }
.promo-card h3 { font-size: 16px; margin: 0 0 4px; }
.promo-count { font-size: 13px; font-weight: 700; color: var(--green-ink); }
.promo-tag { display: inline-block; font-size: 11px; background: #dbeafe; color: #1e40af; border-radius: 999px; padding: 2px 8px; margin-bottom: 6px; }
.promo-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 16px; }
/* rev.96.23: การ์ดสินค้าในหน้าโปรโมชั่น — ราคาปัจจุบัน + ราคาเดิมขีดฆ่า + ป้าย -% + นับถอยหลัง */
.promo-prods .price-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.promo-prods .price-row .price { font-size: 15px; }
.promo-prods .price-row .price-old { font-size: 12px; }
.promo-card-off { background: #dcfce7; color: #15803d; font-size: 11.5px; font-weight: 800; padding: 1px 6px; border-radius: 999px; white-space: nowrap; }
.promo-card-cd { display: inline-flex; align-items: center; gap: 4px; background: #dcfce7; color: #15803d; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap; }
/* rev.96.30-otpgate: บาร์สีส้มนับถอยหลัง (ภาษาเดียวกับป๊อปอัปหน้าแรก) + การ์ดสินค้าเนี้ยบขึ้น */
.promo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: linear-gradient(90deg, #f97316, #ea5800); color: #fff; padding: 13px 16px; border-radius: 14px; margin: 10px 0 16px; box-shadow: 0 8px 20px rgba(234, 88, 12, .28), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.promo-bar-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-weight: 800; font-size: 15px; min-width: 0; }
.promo-bar-price b { font-size: 23px; letter-spacing: .2px; text-shadow: 0 2px 4px rgba(0, 0, 0, .28); }
.promo-bar-price s { font-size: 14.5px; opacity: .92; text-decoration-thickness: 2.5px; }
.promo-bar-lab { font-size: 13px; font-weight: 700; opacity: .95; }
.promo-bar-off { background: rgba(0, 0, 0, .2); border-radius: 8px; padding: 2px 8px; font-size: 13.5px; font-style: normal; font-weight: 800; }
.promo-cd-box { background: rgba(0, 0, 0, .2); border-radius: 11px; padding: 6px 13px; display: flex; flex-direction: column; align-items: center; gap: 1px; white-space: nowrap; }
.promo-cd-lab { font-size: 11px; font-weight: 700; opacity: .92; letter-spacing: .3px; }
.promo-cd-box b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .6px; }
.promo-prods-h { font-size: 18px; font-weight: 800; margin: 24px 0 10px; letter-spacing: -.2px; }
.promo-prods .wish-card { border-radius: 12px; transition: transform .18s ease, box-shadow .18s ease; }
.promo-prods .wish-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17, 24, 39, .12); border-color: #dbeafe; }
.promo-prods .price-row { margin-top: 4px; }
.promo-prods .wish-card .price { font-weight: 800; color: #ea5800; font-size: 16px; }
.promo-prods .wish-card .price em { font-style: normal; font-size: 11.5px; font-weight: 600; color: #6b7280; margin-left: 2px; }
.account-side .linkish { margin-top: 14px; }
.account-main h1 { font-size: 26px; margin: 0 0 16px; }
.account-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px;
}
.account-card h2, .account-card h3 { margin: 0 0 8px; font-size: 16px; }
.account-card p { margin: 0; color: #555; font-size: 13.5px; }
.pf-photo { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pf-avatar {
  width: 88px; height: 88px; padding: 0; border: 0; border-radius: 50%;
  overflow: hidden; background: #f3f4f6; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center;
}
.pf-avatar img, .pf-avatar .ph, .pf-photo img, .pf-photo .ph {
  width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: #f3f4f6;
  display: grid; place-items: center; color: #555e6b; font-size: 12px;
}
.pf-photo-actions { display: grid; gap: 8px; justify-items: start; }
.pf-photo-actions .btn { height: 40px; padding: 0 18px; }
.account-points .pts { font-size: 36px; font-weight: 700; }
.account-points .pts span { font-size: 16px; font-weight: 500; }
.pts-hero {
  background: linear-gradient(135deg, #2563EB 0%, #4f46e5 55%, #7c3aed 100%);
  color: #fff; border: 0; border-radius: 20px; padding: 20px 22px 18px; margin-bottom: 18px;
}
.pts-hero-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pts-kicker { margin: 0 0 4px; font-size: 12px; letter-spacing: .04em; opacity: .9; }
.pts-hero .pts { font-size: 40px; line-height: 1.1; }
.pts-hero .pts span { font-size: 16px; font-weight: 600; opacity: .9; }
.pts-baht { margin: 8px 0 0; font-size: 14px; opacity: .92; }
.pts-formula { margin: 14px 0 0; font-size: 12.5px; background: rgba(255,255,255,.16); border-radius: 10px; padding: 8px 10px; }
.pts-badge { display: inline-block; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff; color: #14532d; }
.pts-badge.tone-bronze { background: #ffedd5; color: #9a3412; }
.pts-badge.tone-silver { background: #e2e8f0; color: #334155; }
.pts-badge.tone-gold { background: #fef3c7; color: #92400e; }
.pts-badge.tone-platinum, .pts-badge.tone-plat { background: #e0e7ff; color: #3730a3; }
.pts-h { font-size: 16px; margin: 8px 0 10px; }
.pts-ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.pts-step { border-radius: 14px; padding: 12px; display: grid; gap: 4px; border: 1px solid var(--line); background: #fff; }
.pts-step b { font-size: 14px; }
.pts-step span { font-size: 12px; color: #595959; }
.pts-step.tone-bronze { background: #fff7ed; border-color: #fdba74; }
.pts-step.tone-silver { background: #f8fafc; border-color: #cbd5e1; }
.pts-step.tone-gold { background: #fffbeb; border-color: #fcd34d; }
.pts-step.tone-plat { background: #eef2ff; border-color: #a5b4fc; }
.pts-step.is-on { box-shadow: 0 0 0 2px #2563EB; }
.pts-gift { display: grid; gap: 8px; }
.pts-gift.tone-sky { background: #eff6ff; border-color: #93c5fd; }
.pts-gift.tone-mint { background: #ecfdf5; border-color: #6ee7b7; }
.pts-gift.tone-sun { background: #fff7ed; border-color: #fdba74; }
.pts-gift .btn { justify-self: start; margin-top: 4px; }
.pts-earn ul { margin: 8px 0; padding-left: 18px; color: #374151; font-size: 13.5px; }
.pts-earn li { margin: 4px 0; }
@media (max-width: 800px) {
  .pts-ladder { grid-template-columns: 1fr 1fr; }
}
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.pill { font-size: 12px; background: #dbeafe; color: #1e40af; border-radius: 999px; padding: 2px 8px; }
.addr.is-primary { border-color: #93c5fd; }
.account-wish {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.wish-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  min-width: 0;
  min-height: 180px;
  padding: 0;
  margin: 0;
}
.wish-card .card-link { display: flex; flex-direction: column; color: inherit; min-width: 0; }
.wish-card .card-media {
  aspect-ratio: 1 / 1;
  min-height: 140px;
  display: grid;
  place-items: center;
  background: #fafafa;
  overflow: hidden;
}
.wish-card .card-media img {
  width: 100%; height: 100%; max-height: none;
  object-fit: contain; margin: 0; border-radius: 0; display: block;
}
.wish-card .card-body { padding: 6px 8px 8px; min-width: 0; }
.wish-card h3 {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  height: 2.7em;
  margin: 0 0 4px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  word-break: break-word;
}
.wish-card .linkish { font-size: 12px; padding: 0 8px 8px; }
.account-card .check { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-size: 13.5px; }
.account-card .btn.danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.account-card .btn[disabled] { opacity: .55; cursor: not-allowed; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: 8px; font-weight: 700; }
@media (max-width: 800px) {
  .account-grid { grid-template-columns: 1fr; }
}
@media (min-width: 561px) {
  .account-page:not(.track-page) { grid-template-columns: 220px minmax(0, 1fr); }
  .account-page:not(.track-page) .account-side { width: 220px; }
  .account-page:not(.track-page) .acc-sheet {
    position: static; transform: none; height: auto; max-height: none;
    padding: 0; overflow: visible; pointer-events: auto;
  }
  .account-page:not(.track-page) .acc-pane-x,
  .acc-pane-mask { display: none; }
}
@media (max-width: 560px) {
  .account-page:not(.track-page) { grid-template-columns: 1fr; }
  .account-page:not(.track-page) .account-side { width: 100%; }
  .account-page:not(.track-page) .acc-pane-x {
    display: flex; align-items: center; justify-content: center;
    width: 100%; min-height: 44px; height: 44px; margin: 0 0 8px; flex: 0 0 auto;
    border: 1px solid var(--line); border-radius: 10px; background: #fff;
    font: inherit; font-size: 15px; font-weight: 700; color: #0f172a; cursor: pointer;
  }
  .acc-pane-mask {
    display: block; position: fixed; inset: 0; z-index: 99998;
    background: rgba(15, 23, 42, .4); opacity: 0; pointer-events: none;
  }
  .account-page:not(.track-page).is-pane ~ .acc-pane-mask,
  .account-page:not(.track-page).is-pane .acc-pane-mask { opacity: 1; pointer-events: auto; }
  .account-page:not(.track-page) .acc-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
    display: flex; flex-direction: column;
    width: 100%; max-width: 100%; height: 100%; max-height: 100%;
    padding: 12px 14px 24px; box-sizing: border-box;
    background: var(--bg); overflow: hidden;
    transform: translateY(100%); transition: transform .22s ease;
    pointer-events: none;
  }
  .account-page:not(.track-page).is-pane .acc-sheet {
    transform: translateY(0); pointer-events: auto;
  }
  .account-page:not(.track-page) .acc-sheet .account-main {
    flex: 1 1 auto; min-height: 0; overflow: auto;
  }
}

.page-article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 36px 40px 44px;
  max-width: 880px;
}
.page-article.about-page { max-width: 1040px; }
.about-hero {
  margin: 0 0 28px;
}
.about-hero picture { display: contents; }
.about-hero img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-radius: 16px;
}
.page-article.is-wide { max-width: none; }
.page-article h1 { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 8px; }
.page-article .kicker {
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green-ink);
  font-weight: 600;
  margin-bottom: 8px;
}
.page-article .lead { font-size: 16px; color: #555; margin-bottom: 22px; }
.page-article h2 { font-size: 18px; margin: 26px 0 8px; }
.page-article p { color: #444; margin-bottom: 12px; }
.article-body { font-size: 16px; line-height: 1.8; color: #444; }
.article-body p { margin-bottom: 12px; }
.article-body h2 { font-size: 22px; margin: 22px 0 10px; letter-spacing: -.02em; color: #1b1f2a; }
.article-body h3 { font-size: 18px; margin: 18px 0 8px; color: #1b1f2a; }
.article-body ul, .article-body ol { margin: 0 0 14px 1.3em; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin: 4px 0; }
.article-body a { color: #14532d; text-decoration: underline; }
.article-body img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 12px auto;
  border-radius: 8px;
}
.page-article ul.bullets { list-style: disc; padding-left: 20px; margin: 8px 0 16px; }
.page-article ul.bullets li { margin: 5px 0; color: #444; }
.news-list { display: grid; gap: 0; }
.news-card {
  display: grid;
  grid-template-columns: 168px 1fr;
  gap: 16px;
  align-items: stretch;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}
.news-card:last-child { border-bottom: 0; }
.news-thumb {
  display: block;
  width: 168px;
  height: 112px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
  flex-shrink: 0;
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-thumb.ph {
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 12px;
}
.news-card time { font-size: 12.5px; color: var(--muted); }
.news-card h2, .news-card h3 { font-size: 18px; margin: 4px 0 6px; }
.news-card h2 a:hover, .news-card h3 a:hover { color: var(--green-ink); }
.news-card p { margin: 0; color: #555; font-size: 14.5px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}
.pager a, .pager span {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  background: #fff;
  color: #333;
}
.pager a:hover { border-color: var(--green); color: var(--green-ink); }
.pager a.on {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  font-weight: 600;
}
.pager .nav {
  font-weight: 500;
}
.article-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 8px 0 22px;
}
.article-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 14px;
  background: #f3f3f3;
}
.article-gallery img:first-child:nth-last-child(1) {
  grid-column: 1 / -1;
  height: 320px;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}
.video-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 17, 0.05);
}
.video-card .thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 0;
  border: 0;
  background: linear-gradient(135deg, #15803d, #38bdf8);
  overflow: hidden;
  cursor: pointer;
}
.video-card .thumb img,
.video-card .thumb iframe,
.video-card .thumb video,
.video-card .vid-ph {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
  background: #0b1220;
}
.video-card .thumb video { object-fit: contain; }
.video-card .vid-ph[data-p="tiktok"] {
  background: linear-gradient(160deg, #111 0%, #25f4ee 48%, #fe2c55 100%);
}
.video-card .vid-ph[data-p="vimeo"] {
  background: linear-gradient(135deg, #1ab7ea, #162221);
}
.video-card .vid-ph[data-p="link"],
.video-card .vid-ph[data-p="file"] {
  background: linear-gradient(135deg, #15803d, #38bdf8);
}
.video-card .play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.video-card .play::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 3px;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #16a34a;
}
.video-card .meta { padding: 12px 14px 14px; }
.video-card h3 { font-size: 15px; margin-bottom: 4px; font-weight: 600; }
.video-card p { font-size: 13px; color: #666; margin: 0; }
.contact-cards {
  display: grid;
  gap: 22px;
  margin: 12px 0 8px;
}
.contact-image {
  margin: 0;
}
.contact-image[data-align="left"] { text-align: left; }
.contact-image[data-align="center"] { text-align: center; }
.contact-image[data-align="right"] { text-align: right; }
.contact-image img {
  max-width: min(100%, 640px);
  width: 100%;
  height: auto;
  display: inline-block;
  border-radius: 12px;
  vertical-align: top;
}
@media (max-width: 960px) {
  .video-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .page-article { padding: 24px 18px 32px; }
  .video-grid { grid-template-columns: 1fr; }
}

.user-login-body {
  background: #eef2ff;
  min-height: 100vh;
}
.login-bar {
  height: 72px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 28px;
  border-bottom: 1px solid #eef0f4;
  position: sticky;
  top: 0;
  z-index: 40;
}
.login-bar .logo { font-size: 22px; }
.login-back {
  font-size: 13.5px;
  color: #6b7280;
  font-weight: 400;
}
.login-back:hover { color: var(--green-ink); }
.user-login-main {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 40px 16px 64px;
}
.user-login-wrap { width: min(420px, 100%); }
.user-login-card {
  background: #fff;
  border-radius: 24px;
  padding: 32px 28px 28px;
  box-shadow: 0 22px 56px rgba(37, 99, 235, .14);
  border: 0;
  min-height: 360px;
}
.user-login-card.is-register { min-height: 560px; }
.user-login-card .mark {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: 22px; margin-bottom: 16px;
}
.user-login-card .mark.has-img {
  width: auto; height: auto; background: transparent; padding: 0; border-radius: 0;
}
.user-login-card .mark img {
  height: auto; width: auto; max-height: 56px; max-width: 220px; object-fit: contain; display: block;
}
.user-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 6px;
}
.user-login-card h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 18px;
  color: #111;
}
.user-login-card .field { margin-bottom: 14px; }
.user-login-card .field label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 7px;
}
.user-login-card .field input {
  height: 46px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0 14px;
  font-size: 14px;
  color: #111;
}
.user-login-card .field input::placeholder { color: #6b7280; }
.user-login-card .field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-ring);
}
.user-login-card .btn {
  width: 100%;
  height: 46px;
  justify-content: center;
  margin-top: 8px;
  font-size: 15px;
}

.warranty-list { display: grid; gap: 22px; margin-top: 8px; }
.warranty-block img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  border-radius: 12px;
}
.warranty-block .article-body { font-size: 16px; line-height: 1.8; color: #444; }
.warranty-block .article-body p { margin-bottom: 12px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.choice-row label { display: inline-flex; gap: 5px; align-items: center; width: auto; font-size: 13px; font-weight: 400; color: #374151; margin: 0; }
.choice-row input[type="radio"] {
  width: 14px; height: 14px; min-height: 0; padding: 0; margin: 0;
  border-radius: 50%; flex: none; appearance: auto;
}
.field select { width: 100%; height: 46px; border-radius: 12px; border: 1px solid #e5e7eb; padding: 0 12px; font: inherit; background: #fff; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: #666; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
}
.field textarea { height: 80px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px var(--green-ring);
}
@media (max-width: 960px) {
  .form-grid { grid-template-columns: 1fr; }
}

.auth-tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.auth-tabs button {
  flex: 1; height: 38px; border-radius: 999px; border: 1px solid #e5e7eb;
  background: #f8fafc; color: #6b7280; font-weight: 600; cursor: pointer;
}
.auth-tabs button.on { background: var(--green); color: #fff; border-color: var(--green); }
.auth-err { color: #b91c1c; font-size: 13px; margin: 0 0 12px; }
.auth-switch { text-align: center; font-size: 13.5px; color: #6b7280; margin: 16px 0 0; }
.auth-switch button { border: 0; background: none; color: var(--green-ink); font-weight: 600; cursor: pointer; }

.user-login-card.is-register { max-width: 100%; }
.user-login-wrap:has(.is-register) { width: min(560px, 100%); }
.auth-name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-hint { font-size: 12px; color: #6b7280; font-weight: 400; margin: 6px 0 0; }
.auth-later { font-size: 12.5px; color: #6b7280; line-height: 1.5; margin: 4px 0 8px; }
.auth-later-btn {
  border: 0; background: none; color: var(--green-ink); font-weight: 600;
  font-size: 13px; cursor: pointer; padding: 0 0 12px; display: block;
}
.auth-later-btn:hover { text-decoration: underline; }
.user-login-card .req { color: #dc2626; font-weight: 700; }
.pw-check {
  list-style: none; margin: 8px 0 0; padding: 0;
  font-size: 12.5px; line-height: 1.55; font-weight: 400;
}
.pw-check li { color: #6b7280; font-weight: 400; }
.pw-check li::before { content: "○ "; }
.pw-check.is-on li { color: #dc2626; font-weight: 400; }
.pw-check.is-on li::before { content: "✗ "; }
.pw-check.is-on li.ok { color: #15803d; }
.pw-check.is-on li.ok::before { content: "✓ "; }
.field-err { margin: 6px 0 0; }
.user-login-card textarea {
  width: 100%; min-height: 84px; border-radius: 12px; border: 1px solid #e5e7eb;
  padding: 10px 12px; font: inherit; resize: vertical;
}
@media (max-width: 560px) {
  .auth-name-row { grid-template-columns: 1fr; }
}

.auth-consent {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: #374151; line-height: 1.45; margin: 4px 0 12px;
}
.auth-consent input { margin-top: 3px; accent-color: var(--green); }
.auth-consent a { color: var(--green-ink); font-weight: 600; text-decoration: underline; }
#authGo:disabled { opacity: 0.45; cursor: not-allowed; pointer-events: none; }


.acc-pane[hidden] { display: none !important; }
.video-grid .grid-more { grid-column: 1 / -1; display: flex; justify-content: center; padding: 8px 0 16px; }


.order-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.order-status, .status-tag {
  display: inline-block;
  min-height: 24px;
  height: 24px;
  line-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  vertical-align: middle;
}
.status-pending { background: #b91c1c; color: #fff; }
.status-cancelled { background: #495057; color: #fff; }
.status-verifying { background: #FFC107; color: #111; }
.status-paid { background: #0e7490; color: #fff; }
.status-shipped { background: #15803d; color: #fff; }
.status-completed { background: #198754; color: #fff; }
.status-issue { background: #E9ECEF; color: #b91c1c; }

.order-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.order-card img, .order-card-ph {
  width: 88px;
  height: 88px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8f8f8;
  border-radius: 12px;
  display: block;
}
.order-card h3 { font-size: 15px; margin: 0 0 6px; }
.order-side { text-align: right; }
.order-side .price { font-size: 16px; font-weight: 700; }
.order-side .price em { font-style: normal; font-weight: 500; font-size: 13px; }
.order-ship { margin: 8px 0 0; font-size: 13.5px; color: #374151; min-height: 20px; }

.order-block .chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.order-block .chip {
  font-size: 12px;
  background: #f4f4f4;
  border-radius: 999px;
  padding: 3px 10px;
  color: #444;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.order-block .chip .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

@media (max-width: 768px) {
  .account-page { grid-template-columns: 1fr; gap: 16px; }
  .order-card { grid-template-columns: 72px 1fr; }
  .order-card img, .order-card-ph { width: 72px; height: 72px; }
  .order-side { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .page-article { padding: 1.25rem 1rem 1.5rem; }
  .video-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .promo-card { grid-template-columns: 96px 1fr; }
  .user-login-card { min-height: 0; padding: 1.5rem 1.1rem 1.25rem; }
}

.order-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 10px; min-height: 36px;
}
.order-actions .pay-now,
.order-actions .btn.ticket-btn,
.order-actions .btn.recv-btn,
.order-actions .btn.review-btn {
  margin-top: 0; flex: 0 1 auto; width: auto; min-width: 0;
  min-height: 36px; height: 36px; padding: 0 12px;
  font-size: 13px; font-weight: 600;
}
.order-actions .btn.review-btn {
  background: #fff; color: #2563EB; border: 1.5px solid #2563EB;
}
.order-actions .btn.review-btn[hidden] { display: none !important; }
.order-actions .pay-now[hidden] { display: none !important; }
.order-block[data-st]:not([data-st="pending"]) .pay-now,
.order-block:has(.claim-tag) .pay-now { display: none !important; }
.pay-modal[hidden] { display: none !important; }
.pay-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .45);
  display: grid; place-items: center;
}
.pay-modal-card {
  width: min(360px, calc(100% - 24px));
  min-height: 480px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.pay-modal-card h2 { margin: 0; font-size: 18px; }
.pay-qr { width: 180px; height: 180px; min-height: 180px; }
.pay-qr svg { display: block; width: 180px; height: 180px; }
.pay-amt { margin: 0; font-size: 15px; }
.pay-amt b { font-size: 20px; }
.pay-no, .pay-wait { margin: 0; font-size: 13px; color: #6b7280; }
.pay-expire { margin: 0; font-size: 13px; color: #DC3545; min-height: 40px; line-height: 1.45; }
.pay-sim {
  width: 100%; min-height: 44px; padding: 8px 10px;
  border: 1px dashed #64748b; background: #fff; color: #334155;
  font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 8px; cursor: pointer;
}
.pay-ok-mark {
  width: 56px; height: 56px; border-radius: 50%;
  background: #2563EB; color: #fff;
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700;
}

.btn.ticket-btn { background: #fff; color: #DC3545; border: 1.5px solid #DC3545; }
.btn.ticket-btn:hover { background: #DC3545; color: #fff; }
.btn.ticket-btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn.ticket-btn[disabled]:hover { background: #fff; color: #DC3545; }
.ticket-modal[hidden] { display: none !important; }
.ticket-modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(15, 23, 42, .45);
  display: grid; place-items: center;
}
.ticket-card {
  width: min(400px, calc(100% - 24px));
  min-height: 480px;
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px;
  display: grid;
  align-content: start;
  gap: 8px;
}
.ticket-card h2 { margin: 0; font-size: 18px; }
.ticket-card .btn { min-height: 42px; }
#tkItems { min-height: 48px; display: grid; gap: 8px; }
.tk-item {
  display: flex; align-items: center; gap: 8px;
  min-height: 44px; font-size: 13px;
}
.ticket-card .tk-item input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; min-height: 16px;
  margin: 0; padding: 0; flex: 0 0 16px;
  border: 1px solid #cbd5e1; border-radius: 4px; box-shadow: none;
  appearance: auto; accent-color: #2563EB;
}
.tk-item img, .tk-ph {
  width: 40px; height: 40px; flex: 0 0 40px;
  object-fit: contain; background: #f3f4f6; border-radius: 8px; display: block;
}

.warr-list { display: grid; gap: 10px; }
.warr-card {
  display: grid; grid-template-columns: 72px 1fr; gap: 12px; align-items: start;
  min-height: 110px;
}
.warr-dates { min-height: 36px; }
.warr-dates p { margin: 0; min-height: 18px; line-height: 18px; }
.warr-card img, .warr-card .order-card-ph {
  width: 72px; height: 72px; object-fit: contain; background: #f3f4f6; border-radius: 12px;
}
.warr-card h3 { margin: 0 0 4px; font-size: 15px; }
.warr-tag {
  display: inline-flex; align-items: center; min-height: 34px; height: 34px;
  padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; margin: 6px 0;
  white-space: nowrap;
}
.warr-ok { background: #198754; color: #fff; }
.warr-off { background: #fff; color: #DC3545; border: 1.5px solid #DC3545; }
.warr-act { margin-top: 6px; min-height: 42px; height: 42px; }

.claim-line { margin: 6px 0 0; min-height: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.claim-tag {
  display: inline-flex; align-items: center; min-height: 24px; height: 24px;
  padding: 0 8px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1;
}
.claim-tag.claim-review { background: #c2410c; color: #fff; }
.claim-tag.claim-ok { background: #2563EB; color: #fff; }
.claim-tag.claim-ship { background: #0e7490; color: #fff; }
.claim-tag.claim-done { background: #198754; color: #fff; }

.order-card a.item-track-link { color: inherit; }
.track-page { padding: 8px 0 40px; min-height: 520px; width: 100%; min-width: 0; }
.account-page.track-page {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.account-page.track-page .account-side {
  width: 220px;
  max-width: 100%;
  box-sizing: border-box;
  flex-shrink: 0;
}
.account-page.track-page .account-main { min-width: 0; width: 100%; }
.track-card {
  background: #fff; border-radius: 16px; padding: 20px 22px;
  min-height: 480px; max-width: none; width: 100%; min-width: 0;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .account-page.track-page { grid-template-columns: 1fr; gap: 16px; }
  .account-page.track-page .account-side { width: 100%; }
}
.track-line {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none; margin: 0 0 20px; padding: 8px 0 4px;
  min-height: 96px; min-width: 0; position: relative; gap: 0;
}
.track-step {
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 18px auto auto;
  justify-items: center; text-align: center;
  min-height: 88px; min-width: 0; position: relative; gap: 6px;
}
.track-step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; top: 8px;
  width: 100%; height: 2px; background: #e5e7eb; z-index: 0;
}
.track-step.is-done:not(:last-child)::after { background: #2563EB; }
.track-dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid #cbd5e1; background: #fff;
  margin: 0; position: relative; z-index: 1; display: block;
}
.track-step.is-done .track-dot,
.track-step.is-now .track-dot { background: #2563EB; border-color: #2563EB; }
.track-step.is-now .track-dot { box-shadow: 0 0 0 4px rgba(37, 99, 235, .18); }
.track-step b {
  font-size: 12px; line-height: 1.3; min-height: 2.6em; max-height: 2.6em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden; word-break: break-word; width: 100%;
}
.track-step .muted {
  min-height: 16px; margin: 0; font-size: 11px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical;
  line-clamp: 1; overflow: hidden; width: 100%;
}
.track-prod {
  display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px;
  align-items: start; min-height: 88px; width: 100%; min-width: 0;
}
.track-thumb { width: 88px; min-width: 88px; height: 88px; flex-shrink: 0; }
.track-copy { min-width: 0; width: 100%; }
.track-prod img, .track-ph {
  width: 88px; height: 88px; aspect-ratio: 1 / 1;
  object-fit: contain; background: #f3f4f6; border-radius: 12px; display: block;
}
.track-prod img[hidden], .track-ph[hidden] { display: none !important; }
.track-thumb:has(img:not([hidden])) .track-ph { display: none !important; }
.track-copy h1, #trName {
  margin: 0 0 8px; font-size: 18px; line-height: 1.35;
  height: 2.7em; max-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  line-clamp: 2; overflow: hidden; word-break: break-word; white-space: normal;
}
.track-copy p, .track-copy b, #trVar, #trMeta, #trSku, #trQty, #trKind, #trTrk {
  word-wrap: break-word; word-break: break-word; white-space: normal; overflow-wrap: anywhere;
}
.track-copy p { margin: 0 0 4px; font-size: 13.5px; min-height: 18px; }
.track-actions {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin-top: 18px; min-height: 42px;
}
.track-actions .btn {
  min-height: 36px; height: 36px; padding: 0 14px; width: auto;
}
.track-actions .warr-tag, .track-actions .warr-act { margin: 0; }
.track-actions [hidden] { display: none !important; }
.track-card .card-reviews,
#trReviews {
  height: auto;
  min-height: 120px;
  margin: 16px 0 0;
  padding: 16px 14px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-sizing: border-box;
}
@media (max-width: 768px) {
  .track-step b { font-size: 11px; }
}

.rev-mask {
  position: fixed; inset: 0; z-index: 82;
  background: rgba(15, 23, 42, .4);
  opacity: 0; visibility: hidden; pointer-events: none;
}
.rev-mask.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
.rev-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 83;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 15px;
  height: auto;
  min-height: 340px;
  max-height: 86vh;
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 28px rgba(15, 23, 42, .12);
  transform: translateY(100%);
  transition: transform .22s ease;
  pointer-events: none;
}
.rev-sheet.is-on { transform: translateY(0); pointer-events: auto; }
.rev-bar {
  display: flex; align-items: flex-start; gap: 8px;
  width: 100%; max-width: 100%; min-width: 0;
  flex: 0 0 auto; box-sizing: border-box;
}
.rev-bar h2, #revTitle {
  margin: 0; flex: 1 1 auto; min-width: 0; max-width: 100%;
  font-size: 15px; font-weight: 700; color: #0f172a;
  line-height: 1.35; white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
}
.rev-x {
  width: 36px; height: 36px; min-width: 36px; flex: 0 0 36px; border: 0; background: #f1f5f9;
  border-radius: 999px; font-size: 16px; color: #334155; cursor: pointer;
}
.rev-body {
  display: flex; flex-direction: column; gap: 10px;
  width: 100%; max-width: 100%; min-width: 0; min-height: 0;
  flex: 1 1 auto; box-sizing: border-box;
}
.rev-who {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; max-width: 100%; min-width: 0; min-height: 32px;
  font-size: 13px; color: #334155; box-sizing: border-box;
}
.rev-who span {
  min-width: 0; flex: 1 1 auto; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600;
}
.rev-anon {
  display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto;
  white-space: nowrap; font-weight: 500;
}
.rev-anon input { width: 16px; height: 16px; margin: 0; accent-color: #2563EB; }
.rev-stars {
  display: flex; align-items: center; gap: 4px;
  width: 100%; max-width: 100%; min-width: 0;
  height: 40px; min-height: 40px; flex: 0 0 auto;
}
.rev-stars button {
  width: 40px; height: 40px; border: 0; background: none; padding: 0;
  font-size: 28px; line-height: 1; color: #64748b; cursor: pointer; flex: 0 0 40px;
}
.rev-stars button.is-on { color: #b45309; }
#revText {
  width: 100%; max-width: 100%; min-width: 0;
  height: 72px; min-height: 72px; max-height: 72px;
  resize: none; box-sizing: border-box;
  border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 10px;
  font: inherit; font-size: 14px;
}
.rev-photo {
  display: flex; flex-direction: column; gap: 6px;
  width: 100%; max-width: 100%; min-width: 0;
  min-height: 48px; flex: 0 0 auto; box-sizing: border-box;
  font-size: 13px; font-weight: 600; color: #334155;
}
.rev-photo input[type="file"] {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  font: inherit; font-size: 13px; font-weight: 500;
}
.rev-send {
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
  min-height: 44px; height: 44px; margin: 0; flex: 0 0 auto;
  background: #2563EB; color: #fff; border: 0; font-weight: 700;
}
html.rev-off .rev-sheet,
html.rev-off .rev-mask { display: none !important; }
html.rev-off .review-btn,
html.rev-off #trReview,
html.rev-off [data-order-review],
html.rev-off .warr-act[data-review] { display: none !important; }

.ship-alert {
  min-height: 44px; height: 44px; margin: 0 0 12px; padding: 0 12px;
  border-radius: 10px; display: flex; align-items: center;
  font-size: 14px; font-weight: 700; line-height: 1.2;
  visibility: hidden; box-sizing: border-box; overflow: hidden;
}
.ship-alert.is-on { visibility: visible; }
.ship-alert.is-pickup { background: #FFEDD5; color: #C2410C; }
.ship-alert.is-transit { background: #DBEAFE; color: #1D4ED8; }
.ship-alert.is-failed { background: #FEE2E2; color: #B91C1C; }
.ship-alert.is-address { background: #FFEDD5; color: #9A3412; }
.ship-alert.is-damage { background: #EDE9FE; color: #6D28D9; }
@media (max-width: 768px) {
  /* rev.10.14-mobile */
  .user-login-card .field input,
  .field input, .field select, .field textarea,
  #revText { font-size: 16px; }
  .pay-modal { place-items: end center; padding: 0; }
  .pay-modal-card, .ticket-card {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    max-height: min(92dvh, 100%);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .rev-sheet {
    padding-bottom: calc(15px + env(safe-area-inset-bottom, 0px));
    max-height: min(86dvh, 100%);
  }
  .news-card { grid-template-columns: 1fr; }
  .news-thumb { width: 100%; height: 180px; }
  .login-bar {
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 16px 0;
  }
  .user-login-main {
    min-height: calc(100dvh - 56px);
    padding: 24px 12px calc(40px + env(safe-area-inset-bottom, 0px));
  }
  .article-gallery { grid-template-columns: 1fr; }
  .article-gallery img,
  .article-gallery img:first-child:nth-last-child(1) {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .account-page:not(.track-page) .acc-sheet {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  #otpModal > div {
    min-width: 0 !important;
    width: calc(100% - 24px) !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 20px 16px !important;
  }
  .otp-digit {
    width: 36px !important;
    height: 44px !important;
    font-size: 18px !important;
  }
  .page-article h1 { font-size: 24px; }
}

/* rev.10.17-geo: หน้าคำถามที่พบบ่อย — ไม่แตะเลย์เอาต์เดสก์ท็อป/มือถืออื่น */
.faq-list { display: grid; gap: 20px; margin-top: 12px; }
.faq-item h2 { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
.faq-item p { margin: 0; color: #444; line-height: 1.75; }
.faq-item a { color: #14532d; text-decoration: underline; }


/* ── rev.96.6-compare: หน้าเปรียบเทียบสินค้า (โหลดเฉพาะ /compare) ── */
.cmp-page { max-width: 1100px; }
.cmp-page .muted { margin-bottom: 14px; }
.cmp-search { position: relative; margin: 6px 0 12px; }
.cmp-search input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px; font-size: 15px; background: #fff;
}
.cmp-search input:focus { outline: 2px solid #16a34a55; border-color: #16a34a; }
.cmp-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .12); overflow: hidden; max-height: 320px; overflow-y: auto;
}
.cmp-res-item {
  display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
  padding: 10px 12px; border: 0; background: #fff; cursor: pointer; font-size: 14px;
}
.cmp-res-item:hover { background: #f3f4f6; }
.cmp-res-item img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #f9fafb; }
.cmp-res-item span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-res-empty { padding: 12px; color: #6b7280; font-size: 14px; }
.cmp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.cmp-chip {
  display: inline-flex; align-items: center; gap: 6px; background: #eff6ff;
  border: 1px solid #bfdbfe; color: #15803d; border-radius: 999px;
  padding: 5px 8px 5px 12px; font-size: 13px; max-width: 100%;
}
.cmp-chip button {
  border: 0; background: transparent; color: #15803d; font-size: 15px;
  line-height: 1; cursor: pointer; padding: 0 4px;
}
.cmp-msg { min-height: 18px; font-size: 13px; color: #b45309; margin: 4px 0 8px; }
.cmp-empty {
  text-align: center; border: 1.5px dashed var(--line, #e5e7eb);
  border-radius: 14px; padding: 44px 18px; color: #374151;
}
.cmp-empty p { margin: 6px 0; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line, #e5e7eb); border-radius: 14px; background: #fff; }
.cmp-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14px; }
.cmp-table th, .cmp-table td {
  border-bottom: 1px solid var(--line, #e5e7eb); padding: 10px 12px;
  vertical-align: top; text-align: left;
}
.cmp-th-label {
  position: sticky; left: 0; z-index: 2; background: #f9fafb;
  min-width: 108px; max-width: 140px; font-weight: 600; color: #374151; white-space: nowrap;
}
.cmp-th { min-width: 190px; background: #fff; }
.cmp-th-img { display: flex; justify-content: center; padding: 4px 0 8px; }
.cmp-th-img img { width: 96px; height: 96px; object-fit: contain; }
.cmp-th-name { font-size: 13.5px; font-weight: 700; line-height: 1.35; margin-bottom: 8px; min-height: 36px; }
.cmp-th-act { display: flex; gap: 6px; align-items: center; justify-content: center; }
.cmp-th-act .btn { font-size: 13px; padding: 6px 12px; }
.cmp-th-rm {
  border: 1px solid var(--line, #e5e7eb); background: #fff; border-radius: 8px;
  width: 28px; height: 28px; cursor: pointer; color: #6b7280; font-size: 15px; line-height: 1;
}
.cmp-th-rm:hover { color: #dc2626; border-color: #fecaca; }
.cmp-sec th { background: #111827; color: #fff; font-size: 13px; letter-spacing: .02em; }
.cmp-table td { color: #111827; }
@media (max-width: 768px) {
  .cmp-th-label { min-width: 88px; max-width: 96px; font-size: 12.5px; padding: 8px; }
  .cmp-table th, .cmp-table td { padding: 8px; }
  .cmp-th { min-width: 150px; }
  .cmp-th-img img { width: 72px; height: 72px; }
}

/* ── rev.96.7: แถวรายละเอียดในตารางเทียบ (ย่ออัตโนมัติ + โหลดเพิ่ม) ── */
.cmp-det { min-width: 200px; color: #374151; }
.cmp-det-t { display: block; line-height: 1.55; white-space: pre-wrap; }
.cmp-det-t[data-open="1"] { max-height: 340px; overflow-y: auto; }
.cmp-det-more {
  margin-top: 7px; border: 1px solid #bfdbfe; background: #eff6ff; color: #15803d;
  border-radius: 8px; padding: 3px 10px; font-size: 12px; cursor: pointer;
}
.cmp-det-more:hover { background: #dbeafe; }

/* ── rev.96.8: การ์ดรุ่นในตารางเทียบ (รูป + ราคา + ลด) ── */
.cmp-st { display: flex; gap: 8px; align-items: center; padding: 4px 0; }
.cmp-st + .cmp-st { border-top: 1px dashed #e5e7eb; margin-top: 4px; padding-top: 8px; }
.cmp-st-img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #f9fafb; flex: 0 0 auto; }
.cmp-st-b { min-width: 0; font-size: 13px; line-height: 1.4; }
.cmp-st-p { color: #111827; font-weight: 700; }
.cmp-st-o { color: #9ca3af; font-size: 12px; }
.cmp-st-off { display: inline-block; background: #fef2f2; color: #dc2626; border-radius: 6px; font-size: 11.5px; font-style: normal; padding: 1px 6px; font-weight: 700; }

/* rev.96.9-notice: หน้ารวมโปรโมชั่น /promo (หน้าเสมือน — หมดอายุ รายตัวหายเอง ไม่มีไฟล์ขยะ) */
.promo-hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 14px; }
.promo-hub-card { display: grid; gap: 8px; padding: 10px; border: 1px solid #eef0f4; border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.promo-hub-card:hover { border-color: #cbd5e1; }
.promo-hub-card img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; background: #f3f4f6; }
.promo-hub-card b { font-size: 14px; line-height: 1.4; }
.promo-hub-cd { display: inline-flex; align-items: center; gap: 4px; justify-self: start; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.promo-hub-card small { color: #6b7280; font-size: 12px; }

/* ── rev.97.13.35-mobile: ฟอร์มบนจอมือถือ — ตัวอักษรในช่องกรอก 16px (iOS ไม่ซูมหน้าเองตอนแตะ) + ช่องสูง 44px กดง่าย ── */
@media (max-width: 560px) {
  .field input, .field select { font-size: 16px; height: 44px; }
  .field textarea { font-size: 16px; }
  .user-login-card .field input { font-size: 16px; }
}

/* rev.97.13.94-detimg: DETIMG-CMP-CSS — รูปจากลิงก์ในรายละเอียด (ตารางเปรียบเทียบ) */
.cmp-det-imgs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.cmp-det-imgs img { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line, #e5e7eb); background: #fff; }

/* ── rev.97.13.99-sync: ความชัดปุ่ม/ตัวอักษร (หน้าสินค้า/บทความ/ชำระเงิน modal) ── */
.pay-amt { font-size: 17px; color: #0f172a; }
.pay-amt b { font-size: 22px; color: #15803d; }
.pay-no span { color: #1e293b; font-weight: 700; }
.pay-expire { color: #475569 !important; }

/* ── rev.97.13.131-cleannews: ฟอนต์ข่าวสาร/บทความ = Sans-Serif ทั้งหมด (ชนะ inline font จากหลังบ้านเดิม) + อ่านง่ายขึ้น ── */
.page-article, .page-article * { font-family: system-ui, Roboto, 'Helvetica Neue', Arial, sans-serif !important; }
.page-article { font-size: 17px; }
.article-body { font-size: 17px; line-height: 1.9; color: #1f2430; }
.article-body p { margin-bottom: 14px; }
.article-body h2 { font-size: 24px; margin: 30px 0 12px; font-weight: 800; color: #0f172a; }
.article-body h3 { font-size: 19px; margin: 22px 0 10px; font-weight: 800; color: #0f172a; }
.article-body img { max-width: 100%; height: auto; border-radius: 12px; margin: 12px 0; }
.article-body a { color: #15803d; font-weight: 700; }
.article-body ul, .article-body ol { padding-left: 26px; margin: 0 0 14px; }
.article-body li { margin-bottom: 6px; }
.news-list .news-item h2, .news-list h3 { font-weight: 800; }

/* ── rev.97.13.132-fullimg: ภาพในบทความโชว์เต็มทุกรูป — ไม่ครอป ไม่บีบสัดส่วน ── */
.article-gallery { grid-template-columns: 1fr; gap: 14px; }
.article-gallery img, .article-gallery img:first-child:nth-last-child(1) { width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; border-radius: 14px; }
.page-article > img { width: 100%; height: auto !important; border-radius: 14px; }


/* ── rev.97.13.133-tlundo: typography หน้าข่าวสาร/บทความ — ขนาด/ลำดับชั้นตามแนวทาง SEO (อ่านง่ายทั้งคนและบอท) ── */
.page-article h1 { font-size: 30px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; color: #0f172a; }
.page-article .kicker { font-size: 13px; font-weight: 800; letter-spacing: .06em; }
.page-article .lead { font-size: 15px; color: #64748b; }
.news-card time { font-size: 13px; font-weight: 700; color: #64748b; }
.news-card h2, .news-card h3 { font-size: 18px; line-height: 1.45; font-weight: 800; color: #0f172a; }
.news-card p { font-size: 14.5px; line-height: 1.7; color: #475569; }
.article-body p { font-size: 1em; }

/* ── rev.97.13.134-imgfree: ภาพบทความทุกรูปยึดรูปแบบเดียวกัน — เต็มความกว้างคอลัมน์ สูงตามรูปจริง (ไม่ครอป ไม่ยืดบิดเบี้ยว) ── */
.page-article > img, .article-gallery img { display: block; width: 100% !important; height: auto !important; max-width: 100%; object-fit: contain !important; border-radius: 14px; margin: 14px 0; background: #f8fafc; }

/* ── rev.97.13.135-imgcarry: เนื้อหาบทความเชิดขนาดรูปที่ปรับไว้ในหลังบ้าน — จอใหญ่ = ตามที่ลาก (กว้าง×สูงจริง) · จอเล็ก = เต็มกว้างกันเนื้อหาล้น ── */
.article-body img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 14px 0; background: #f8fafc; }
@media (max-width: 768px) { .article-body img[style] { width: 100% !important; height: auto !important; } }
