/* ==============================================
   สไตล์เสริมที่ Tailwind รองรับไม่ได้
   ================================================ */

/* ฟอนต์หลัก */
@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&family=IBM+Plex+Sans+Thai:wght@300;400;500;600&display=swap');

/* ตัวแปรสี Design System */
:root {
  --primary: #fcd535;
  --primary-active: #f0b90b;
  --primary-soft: #fff7d6;
  --ink: #181a20;
  --ink-soft: #2b3139;
  --body: #3d4451;
  --muted: #707a8a;
  --canvas: #ffffff;
  --surface-soft: #fafafa;
  --surface-strong: #f5f5f5;
  --surface-dark: #181a20;
  --hairline: #eaecef;
  --hairline-strong: #d6dae0;
  --success: #0ecb81;
  --line-green: #06c755;
}

/* ฐาน typography */
body {
  font-family: 'IBM Plex Sans Thai', -apple-system, sans-serif;
  color: var(--body);
  background: var(--canvas);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6,
.font-display {
  font-family: 'Anuphan', sans-serif;
}

/* ============================
   Navigation
   ============================ */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow 0.3s ease;
}

#main-nav.scrolled {
  box-shadow: 0 2px 16px rgba(24, 26, 32, 0.08);
}

/* เมนู mobile */
#mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--canvas);
  padding: 24px;
  flex-direction: column;
}

#mobile-menu.open {
  display: flex;
}

/* ============================
   Buttons
   ============================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary);
  color: var(--ink);
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  height: 48px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: var(--primary-active);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--canvas);
  color: var(--ink);
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.15s;
}

.btn-secondary:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0ecb81;
  /* background: var(--line-green); */
  color: #fff;
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  height: 48px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-line:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ============================
   Banner Showcase (ad slots)
   ============================ */
.banner-section {
  background: var(--surface-soft);
  padding: 80px 0;
}

.ad-slot-large {
  background: var(--surface-strong);
  border: none;
  border-radius: 0;
  /* กำหนดขนาดคงที่ 1160×350px บน desktop */
  width: 100%;
  height: 350px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
  cursor: pointer;
  overflow: hidden;
}

/* mobile: ปรับความสูงให้สมดุล */
@media (max-width: 768px) {
  .ad-slot-large {
    height: 180px;
  }
}

/* ============================================================
   Banner Mobile Slider — slider fade เฉพาะ mobile (< 768px)
   ============================================================ */
#banner-mobile-slider {
  position: relative;
  height: 120px; /* ความสูงเท่ากับ ad-slot-small min-height */
  overflow: hidden;
}

/* แต่ละสไลด์ — วางซ้อนกันด้วย position absolute + fade */
.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.banner-slide--active {
  opacity: 1;
  pointer-events: auto;
}

/* แถวภายในสไลด์ — 2 ป้ายเรียงข้างกัน */
.banner-slide-row {
  display: flex;
  gap: 8px;
  height: 100%;
}

/* จุด dot indicator — แสดงเฉพาะ mobile, ซ่อนบน desktop */
#banner-mobile-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 10px;
}

/* ซ่อน dot indicator บน desktop (md ขึ้นไป ≥ 768px) */
@media (min-width: 768px) {
  #banner-mobile-dots {
    display: none;
  }
}

.banner-mobile-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hairline-strong);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
  flex-shrink: 0;
}

.banner-mobile-dot--active {
  background: var(--primary);
  transform: scale(1.3);
}

.ad-slot-large::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-soft) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.ad-slot-large:hover::before {
  opacity: 1;
}

.ad-slot-large:hover {
  border-color: transparent;
}

.ad-slot-small {
  background: var(--surface-strong);
  border: none;
  border-radius: 0;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: border-color 0.25s, background 0.25s;
  cursor: pointer;
  overflow: hidden;
}

.ad-slot-small:hover {
  border-color: transparent;
  background: var(--primary-soft);
}

.slot-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: var(--ink);
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================
   เช็คเบอร์มงคล
   ============================ */
.lucky-section {
  background: var(--canvas);
  padding: 80px 0;
}

.lucky-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(24, 26, 32, 0.06);
}

.phone-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-input {
  flex: 1;
  height: 56px;
  padding: 0 20px;
  font-family: 'Anuphan', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 2px solid var(--hairline);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s;
}

