/* ============================================================
   Bangkok Spa Thai Massage — Theme System (Dark / Light)
   ============================================================ */

/* ── Dark theme (default) ── */
:root,
[data-theme="dark"] {
  /* บอกเบราว์เซอร์ว่าเป็นธีมมืด → native control (date picker, ไอคอนปฏิทิน, scrollbar) ปรับตามเอง */
  color-scheme: dark;
  --bg-primary:    #0f0f0f;
  --bg-card:       #1a1a1a;
  --bg-card-hover: #222222;
  --bg-sidebar:    #141414;
  --border:        #2a2a2a;
  --border-light:  #333333;
  --gold:          #c9a96e;
  --gold-light:    #e0c080;
  --gold-dark:     #a07840;
  --text-primary:  #f0ead8;
  --text-secondary:#b0a898;
  --text-muted:    #6b6560;
  --green:         #4caf78;
  --red:           #e05555;
  /* ── Booking status colors — single source for badges + calendar (theme-aware) ──
     กฎ: ทุกที่ที่แสดงสถานะการจอง (badge/banner/calendar event) ต้องใช้ token พวกนี้
     ห้าม hardcode hex เอง (เคยหลุดทำให้ปฏิทินสีเพี้ยนไม่ตรง badge) */
  --st-pending:    #f0b429;
  --st-confirmed:  var(--green);
  --st-checkin:    #29b6f6;
  --st-completed:  var(--text-muted);
  --st-cancelled:  var(--red);
  --st-noshow:     #9e9e9e;
  --radius:        10px;
  --radius-lg:     16px;
  --shadow:        0 4px 20px rgba(0,0,0,0.5);
  --transition:    0.2s ease;
  --text-over-dark:   #f0ead8;
  --btn-primary:      var(--gold);
  --btn-secondary:    var(--border-light);
  --btn-success:      var(--green);
  --btn-alert:        var(--red);
  --btn-primary-text: #111;
  --btn-success-text: #fff;
  --btn-alert-text:   #fff;
  --h1-color: var(--gold);
  --h2-color: var(--text-primary);
  --h3-color: var(--text-primary);
  --h4-color: var(--text-secondary);
  --h5-color: var(--text-secondary);
  --h6-color: var(--text-muted);
  /* homepage extras */
  --topbar-bg:     #0d0d0d;
  --hero-overlay:  rgba(0,0,0,0.58);
  --cta-overlay:   rgba(0,0,0,0.75);
  --map-filter:    invert(90%) hue-rotate(180deg);
}

/* ── Light theme ── */
[data-theme="light"] {
  color-scheme: light;
  --bg-primary:    #f7f3ee;
  --bg-card:       #ffffff;
  --bg-card-hover: #f0ebe4;
  --bg-sidebar:    #efe9e2;
  --border:        #ddd5c8;
  --border-light:  #ccc4b8;
  --gold:          #b8893a;
  --gold-light:    #c9a050;
  --gold-dark:     #8a6020;
  --text-primary:  #1c1714;
  --text-secondary:#4a4038;
  --text-muted:    #8a7e74;
  --green:         #2e8b57;
  --red:           #c0392b;
  --shadow:        0 4px 20px rgba(0,0,0,0.10);
  --text-over-dark:   #1c1714;
  --btn-primary-text: #fff;
  /* homepage extras */
  --topbar-bg:     #1c1714;
  --hero-overlay:  rgba(0,0,0,0.45);
  --cta-overlay:   rgba(0,0,0,0.60);
  --map-filter:    none;
}

/* smooth theme transition */
*, *::before, *::after { transition: background-color .25s ease, border-color .25s ease, color .15s ease; }

/* theme toggle button */
.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Noto Sans Thai', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }

img { display: block; max-width: 100%; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }


/* ============================================================
   BUTTONS — Design System (5 Variants)
   primary / secondary / success / alert / link
   Override สีได้ผ่าน TenantConfig → _tenant_theme.html
   ============================================================ */

/* ── Base ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: var(--btn-radius, 99px);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn:disabled, .btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}
.btn.loading { opacity: 0.7; cursor: wait; pointer-events: none; }

/* ── Size utilities (3 ขนาด — ใช้คู่กับ variant: btn btn-primary btn-lg) ── */
.btn-sm { padding: 5px 14px;  font-size: 12px; gap: 4px; }
.btn-md { padding: 9px 20px;  font-size: 13px; gap: 6px; }
.btn-lg { padding: 14px 32px; font-size: 15px; gap: 8px; letter-spacing: 0.3px; }

