/* ==========================================================================
   ABCShop — Stylesheet
   โทนสี: พื้นหลังดำอมเขียว, การ์ดเขียวเข้ม, เขียวมะนาว/นีออนเป็น Accent
   ========================================================================== */

:root{
  --bg-base:      #060b09;
  --bg-raised:    #0c1713;
  --bg-card:      #10231b;
  --bg-card-hi:   #142c22;
  --line-soft:    rgba(166, 255, 130, 0.14);
  --line-strong:  rgba(166, 255, 130, 0.28);

  --accent:       #a6ff45;
  --accent-dim:   #7ed321;
  --accent-ink:   #0a1c0f;

  --text-hi:      #eafbef;
  --text-mid:     #b9d3c3;
  --text-low:     #7f9a8b;

  --danger:       #ff6b6b;
  --danger-bg:    #2a1414;
  --warn:         #ffcf5c;
  --line-brand:   #06c755;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;

  --shadow-soft: 0 8px 24px rgba(0,0,0,0.35);
  --glow: 0 0 0 1px var(--line-strong), 0 0 22px rgba(166,255,69,0.15);

  --font-heading: 'Prompt', 'Noto Sans Thai', sans-serif;
  --font-body: 'Noto Sans Thai', 'Prompt', sans-serif;

  --header-h: 64px;
  --max-w: 780px;
}

*, *::before, *::after{ box-sizing: border-box; }

/* แก้ปัญหา CSS Specificity: บังคับให้ attribute hidden ซ่อนองค์ประกอบเสมอ
   แม้ Class ของ Component นั้นจะกำหนด display เป็นค่าอื่นไว้ก็ตาม
   (ถ้าไม่มีกฎนี้ [hidden] จากบราวเซอร์จะแพ้กฎ display ที่มาจาก Author Stylesheet) */
[hidden]{ display: none !important; }