.phone-input:focus {
  border-color: var(--primary);
  background: var(--canvas);
}

.phone-input::placeholder {
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 16px;
}

.predict-btn {
  height: 56px;
  padding: 0 28px;
  background: var(--primary);
  color: var(--ink);
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.predict-btn:hover {
  background: var(--primary-active);
  transform: translateY(-1px);
}

/* ผลลัพธ์คู่เลข */
#result-area {
  display: none;
  margin-top: 32px;
}

#result-area.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.pairs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

/* chip แต่ละคู่เลข */
.pair-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  min-width: 90px;
  flex: 1;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: chipReveal 0.4s ease both;
}

.pair-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24,26,32,0.08);
}

.pair-chip .pair-num {
  font-family: 'Anuphan', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}

.pair-chip .pair-meaning {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: var(--body);
  line-height: 1.4;
}

.pair-chip .pair-level {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* ระดับ ดี / ปานกลาง / ระวัง */
.pair-chip.level-good {
  border-color: #0ecb81;
  background: #f0fdf8;
}

.pair-chip.level-good .pair-num { color: #087a4d; }
.pair-chip.level-good .pair-level {
  background: #0ecb81;
  color: #fff;
}

.pair-chip.level-mid {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.pair-chip.level-mid .pair-num { color: #7a5c00; }
.pair-chip.level-mid .pair-level {
  background: var(--primary);
  color: var(--ink);
}

.pair-chip.level-warn {
  border-color: #f87171;
  background: #fef2f2;
}

.pair-chip.level-warn .pair-num { color: #b91c1c; }
.pair-chip.level-warn .pair-level {
  background: #f87171;
  color: #fff;
}

/* กล่องรวมพลังเลข */
.power-box {
  background: var(--ink);
  border-radius: 14px;
  padding: 24px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.power-number {
  font-family: 'Anuphan', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  min-width: 64px;
  text-align: center;
}

.power-meaning {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
}

.power-label {
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 6px;
}

/* ข้อความเตือน */
.error-msg {
  color: #b91c1c;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}

.error-msg.show { display: block; }

/* ============================
   CTA Band
   ============================ */
.cta-band {
  background: var(--primary);
  border-radius: 20px;
  padding: 48px;
  margin: 80px 0;
}

/* ============================
   Footer
   ============================ */
.site-footer {
  background: var(--surface-dark);
  padding: 64px 0 40px;
  color: rgba(255,255,255,0.75);
}

.footer-logo {
  font-family: 'Anuphan', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

.footer-logo .dot {
  color: var(--primary);
}

.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: block;
  margin-bottom: 8px;
}

.footer-link:hover { color: var(--primary); }

.footer-heading {
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* ============================
   Section title
   ============================ */
.section-title {
  font-family: 'Anuphan', sans-serif;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 12px;
  margin-bottom: 8px;
}

/* ============================
   Animations
   ============================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes chipReveal {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* scroll reveal class */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================
   Divider accent
   ============================ */
.yellow-line {
  display: block;
  width: 48px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
  margin-top: 12px;
}

/* ============================
   Responsive ปรับเพิ่มเติม
   ============================ */
@media (max-width: 768px) {
  .lucky-card {
    padding: 24px 16px;
  }

  .phone-input-wrapper {
    flex-direction: column;
  }

  .phone-input,
  .predict-btn {
    width: 100%;
  }

  .cta-band {
    padding: 32px 20px;
    border-radius: 14px;
    margin: 40px 0;
  }

  .power-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .power-number {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .pair-chip {
    min-width: 76px;
    padding: 10px 10px;
  }

  .pair-chip .pair-num {
    font-size: 20px;
  }
}

/* ============================
   SIM Marketplace Section
   ============================ */

/* พื้นหลัง section - เปลี่ยนเป็นสีขาว */
.sim-section {
  background: var(--canvas);
  padding: 80px 0;
}

/* กล่อง filter */
.sim-filter {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 28px;
  margin-bottom: 28px;
}

/* แถวใน filter */
.sim-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 16px;
}

.sim-filter-row:last-child {
  margin-bottom: 0;
}

/* label + input กลุ่ม */
.sim-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 140px;
}

.sim-filter-label {
  font-family: 'Anuphan', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.sim-filter-input,
.sim-filter-select {
  height: 44px;
  padding: 0 14px;
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1.5px solid var(--hairline);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.sim-filter-input:focus,
.sim-filter-select:focus {
  border-color: var(--primary);
  background: var(--canvas);
}

/* กล่อง input เบอร์ 10 หลัก */
.sim-phone-boxes {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
}
.sim-phone-box {
  flex: 0 0 36px;
  width: 36px;
  height: 44px;
  text-align: center;
  font-family: 'Anuphan', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  background: var(--surface-strong);
  border: 1.5px solid var(--hairline);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  caret-color: var(--ink);
}
.sim-phone-box:focus {
  border-color: var(--primary);
  background: var(--canvas);
}
/* ซ่อน spin button ของ type=number */
.sim-phone-box::-webkit-outer-spin-button,
.sim-phone-box::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sim-phone-box[type=number] { -moz-appearance: textfield; }
/* ช่องที่ lock ไว้ (เลข 0 ตำแหน่งแรก) */
.sim-phone-box--fixed {
  color: var(--muted);
  background: var(--surface-strong);
  cursor: default;
  pointer-events: none;
}
.sim-phone-box.filled {
  border-color: var(--primary);
  color: var(--ink);
}
.sim-phone-sep {
  font-size: 18px;
  color: var(--muted);
  padding: 0 2px;
  line-height: 44px;
}

/* ปุ่ม digit toggle 0–9 */
.sim-digit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-digit-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--canvas);
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
}

.sim-digit-btn:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.sim-digit-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink);
}

/* chips หมวดหมู่ */
.sim-cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.sim-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 9999px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--canvas);
  font-family: 'Anuphan', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.sim-cat-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.sim-cat-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink);
}

/* แถบเรียง + ตัวนับ */
.sim-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 20px;
}

.sim-sort-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sim-sort-btn {
  padding: 7px 14px;
  border-radius: 6px;
  border: 1.5px solid var(--hairline-strong);
  background: var(--canvas);
  font-family: 'Anuphan', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.sim-sort-btn:hover,
.sim-sort-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink);
}

