/* Perfect Superfruit — สไตล์หลักของเว็บ
   สีดึงมาจากโลโก้และไฟล์ดีไซน์ที่ลูกค้าส่งมา
   กฎรูป ฟอนต์ คอลัมน์ และอนิเมชัน ทำตามมาตรฐานกลาง 1Day1Deaw */

:root {
  --green-900: #1d4526;
  --green-800: #2b6130;
  --green-700: #3e7d3a;
  --green-600: #4d9142;
  --green-100: #e8f3dd;
  --green-50: #f4faee;
  --orange: #f0820f;
  --orange-dark: #cf6c05;
  --gold: #b98c34;
  --ink: #22301f;
  --muted: #5d6c59;
  --line: #dde8d2;
  --bg: #ffffff;
  --line-green: #06c755;

  --wrap: 1180px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --shadow-1: 0 1px 2px rgba(29, 69, 38, .06), 0 4px 12px rgba(29, 69, 38, .06);
  --shadow-2: 0 2px 4px rgba(29, 69, 38, .08), 0 12px 28px rgba(29, 69, 38, .10);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  /* เว้นที่ให้ปุ่มลอยล่างจอ ไม่ให้ทับเนื้อหาท้ายหน้า */
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}

@media (min-width: 900px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; font-weight: 700; color: var(--green-900); }
h1 { font-size: clamp(30px, 5.2vw, 56px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 38px); }
h3 { font-size: clamp(19px, 2.1vw, 23px); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--green-800); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-600); }

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

:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.muted { color: var(--muted); }
.mt { margin-top: 1.2em; }
.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;
  font-size: 16px;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--green-800); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