/* ── Shape utilities (โชว์ทรงในหน้า Design System — ทรงจริงทั้งเว็บคุมจาก button_shape) ── */
.btn-square  { border-radius: 4px; }    /* สี่เหลี่ยม (มุมคม) */
.btn-rounded { border-radius: 12px; }   /* โค้งมนปานกลาง */
.btn-pill    { border-radius: 99px; }   /* โค้งมนเต็ม (แคปซูล) */

/* ── 1. Primary — CTA หลัก ── */
.btn-primary,
.btn-gold {
  background: linear-gradient(135deg, var(--btn-primary), var(--gold-dark));
  color: var(--btn-primary-text);
}
.btn-primary:hover,
.btn-gold:hover {
  background: linear-gradient(135deg, var(--btn-primary), var(--gold-dark));
  color: var(--btn-primary-text);
  filter: brightness(0.85);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(201,169,110,0.35);
}
.btn-primary:active, .btn-gold:active { transform: scale(0.98); box-shadow: none; }

/* ── 2. Primary Outline — ขอบทอง ตัวหนังสือทอง hover เติมสีทอง ── */
.btn-primary-outline {
  background: transparent;
  border: 1px solid var(--btn-primary);
  color: var(--btn-primary);
}
.btn-primary-outline:hover {
  background: var(--btn-primary);
  color: var(--btn-primary-text);
  filter: brightness(0.9);
  box-shadow: 0 4px 16px rgba(201,169,110,0.3);
  transform: translateY(-1px);
}
.btn-primary-outline:active { transform: scale(0.98); box-shadow: none; }
.btn-primary-outline.added  { background: var(--btn-primary); color: var(--btn-primary-text); }

/* ── 3. Secondary — action รอง ── */
.btn-secondary,
.btn-outline {
  background: transparent;
  border: 1px solid var(--btn-secondary);
  color: var(--text-secondary);
}
.btn-secondary:hover,
.btn-outline:hover {
  border-color: var(--btn-primary);
  color: var(--btn-primary);
}

/* ── 3. Ghost — minimal ── */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--border); color: var(--text-primary); }

/* ── 4. Success — ยืนยัน/บันทึก ── */
.btn-success {
  background: var(--btn-success);
  color: var(--btn-success-text);
  border: none;
}
.btn-success:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-success:active { filter: brightness(0.95); transform: scale(0.98); }

/* ── 5. Alert — ลบ/อันตราย ── */
.btn-alert {
  background: var(--btn-alert);
  color: var(--btn-alert-text);
  border: none;
}
.btn-alert:hover { filter: brightness(1.12); transform: translateY(-1px); }
.btn-alert:active { filter: brightness(0.95); transform: scale(0.98); }