.sim-result-count {
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  color: var(--muted);
}

.sim-result-count strong {
  color: var(--ink);
}

/* กริดรายการเบอร์ — 5 คอลัมน์ desktop, 2 tablet, 1 mobile */
#sim-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* การ์ดเบอร์ */
.sim-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  /* 5 คอลัมน์: (100% - gap*4) / 5 */
  flex: 0 0 calc((100% - 64px) / 5);
  width: calc((100% - 64px) / 5);
  min-width: 0;
  box-sizing: border-box;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.sim-card:hover {
  box-shadow: 0 8px 24px rgba(24,26,32,0.09);
  transform: translateY(-2px);
  border-color: var(--primary);
}

/* หัวการ์ด: ค่าย + หัวใจ */
.sim-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

/* badge ค่าย */
.sim-carrier {
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sim-carrier-ais  { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.sim-carrier-true { background: #fff3e0; color: #e65100; border: 1px solid #ffcc80; }
.sim-carrier-dtac { background: #e3f2fd; color: #0d47a1; border: 1px solid #90caf9; }

/* ปุ่มหัวใจ */
.sim-fav-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--hairline-strong);
  transition: color 0.2s, transform 0.15s;
  padding: 4px;
  line-height: 1;
}

.sim-fav-btn:hover,
.sim-fav-btn.active {
  color: #f87171;
  transform: scale(1.15);
}

/* เบอร์โทรศัพท์ */
.sim-number {
  font-family: 'Anuphan', sans-serif;
  font-size: 22.491px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 3px;
  margin-bottom: 10px;
}

/* meta: badge ระดับ + นับคู่ + ผลรวม */
.sim-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.sim-level-badge {
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

.sim-level-badge.level-good { background: #0ecb81; color: #fff; }
.sim-level-badge.level-mid  { background: var(--primary); color: var(--ink); }
.sim-level-badge.level-warn { background: #f87171; color: #fff; }

.sim-pairs-stat {
  font-size: 12px;
  color: var(--muted);
  font-family: 'Anuphan', sans-serif;
}

.sim-sum-badge {
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 600;
  background: #fcd535;
  /* background: var(--surface-strong); */
  color: var(--muted-strong);
  border: 1px solid #fcd535;
  /* border: 1px solid var(--hairline); */
  padding: 2px 8px;
  border-radius: 9999px;
}

/* แถวปุ่มสั่งซื้อ (ราคาย้ายไปอยู่กับผลรวมแล้ว) */
.sim-price-row {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

/* ราคา — สีเขียวดูเบาลง น่าซื้อ */
.sim-price {
  font-family: 'Anuphan', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #0ecb81;
  line-height: 1;
}

.sim-price-unit {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}

/* ปุ่มแอคชัน */
.sim-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-btn-sm {
  height: 33px !important;
  padding: 0 8px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  flex: 1;
  min-width: 0;
}

/* แสดงชื่อร้านค้าแทนปุ่มเช็คเบอร์ — ไม่มี border ตัวอักษรสีดำ */
.sim-shop-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 0px;
  font-size: 12px;
  font-weight: 600;
  color: #181a20;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* กลุ่มปุ่มหัวการ์ด (คัดลอก + หัวใจ) */
.sim-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ปุ่มคัดลอก — ขนาดเดียวกับปุ่มหัวใจ */
.sim-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--muted);
  transition: color 0.15s, transform 0.15s;
  padding: 4px;
  line-height: 1;
}

.sim-copy-btn:hover {
  color: var(--primary);
  transform: scale(1.15);
}

/* empty state */
#sim-empty {
  display: none;
  text-align: center;
  padding: 48px 20px;
  width: 100%;
}

#sim-empty .empty-icon {
  font-size: 40px;
  color: var(--hairline-strong);
  margin-bottom: 16px;
}

#sim-empty p {
  font-family: 'Anuphan', sans-serif;
  font-size: 16px;
  color: var(--muted);
}

/* Responsive marketplace */
@media (max-width: 1024px) {
  /* tablet: 2 คอลัมน์ */
  .sim-card {
    flex: 0 0 calc((100% - 16px) / 2);
    width: calc((100% - 16px) / 2);
  }
}

@media (max-width: 640px) {
  .sim-section {
    padding: 56px 0;
  }

  .sim-filter {
    padding: 20px 16px;
  }

  /* mobile: 1 คอลัมน์ */
  .sim-card {
    flex: 0 0 100%;
    width: 100%;
  }

  .sim-filter-group {
    min-width: 100%;
  }

  /* mobile: ช่องเบอร์ยืดเต็มแถว */
  .sim-phone-boxes {
    width: 100%;
  }
  .sim-phone-box {
    flex: 1;
    width: 0;
  }
}

/* ============================================================
   Pagination รายการเบอร์
   ============================================================ */
.sim-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 32px 0 16px;
  flex-wrap: wrap;
}