html{
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body{
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 50% -10%, #0e1f16 0%, var(--bg-base) 55%) fixed;
  color: var(--text-hi);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

h1,h2,h3,h4{
  font-family: var(--font-heading);
  font-weight: 600;
  margin: 0 0 0.5em;
  color: var(--text-hi);
}

p{ margin: 0 0 1em; color: var(--text-mid); }

a{ color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link{
  position: absolute;
  left: 8px; top: -60px;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top .15s ease;
}
.skip-link:focus{ top: 8px; }

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(6, 11, 9, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner{
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-hi);
  min-width: 0;
}
.brand-logo{
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  flex-shrink: 0;
}
.brand-name{
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-nav{
  display: flex;
  gap: 22px;
}
.nav-link{
  color: var(--text-mid);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 2px;
}
.nav-link:hover{ color: var(--accent); }

.header-actions{ display: flex; align-items: center; gap: 6px; }

.icon-btn{
  position: relative;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-hi);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.05rem;
}
.icon-btn:hover{ background: var(--bg-card); border-color: var(--line-soft); }

.cart-badge{
  position: absolute;
  top: 2px; right: 2px;
  min-width: 18px; height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.cart-badge[data-empty="true"]{ display: none; }

.hamburger-btn{ display: none; }

/* Mobile nav */
@media (max-width: 860px){
  .main-nav{
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--line-soft);
    flex-direction: column;
    padding: 8px 20px 16px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .main-nav.is-open{
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-link{ padding: 12px 4px; border-bottom: 1px solid var(--line-soft); }
  .hamburger-btn{ display: flex; }
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */
.section-wrap{
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}
.section-wrap--narrow{ max-width: var(--max-w); }
.section-title{
  font-size: 1.4rem;
  margin-bottom: 18px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  padding: 56px 20px 32px;
  text-align: center;
  border-bottom: 1px solid var(--line-soft);
}
.hero-inner{ max-width: 640px; margin: 0 auto; }
.hero-eyebrow{
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.hero-title{
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(166,255,69,0.25);
}
.hero-sub{ font-size: 1.02rem; margin-bottom: 26px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, opacity .12s ease;
  white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn:disabled{ opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary{
  background: linear-gradient(145deg, var(--accent), var(--accent-dim));
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(166,255,69,0.4), 0 8px 20px rgba(166,255,69,0.18);
}
.btn-primary:hover:not(:disabled){ box-shadow: 0 0 0 1px var(--accent), 0 10px 26px rgba(166,255,69,0.3); }

.btn-secondary{
  background: var(--bg-card-hi);
  color: var(--text-hi);
  border-color: var(--line-strong);
}

.btn-outline{
  background: transparent;
  color: var(--text-hi);
  border-color: var(--line-strong);
}
.btn-outline:hover{ background: var(--bg-card); }

.btn-text{
  background: transparent;
  color: var(--text-mid);
  padding: 8px 10px;
  min-height: auto;
}
.btn-text:hover{ color: var(--accent); }

.btn-danger{ background: var(--danger); color: #2a0a0a; }
.btn-danger.btn-text{ background: transparent; color: var(--danger); }

.btn-line{
  background: var(--line-brand);
  color: #ffffff;
}
.btn-line:hover:not(:disabled){ filter: brightness(1.08); }

.btn-lg{ width: 100%; max-width: 420px; padding: 15px 26px; font-size: 1rem; }

/* ==========================================================================
   Step Indicator
   ========================================================================== */
.step-indicator{
  position: sticky;
  top: var(--header-h);
  z-index: 150;
  background: rgba(6,11,9,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
  overflow-x: auto;
  scrollbar-width: none;
}
.step-indicator::-webkit-scrollbar{ display: none; }
.step-list{
  list-style: none;
  display: flex;
  gap: 6px;
  margin: 0;
  padding: 10px 14px;
  max-width: 1100px;
  margin-inline: auto;
  min-width: max-content;
}
.step-item{
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--text-low);
  font-size: 0.8rem;
  white-space: nowrap;
}
.step-dot{
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--text-low);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step-item.is-current{ color: var(--text-hi); }
.step-item.is-current .step-dot{
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.step-item.is-done{ color: var(--text-mid); }
.step-item.is-done .step-dot{
  border-color: var(--accent-dim);
  background: transparent;
  color: var(--accent);
}
.step-item.is-done .step-dot::before{ content: "\2713"; }
.step-item.is-done .step-dot > *{ display: none; }

/* ==========================================================================
   Category Grid
   -----------------------------------------------------------------------
   การ์ดหมวดสินค้า: รูปภาพเต็มกรอบสี่เหลี่ยมจัตุรัสด้านบน (เจ้าของร้านนำรูปจริงมาใส่แทนได้
   ที่ฟิลด์ image ใน PRODUCT_CATEGORIES) เนื้อหาชื่อ/คำอธิบายอยู่ในส่วนล่างของการ์ด
   ========================================================================== */
.category-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
}
.category-card{
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 0;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: inherit;
  font: inherit;
}
.category-card:hover{
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--glow);
}
.category-card:active{ transform: translateY(0) scale(0.98); }

.category-media{
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-card-hi);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.category-media img{ width: 100%; height: 100%; object-fit: cover; display: block; }
/* ไอคอนสำรอง แสดงเมื่อยังไม่มีรูป หรือโหลดรูปไม่สำเร็จ */
.category-media i{ font-size: 2.2rem; color: var(--accent); }

.category-body{
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.category-body h3{ font-size: 1.02rem; margin-bottom: 4px; }
.category-body p{ font-size: 0.83rem; margin-bottom: 10px; flex: 1; }
.category-cta{
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
}

/* ==========================================================================
   Modal / Bottom Sheet
   ========================================================================== */
.modal-overlay{
  position: fixed;
  inset: 0;
  background: rgba(2,6,4,0.7);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 500;
  padding: 0;
}
.modal-overlay[hidden]{ display: none; }

@media (min-width: 720px){
  .modal-overlay{ align-items: center; padding: 20px; }
}

.modal-sheet{
  background: var(--bg-raised);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--line-strong);
  border-bottom: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  animation: sheet-up .2s ease;
}
@media (min-width: 720px){
  .modal-sheet{
    border-radius: var(--radius-lg);
    border-bottom: 1px solid var(--line-strong);
    animation: sheet-fade .16s ease;
  }
}
@keyframes sheet-up{ from{ transform: translateY(24px); opacity: 0.4; } to{ transform: translateY(0); opacity: 1; } }
@keyframes sheet-fade{ from{ transform: translateY(8px); opacity: 0; } to{ transform: translateY(0); opacity: 1; } }

.modal-sheet--small{ max-width: 400px; }
.modal-sheet--cart{ max-width: 480px; }

.modal-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  flex-shrink: 0;
}
.modal-header h2{ margin: 0; font-size: 1.1rem; }
.modal-body{ padding: 16px 18px; overflow-y: auto; }
.modal-footer{ padding: 14px 18px; border-top: 1px solid var(--line-soft); flex-shrink: 0; }
.modal-footer--split{ display: flex; gap: 10px; }
.modal-footer--split .btn{ flex: 1; }

/* ==========================================================================
   Product detail (inside category modal)
   ========================================================================== */
.detail-product{
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.detail-product:last-child{ border-bottom: none; }
.detail-thumb{
  width: 84px; height: 84px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hi);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.detail-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.detail-info{ flex: 1; min-width: 0; }
.detail-info h4{ margin: 0 0 2px; font-size: 0.98rem; }
.detail-brand{ font-size: 0.75rem; color: var(--text-low); margin-bottom: 4px; }
.detail-desc{ font-size: 0.82rem; margin-bottom: 8px; }
.detail-row{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.detail-price{ font-weight: 700; color: var(--accent); font-family: var(--font-heading); }

select.option-select{
  background: var(--bg-card-hi);
  color: var(--text-hi);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  min-height: 40px;
}

.stock-note{ font-size: 0.72rem; color: var(--warn); }
.stock-note--out{ color: var(--danger); }

.qty-stepper{
  display: flex; align-items: center; gap: 8px;
}
.qty-stepper button{
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-card-hi);
  color: var(--text-hi);
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.qty-stepper button:disabled{ opacity: 0.4; cursor: not-allowed; }
.qty-stepper input{
  width: 42px;
  text-align: center;
  background: transparent;
  border: none;
  color: var(--text-hi);
  font-size: 0.95rem;
  font-family: var(--font-heading);
}

.add-to-cart-btn{ padding: 10px 16px; min-height: 40px; font-size: 0.85rem; }

/* ==========================================================================
   Cart list
   ========================================================================== */
.cart-list{ list-style: none; margin: 0; padding: 0; }
.cart-item{
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item-thumb{
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: var(--bg-card-hi);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.cart-item-thumb img{ width: 100%; height: 100%; object-fit: cover; }
.cart-item-info{ flex: 1; min-width: 0; }
.cart-item-cat{ font-size: 0.7rem; color: var(--text-low); }
.cart-item-name{ font-weight: 600; margin: 2px 0; }
.cart-item-opt{ font-size: 0.78rem; color: var(--text-mid); }
.cart-item-row{ display: flex; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; flex-wrap: wrap; }
.cart-item-price{ font-weight: 700; color: var(--accent); font-family: var(--font-heading); }
.remove-item-btn{ color: var(--danger); background: none; border: none; cursor: pointer; font-size: 0.85rem; padding: 6px; min-height: 32px; }

.cart-summary{ padding: 16px 0; border-top: 1px solid var(--line-strong); margin-top: 10px; }
.cart-summary-row{ display: flex; justify-content: space-between; font-size: 0.95rem; margin-bottom: 6px; }
.cart-summary-total{ font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--accent); }

.panel-heading{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; flex-wrap: wrap; gap: 8px;}

/* ==========================================================================
   Empty / Loading / Error / Success states
   ========================================================================== */
.empty-state{
  text-align: center;
  padding: 40px 20px;
  color: var(--text-low);
}
.empty-state-icon{ font-size: 2.4rem; margin-bottom: 12px; display: block; color: var(--text-low); }
.empty-state .btn{ margin-top: 14px; }

.spinner{
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: currentColor;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

.notice-box{
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-bottom: 16px;
  color: var(--text-mid);
  font-size: 0.85rem;
}
.notice-box i{ color: var(--accent); margin-top: 2px; }

.privacy-note{
  font-size: 0.8rem;
  color: var(--text-low);
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

/* ==========================================================================
   Forms
   ========================================================================== */
.form-field{ margin-bottom: 18px; }
.form-field label, .form-field legend{
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.form-field legend{ padding: 0; }
.req{ color: var(--danger); }
input[type="text"], input[type="tel"], textarea{
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-height: 48px;
}
textarea{ min-height: 90px; resize: vertical; }
input.is-invalid, textarea.is-invalid{ border-color: var(--danger); }
.field-error{ color: var(--danger); font-size: 0.78rem; margin: 6px 0 0; min-height: 1em; }

.radio-group{ display: flex; flex-wrap: wrap; gap: 8px; }
.radio-pill{
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 0.88rem;
  min-height: 44px;
}
.radio-pill input{ accent-color: var(--accent); width: 18px; height: 18px; }
.radio-pill:has(input:checked){ border-color: var(--accent); background: rgba(166,255,69,0.08); color: var(--accent); }

.draft-hint{ font-size: 0.78rem; color: var(--text-low); }

.checkbox-row{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  cursor: pointer;
  font-size: 0.9rem;
}
.checkbox-row input{ width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.checkbox-row--main{ border-color: var(--line-strong); }

.step-nav-buttons{ display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.step-nav-buttons .btn{ flex: 1; min-width: 140px; }

.step1-footer{ display: flex; justify-content: center; padding: 0 20px 40px; }

/* ==========================================================================
   Location step
   ========================================================================== */
.location-actions{ display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.search-box{ display: flex; gap: 8px; margin-bottom: 8px; }
.search-box input{ flex: 1; }
.search-results{
  list-style: none; margin: 0 0 16px; padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.search-results li{ border-bottom: 1px solid var(--line-soft); }
.search-results li:last-child{ border-bottom: none; }
.search-results button{
  width: 100%; text-align: right;
  background: var(--bg-card);
  color: var(--text-hi);
  border: none;
  padding: 12px 14px;
  cursor: pointer;
  font-size: 0.85rem;
  min-height: 44px;
}
.search-results button:hover{ background: var(--bg-card-hi); }

.map-hint{ font-size: 0.8rem; color: var(--text-low); margin-bottom: 8px; }
.map-box{
  width: 100%;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--bg-card);
}
.coords-box{
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

/* ==========================================================================
   Review
   ========================================================================== */
.review-card{
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 14px;
}
.review-card h3{ font-size: 1rem; margin-bottom: 10px; }
.review-dl{ margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 0.87rem; }
.review-dl dt{ color: var(--text-low); }
.review-dl dd{ margin: 0; }
.review-items{ list-style: none; margin: 0 0 10px; padding: 0; }
.review-items li{ padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.87rem; }
.review-items li:last-child{ border-bottom: none; }

/* ==========================================================================
   LINE send
   ========================================================================== */
.order-summary-preview{
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 14px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-mid);
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 18px;
}
.line-disclaimer{
  font-size: 0.78rem;
  color: var(--warn);
  margin-top: 14px;
}
#sendLineBtn{ margin-bottom: 10px; }
#copyAgainBtn{ margin-bottom: 10px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-container{
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}
.toast{
  background: var(--bg-raised);
  border: 1px solid var(--line-strong);
  color: var(--text-hi);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in .18s ease;
}
.toast[data-type="error"]{ border-color: var(--danger); }
.toast[data-type="success"]{ border-color: var(--accent); }
@keyframes toast-in{ from{ opacity: 0; transform: translateY(8px);} to{ opacity: 1; transform: translateY(0);} }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{
  text-align: center;
  padding: 30px 20px 50px;
  font-size: 0.78rem;
  color: var(--text-low);
  border-top: 1px solid var(--line-soft);
}

/* ==========================================================================
   View panels (wizard steps)
   ========================================================================== */
.view-panel[hidden]{ display: none; }

/* ==========================================================================
   Small screens (>=320px)
   ========================================================================== */
@media (max-width: 400px){
  .brand-name{ font-size: 1rem; }
  .btn-lg{ max-width: none; }
  .hero{ padding: 40px 16px 26px; }
}