/* ── 6. Link — inline action ── */
.btn-link {
  background: none;
  border: none;
  color: var(--btn-primary);
  padding: 0;
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.btn-link:hover { color: var(--gold-light); text-decoration: none; }

/* ── Backward-compat: service card small buttons ── */
.btn-add {
  background: transparent;
  border: 1px solid var(--btn-primary);
  color: var(--btn-primary);
  padding: 6px 14px;
  border-radius: var(--btn-radius, 99px);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-add:hover, .btn-add.added {
  background: var(--btn-primary);
  color: var(--btn-primary-text);
}

.btn-detail {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--btn-radius, 99px);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-detail:hover { border-color: var(--text-secondary); color: var(--text-primary); }

/* ── Full-width CTA (Booking Wizard) ── */
.btn-continue {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--btn-primary), var(--gold-dark));
  color: var(--btn-primary-text);
  border: none;
  border-radius: var(--btn-radius, 99px);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.5px;
}
.btn-continue:hover {
  background: linear-gradient(135deg, var(--gold-light), var(--btn-primary));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201,169,110,0.4);
}
.btn-continue:disabled {
  background: var(--border-light);
  color: var(--text-muted);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ── ปุ่มดำเนินการต่อ "พร้อมไปต่อ" (enabled) — กรอบทองไล่เฉดวิ่งรอบ ── */
/* โชว์เฉพาะตอนปุ่มกดได้ (ผู้ใช้ทำครบแล้ว) เหมือนกรอบการ์ดที่เลือกใน Step 1–3 */
/* ตอน :disabled (ยังไม่พร้อม) จะไม่มีกรอบวิ่ง */
@property --bc-angle { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.btn-continue:not(:disabled) { position: relative; }
.btn-continue:not(:disabled)::after {
  content: "";
  position: absolute;
  inset: -2px;                  /* วางขอบนอกปุ่มนิด ให้ทองเด่นบนพื้นการ์ด */
  border-radius: inherit;
  padding: 2px;                 /* ความหนาเส้นกรอบ */
  --bc-angle: 0deg;             /* fallback ถ้าไม่รองรับ @property */
  background: conic-gradient(from var(--bc-angle),
              transparent 0deg,
              var(--gold) 50deg,
              #fff4d6 90deg,     /* ทองสว่าง = หัวแสงวิ่ง */
              var(--gold) 130deg,
              transparent 200deg,
              transparent 360deg);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: bcBorderSpin 2.6s linear infinite;
  pointer-events: none;         /* คลิกปุ่มได้ปกติ */
  z-index: 1;
}
@keyframes bcBorderSpin { to { --bc-angle: 360deg; } }
@media (prefers-reduced-motion: reduce) {
  .btn-continue:not(:disabled)::after { animation: none; }
}

/* ============================================================
   TYPOGRAPHY — Heading System H1–H6
   Override สีได้ผ่าน TenantConfig → _tenant_theme.html
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  line-height: 1.3;
  font-weight: 600;
}
h1 { font-size: 2rem;     color: var(--h1-color); }
h2 { font-size: 1.5rem;   color: var(--h2-color); }
h3 { font-size: 1.25rem;  color: var(--h3-color); }
h4 { font-size: 1.1rem;   color: var(--h4-color); }
h5 { font-size: 1rem;     color: var(--h5-color); }
h6 { font-size: 0.875rem; color: var(--h6-color); font-weight: 500; }


/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 13px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: 280px;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--gold); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ============================================================
   LOADING SKELETON
   ============================================================ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--border) 50%, var(--bg-card) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

/* ============================================================
   BADGE
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.badge-gold    { background: rgba(201,169,110,0.15); color: var(--gold); }
.badge-green   { background: rgba(76,175,120,0.15); color: var(--green); }
.badge-new     { background: rgba(201,169,110,0.2); color: var(--gold-light); border: 1px solid var(--gold-dark); }
.badge-outline { background: transparent; border: 1px solid var(--border-light); color: var(--text-secondary); border-radius: 99px; transition: all var(--transition); }
.badge-outline:hover { border-color: var(--gold-light); color: var(--gold-light); }


   iOS / SAFARI FIXES
   ============================================================ */

/* Global touch: prevent double-tap zoom, remove gray flash on tap */
a, button, [role="button"],
.dt-wslot, .service-card, .therapist-select-card,
.cat-tab, .btn, .btn-continue, .btn-gold, .btn-outline,
.step-item, .dt-week-nav-btn, .mcb-toggle-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Fix 1: Input Auto-zoom — iOS Safari zooms when font-size < 16px */
@media (max-width: 900px) {
  .form-control,
  .form-control::placeholder,
  select.form-control,
  textarea.form-control {
    font-size: 16px !important;
  }
}

/* Fix 2: Hover on touch — disable hover effects on touch devices
   (prevents double-tap to select on iPhone) */
@media (hover: none) {
  .dt-wslot:hover {
    border-color: #4caf50;
    color: var(--text-primary);
    background: var(--bg-primary);
  }
  .dt-wslot--booked:hover,
  .dt-wslot--unavailable:hover {
    border-color: var(--border-light);
    color: var(--text-muted);
    background: transparent;
  }
  .dt-wslot--break:hover,
  .dt-wslot--past:hover {
    border-color: rgba(255,255,255,0.06);
    color: var(--text-muted);
    background: transparent;
  }
  .dt-week-nav-btn:hover {
    border-color: var(--border);
    color: var(--text-muted);
  }
  /* Use :active for visual feedback on tap instead */
  .dt-wslot:active {
    border-color: var(--gold);
    background: rgba(201,169,110,0.12);
  }
}

/* Fix 3: Safe area — already in mobile-cart-bar via env()
   Add viewport-fit=cover support reminder via meta (done in base.html) */

/* Fix 4: Smooth momentum scroll on iOS for all overflow containers */
.mcb-body,
.dt-day-col-slots,
.category-tabs,
.modal-box {
  -webkit-overflow-scrolling: touch;
}


/* ============================================================
   TABLE CARD — Search Bar + Data Table + Pagination
   Pattern: dash-card > ds-search-bar + ds-table + ds-pagination
   Reference: dashboard/owner/services.html
   ============================================================ */

/* ── Search Bar ── */
.ds-search-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  align-items: center;
}

/* Shared input/select base for search bar */
.ds-field {
  background: var(--bg-primary);
  border: 1.5px solid var(--border-light);
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  transition: border-color .2s ease, box-shadow .2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ds-field:hover:not(:focus) { border-color: rgba(201,169,110,0.4); }
.ds-field:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,0.15);
}
.ds-field::placeholder { color: var(--text-muted); font-style: italic; }