.sim-page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  color: var(--body);
  font-family: Anuphan, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s;
}

.sim-page-btn:hover:not([disabled]):not(.active) {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--ink);
}

.sim-page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--ink);
  font-weight: 700;
}

.sim-page-btn[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
}

.sim-page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 40px;
  color: var(--muted);
  font-size: 16px;
}

/* ============================================================
   Drawer เบอร์ถูกใจ
   ============================================================ */
.fav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24,26,32,0.45);
  z-index: 1100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.fav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.fav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100vw;
  height: 100%;
  background: var(--canvas);
  z-index: 1101;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 32px rgba(24,26,32,0.12);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4,0,0.2,1);
}
.fav-drawer.open {
  transform: translateX(0);
}
.fav-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--hairline);
  flex-shrink: 0;
}
.fav-drawer-title {
  font-family: 'Anuphan', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.fav-count-badge {
  background: var(--primary);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 8px;
  min-width: 22px;
  text-align: center;
}
.fav-drawer-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--surface-strong);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.fav-drawer-close:hover { background: var(--hairline); }

/* รายการใน drawer */
.fav-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fav-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 15px;
  gap: 10px;
  padding: 40px 0;
}
.fav-empty i { font-size: 40px; opacity: 0.3; }
.fav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  background: var(--surface-soft);
}
.fav-item-info { flex: 1; min-width: 0; }
.fav-item-number {
  font-family: 'Anuphan', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 1px;
}
.fav-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.fav-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}
.fav-item-shop {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px; /* เพิ่มระยะห่างจาก meta ด้านบน */
  transition: color 0.2s;
}
.fav-item-shop:hover { color: var(--ink); }
.fav-item-remove {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #fff1f1;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.fav-item-remove:hover { background: #fecaca; }
/* กลุ่มปุ่มด้านขวาของ fav-item */
.fav-item-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.fav-item-order {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f0fdf4;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
}
.fav-item-order:hover { background: #bbf7d0; }

/* ปุ่ม floating */
.fav-fab {
  position: fixed;
  bottom: 76px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(252,213,53,0.5);
  z-index: 900;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fav-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(252,213,53,0.6);
}
.fav-fab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
  pointer-events: none;
}

/* ชื่อร้านค้าคลิกได้ */
a.sim-shop-name {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
a.sim-shop-name:hover { color: var(--ink); }

/* ============================================================
   Pricing Page — เพิ่มสำหรับ pricing.html
   ============================================================ */

/* Eyebrow pill */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  background: var(--primary-soft);
  color: var(--ink);
  font-family: 'Anuphan', sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 9999px;
  border: 1px solid var(--primary);
  margin-bottom: 16px;
}

/* Hero */
.pricing-hero {
  background: var(--canvas);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--hairline);
}