.ico { width: 1.25em; height: 1.25em; flex: none; }
.brand-logo { width: 1.4em; height: 1.4em; flex: none; color: var(--line-green); }
.brand-logo-fb { color: #1877f2; }
.brand-logo-ig { color: #c13584; }
.brand-logo-tt { color: #111; }
.brand-logo-grab { color: #00b14f; }
.brand-logo-sp { color: #ee4d2d; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border: 0; border-radius: 999px;
  font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-line { background: var(--line-green); color: #fff; box-shadow: var(--shadow-1); }
.btn-line:hover { background: #05b64d; color: #fff; box-shadow: var(--shadow-2); }
.btn-line .brand-logo { color: #fff; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--green-800); color: #fff; box-shadow: var(--shadow-2); }
.btn-ghost { background: #fff; color: var(--green-800); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-800); }
.btn-sm { min-height: 44px; padding: 8px 16px; font-size: 16px; }

/* ---------- ส่วนหัว ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: block; flex: none; }
.brand img { width: 168px; height: auto; }
.nav { margin-inline-start: auto; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
}
.nav a:hover { background: var(--green-50); color: var(--green-800); }
.nav a[aria-current="page"] { color: var(--green-700); background: var(--green-100); }
.nav-toggle {
  display: none; margin-inline-start: auto; width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: var(--green-50); border: 0; border-radius: var(--r-sm); color: var(--green-800); cursor: pointer;
}
.nav-toggle .ico { width: 24px; height: 24px; }

@media (max-width: 899px) {
  .head-row { min-height: 60px; }
  .brand img { width: 132px; }
  .head-cta { display: none; }
  .nav-toggle { display: flex; }
  .nav {
    position: fixed; inset: 60px 0 auto; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; gap: 0; padding: 8px 16px 16px; }
  .nav a { padding: 14px 12px; border-radius: var(--r-sm); font-size: 17px; }
}

/* ---------- แบนเนอร์หน้าแรก ---------- */
.hero {
  background:
    radial-gradient(120% 90% at 88% 8%, #ffffff 0%, rgba(255,255,255,0) 55%),
    linear-gradient(168deg, var(--green-50) 0%, var(--green-100) 62%, #dcecca 100%);
  padding: 40px 0 44px;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 28px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--green-700); font-weight: 600; font-size: 17px; margin-bottom: 6px;
}
.hero h1 { margin-bottom: 12px; }
.hero h1 .accent { color: var(--green-700); display: block; }
.hero-lead { font-size: 18px; color: #3c4a38; max-width: 54ch; }
.hero-points { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero-points .ico { color: var(--green-600); margin-top: 3px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-price {
  margin-top: 22px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  background: #fff; border-radius: var(--r-md); padding: 14px 20px; box-shadow: var(--shadow-1);
}
.hero-price b { font-size: clamp(22px, 3vw, 30px); color: var(--orange-dark); }

/* กลุ่มรูปกระเช้าในแบนเนอร์ รูปสตูดิโอเป็นจัตุรัสทุกใบ จึงต้องปล่อยให้สูงตามสัดส่วนจริง
   ห้ามใช้ align-self: stretch เด็ดขาด เพราะจะยืดรูปจัตุรัสให้เป็นสี่เหลี่ยมผืนผ้า */
.hero-art { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px; align-items: start; }
.hero-art img { border-radius: var(--r-md); width: 100%; height: auto; }
.hero-art .tall { grid-row: 1 / span 2; align-self: start; }

@media (min-width: 900px) {
  .hero { padding: 60px 0 68px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 48px; }
}

/* ---------- แถบบริการใต้แบนเนอร์ ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 18px 0;
}
.strip-item { display: flex; gap: 10px; align-items: flex-start; }
.strip-item .ico { color: var(--green-600); width: 26px; height: 26px; margin-top: 2px; }
.strip-item b { display: block; font-size: 16px; }
.strip-item span { font-size: 15px; color: var(--muted); }
@media (min-width: 768px) { .strip-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; } }

/* ---------- ส่วนเนื้อหา ---------- */
.section { padding: 44px 0; }
.section-alt { background: var(--green-50); }
.section-head { text-align: center; max-width: 62ch; margin: 0 auto 26px; }
.section-head p { color: var(--muted); }
@media (min-width: 768px) { .section { padding: 64px 0; } }

/* ---------- การ์ดสินค้า ---------- */
.grid-products {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .grid-products { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
@media (min-width: 1024px) { .grid-products { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.card {
  display: flex; flex-direction: column; background: #fff;
  border-radius: var(--r-md); overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-1);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); color: inherit; }
/* รูปในการ์ดใช้สัดส่วนจริงของไฟล์ ส่งมาทาง inline style ไม่บังคับให้เท่ากัน
   overflow กับ object-fit เป็นตาข่ายกันพลาด ถ้าสัดส่วนที่บันทึกไว้ไม่ตรงกับไฟล์จริง
   รูปจะพอดีกรอบเสมอ ไม่ล้นไปทับข้อความใต้การ์ด และไม่โดนครอปจนของหาย */
.card-media { background: var(--green-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-code { font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.card-name { font-size: 16px; font-weight: 600; line-height: 1.45; margin: 0; color: var(--ink); }
.card-foot { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.card-price { font-size: 19px; font-weight: 700; color: var(--orange-dark); }
.chip {
  display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; background: var(--green-100); color: var(--green-800);
}
.chip-hot { background: #fdeccd; color: #8a5406; }
@media (min-width: 768px) {
  .card-name { font-size: 17px; }
  .card-price { font-size: 21px; }
}

/* ---------- แถบกรอง ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 22px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-row > .label { font-weight: 600; font-size: 15px; color: var(--muted); margin-inline-end: 4px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; font-size: 15px; font-weight: 600;
  background: #fff; color: var(--green-800); text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s var(--ease);
}
.pill:hover { background: var(--green-50); color: var(--green-800); }
.pill[aria-current="true"] { background: var(--green-700); color: #fff; box-shadow: none; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 30px; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.pager a { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--green-800); }
.pager a:hover { background: var(--green-50); }
.pager [aria-current="page"] { background: var(--green-700); color: #fff; }

/* ---------- จุดเด่น ---------- */
.grid-features { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .grid-features { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .grid-features { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.feature { background: #fff; border-radius: var(--r-md); padding: 18px 16px; box-shadow: var(--shadow-1); }
.feature .ico { width: 30px; height: 30px; color: var(--green-600); margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 4px; }
.feature p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- แกลเลอรี รีวิว ---------- */
.grid-gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 480px) { .grid-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .grid-gallery { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.grid-gallery img { border-radius: var(--r-md); width: 100%; }

/* ---------- หน้ารายละเอียดสินค้า ---------- */
.detail { display: grid; gap: 24px; }
@media (min-width: 900px) { .detail { grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: start; } }
.detail-media img { border-radius: var(--r-lg); width: 100%; }
.detail h1 { font-size: clamp(24px, 3.4vw, 36px); }
.detail-price { font-size: clamp(28px, 4vw, 38px); font-weight: 700; color: var(--orange-dark); margin: 4px 0 16px; }
.detail-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0; }
.spec { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }
.spec li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; }
.spec li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.spec .ico { color: var(--green-600); margin-top: 3px; }
.note {
  background: var(--green-50); border-radius: var(--r-md); padding: 14px 16px;
  font-size: 15px; color: var(--muted); margin-top: 18px;
}
.order-hint { background: #fff8ea; border-radius: var(--r-md); padding: 16px; margin-top: 18px; }
.order-hint b { color: var(--orange-dark); }
.order-code {
  display: inline-block; font-weight: 700; font-size: 19px; letter-spacing: .06em;
  background: #fff; padding: 6px 14px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1.5px #f0d9ab;
}

/* ---------- คำถามที่พบบ่อย ---------- */
.faq { max-width: 76ch; margin-inline: auto; }
.faq details {
  background: #fff; border-radius: var(--r-md); margin-bottom: 10px; box-shadow: var(--shadow-1);
}
.faq summary {
  cursor: pointer; padding: 16px 18px; font-weight: 600; font-size: 17px;
  display: flex; gap: 12px; align-items: center; list-style: none; color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { margin-inline-start: auto; transition: transform .2s var(--ease); color: var(--green-600); }
.faq details[open] summary .ico { transform: rotate(90deg); }
.faq .answer { padding: 0 18px 18px; color: #3f4d3c; }

/* ---------- ฟอร์ม ---------- */
.form { display: grid; gap: 16px; max-width: 620px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.field .hint { font-size: 14px; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px; /* ต่ำกว่านี้ iOS จะซูมเข้าเอง */
  padding: 12px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  min-height: 48px; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green-600); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #c0392b; background: #fff8f7; }
.field .err { color: #a5281b; font-size: 14px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.field .err .ico { width: 17px; height: 17px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }

.alert { border-radius: var(--r-md); padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; }
.alert .ico { margin-top: 3px; flex: none; }
.alert-ok { background: #e8f6e6; color: #1f5a24; }
.alert-bad { background: #fdecea; color: #96271a; }
.alert-warn { background: #fff4e0; color: #8a5406; }

/* ---------- เส้นทางหน้าเว็บ ---------- */
.crumbs { padding: 14px 0 0; font-size: 15px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-inline-end: 6px; color: var(--line); }
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* ---------- บทความ ---------- */
.article-body { max-width: 68ch; font-size: 18px; }
.article-body p { margin-bottom: 1.15em; }
.grid-articles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-articles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-articles { grid-template-columns: repeat(3, 1fr); } }

/* ---------- สาขา ---------- */
.grid-branches { display: grid; gap: 16px; }
/* หนึ่งสาขาคือหนึ่งแถว การ์ดข้อมูลอยู่ซ้าย แผนที่อยู่ขวา */
.branch-row { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 768px) { .branch-row { grid-template-columns: 1fr 1fr; } }
.branch-map {
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-1);
  background: var(--green-50); min-height: 260px;
}
.branch-map iframe { width: 100%; height: 100%; min-height: 260px; border: 0; display: block; }
.branch { background: #fff; border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-1); }
.branch h3 { margin-bottom: 10px; }
.branch ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.branch li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; min-height: 44px; }
.branch li a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.branch .ico { color: var(--green-600); margin-top: 3px; }

/* ---------- ส่วนท้าย ---------- */
.site-foot { background: var(--green-900); color: #dfeada; margin-top: 60px; padding: 40px 0 0; }
.site-foot h2 { color: #fff; font-size: 17px; margin-bottom: 12px; }
.site-foot a { color: #dfeada; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; font-size: 16px; }
.site-foot li { min-height: 44px; display: flex; align-items: center; }
.site-foot ul a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.site-foot .muted { color: #a9c0a2; }
.foot-grid { display: grid; gap: 30px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1.6fr 1.2fr; gap: 36px; } }
/* พื้นหลังและระยะขอบอยู่ที่กล่องครอบ ไม่ใส่บน img เพราะ padding จะทำให้สัดส่วนรูปเพี้ยน */
.foot-logo { display: inline-block; background: #fff; border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; }
.foot-brand img { width: 190px; }
.foot-contact li { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.foot-contact .ico { color: #8fc27f; flex: none; }
.foot-base { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding: 16px 0 24px; font-size: 15px; }
.foot-base p { margin: 0; color: #a9c0a2; }

/* ---------- ปุ่มลอยล่างจอ ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); box-shadow: 0 -2px 14px rgba(29, 69, 38, .14);
  padding-bottom: env(safe-area-inset-bottom);
}
.dock-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 60px; font-weight: 700; font-size: 16px; text-decoration: none;
}
.dock-line { background: var(--line-green); color: #fff; }
.dock-line .brand-logo { color: #fff; }
.dock-tel { background: #fff; color: var(--green-800); }
@media (min-width: 900px) { .dock { display: none; } }

/* ---------- อนิเมชัน ---------- */
.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   ปรับหน้าตาให้ตรงกับไฟล์ดีไซน์ที่ลูกค้าส่งมา
   (1 HOME-01_0.jpg และ 1 HOME-02_0.jpg)
   ============================================================ */

:root {
  --d-green: #3f7d3a;
  --d-green-dark: #2e6b34;
  --d-green-deep: #1f5128;
  --d-mint: #eef7e2;
  --d-mint-2: #dcecc4;
  --d-pill-line: #cfe3b4;
  --font-display: 'Anuphan', 'IBM Plex Sans Thai', system-ui, sans-serif;
}

h1, h2, h3, .btn, .nav a, .pill, .card-price { font-family: var(--font-display); }

/* ---------- ส่วนหัวแบบแถบลอยมุมมน ---------- */
.site-head {
  background: transparent;
  backdrop-filter: none;
  border-bottom: 0;
  padding: 12px 0 0;
}
.site-head .head-row {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 6px 24px rgba(31, 81, 40, .10);
  padding: 8px 10px 8px 20px;
  min-height: 64px;
}
.site-head .nav a { font-weight: 600; }
.head-cta {
  background: var(--d-green);
  border-radius: 22px;
  padding: 12px 24px;
  min-height: 52px;
}
.head-cta:hover { background: var(--d-green-dark); }
@media (max-width: 899px) {
  .site-head { padding: 8px 0 0; }
  .site-head .head-row { border-radius: 20px; padding: 6px 8px 6px 14px; min-height: 56px; }
  .nav { inset: 76px 16px auto; border-radius: 18px; border-bottom: 0; overflow: hidden; }
}

/* ---------- แบนเนอร์ ---------- */
.hero {
  position: relative;
  margin-top: -88px;
  padding: 118px 0 40px;
  background:
    radial-gradient(70% 55% at 12% 22%, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 60%),
    radial-gradient(55% 45% at 88% 12%, rgba(255,255,255,.6) 0%, rgba(255,255,255,0) 55%),
    linear-gradient(150deg, #f4faec 0%, var(--d-mint) 38%, var(--d-mint-2) 100%);
}
.hero::after {
  /* แถบไม้จางๆ ด้านล่างแบบเดียวกับในดีไซน์ */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(180deg, rgba(233,214,180,0) 0%, rgba(226,203,164,.34) 100%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid { grid-template-columns: 1fr; gap: 20px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.02fr .98fr; gap: 30px; } }

.hero-script {
  font-family: var(--font-display);
  font-size: clamp(19px, 2.6vw, 30px);
  font-weight: 600; font-style: italic;
  color: var(--d-green); margin: 0 0 2px;
  display: inline-block; padding-bottom: 6px;
  border-bottom: 3px solid var(--d-green);
}
.hero h1 {
  font-size: clamp(38px, 6.4vw, 74px);
  color: var(--d-green-dark);
  letter-spacing: -.02em; line-height: 1.15; margin: 6px 0 12px;
}
.hero-sub { font-size: clamp(18px, 2.3vw, 27px); font-weight: 700; color: #24331f; margin: 0 0 4px; font-family: var(--font-display); }
.hero-sub b { color: var(--d-green-dark); }
.hero-sub2 { font-size: clamp(16px, 1.9vw, 22px); font-weight: 600; color: #3c4a38; margin: 0 0 20px; font-family: var(--font-display); }

.hero-line-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--d-green); color: #fff; border-radius: 999px;
  padding: 14px 30px; min-height: 60px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2vw, 23px);
  box-shadow: 0 8px 22px rgba(31, 81, 40, .22);
  transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.hero-line-btn:hover { background: var(--d-green-dark); color: #fff; transform: translateY(-2px); }
.hero-line-btn .brand-logo { width: 1.5em; height: 1.5em; color: #fff; }

.hero-qr { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.hero-qr img { width: 132px; height: auto; border-radius: 16px; box-shadow: 0 6px 20px rgba(31,81,40,.14); }
.hero-qr-note { font-family: var(--font-display); font-style: italic; font-weight: 600; color: var(--d-green-dark); font-size: 17px; line-height: 1.5; }

.hero-art-photo { border-radius: 20px; width: 100%; height: auto; }

.hero-price-card {
  background: #fff; border-radius: 20px; padding: 16px 26px;
  box-shadow: 0 8px 26px rgba(31,81,40,.12);
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
  margin-top: 22px; font-family: var(--font-display);
}
.hero-price-card span { font-weight: 700; font-size: clamp(16px, 1.8vw, 21px); color: var(--d-green-dark); }
.hero-price-card b { font-size: clamp(22px, 3vw, 33px); color: var(--orange); }
.hero-price-card i { font-style: normal; font-size: 17px; color: var(--muted); }

/* ---------- การ์ดบริการพิเศษ และแถบข้อมูล (ใช้กับ .hero ถ้าเปิดใช้ในอนาคต) ---------- */
.panel {
  background: #fff; border-radius: 22px; box-shadow: 0 6px 24px rgba(31,81,40,.09);
  padding: 18px 22px; margin-top: -26px; position: relative; z-index: 2;
}
.panel + .panel { margin-top: 16px; }
.panel-title {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--d-green-dark);
  font-size: 19px; margin-bottom: 12px;
}
.panel-title .ico { color: var(--green-600); }
.panel-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .panel-grid { grid-template-columns: repeat(3, 1fr); } }
.panel-item { display: flex; gap: 10px; align-items: center; justify-content: center; text-align: start; }
.panel-item .ico { width: 30px; height: 30px; color: var(--green-600); flex: none; }
.panel-item b { display: block; font-size: 16px; color: var(--ink); font-weight: 600; line-height: 1.4; }

.factbar { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .factbar { grid-template-columns: repeat(3, 1fr) 1.15fr; } }
.fact { display: flex; gap: 12px; align-items: center; }
.fact .ico { width: 34px; height: 34px; color: var(--green-600); flex: none; }
.fact b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--d-green-dark); line-height: 1.35; }
.fact span { font-size: 15px; color: var(--muted); }
.fact-cta { display: grid; gap: 8px; }
.fact-cta > small { font-size: 14px; color: var(--muted); }
.fact-pill {
  display: inline-flex; align-items: center; gap: 9px; min-height: 46px;
  background: #fff; border-radius: 999px; padding: 8px 18px; text-decoration: none;
  box-shadow: inset 0 0 0 1.5px var(--d-pill-line); color: var(--ink); font-weight: 600;
}
.fact-pill:hover { background: var(--green-50); color: var(--ink); }

/* ---------- หัวข้อกลางแบบดีไซน์ ---------- */
.d-head { text-align: center; margin-bottom: 26px; }
.d-head h2 { font-size: clamp(27px, 4vw, 44px); color: var(--d-green-dark); margin-bottom: 4px; }
.d-head h2 em { font-style: normal; color: var(--orange); }
.d-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ไล่สีเริ่มที่สีเดียวกับพื้นแบนเนอร์ เพื่อให้แบนเนอร์กับส่วนสินค้าต่อกันสนิท ไม่มีแถบขาวคั่น */
.section-mint { background: linear-gradient(180deg, var(--d-mint) 0%, var(--d-mint) 30%, #ffffff 100%); }
.banner + .section-mint { padding-top: 26px; }
@media (min-width: 768px) { .banner + .section-mint { padding-top: 36px; } }
.btn-round { border-radius: 999px; padding: 13px 34px; font-family: var(--font-display); font-weight: 700; }

/* ---------- ทำไมต้องเลือกเรา ---------- */
.why { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #f6fbef 100%); }
.why-grid { display: grid; gap: 26px; align-items: center; }
@media (min-width: 900px) { .why-grid { grid-template-columns: 1.1fr .9fr; gap: 40px; } }
.why h2 { font-size: clamp(26px, 3.6vw, 40px); color: var(--ink); margin-bottom: 2px; }
.why h2 span { display: block; color: var(--d-green-dark); }
.why-chips { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 20px; }
@media (min-width: 560px) { .why-chips { grid-template-columns: 1fr 1fr; } }
.why-chip {
  display: flex; gap: 11px; align-items: center;
  background: #fff; border-radius: 16px; padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(31,81,40,.08);
}
.why-chip .ico { width: 30px; height: 30px; color: var(--green-600); flex: none; }
.why-chip b { display: block; font-size: 16px; font-weight: 700; color: var(--d-green-dark); line-height: 1.35; }
.why-chip span { font-size: 14px; color: var(--muted); }
/* จำกัดขนาดไม่ให้เกินความละเอียดจริงของไฟล์ (1200px) จอความละเอียดสูงจะได้ไม่เห็นภาพเบลอ */
.why-photo { border-radius: 999px; overflow: hidden; box-shadow: 0 12px 34px rgba(31,81,40,.16); aspect-ratio: 1; max-width: 600px; margin-inline: auto; }
.why-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* แถบผลไม้ตัดมาจากไฟล์ดีไซน์ กว้างจริงแค่ 1000px จึงจำกัดขนาดแสดงไม่ให้ถูกยืดจนแตก */
.why-fruit { margin-top: 26px; }
.why-fruit img { width: 100%; max-width: 520px; height: auto; }

/* ---------- ช่องทางการติดต่อ ---------- */
.contact-band {
  position: relative; overflow: hidden; color: var(--d-green-deep);
  background: linear-gradient(160deg, #f3faea 0%, var(--d-mint) 45%, #cfe6b3 100%);
  padding: 44px 0 0;
}
.contact-band .wrap { position: relative; z-index: 1; }
.contact-band .side {
  position: absolute; top: 0; bottom: 0; z-index: 0;
  width: max(0px, calc((100vw - var(--wrap)) / 2 + 30px));
  opacity: .75;
  background-size: cover; background-position: center; display: none;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 45%, transparent 100%);
}
.contact-band .side-l { left: 0; transform: scaleX(-1); }
.contact-band .side-r { right: 0; }
@media (min-width: 1240px) { .contact-band .side { display: block; } }
.contact-head { text-align: center; margin-bottom: 24px; }
.contact-head img { width: 190px; margin: 0 auto 10px; }
.contact-head h2 { font-size: clamp(28px, 4vw, 46px); color: var(--d-green-dark); margin-bottom: 2px; }
.contact-head p { color: #47603f; margin: 0; }
.contact-cols { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 900px; margin-inline: auto; }
@media (min-width: 760px) { .contact-cols { grid-template-columns: 1fr 1fr; } }
.contact-pill {
  display: flex; align-items: center; gap: 14px; min-height: 62px;
  background: #fff; border-radius: 999px; padding: 10px 22px;
  box-shadow: inset 0 0 0 1.5px var(--d-pill-line); text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(31,81,40,.14); color: var(--ink); }
.contact-pill .badge {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.contact-pill .badge .ico, .contact-pill .badge .brand-logo { width: 22px; height: 22px; color: #fff; }
.badge-phone { background: var(--d-green); }
.badge-line { background: var(--line-green); }
.badge-fb { background: #1877f2; }
.badge-ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.badge-tt { background: #111; }
.badge-lm { background: #00c300; }
.badge-grab { background: #00b14f; }
.badge-sp { background: #ee4d2d; }
.contact-pill .txt { min-width: 0; }
.contact-pill .txt b { display: block; font-weight: 700; line-height: 1.35; }
.contact-pill .txt small { display: block; font-size: 14px; color: var(--muted); font-weight: 400; }

.promise { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); margin-top: 30px; padding: 20px 0 34px; }
@media (min-width: 820px) { .promise { grid-template-columns: repeat(4, 1fr); } }
.promise-item { display: flex; gap: 10px; align-items: center; justify-content: center; }
.promise-item .ico { width: 30px; height: 30px; color: var(--d-green); flex: none; }
.promise-item b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 16px; color: var(--d-green-dark); line-height: 1.35; }
.promise-item span { font-size: 14px; color: #55704c; }

/* ---------- ส่วนท้ายแบบดีไซน์ ---------- */
.site-foot { background: var(--d-mint); color: #33452d; margin-top: 0; }
.site-foot h2 { color: var(--d-green-dark); }
.site-foot a { color: #33452d; }
.site-foot a:hover { color: var(--d-green-dark); }
.site-foot .muted { color: #6a7d61; }
.foot-logo { background: transparent; padding: 0; }
.foot-contact .ico { color: var(--d-green); }
.foot-base { border-top: 1px solid rgba(31,81,40,.12); }
.foot-base p { color: #6a7d61; }
.foot-qr { text-align: center; }
.foot-qr img { width: 150px; border-radius: 14px; margin: 0 auto 8px; box-shadow: 0 6px 18px rgba(31,81,40,.12); }
.foot-qr small { font-size: 14px; color: #6a7d61; }

/* ---------- ช่องสินค้านำเข้าที่ยังไม่มีรูป ---------- */
.soon-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) { .soon-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.soon {
  aspect-ratio: 4 / 3; border-radius: 18px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #eaf4dc 0%, #dcebc6 100%);
  box-shadow: inset 0 0 0 1.5px #cde0b2; color: #5d7551; font-size: 14px; padding: 12px;
  /* ข้อความไทยไม่มีเว้นวรรค ถ้าไม่สั่งให้ตัดคำ กล่องจะถูกดันจนล้นจอมือถือ */
  overflow-wrap: anywhere; word-break: break-word; min-width: 0;
}
.soon > * { max-width: 100%; min-width: 0; }
.soon .ico { width: 26px; height: 26px; margin: 0 auto 6px; color: #8aa87b; }

/* เก็บรายละเอียดให้ตรงดีไซน์ */
.hero h1 { font-size: clamp(36px, 5.6vw, 66px); white-space: nowrap; }
@media (max-width: 420px) { .hero h1 { font-size: 34px; } }

.hero-price-card {
  display: block; text-align: center; padding: 18px 30px; width: 100%;
}
.hero-price-card span { display: inline; }
.hero-price-card i { margin-inline-start: 6px; }
.hero-price-card b { display: block; margin-top: 2px; }

/* ภาพกระเช้าในแบนเนอร์ ให้ขอบจางกลืนกับพื้นหลังเหมือนในดีไซน์ */
.hero-art-photo {
  border-radius: 24px;
  -webkit-mask-image: radial-gradient(115% 115% at 50% 45%, #000 62%, transparent 100%);
  mask-image: radial-gradient(115% 115% at 50% 45%, #000 62%, transparent 100%);
}

/* ลังผลไม้ที่ขอบซ้ายของแบนเนอร์ ตามไฟล์ดีไซน์
   ความกว้างคำนวณจากขอบจอถึงขอบคอลัมน์ข้อความ เพื่อไม่ให้ทับตัวหนังสือจนอ่านไม่ออก */
.hero-deco {
  position: absolute; left: 0; bottom: 0; z-index: 0;
  width: max(0px, calc((100vw - var(--wrap)) / 2 - 12px));
  height: 66%;
  background-size: cover; background-position: right bottom;
  -webkit-mask-image: linear-gradient(96deg, #000 30%, transparent 96%);
  mask-image: linear-gradient(96deg, #000 30%, transparent 96%);
  opacity: .85; display: none; pointer-events: none;
}
@media (min-width: 1300px) { .hero-deco { display: block; } }

/* ============================================================
   แบนเนอร์แบบสไลด์ (เก็บ CSS ไว้เผื่อใช้ในอนาคต ตอนนี้หน้าแรกใช้ .hero แบบข้อความจริงแทน)
   ============================================================ */
.banner { position: relative; background: #eef7e2; overflow: hidden; }
.banner .slides { list-style: none; margin: 0; padding: 0; display: grid; }
.banner .slide { grid-area: 1 / 1; opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
.banner .slide.on { opacity: 1; pointer-events: auto; }
.banner .slides > .slide:only-child { opacity: 1; pointer-events: auto; }
.banner img { width: 100%; height: auto; display: block; }

.slide-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.86); color: var(--d-green-dark);
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(31,81,40,.16);
}
.slide-nav:hover { background: #fff; }
.slide-nav.prev { left: 14px; transform: translateY(-50%) rotate(180deg); }
.slide-nav.next { right: 14px; }
.slide-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; gap: 8px; justify-content: center; }
.slide-dots button {
  width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.slide-dots button::before {
  content: ''; width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.7); box-shadow: 0 0 0 1.5px rgba(31,81,40,.35);
}
.slide-dots button[aria-selected="true"]::before { background: var(--d-green); box-shadow: none; width: 24px; }

/* แถบภาพจากไฟล์ดีไซน์ */
.band { position: relative; line-height: 0; background: #fff; }
.band img { width: 100%; height: auto; display: block; }
/* แถบข้อมูลมีปุ่มไลน์กับเบอร์โทรอยู่ในภาพ จึงวางพื้นที่กดโปร่งใสทับตำแหน่งนั้น
   เพราะตัวอักษรในภาพกดไม่ได้ ลูกค้าต้องกดโทรและทักไลน์จากมือถือได้จริง */
.band-hit { position: absolute; display: block; }
.band-link .band-hit.line { right: 1.5%; top: 26%; width: 21%; height: 26%; }
.band-link .band-hit.tel { right: 1.5%; top: 56%; width: 21%; height: 26%; }
.band-hit:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; border-radius: 8px; }
@media (max-width: 767px) {
  .band-link .band-hit.line, .band-link .band-hit.tel { display: none; }
}

/* ช่องสินค้านำเข้าที่ยังไม่มีรูป เว้นกล่องเปล่าไว้ตามขนาดในดีไซน์ */
.soon { aspect-ratio: 4 / 3; border-radius: 18px; background: #e7f2d8; box-shadow: none; padding: 0; }

/* ============================================================
   ร้านค้าออนไลน์ ตะกร้า สั่งซื้อ ชำระเงิน
   ส่วนนี้จะถูกใช้เมื่อเปิดสวิตช์ "ระบบตะกร้า" ในหลังบ้านเท่านั้น
   ============================================================ */
.wrap-narrow { width: min(100% - 32px, 760px); margin-inline: auto; }

/* ป้ายจำนวนบนปุ่มตะกร้า */
.cart-badge {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; margin-inline-start: 2px;
}
/* display: inline-flex ทับ hidden ของเบราว์เซอร์ ต้องสั่งซ่อนเองไม่งั้นจะเห็นวงกลมเปล่า */
.cart-badge[hidden] { display: none; }
.dock-cart { background: var(--green-700); color: #fff; }
.dock-cart:hover { color: #fff; }

/* ── หน้าตะกร้า ── */
.cart-list { display: grid; gap: 12px; margin: 20px 0; }
.cart-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto auto auto; gap: 12px; align-items: center;
  background: #fff; border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-1);
}
.cart-row img { width: 74px; height: 74px; object-fit: cover; border-radius: var(--r-sm); }
.cart-info { display: grid; gap: 2px; min-width: 0; }
.cart-info b { font-size: 16px; line-height: 1.4; }
.cart-info .muted { font-size: 14px; }
.cart-warn { color: #a5281b; font-size: 13px; font-weight: 600; }
.cart-qty { display: inline-flex; align-items: center; gap: 4px; }
.cart-qty button, .qty-box button {
  width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font-size: 20px; line-height: 1; cursor: pointer; color: var(--green-800);
}
.cart-qty input, .qty-box input {
  width: 56px; height: 40px; text-align: center; font: inherit; font-size: 16px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.cart-price { font-weight: 700; color: var(--orange-dark); white-space: nowrap; }
.cart-x { background: none; border: 0; color: var(--muted); font-size: 14px; cursor: pointer; padding: 8px; min-height: 44px; }
.cart-x:hover { color: #a5281b; }
.cart-gone { opacity: .7; }
.cart-foot { background: #fff; border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow-1); }
.cart-sum { display: flex; justify-content: space-between; align-items: baseline; font-size: 18px; }
.cart-sum b { font-size: 24px; color: var(--orange-dark); }
.cart-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.cart-empty { text-align: center; padding: 40px 0; display: grid; gap: 16px; justify-items: center; }
@media (max-width: 560px) {
  .cart-row { grid-template-columns: 64px 1fr; row-gap: 8px; }
  .cart-row img { width: 64px; height: 64px; }
  .cart-qty { grid-column: 1 / -1; }
  .cart-price { grid-column: 1 / 2; }
  .cart-x { grid-column: 2 / 3; justify-self: end; }
}

/* ── ปุ่มซื้อในหน้าสินค้า ── */
.buy-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.qty-box { display: inline-flex; align-items: center; gap: 4px; }
.stock-warn { display: flex; gap: 6px; align-items: center; color: #a5281b; font-weight: 600; font-size: 15px; margin-top: 10px; }
.stock-warn .ico { width: 18px; height: 18px; }
.is-added { background: var(--green-800) !important; }

/* แกลเลอรีรูปสินค้าหลายรูป */
.detail-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.detail-thumbs .thumb {
  width: 76px; height: 76px; padding: 0; border-radius: 12px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; background: none; box-shadow: inset 0 0 0 1.5px var(--line);
}
.detail-thumbs .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-thumbs .thumb.is-on { border-color: var(--green-600); box-shadow: none; }

/* ── หน้ากรอกข้อมูลจัดส่ง ── */
.checkout-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 900px) { .checkout-grid { grid-template-columns: 1.15fr .85fr; gap: 36px; } }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; }
.pay-group { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.pay-group legend { font-weight: 600; font-size: 16px; margin-bottom: 6px; }
.pay-opt {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer;
  background: #fff; border-radius: var(--r-md); box-shadow: inset 0 0 0 1.5px var(--line);
}
.pay-opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green-600); background: var(--green-50); }
.pay-opt input { margin-top: 4px; width: 20px; height: 20px; flex: none; }
.pay-opt b { display: block; }
.pay-opt small { color: var(--muted); }

/* กล่องสรุปยอด */
.sum-card { background: #fff; border-radius: var(--r-md); padding: 18px; box-shadow: var(--shadow-1); }
.sum-card h2 { font-size: 19px; margin-bottom: 12px; }
.sum-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.sum-item img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; flex: none; }
.sum-item > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sum-item b { font-size: 15px; line-height: 1.4; }
.sum-item .muted { font-size: 13px; }
.sum-item-price { font-weight: 600; white-space: nowrap; }
.sum-lines { display: grid; gap: 8px; margin-top: 14px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-total { border-top: 1.5px solid var(--line); padding-top: 10px; font-size: 18px; }
.sum-total b { font-size: 24px; color: var(--orange-dark); }
.sum-note { font-size: 14px; margin-top: 10px; }

/* ── หน้าออเดอร์ ── */
.order-head { text-align: center; margin-bottom: 22px; }
.order-no { font-size: clamp(26px, 4vw, 36px); letter-spacing: .04em; color: var(--d-green-dark); }
.pay-card { background: #fff; border-radius: var(--r-md); padding: 20px; box-shadow: var(--shadow-1); margin-bottom: 16px; }
.pay-card h2 { font-size: 19px; display: flex; gap: 8px; align-items: center; margin-bottom: 12px; }
.pay-card h2 .ico { color: var(--green-600); }
.pay-amount { font-size: 18px; }
.pay-amount b { font-size: 26px; color: var(--orange-dark); }
.qr-box { text-align: center; margin: 14px 0; }
.qr-box svg { width: min(260px, 70vw); height: auto; background: #fff; border-radius: 12px; }
.bank-box { display: grid; gap: 8px; background: var(--green-50); border-radius: var(--r-md); padding: 14px 16px; }
.bank-box > div { display: flex; justify-content: space-between; gap: 12px; }
.copyable { cursor: pointer; border-bottom: 1px dashed var(--green-600); }
.slip-form { display: grid; gap: 12px; margin-top: 12px; }
.file-drop {
  display: grid; gap: 8px; justify-items: center; text-align: center; cursor: pointer;
  padding: 22px; border-radius: var(--r-md); background: var(--green-50);
  box-shadow: inset 0 0 0 2px var(--green-100);
}
.file-drop .ico { width: 30px; height: 30px; color: var(--green-600); }
.file-drop input { font-size: 15px; }
.slip-preview { max-width: 260px; border-radius: var(--r-md); margin: 8px 0; }
.ship-to { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.order-help { text-align: center; color: var(--muted); margin-top: 20px; }
.order-cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 10px; }

/* ไทม์ไลน์สถานะ */
.timeline { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 0; }
.tl-step { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; padding-bottom: 14px; position: relative; }
.tl-step::before { content: ''; position: absolute; left: 16px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.tl-step:last-child::before { display: none; }
.tl-dot {
  width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 2px var(--line); color: #fff; position: relative; z-index: 1;
}
.tl-dot .ico { width: 18px; height: 18px; }
.tl-done .tl-dot { background: var(--green-600); box-shadow: none; }
.tl-now .tl-dot { background: var(--orange); box-shadow: none; }
.tl-body b { display: block; font-size: 16px; }
.tl-body small { color: var(--muted); font-size: 14px; }
.tl-wait .tl-body b { color: var(--muted); font-weight: 600; }
.alert-bad { background: #fff5f4; box-shadow: inset 0 0 0 1.5px #f3c9c4; }

/* ปุ่มท้ายบล็อกสินค้าในหน้าแรก วางเรียงกลาง ตกบรรทัดเองบนจอแคบ */
.d-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 30px; }

/* ---------- หัวหน้าเกี่ยวกับเรา ข้อความคู่กับรูปหน้าร้าน ---------- */
.about-intro { display: grid; gap: 22px; align-items: start; }
@media (min-width: 900px) { .about-intro { grid-template-columns: 1.1fr .9fr; gap: 36px; } }
.about-photo { margin: 0; }
.about-photo img { width: 100%; height: auto; border-radius: var(--r-md); box-shadow: var(--shadow-1); }
.about-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }

/* ---------- ตัวเลือกสินค้า เช่น 500 กรัม / 1 กิโล ---------- */
.opt-group { border: 0; padding: 0; margin: 0 0 18px; }
.opt-group legend { font-weight: 700; font-size: 17px; margin-bottom: 10px; padding: 0; }
.opt-list { display: grid; gap: 10px; }
@media (min-width: 560px) { .opt-list { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); } }
.opt {
  display: flex; gap: 10px; align-items: flex-start; cursor: pointer;
  background: #fff; border-radius: var(--r-md); padding: 12px 14px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.opt:has(input:checked) { box-shadow: inset 0 0 0 2px var(--green-600); background: var(--green-50); }
.opt input { margin-top: 3px; width: 20px; height: 20px; flex: none; }
.opt-body { display: grid; gap: 2px; min-width: 0; }
.opt-body b { font-size: 16px; }
.opt-price { color: var(--orange-dark); font-weight: 700; }
.opt-left { color: #a5281b; font-size: 13px; font-weight: 600; }
.opt-out { color: var(--muted); font-size: 13px; font-weight: 600; }
.opt.is-out { opacity: .55; cursor: not-allowed; }