/* Select — custom arrow */
select.ds-field {
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6560' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
select.ds-field:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a96e' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ── Data Table ── */
.ds-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.ds-table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  background: var(--bg-primary);
  white-space: nowrap;
}
.ds-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: middle;
}
.ds-table tr:last-child td { border-bottom: none; }
.ds-table tr:hover td { background: rgba(201,169,110,0.03); }
.ds-table td.td-bold { color: var(--text-primary); font-weight: 500; }
.ds-table td.td-gold { color: var(--gold); font-weight: 600; }

/* Clickable row */
.ds-table-row {
  cursor: pointer;
  transition: background .15s ease;
}
.ds-table-row:hover { background: var(--bg-card-hover); }
.ds-table-row:hover td { background: transparent; }

/* Empty state */
.ds-table-empty {
  text-align: center;
  padding: 40px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Pagination ── */
.ds-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 8px;
}
.ds-pagination-info {
  font-size: 12px;
  color: var(--text-muted);
}
.ds-pagination-pages {
  display: flex;
  gap: 6px;
  align-items: center;
}
.ds-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  padding: 5px 10px;
  min-width: 32px;
  border-radius: 6px;
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
  background: transparent;
  cursor: pointer;
  transition: all .15s;
  text-decoration: none;
  line-height: 1;
}
.ds-page-btn:hover { border-color: var(--gold); color: var(--gold); }
.ds-page-btn.active {
  background: var(--gold);
  color: #111;
  border-color: var(--gold);
  font-weight: 700;
  cursor: default;
  pointer-events: none;
}
.ds-page-btn.nav { padding: 5px 12px; }

/* ── Light theme overrides ── */
[data-theme="light"] .ds-field {
  box-shadow: inset 0 1px 3px rgba(0,0,0,.06);
}
[data-theme="light"] .ds-field:hover:not(:focus) {
  border-color: rgba(184,137,58,0.4);
}
[data-theme="light"] .ds-field:focus {
  box-shadow: 0 0 0 3px rgba(184,137,58,0.15);
}
[data-theme="light"] .ds-table th {
  background: var(--bg-card-hover);
}

/* ── Mobile card list ─────────────────────────────────────────
   จับคู่กับ ds-table: จอกว้าง=ตาราง / มือถือ=การ์ด (1 แถว = 1 การ์ด)
   ใช้คู่กัน: <table class="ds-table has-cards"> + <div class="ds-cards">
   มือถือจะซ่อน ".ds-table.has-cards" แล้วโชว์ ".ds-cards" แทน
   (ตารางหน้าอื่นที่ไม่ใส่ .has-cards จะไม่ถูกแตะ — แสดงปกติทุกจอ) */
.ds-cards { display: none; }
.ds-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease, background .15s ease;
}
.ds-card:active { background: var(--bg-card-hover); border-color: var(--gold); }
.ds-card + .ds-card { margin-top: 10px; }
/* หัวการ์ด: ชื่อเด่นซ้าย + badge สถานะขวา */
.ds-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ds-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.ds-card-sub { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
/* แถวข้อมูลรอง: ไอคอนทอง + ข้อความ */
.ds-card-meta {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}
.ds-card-meta i { color: var(--gold); font-size: 12px; width: 14px; flex-shrink: 0; text-align: center; }
/* ส่วนท้าย: เส้นคั่น + ยอด/ดาว */
.ds-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.ds-card-amount { font-weight: 700; color: var(--gold); font-size: 15px; }
.ds-card-amount-label { font-size: 11px; color: var(--text-muted); }

/* ── Responsive ── */
@media (max-width: 767px) {
  .ds-search-bar { flex-direction: column; align-items: stretch; }
  .ds-field { width: 100% !important; }
  .ds-pagination { flex-direction: column; align-items: flex-start; }
  /* สลับ ตาราง → การ์ด (เฉพาะตารางที่ผูกการ์ดไว้) */
  .ds-table.has-cards { display: none; }
  .ds-cards { display: block; }
}

/* ── Brand logo frame (gold halo) ──────────────────────────────
   กรอบวงกลมทอง halo + ขอบทอง + เงาทอง — ใช้ทุกจุดที่โชว์โลโก้ร้าน
   โลโก้วางข้างใน (contain) ไม่ถูก crop. ปรับขนาดผ่าน --lf-size */
.logo-frame {
  --lf-size: 78px;
  width: var(--lf-size); height: var(--lf-size);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; box-sizing: border-box; flex-shrink: 0;
  background: radial-gradient(circle at 50% 45%, rgba(201,169,110,0.16) 0%, rgba(201,169,110,0.05) 65%, transparent 100%);
  border: 1px solid rgba(201,169,110,0.32);
  box-shadow: 0 6px 18px -8px rgba(201,169,110,0.45), inset 0 0 18px rgba(201,169,110,0.06);
}
.logo-frame img {
  width: 66%; height: 66%;
  object-fit: contain; display: block;
}