/* Billing toggle */
.billing-toggle-wrap {
  display: flex;
  justify-content: center;
  padding: 36px 0 0;
  background: var(--surface-soft);
}

.billing-toggle {
  display: inline-flex;
  background: var(--surface-strong);
  border: 1px solid var(--hairline);
  border-radius: 9999px;
  padding: 4px;
}

.billing-toggle-btn {
  background: none;
  border: none;
  border-radius: 9999px;
  font-family: 'Anuphan', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 8px 20px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.billing-toggle-btn.active {
  background: var(--canvas);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(24,26,32,0.1);
}

.save-badge {
  background: var(--success);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
}

/* Pricing section */
.pricing-section {
  background: var(--surface-soft);
  /* ลด padding-bottom เพื่อให้ตารางเปรียบเทียบอยู่ใกล้ขึ้น */
  padding: 40px 0 32px;
}

/* Cards container */
.pricing-cards-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Pricing card */
.pricing-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 24px 20px;
  flex: 0 0 calc((100% - 80px) / 6);
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s, border-color 0.25s;
}

.pricing-card:hover {
  box-shadow: 0 8px 24px rgba(24,26,32,0.09);
  transform: translateY(-3px);
}

/* การ์ด Smart (ยอดนิยม) */
.pricing-card--popular {
  border-color: var(--primary);
  box-shadow: 0 4px 20px rgba(252,213,53,0.18);
}

/* การ์ด Pro (แนะนำ) */
.pricing-card--recommend {
  border-color: var(--success);
  box-shadow: 0 4px 20px rgba(14,203,129,0.15);
}

/* Badge บนการ์ด */
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 9999px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.plan-badge--popular {
  background: var(--primary);
  color: var(--ink);
}

.plan-badge--recommend {
  background: var(--success);
  color: #fff;
}

/* ชื่อแพ็กเกจ */
.plan-name {
  font-family: 'Anuphan', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
  margin-top: 8px;
}

.pricing-card--popular .plan-name,
.pricing-card--recommend .plan-name {
  margin-top: 16px;
}

/* ราคาหลัก */
.plan-price-main {
  font-family: 'Anuphan', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 4px;
}

.plan-price-unit {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

/* ราคารายปี */
.plan-price-yearly {
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 2px;
}

.plan-price-yearly-new {
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 14px;
}

/* จำนวนเบอร์ */
.plan-nums {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 13px;
  color: var(--body);
  padding: 10px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 14px;
}

.plan-nums strong {
  font-family: 'Anuphan', sans-serif;
  color: var(--ink);
  font-weight: 700;
}

/* Feature list mini */
.plan-features-mini {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plan-features-mini li {
  font-size: 12px;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 7px;
  line-height: 1.4;
}

/* Comparison section */
.compare-section {
  background: var(--surface-soft);
  /* ลด padding-top เพื่อให้อยู่ใกล้ส่วน pricing cards */
  padding: 24px 0 80px;
}

.compare-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  background: var(--canvas);
  box-shadow: 0 2px 12px rgba(24,26,32,0.05);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 14px;
}

/* Header row */
.compare-table thead tr:first-child th {
  font-family: 'Anuphan', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  padding: 20px 16px 16px;
  background: var(--canvas);
  border-bottom: 2px solid var(--hairline);
  text-align: center;
}

.compare-table thead tr:first-child th:first-child {
  text-align: left;
}

/* Price header rows */
.price-row-header td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  vertical-align: middle;
}

/* Data rows */
.compare-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: center;
  vertical-align: middle;
  color: var(--body);
  font-size: 14px;
}

.compare-table td:first-child {
  text-align: left;
}

/* Highlight Smart column */
.compare-table th.col-smart,
.compare-table td.col-smart {
  background: #fffbeb;
}

/* Highlight Pro column */
.compare-table th.col-pro,
.compare-table td.col-pro {
  background: #f0fdf8;
}

/* Group header rows */
.compare-table tr.group-header td {
  background: var(--surface-strong);
  font-family: 'Anuphan', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
}

/* CTA row bottom */
.compare-table tr.table-cta-row td {
  border-top: 2px solid var(--hairline);
  border-bottom: none;
  padding: 16px;
}

/* Row hover */
.compare-table tbody tr:not(.group-header):not(.table-cta-row):hover td {
  background: var(--surface-soft);
}

.compare-table tbody tr:not(.group-header):not(.table-cta-row):hover td.col-smart {
  background: #fff7d6;
}

.compare-table tbody tr:not(.group-header):not(.table-cta-row):hover td.col-pro {
  background: #e6fbf3;
}

/* Last data row (before cta row) */
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

/* Check icon */
.check-icon {
  color: var(--success);
  font-size: 15px;
}

/* Dash icon */
.dash-icon {
  color: var(--hairline-strong);
  font-size: 16px;
  font-weight: 600;
}

/* Feature name cell */
.feature-name {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 14px;
  color: var(--body);
  line-height: 1.5;
}

.feature-name small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* Plan badge inline (ในตาราง) */
.plan-badge-inline {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  margin-left: 4px;
  vertical-align: middle;
}

.plan-badge-inline--popular {
  background: var(--primary);
  color: var(--ink);
}

.plan-badge-inline--recommend {
  background: var(--success);
  color: #fff;
}

/* Notes section */
.notes-section {
  background: var(--primary-soft);
  padding: 28px 0;
  border-top: 1px solid #ffe58f;
  border-bottom: 1px solid #ffe58f;
}

/* Payment section */
.payment-section {
  background: var(--canvas);
  padding: 80px 0;
}

.payment-card {
  background: var(--surface-soft);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 24px;
  flex: 1;
  min-width: 220px;
}

.payment-card-title {
  font-family: 'Anuphan', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  white-space: nowrap; /* ป้องกันข้อความในหัวข้อตัดบรรทัด */
}

.payment-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.payment-label {
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  min-width: 90px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 2px;
}

/* Responsive pricing cards */
@media (max-width: 1100px) {
  .pricing-card {
    flex: 0 0 calc((100% - 48px) / 4);
  }
}

@media (max-width: 800px) {
  .pricing-card {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 600px) {
  .pricing-card {
    flex: 0 0 calc((100% - 16px) / 2);
    min-width: 140px;
  }

  .pricing-hero {
    padding: 56px 0 40px;
  }

  .payment-section {
    padding: 56px 0;
  }

  .compare-section {
    padding: 56px 0;
  }
}

@media (max-width: 400px) {
  .pricing-card {
    flex: 0 0 100%;
  }
}

/* ============================================================
   Modal สั่งซื้อเบอร์
   ============================================================ */
.order-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 26, 32, 0.55);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.order-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.order-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px 28px;
  width: 100%;
  max-width: 380px;
  position: relative;
  box-shadow: 0 20px 60px rgba(24, 26, 32, 0.18);
  transform: translateY(16px);
  transition: transform 0.2s ease;
  font-family: Anuphan, sans-serif;
}
.order-modal-overlay.open .order-modal {
  transform: translateY(0);
}
.order-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #707a8a;
  transition: background 0.15s;
}
.order-modal-close:hover {
  background: #eaecef;
  color: #181a20;
}
.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  /* เว้นขวาเพื่อไม่ให้ icon บังปุ่มปิด X */
  padding-right: 32px;
}
.order-modal-badges {
  display: flex;
  align-items: center;
  gap: 8px;
}
.order-modal-cat {
  font-size: 12px;
  font-weight: 600;
  color: #707a8a;
  background: #f5f5f5;
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.2px;
}
.order-modal-number {
  font-size: 32px;
  font-weight: 700;
  color: #181a20;
  letter-spacing: 1px;
  margin-bottom: 14px;
}
.order-modal-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.order-modal-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.order-modal-price {
  font-size: 26px;
  font-weight: 700;
  color: #0ecb81;
}
.order-modal-price-unit {
  font-size: 14px;
  color: #707a8a;
  font-family: 'IBM Plex Sans Thai', sans-serif;
}
.order-modal-shop {
  font-size: 13px;
  color: #707a8a;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
}
/* แถวปุ่มติดต่อ Line / Facebook / โทร */
.order-modal-contacts {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.order-contact-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 60px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  font-family: Anuphan, sans-serif;
  transition: opacity 0.2s, transform 0.15s;
}
.order-contact-btn i {
  font-size: 22px;
}
.order-contact-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.order-contact-btn.hidden {
  display: none;
}
.order-contact-line {
  background: #06C755;
  color: #fff;
}
.order-contact-fb {
  background: #1877F2;
  color: #fff;
}
.order-contact-phone {
  background: #ff6b35;
  color: #fff;
}

.order-modal-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}

/* ============================================================
   Seller Profile Page
   ============================================================ */

/* แถบรูปปกร้านค้า */
.seller-cover-band {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--surface-strong) 70%, var(--surface-soft) 100%);
  position: relative;
  overflow: hidden;
}

.seller-cover-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 60%, rgba(252,213,53,0.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 25%, rgba(252,213,53,0.10) 0%, transparent 45%);
}

.seller-cover-band::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    45deg,
    transparent 0px,
    transparent 18px,
    rgba(252,213,53,0.04) 18px,
    rgba(252,213,53,0.04) 19px
  );
}

/* cover ที่มีรูปจริง */
.seller-cover-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
}

/* แถบโปรไฟล์ด้านล่าง cover */
.seller-profile-section {
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 28px;
}

/* wrapper แถวโปรไฟล์ */
.seller-profile-wrap {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

/* คอลัมน์ avatar — ลบ margin-top ที่ใช้สำหรับ overlap cover band ออกแล้ว */
.seller-avatar-col {
  flex-shrink: 0;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

/* avatar วงกลม */
.seller-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 4px solid var(--canvas);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Anuphan', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(24,26,32,0.14);
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.seller-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* คอลัมน์ข้อมูลร้าน */
.seller-info-col {
  flex: 1;
  min-width: 0;
  padding-top: 14px;
}

/* แถวชื่อร้าน + badge */
.seller-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.seller-name {
  font-family: 'Anuphan', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

/* badge ยืนยัน */
.seller-badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e3f2fd;
  color: #0d47a1;
  border: 1px solid #90caf9;
  font-family: 'Anuphan', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* แถว tag chips */
.seller-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.seller-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--primary-soft);
  color: var(--ink);
  border: 1px solid var(--primary);
  font-family: 'Anuphan', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 12px;
  border-radius: 9999px;
}

/* แถวสถิติ */
.seller-stats-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.seller-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.seller-stat-value {
  font-family: 'Anuphan', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.seller-stat-label {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 12px;
  color: var(--muted);
}

.seller-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--hairline);
  flex-shrink: 0;
}

/* คอลัมน์ปุ่มติดต่อ */
.seller-contacts-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  min-width: 160px;
}

.seller-contacts-col .btn-line,
.seller-contacts-col .btn-secondary {
  height: 42px;
  padding: 0 16px;
  font-size: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive Seller Page */
@media (max-width: 768px) {
  .seller-cover-band {
    height: 150px;
  }

  .seller-avatar-col {
    margin-top: 0;
  }

  .seller-avatar {
    width: 80px;
    height: 80px;
    font-size: 26px;
    border-width: 3px;
  }

  .seller-name {
    font-size: 18px;
  }

  .seller-contacts-col {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    min-width: 0;
    padding-top: 4px;
  }

  .seller-contacts-col .btn-line,
  .seller-contacts-col .btn-secondary {
    flex: 1;
    min-width: 80px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .seller-cover-band {
    height: 120px;
  }

  .seller-stats-row {
    gap: 12px;
  }

  .seller-stat-value {
    font-size: 17px;
  }
}
