/* POPUP — page layouts */

/* ไอคอนที่ตัดจากภาพ: ทำขอบจางกันพื้นหลังเดิมหลงเหลือ */
img[src*="d-boxes"], img[src*="d-mega"], img[src*="a-target"], img[src*="a-binoc"], img[src*="handshake"] {
  -webkit-mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 80%, transparent 100%);
}

/* ===== Home hero ===== */
.hero--home { min-height: 450px; padding: 26px 0 30px; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1.15fr .8fr; align-items: center; gap: 10px; position: relative; }
.hero__copy { display: grid; justify-items: start; gap: 10px; position: relative; z-index: 2; }
.hero__copy > .pill-label { margin-left: 30px; }
.hero__title { display: grid; justify-items: center; margin: -6px 0 2px; }
.hero__title--center { justify-items: center; text-align: center; }
.hero__copy .ribbon { margin-left: 30px; }
.hero__copy .checklist { margin: 6px 0 0 30px; }
.hero__stage { position: relative; height: 340px; align-self: end; touch-action: pan-y; }
.phys-item { position: absolute; bottom: 8px; width: 49%; user-select: none; -webkit-user-drag: none; }
.phys-item img { pointer-events: none; width: 100%; filter: drop-shadow(0 14px 12px rgba(80,50,20,.28)); }
.phys-item--0 { left: 2%; }
.phys-item--1 { left: 49%; }
/* โหมด physics: ตำแหน่งมาจาก transform ทั้งหมด จึงต้องล้าง left/bottom ของทุก breakpoint (กันระยะถูกบวกซ้ำ) */
.hero__stage.phys-ready .phys-item { left: 0 !important; bottom: auto !important; top: 0; will-change: transform; cursor: grab; }
.phys-ready .phys-item.is-dragging { cursor: grabbing; }
.burst { position: absolute; top: 0; width: 56px; height: 56px; background:
  linear-gradient(var(--yellow), var(--yellow)) 50% 0/7px 22px no-repeat,
  linear-gradient(var(--yellow), var(--yellow)) 0 70%/22px 7px no-repeat; transform: rotate(-30deg); border-radius: 4px; }
.burst--l { left: 16%; }
.burst--r { right: 18%; transform: scaleX(-1) rotate(-30deg); }
.motion-toggle { position: absolute; right: 4px; bottom: 4px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: var(--navy); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-s); z-index: 5; }
.motion-toggle .ico { width: 16px; height: 16px; }
.motion-toggle[aria-pressed="true"] .when-playing, .motion-toggle[aria-pressed="false"] .when-paused { display: none; }
.hero__sizes { display: grid; justify-items: end; gap: 12px; position: relative; z-index: 2; }
.size-badge { background: #fff; color: var(--pink); font-weight: 800; font-size: clamp(1.5rem, 2.8vw, 2.4rem); padding: .05em .7em; border-radius: 999px; box-shadow: 0 0 0 4px rgba(255,255,255,.6), var(--shadow); transform: rotate(-4deg); }
.size-badge b { color: var(--yellow); font-size: 1.5em; -webkit-text-stroke: .07em var(--pink); paint-order: stroke fill; line-height: 1; }
.size-pill { color: #fff; font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); padding: .15em .9em; border-radius: 999px; box-shadow: 0 0 0 4px #fff, var(--shadow); transform: rotate(-4deg); transition: transform .2s; white-space: nowrap; }
.size-pill:hover { transform: rotate(-4deg) scale(1.05); }
.size-pill b { font-family: var(--font-display); font-size: 1.7em; line-height: 1; vertical-align: -.08em; }
.size-pill--blue { background: linear-gradient(180deg, #2f8cf3, #1556c9); }
.size-pill--pink { background: linear-gradient(180deg, #ff4b8d, #e0155e); }

/* quick links */
.quick-links { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: -26px; position: relative; z-index: 3; }
.quick-card { display: flex; align-items: center; gap: 10px; background: linear-gradient(180deg, #fff, #f2f8ff); border-radius: 20px; padding: 14px 14px; box-shadow: var(--shadow); transition: transform .2s; }
.quick-card:hover { transform: translateY(-4px); }
.quick-card img { width: 62px; flex: none; }
.quick-card b { display: block; font-size: 1.15rem; color: var(--ink); }
.quick-card small { color: #4b5b80; font-size: .9rem; }

/* product cards */
.product-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.product-card { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; border-radius: 26px; padding: 14px 18px; box-shadow: var(--shadow); min-height: 240px; }
.product-card--blue { background: linear-gradient(135deg, #cfe8ff 0%, #a8d3ff 100%); }
.product-card--pink { background: linear-gradient(135deg, #ffe0ec 0%, #ffc4da 100%); }
.product-card__img img { width: 100%; filter: drop-shadow(0 12px 10px rgba(30,50,110,.25)); transition: transform .4s cubic-bezier(.2,.9,.3,1.4); }
.product-card:hover .product-card__img img { transform: rotate(-3deg) scale(1.04); }
.product-card h3 { display: grid; color: var(--navy); font-size: clamp(1.25rem, 2.2vw, 1.75rem); line-height: 1.2; font-weight: 600; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2em; }
.price-from { color: var(--navy); font-size: 1.4rem; font-weight: 600; margin: 4px 0 10px; }
.price-from b { color: var(--pink); font-size: 2.6em; line-height: 1; font-family: var(--font-display); }

/* promo strip */
.promo-strip { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; margin-top: 22px; padding: 14px; border-radius: 28px; background: linear-gradient(180deg, #bfe1ff, #e3f2ff); box-shadow: var(--shadow); align-items: center; }
.promo-strip__left { display: flex; align-items: center; gap: 8px; }
.promo-strip__truck { width: 46%; margin: -20px 0 -14px -10px; }
.promo-strip__left .yellow-pill { margin-top: 8px; }
.promo-strip__right { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 999px; padding: 10px 22px 10px 12px; box-shadow: var(--shadow-s); transition: transform .2s; flex-wrap: wrap; }
.promo-strip__right:hover { transform: scale(1.02); }
.promo-strip__right img { width: 110px; }
.promo-strip__txt { display: grid; color: var(--navy); font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 2rem); line-height: 1.1; font-style: italic; transform: rotate(-3deg); }
.promo-strip__txt b { color: var(--pink); }

/* features band */
.features-band { position: relative; padding: 34px 0 70px; margin-top: 24px; background: linear-gradient(180deg, transparent, #cfe7ff 40%, #e4f2ff); overflow: hidden; }
.features-band::after { content: ""; position: absolute; left: -5%; right: -5%; bottom: -50px; height: 110px; background:
  radial-gradient(circle 70px at 5% 50%, #fff 98%, transparent), radial-gradient(circle 90px at 18% 80%, #fff 98%, transparent),
  radial-gradient(circle 80px at 80% 75%, #fff 98%, transparent), radial-gradient(circle 100px at 96% 55%, #fff 98%, transparent); }
.features-band__inner { position: relative; }
.features-band__cat { position: absolute; right: 0; bottom: -60px; width: 150px; z-index: 2; animation: bob 3.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px) rotate(-2deg); } }

/* ===== Product page ===== */
.page-bg { background: linear-gradient(180deg, #e3f1ff, #f3f9ff 320px); padding-bottom: 10px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; padding: 18px 0; color: var(--ink); font-weight: 500; flex-wrap: wrap; }
.breadcrumb .ico { width: 22px; height: 22px; }
.breadcrumb .sep { width: 14px; height: 14px; }
.pdp { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.gallery-main { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1.07; background: #fff; }
.gallery-slide { position: absolute; inset: 0; display: grid; place-items: center; }
.gallery-slide > img { width: 86%; filter: drop-shadow(0 18px 16px rgba(30,50,110,.25)); }
.gallery-slide--scene { isolation: isolate; }
.gallery-slide--scene .table-top { left: 0; right: 0; height: 34%; }
.hero--dealer .table-top, .hero--about .table-top, .hero--contact .table-top { left: 40%; right: 0; }
.hero--promo .table-top { left: 0; right: 0; height: 26%; }
.scene { display: grid; justify-items: center; align-content: center; gap: 4px; padding: 20px; width: 100%; height: 100%; }
.scene .popup-word { margin: -4px 0; }
.scene .ribbon { margin-top: -6px; position: relative; z-index: 2; }
.scene__products { display: flex; justify-content: center; margin: -10px 0 -34px; width: 100%; }
.scene__products img { width: 50%; margin: 0 -2%; filter: drop-shadow(0 16px 12px rgba(80,50,20,.3)); }
.scene .features { position: relative; z-index: 2; gap: 10px; }
.gallery-thumbs { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; gap: 8px; margin-top: 14px; }
.thumb-nav { border: 0; background: none; color: var(--ink); cursor: pointer; height: 40px; display: grid; place-items: center; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb { border: 3px solid transparent; border-radius: 14px; background: linear-gradient(180deg, #d7ebff, #f3f9ff); padding: 6px; cursor: pointer; position: relative; height: 92px; display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow-s); }
.thumb img { max-height: 76px; width: auto; }
.thumb .thumb__2 { position: absolute; right: 2px; bottom: 6px; max-height: 50px; }
.thumb:has(.thumb__2) img:first-child { position: absolute; left: 2px; bottom: 6px; max-height: 50px; }
.thumb.is-active { border-color: var(--blue); }
.pdp__title { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--ink); font-weight: 700; line-height: 1.2; }
.pdp__subtitle { font-size: 1.15rem; color: #34406a; margin-top: 4px; }
.pdp__meta { display: flex; align-items: center; gap: 10px; padding: 10px 0 14px; border-bottom: 1px solid #d9e6f7; font-weight: 500; }
.stars { display: inline-flex; gap: 2px; }
.stars .ico { width: 24px; height: 24px; }
.stars .on { color: #ffb400; }
.stars .off { color: #d5dcea; }
.opt-group { border: 0; padding: 0; margin: 16px 0 0; }
.opt-group legend { font-weight: 700; font-size: 1.2rem; margin-bottom: 8px; }
.size-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size-card { position: relative; display: flex; align-items: center; gap: 10px; border: 2px solid #d4e1f3; border-radius: 16px; padding: 8px 10px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.size-card input { position: absolute; opacity: 0; pointer-events: none; }
.size-card img { width: 76px; }
.size-card b { display: block; font-weight: 600; font-size: 1.05rem; }
.size-card small { font-size: .95rem; color: #3d4a73; }
.size-card__check { position: absolute; top: -10px; right: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: none; place-items: center; border: 3px solid #fff; }
.size-card__check .ico { width: 14px; height: 14px; }
.size-card:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,224,.15); }
.size-card:has(input:checked) .size-card__check { display: grid; }
.size-card:has(input:focus-visible) { outline: 3px solid #ffb800; outline-offset: 2px; }
.pack-list { border: 2px solid #d4e1f3; border-radius: 16px; background: #fff; padding: 6px; display: grid; }
.pack-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; cursor: pointer; border-bottom: 1px solid #edf2fa; font-size: 1.2rem; }
.pack-row:last-child { border-bottom: 0; }
.pack-row input { position: absolute; opacity: 0; pointer-events: none; }
.radio-dot { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #b6c3d8; display: grid; place-items: center; }
.pack-row:has(input:checked) .radio-dot { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 45%, #fff 50%); }
.pack-row:has(input:checked) { background: #eaf3ff; }
.pack-row:has(input:focus-visible) { outline: 3px solid #ffb800; }
.pack-row:has(input:disabled) { opacity: .45; cursor: not-allowed; }
.pack-row__label { font-weight: 500; }
.pack-row__price { color: var(--pink); font-weight: 700; font-size: 1.3rem; }
.pack-row--special { background: linear-gradient(90deg, #fff1b8, #ffe68a); font-weight: 700; }
.pack-row--special:has(input:checked) { background: linear-gradient(90deg, #ffe58a, #ffd54a); box-shadow: inset 0 0 0 2px var(--yellow-d); }
.pack-row__box { width: 30px; height: 30px; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; font-weight: 600; font-size: 1.15rem; }
.stepper { display: inline-flex; align-items: center; border: 2px solid #c9d8ee; border-radius: 14px; background: #fff; overflow: hidden; }
.stepper button { width: 46px; height: 46px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--ink); }
.stepper input { width: 54px; text-align: center; border: 0; font-size: 1.2rem; font-weight: 600; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stock-status { margin-left: auto; color: #1b8a3a; display: inline-flex; align-items: center; gap: 6px; }
.stock-status .ico { color: var(--green); width: 26px; height: 26px; }
.stock-status.is-out { color: #c4134f; }
.buy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.form-msg { min-height: 1.4em; margin-top: 8px; color: #c4134f; font-weight: 600; }
.pdp-tabs { margin-top: 36px; background: #fff; border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: #f1f6fd; padding: 6px; gap: 4px; }
.tab { border: 0; background: none; padding: 12px 8px; font-weight: 600; font-size: 1.1rem; border-radius: 999px; cursor: pointer; color: var(--ink); }
.tab.is-active { background: linear-gradient(180deg, #2b7cf0, #1450c4); color: #fff; }
.tab-panel { padding: 22px 28px 28px; }
.tab-h { font-size: 1.5rem; margin-bottom: 10px; color: var(--ink); }
.detail-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 20px; align-items: center; }
.ship-banner { display: flex; align-items: center; gap: 4px; background: linear-gradient(180deg, #a9d6ff, #e2f2ff); border-radius: 24px; padding: 10px 16px; }
.ship-banner img { width: 44%; }
.ship-banner .yellow-pill { margin-top: 8px; }
.faq { border-bottom: 1px solid #e3ecf8; padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin-top: 6px; color: #3d4a73; }

/* ===== Promotion ===== */
.hero--promo { min-height: 360px; padding: 22px 0 70px; }
.hero__grid--promo { grid-template-columns: 1.1fr 1fr .3fr; }
.hero__copy--promo { justify-items: center; padding-left: 70px; }
.hero__copy--promo .popup-word { margin-top: -12px; }
.promo-mega { position: absolute; left: -10px; top: 70px; width: 120px; animation: wiggle 2.4s ease-in-out infinite; }
@keyframes wiggle { 50% { transform: rotate(-8deg) scale(1.05); } }
.promo-products { display: flex; align-self: end; margin-bottom: -40px; }
.promo-products img { width: 50%; margin: 0 -1%; filter: drop-shadow(0 16px 12px rgba(80,50,20,.3)); }
.save-badge { align-self: start; justify-self: end; width: 150px; height: 130px; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 40% 35%, #ff5a8f, #e11b5c); color: var(--yellow); font-weight: 800; font-size: 1.5rem; line-height: 1.1; border-radius: 48% 52% 45% 55% / 55% 45% 55% 45%; box-shadow: 0 0 0 5px #fff, var(--shadow); transform: rotate(8deg); position: relative; -webkit-text-stroke: .02em #b40e48; }
.save-badge__crown { position: absolute; top: -26px; right: 4px; width: 44px; height: 44px; transform: rotate(14deg); }
.price-boards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: -60px; position: relative; z-index: 2; }
.price-board { position: relative; border-radius: 28px; padding: 18px 16px 18px; box-shadow: var(--shadow); }
.price-board--blue { background: linear-gradient(180deg, #d4ebff, #b6dcff); }
.price-board--pink { background: linear-gradient(180deg, #ffe3ee, #ffc9dd); }
.price-board__head { display: flex; align-items: center; gap: 8px; width: fit-content; margin: -36px auto 12px; padding: .15em 1.1em; border-radius: 999px; color: #fff; font-size: clamp(1.2rem, 2.2vw, 1.75rem); font-weight: 700; font-style: italic; box-shadow: 0 0 0 4px #fff, var(--shadow-s); }
.price-board--blue .price-board__head { background: linear-gradient(180deg, #2f7ff0, #1a4fc0); }
.price-board--pink .price-board__head { background: linear-gradient(180deg, #ff4b8d, #df155d); }
.price-board__head b { color: var(--yellow); font-family: var(--font-display); font-size: 1.9em; line-height: 1; -webkit-text-stroke: .05em var(--navy); paint-order: stroke fill; font-style: normal; }
.layers-ico { background: #fff; border-radius: 12px; padding: 2px 4px; }
.layers-ico img { width: 44px; }
.price-board__body { display: grid; grid-template-columns: 34% 1fr; gap: 8px; align-items: start; }
.price-board__stack img { width: 100%; margin-bottom: -24px; filter: drop-shadow(0 8px 6px rgba(30,50,110,.2)); }
.price-rows { display: grid; gap: 8px; }
.price-rows li { position: relative; }
.price-row { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 999px; padding: 6px 22px; font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 600; cursor: pointer; box-shadow: var(--shadow-s); transition: transform .15s, box-shadow .2s; color: var(--ink); }
.price-row:hover:not(:disabled) { transform: translateX(4px); box-shadow: 0 0 0 3px rgba(31,111,224,.25), var(--shadow-s); }
.price-row__label { flex: 1; text-align: left; }
.price-row__price { color: var(--pink); font-weight: 800; font-size: 1.15em; }
.price-row--special { background: linear-gradient(180deg, #ffe763, #ffcf25); padding: 10px 22px; }
.price-row__box { width: 1.6em; height: 1.6em; }
.special-tag { position: absolute; right: 12px; bottom: -22px; background: linear-gradient(180deg, #ff4b8d, #df155d); color: #fff; font-weight: 700; padding: 0 12px; border-radius: 10px; transform: rotate(-5deg); font-size: 1.1rem; box-shadow: 0 0 0 3px #fff; }
.price-board__mascot { position: absolute; left: -18px; bottom: -26px; width: 130px; }
.hint-text { text-align: center; color: #4b5b80; margin-top: 30px; font-size: .95rem; }
.dealer-strip { display: grid; grid-template-columns: 1.1fr .9fr 1.2fr; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 20px; border-radius: 28px; background: linear-gradient(180deg, #c7e5ff, #eef7ff); box-shadow: var(--shadow); }
.dealer-strip__title { display: flex; flex-direction: column; align-items: center; }
.dealer-strip__title img { width: 100px; margin-top: -8px; }
.dealer-strip .checklist { border-left: 2px dashed #9ab9e0; padding-left: 18px; }
.dealer-strip__truck { position: relative; }
.dealer-strip__truck img { width: 82%; margin-left: auto; }
.speech { position: absolute; right: 0; top: -14px; background: #fff; color: var(--pink); font-weight: 800; font-style: italic; padding: 6px 14px; border-radius: 20px; font-size: 1.35rem; line-height: 1.1; box-shadow: var(--shadow-s); transform: rotate(-6deg); }
.service-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.service-icons { display: flex; gap: 16px; flex-wrap: wrap; }
.service-icons li { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 55%, #e2f0ff); box-shadow: 0 0 0 5px rgba(255,255,255,.85), var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-weight: 700; gap: 6px; font-size: 1rem; }
.service-icons img { width: 74px; }
.svg-ico { display: grid; place-items: center; width: 74px; height: 64px; }
.svg-ico .ico { width: 58px; height: 58px; }
.svg-ico--blue { color: #1b6fe0; }

/* ===== Dealer ===== */
.hero--dealer { padding: 24px 0 50px; }
.hero__grid--dealer { grid-template-columns: 1.7fr 1fr; align-items: start; }
.dealer-hero__copy { display: grid; justify-items: center; gap: 4px; }
.dealer-hero__copy .popup-word { margin-top: -6px; }
.dealer-hero__copy .ribbon { margin-top: 2px; }
.dealer-hero__scene { position: relative; display: flex; justify-content: center; align-items: flex-end; width: 100%; height: 240px; margin-top: 4px; }
.dealer-hero__scene > img:not(.dealer-hero__boxes):not(.mascot) { width: 34%; margin: 0 -1.5%; filter: drop-shadow(0 14px 10px rgba(80,50,20,.3)); position: relative; z-index: 2; }
.dealer-hero__boxes { position: absolute; left: -40px; bottom: 10px; width: 170px; }
.dealer-hero__cat { position: absolute; left: 8%; bottom: 70px; width: 150px; z-index: 3; animation: bob 3s ease-in-out infinite; }
.dealer-hero__rabbit { position: absolute; right: 12%; bottom: 120px; width: 120px; z-index: 1; }
.dealer-hero__panda { position: absolute; right: 6%; bottom: 0; width: 130px; z-index: 3; }
.clipboard { position: relative; background: #fff; border-radius: 26px; padding: 40px 28px 20px; box-shadow: 0 0 0 6px #4aa0f5, var(--shadow); margin-top: 40px; }
.clipboard__clip { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 90px; height: 44px; border-radius: 14px 14px 8px 8px; background: linear-gradient(180deg, #3d8ef2, #1b5fcf); box-shadow: 0 4px 8px rgba(20,60,160,.3); }
.clipboard__clip::after { content: ""; position: absolute; top: 10px; left: 50%; width: 22px; height: 12px; border-radius: 6px; background: #fff; transform: translateX(-50%); }
.clipboard__crown { position: absolute; top: -44px; right: -14px; width: 66px; height: 66px; transform: rotate(18deg); }
.clipboard h2 { color: var(--pink); font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; line-height: 1.15; text-align: center; font-style: italic; margin-bottom: 10px; }
.clipboard .checklist li { font-size: 1.2rem; }
.dealer-info { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; margin-top: 10px; }
.cond-card, .fit-card { background: rgba(255,255,255,.8); border-radius: 28px; padding: 30px 18px 18px; box-shadow: var(--shadow); position: relative; }
.pill-title { display: block; width: fit-content; margin: -50px auto 16px; padding: .15em 1em; border-radius: 999px; color: #fff; font-weight: 800; font-size: clamp(1.4rem, 2.4vw, 2rem); font-style: italic; box-shadow: 0 0 0 4px #fff, var(--shadow-s); }
.pill-title--blue { background: linear-gradient(180deg, #2f7ff0, #1a46b8); }
.pill-title--pink { background: linear-gradient(180deg, #ff4b8d, #df155d); }
.pill-title--slant { margin: 0 0 8px; transform: rotate(-3deg); font-size: 1.5rem; }
.cond-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cond-list li { background: #fff; border-radius: 22px; padding: 16px 10px; text-align: center; display: grid; justify-items: center; align-content: start; gap: 4px; box-shadow: var(--shadow-s); font-size: 1.2rem; }
.cond-list img { height: 90px; width: auto; }
.cond-list .pink { color: var(--pink); font-weight: 700; }
.cond-list small { color: #3d4a73; }
.fit-card .checklist li { font-size: 1.25rem; padding: 4px 0; }
.fit-card__shop { position: absolute; right: 20px; bottom: 20px; width: 80px; }
.dealer-cta { margin-top: 26px; padding: 16px 0; background: linear-gradient(180deg, transparent, #cfe7ff); }
.dealer-cta__inner { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 14px; }
.dealer-cta__text { display: grid; justify-items: center; gap: 2px; text-align: center; }
.btn--cta-2 { display: block; font-size: clamp(1.3rem, 2.4vw, 2rem); padding: .5em 1.2em; border-radius: 40px; line-height: 1.15; }
.btn--cta-2 span { color: var(--yellow); }
.form-section { margin-top: 30px; max-width: 820px; scroll-margin-top: 120px; }

/* ===== About ===== */
.hero--about, .hero--contact { padding: 24px 0 40px; }
.hero__grid--about, .hero__grid--contact { grid-template-columns: .55fr 1.2fr 1.3fr; align-items: center; }
.hero__copy--center { justify-items: center; text-align: center; }
.about-hero__cat, .contact-hero__cat { width: 100%; max-width: 190px; justify-self: end; animation: bob 3.2s ease-in-out infinite; }
.about-hero__products { position: relative; display: flex; justify-content: center; align-items: flex-end; padding-top: 30px; }
.about-hero__products > img:not(.mascot) { width: 46%; margin: 0 -1%; filter: drop-shadow(0 14px 10px rgba(80,50,20,.3)); position: relative; z-index: 2; }
.about-hero__rabbit, .contact-hero__rabbit { position: absolute; top: -20px; left: 40%; width: 110px; z-index: 1; }
.contact-hero__rabbit { left: auto; right: -10px; top: -10px; }
.about-hero__panda, .contact-hero__panda { position: absolute; right: -24px; bottom: 0; width: 110px; z-index: 3; }
.contact-hero__panda { right: -20px; bottom: -20px; }
.about-card { background: linear-gradient(180deg, #fff, #eef6ff); border-radius: 30px; padding: 26px; box-shadow: var(--shadow); margin-top: -20px; position: relative; z-index: 2; }
.about-card__intro { display: grid; grid-template-columns: 1fr 1.15fr; gap: 26px; align-items: center; }
.about-card__photo { border-radius: 22px; box-shadow: 0 0 0 6px #fff, var(--shadow); width: 100%; }
.about-text { font-size: 1.18rem; line-height: 1.7; }
.about-card__features { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; margin-top: 24px; }
.about-card__features .features { justify-content: flex-start; }
.about-card__trio { width: 300px; }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; background: #e3f0ff; border-radius: 26px; padding: 18px; }
.mv-card { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 22px; padding: 16px 18px; box-shadow: var(--shadow-s); }
.mv-card img { width: 90px; flex: none; }
.mv-card p { font-size: 1.1rem; }
.why { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 30px; margin-top: 30px; }
.why__title { display: grid; color: var(--navy); font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; font-style: italic; line-height: 1.1; }
.why__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.why__list li { display: grid; justify-items: center; text-align: center; gap: 6px; font-weight: 700; color: var(--navy); font-size: 1.15rem; border-left: 2px dashed #9ab9e0; padding: 0 10px; }
.why__list img { height: 64px; width: auto; }

/* ===== Contact ===== */
.note-pill { background: #fff; border-radius: 22px; padding: 8px 20px; font-weight: 600; font-size: clamp(1rem, 1.7vw, 1.25rem); color: var(--ink); box-shadow: var(--shadow-s); transform: rotate(-3deg); }
.heart-ico { color: var(--pink); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .8fr 1.15fr; gap: 20px; align-items: start; margin-top: -10px; position: relative; z-index: 2; }
.channel-list { display: grid; gap: 12px; }
.channel { display: flex; align-items: center; gap: 12px; background: linear-gradient(180deg, #fff, #f1f8ff); border-radius: 999px; padding: 4px 16px 4px 4px; box-shadow: var(--shadow-s); transition: transform .2s; }
a.channel:hover { transform: translateX(4px); }
.channel img { width: 66px; flex: none; }
.channel > span { flex: 1; display: grid; line-height: 1.25; font-size: 1.15rem; }
.channel b { font-weight: 600; }
.channel__go { color: #1b9a3c; width: 24px !important; height: 24px !important; }
.qr-card { position: relative; display: grid; justify-items: center; gap: 12px; padding-top: 70px; }
.qr-card__cat { position: absolute; top: -10px; width: 120px; z-index: 2; }
.qr-card__frame { background: #fff; border: 6px solid #22b14c; border-radius: 22px; padding: 12px; box-shadow: var(--shadow); position: relative; z-index: 1; }
.qr-card__frame img { width: 200px; }
.qr-card .btn--green { font-size: 1.25rem; border-radius: 26px; position: relative; padding: .4em 1.6em; }
.qr-card .cursor-ico { position: absolute; right: -16px; bottom: -14px; width: 40px !important; height: 40px !important; }
.card-form--contact { box-shadow: 0 0 0 4px rgba(255,255,255,.8), var(--shadow); }
.card-form--contact .card-form__title { color: var(--pink); font-size: 1.7rem; }
.info-row { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-radius: 26px; padding: 18px; margin-top: 24px; box-shadow: var(--shadow); }
.info-item { display: flex; align-items: center; gap: 14px; padding: 0 16px; border-left: 2px solid #dbe6f5; }
.info-item:first-child { border-left: 0; }
.info-item img { width: 76px; flex: none; }
.info-item b { font-size: 1.25rem; }
.info-item p { font-size: 1.05rem; line-height: 1.35; }
.road-banner { margin-top: 26px; background: linear-gradient(180deg, #d1ecff 0%, #b9e1ff 55%, #9aa9b8 56%, #8c9aab 100%); position: relative; overflow: hidden; }
.road-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 18%; height: 6px; background: repeating-linear-gradient(90deg, #fff 0 60px, transparent 60px 120px); opacity: .8; }
.road-banner__inner { display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: end; position: relative; z-index: 1; padding-top: 20px; }
.road-banner__truck { width: 100%; animation: drive 6s ease-in-out infinite; }
@keyframes drive { 50% { transform: translateX(14px); } }
.road-banner__bubble { align-self: center; justify-self: center; display: grid; background: #fff; border-radius: 40px; padding: 14px 30px; text-align: center; box-shadow: var(--shadow); transform: rotate(-4deg); }
.road-banner__bubble span { color: var(--navy); font-weight: 700; font-style: italic; font-size: clamp(1.1rem, 2vw, 1.6rem); }
.road-banner__bubble b { color: var(--navy); font-weight: 800; font-style: italic; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.1; }
.road-banner__trio { width: 100%; }

/* ===== Simple pages ===== */
.simple-page { padding: 34px 0 20px; }
.simple-page--narrow { max-width: 560px; }
.empty-state { text-align: center; display: grid; justify-items: center; gap: 14px; }
.empty-state__cat { width: 150px; }
.cart-table { display: grid; gap: 12px; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto auto auto; gap: 14px; align-items: center; background: #fff; border-radius: 20px; padding: 10px 16px; box-shadow: var(--shadow-s); }
.cart-line__info { display: grid; }
.cart-line__info small { color: #5d6b8c; }
.cart-line__qty { display: flex; gap: 6px; align-items: center; }
.cart-line__qty input { width: 64px; border: 2px solid #cfe0f6; border-radius: 10px; padding: 6px; text-align: center; }
.cart-line__total { color: var(--pink); font-size: 1.25rem; min-width: 90px; text-align: right; }
.cart-summary { margin-top: 18px; background: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.notice { background: #fff8db; border-radius: 16px; padding: 14px 16px; display: grid; gap: 8px; justify-items: start; }
.search-inline { display: flex; gap: 10px; margin-bottom: 16px; }
.search-results { display: grid; gap: 10px; margin-top: 12px; }
.search-results a { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 18px; padding: 8px 16px; box-shadow: var(--shadow-s); }
.search-results span { display: grid; }
.track-result { margin-top: 18px; background: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow); }
.track-result dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 10px 0 0; }
.track-result dt { color: #5d6b8c; }
.track-result dd { margin: 0; font-weight: 600; }

/* ===== Home hero — ปรับให้ตรงภาพดีไซน์ ===== */
.hero--home { min-height: 450px; padding: 34px 0 34px; }
.hero--home .hero__grid { grid-template-columns: 400px 1fr 250px; gap: 0; align-items: center; }
.hero__slides { position: relative; z-index: 3; display: grid; }
.hero__slides > .hero__copy { grid-area: 1 / 1; transition: opacity .5s ease, transform .5s ease; }
.hero--home .hero__copy { justify-items: center; gap: 4px; transform: rotate(-3deg); }
.hero--home .hero__copy > .pill-label, .hero--home .hero__copy .ribbon, .hero--home .hero__copy .checklist { margin-left: 0; }
.pill-label--hero { background: linear-gradient(180deg, #2b63de, #1638a6); font-size: clamp(1.4rem, 2.6vw, 2.15rem); padding: .1em .75em .18em; transform: none;
  color: #fff8c9; text-shadow: 0 2px 0 #0e2a85; box-shadow: 0 0 0 4px #fff, 0 10px 20px rgba(20,60,160,.28); }
.hero--home .popup-word--xl { font-size: clamp(4.2rem, 8.6vw, 6.9rem); margin: -4px 0 -10px; }
.sub-tag { display: block; color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.6rem); -webkit-text-stroke: .16em #fff; paint-order: stroke fill; margin-top: -2px; }
.hero--home .ribbon { font-size: clamp(1.15rem, 2.3vw, 1.8rem); transform: none; margin-top: 2px; }
.checklist--hero { justify-self: start; margin: 8px 0 0 20px !important; gap: 2px; }
.checklist--hero li { font-size: clamp(1.05rem, 1.8vw, 1.4rem); font-weight: 700; color: var(--ink); text-shadow: 0 0 6px #fff, 0 0 3px #fff, 0 0 2px #fff; }
.checklist--hero .ico { color: var(--pink); width: 28px; height: 28px; filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 2px #fff); }
.checklist--hero a { text-decoration: underline; text-underline-offset: 3px; }
.hero--home .hero__stage { height: 340px; margin: 0 -40px 0 -30px; align-self: end; }
.hero--home .phys-item { width: 52%; bottom: 34px; }
.hero--home .phys-item--0 { left: 0; }
.hero--home .phys-item--1 { left: 41.5%; }
.hero--home .phys-item img { filter: drop-shadow(0 18px 10px rgba(90,55,20,.32)); }
.hero--home .burst--l { left: 10%; top: 6px; }
.hero--home .burst--r { right: 28%; top: -6px; }
.hero-dots { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hero-dot { width: 12px; height: 12px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.75); box-shadow: inset 0 0 0 1px rgba(30,60,120,.2); cursor: pointer; }
.hero-dot.is-active { background: var(--navy); box-shadow: 0 0 0 2px #fff; }
.hero--home .motion-toggle { bottom: -2px; right: 26px; }
.hero--home .hero__sizes { justify-items: center; gap: 14px; transform: rotate(-4deg); }
.size-badge { background: linear-gradient(180deg, #fff, #ffe6f0); color: var(--pink); padding: .02em .6em .08em; transform: none; box-shadow: 0 0 0 4px #fff, 0 10px 22px rgba(220,30,100,.22); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.size-badge b { font-size: 1.6em; color: #ffd21f; -webkit-text-stroke: .09em #e3165f; text-shadow: 0 3px 0 #b80d4a; vertical-align: -.12em; }
.hero--home .size-pill { transform: none; font-size: clamp(1.3rem, 2.3vw, 1.9rem); padding: .05em .8em .1em; }
.hero--home .size-pill:hover { transform: scale(1.05); }

/* พื้นหลัง Hero หน้าแรก: ต้นไม้เบลอ, โต๊ะไม้แนวนอน, เมฆ, พุ่มไม้ */
.hero--home .sky { background: linear-gradient(180deg, #5fb0f3 0%, #8ccaf9 30%, #c9e7ff 62%, #eef7ff 100%); }
.hero--home .leaves { width: 360px; height: 320px; filter: blur(3px) saturate(1.1); opacity: .95; top: -30px; }
.hero--home .leaves--l { left: -70px; }
.hero--home .leaves--r { right: -70px; }
.hero--home .sky::before, .hero--home .sky::after { content: ""; position: absolute; bottom: 40px; width: 260px; height: 150px; filter: blur(5px); border-radius: 50%;
  background: radial-gradient(ellipse 60px 40px at 30% 60%, #6cbf3a 70%, transparent 72%), radial-gradient(ellipse 70px 46px at 60% 50%, #57ad2c 70%, transparent 72%), radial-gradient(ellipse 50px 34px at 80% 70%, #82cf4d 70%, transparent 72%); }
.hero--home .sky::before { left: -80px; }
.hero--home .sky::after { right: -60px; bottom: 10px; opacity: .8; }
.hero--home .table-top { left: 26%; right: 6%; height: 30%; bottom: 0; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #f1dcc0 0%, #e2c39a 22%, #d3aa78 58%, #c39465 100%);
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.hero--home .table-top::before { background: repeating-linear-gradient(180deg, transparent 0 26px, rgba(130,80,35,.12) 26px 28px),
  linear-gradient(90deg, transparent 30%, rgba(255,255,255,.18) 50%, transparent 70%); }
.hero--home .cloud-bank { bottom: -46px; height: 110px; }
.hero--home .cloud--3 { left: auto; right: 4%; top: 60%; width: 200px; height: 70px; opacity: .95; }

/* ===== ปรับหน้าอื่นให้ตรงภาพดีไซน์ ===== */
.heart-deco { position: absolute; color: var(--pink); width: 34px; height: 34px; z-index: 4; filter: drop-shadow(0 0 0 #fff) drop-shadow(0 3px 4px rgba(220,30,100,.3)); }
.heart-deco .ico { width: 100%; height: 100%; stroke: #fff; stroke-width: 2px; }
.spark-deco { position: absolute; top: 40px; width: 54px; height: 50px; background:
  linear-gradient(var(--yellow-d), var(--yellow-d)) 50% 0/8px 26px no-repeat,
  linear-gradient(var(--yellow-d), var(--yellow-d)) 0 80%/26px 8px no-repeat; border-radius: 4px; }

/* Promotion */
.hero--promo .hero__title { position: relative; }
.hero--promo .hero__title::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 92%; height: 64%; transform: translateX(-50%) rotate(-3deg);
  background: radial-gradient(ellipse at 30% 40%, #ffe766 0 55%, transparent 56%), radial-gradient(ellipse at 70% 55%, #ffd93a 0 55%, transparent 56%), radial-gradient(ellipse at 50% 50%, #ffe24f 0 60%, transparent 61%); filter: drop-shadow(0 0 0 #fff); }
.hero--promo .display-title--pink { -webkit-text-stroke: .16em #fff; }
.promo-mega { width: 150px; left: -30px; top: 110px; transform: rotate(-12deg); }
.promo-products { position: relative; margin-bottom: -50px; }
.promo-products img { width: 48%; }
.promo-gift { position: absolute; right: -60px; bottom: 6px; width: 110px; height: auto; filter: drop-shadow(0 8px 8px rgba(90,40,20,.25)); }

/* Dealer: พื้นหลังคลังสินค้าเบลอ */
.hero--dealer .sky { background: #e9f3ff; overflow: hidden; }
.hero--dealer .sky::before { content: ""; position: absolute; inset: -14px; background: url("../images/warehouse.jpg") center 35% / cover no-repeat; filter: blur(7px) brightness(1.18) saturate(.85); }
.hero--dealer .sky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(230,242,255,.55), rgba(230,242,255,.25) 60%, rgba(240,248,255,.75)); }
.hero--dealer .leaves, .hero--dealer .cloud--1, .hero--dealer .cloud--2, .hero--dealer .cloud--3 { display: none; }
.hero--dealer .table-top, .hero--dealer .cloud-bank { z-index: 1; }
.dealer-hero__copy { position: relative; }
.heart-deco--1 { left: 14%; top: 60px; transform: rotate(-15deg); }
.spark-deco--l { left: 10%; transform: scaleX(-1) rotate(-30deg); }
.spark-deco--r { right: 12%; transform: rotate(-30deg); }
.heart-deco--2 { left: 4%; bottom: 190px; width: 26px; height: 26px; }
.heart-deco--3 { left: 22%; bottom: 220px; width: 22px; height: 22px; }

/* Contact hearts */
.hero__grid--contact { position: relative; }
.heart-deco--c1 { left: 2%; top: 64%; transform: rotate(-18deg); }
.heart-deco--c2 { right: 12%; top: -26px; }
.heart-deco--c3 { right: -6px; top: 26px; width: 26px; height: 26px; }

/* About: แว่นส่องทางไกลไม่ต้องจางขอบ */
img[src*="a-binoc"] { -webkit-mask-image: none; mask-image: none; }

/* Product: แบนเนอร์จัดส่งบรรทัดเดียวตามภาพ */
.ship-banner .display-title--md { font-size: clamp(1.25rem, 2.1vw, 1.7rem); white-space: nowrap; }
.gallery-slide--scene .leaves { opacity: .7; }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero__sizes { grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: center; flex-wrap: wrap; }
  .hero__stage { grid-column: 2; grid-row: 1; }
  .quick-links { grid-template-columns: repeat(3, 1fr); margin-top: 10px; }
  .promo-strip, .dealer-strip, .dealer-info, .dealer-cta__inner { grid-template-columns: 1fr; }
  .dealer-strip .checklist { border-left: 0; padding-left: 0; justify-self: center; }
  .pdp { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid .card-form { grid-column: 1 / -1; }
  .hero__grid--about, .hero__grid--contact { grid-template-columns: .5fr 1fr; }
  .about-hero__products { grid-column: 1 / -1; max-width: 560px; justify-self: center; }
  .hero__grid--dealer { grid-template-columns: 1fr; }
  .clipboard { max-width: 460px; justify-self: center; width: 100%; }
  .why { grid-template-columns: 1fr; justify-items: center; }
  .why__title { justify-items: center; }
}
@media (max-width: 760px) {
  .hero--home { padding-top: 16px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { justify-items: center; text-align: center; }
  .hero__copy > .pill-label, .hero__copy .ribbon, .hero__copy .checklist { margin-left: 0; }
  .checklist--pill { justify-items: center; }
  .hero__stage { grid-column: 1; grid-row: auto; height: 250px; width: 100%; max-width: 440px; justify-self: center; }
  .hero__sizes { grid-row: auto; }
  .quick-links { grid-template-columns: 1fr 1fr; }
  .quick-card img { width: 48px; }
  .product-cards, .price-boards { grid-template-columns: 1fr; }
  .price-boards { margin-top: -30px; gap: 40px; }
  .hero__grid--promo { grid-template-columns: 1fr; }
  .hero__copy--promo { padding-left: 0; }
  .promo-mega { width: 80px; top: 30px; left: 0; }
  .save-badge { position: absolute; right: 0; top: 0; width: 110px; height: 96px; font-size: 1.1rem; }
  .promo-products { margin: 0 auto -30px; max-width: 420px; }
  .price-board__mascot { width: 90px; left: -6px; }
  .service-row { justify-content: center; }
  .service-icons { justify-content: center; }
  .service-icons li { width: 130px; height: 130px; font-size: .9rem; }
  .cond-list { grid-template-columns: 1fr; }
  .dealer-hero__scene { height: 180px; }
  .dealer-hero__cat { width: 90px; left: 0; }
  .dealer-hero__rabbit, .dealer-hero__panda { width: 80px; }
  .dealer-hero__boxes { width: 100px; left: -20px; }
  .hero__grid--about, .hero__grid--contact { grid-template-columns: 1fr; }
  .about-hero__cat, .contact-hero__cat { display: none; }
  .about-card { padding: 16px; }
  .about-card__intro, .about-card__features, .mv-grid { grid-template-columns: 1fr; }
  .about-card__trio { justify-self: center; width: 240px; }
  .why__list { grid-template-columns: 1fr 1fr; gap: 16px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .info-row { grid-template-columns: 1fr; gap: 14px; }
  .info-item { border-left: 0; padding: 0; }
  .road-banner__inner { grid-template-columns: 1fr 1fr; }
  .road-banner__bubble { grid-column: 1 / -1; grid-row: 1; margin-bottom: 10px; }
  .buy-row { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; border-radius: 0; }
  .tab-panel { padding: 18px; }
  .detail-grid { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 72px 1fr auto; }
  .cart-line img { width: 72px; }
  .cart-line__qty { grid-column: 2; }
  .cart-line__total { grid-column: 3; grid-row: 1; }
  .stock-status { margin-left: 0; width: 100%; }
  .features-band__cat { width: 100px; bottom: -50px; }
}

/* Home hero responsive (ต้องอยู่หลังกฎ desktop ของ .hero--home) */
@media (max-width: 1000px) {
  .hero--home .hero__grid { grid-template-columns: 1fr 1fr; }
  .hero--home .hero__stage { margin: 0; }
  .hero--home .hero__sizes { flex-direction: row; transform: none; }
}
@media (max-width: 760px) {
  .hero--home .hero__grid { grid-template-columns: 1fr; }
  .hero--home .hero__copy { transform: none; }
  .checklist--hero { justify-self: center; margin-left: 0 !important; }
  .hero--home .hero__stage { height: 270px; }
  .hero--home .leaves { width: 220px; height: 200px; }
}

/* ===== Checkout & Order ===== */
.checkout, .order-page { padding: 26px 0 30px; }
.steps { display: flex; justify-content: center; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; color: #7a87a6; font-weight: 600; }
.steps li + li::before { content: ""; width: 34px; height: 3px; border-radius: 3px; background: #cfdcf0; }
.steps span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #dfe8f5; color: #6a7898; }
.steps .is-done span { background: var(--green); color: #fff; }
.steps .is-current { color: var(--navy); }
.steps .is-current span { background: var(--pink); color: #fff; }
.co-grid, .order-grid { display: grid; grid-template-columns: 1fr 380px; gap: 22px; align-items: start; }
.co-main, .order-main { display: grid; gap: 16px; }
.co-card { background: #fff; border: 0; border-radius: 22px; padding: 18px 22px 20px; box-shadow: var(--shadow); margin: 0; min-width: 0; display: grid; gap: 12px; }
.co-card legend, .co-card > h2 { font-size: 1.3rem; font-weight: 700; color: var(--navy); padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.co-card legend b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--pink); color: #fff; font-size: 1rem; margin-right: 6px; }
.co-card legend + * { clear: both; }
.co-hint { color: #5d6b8c; font-size: .92rem; }
.co-check { display: flex; gap: 10px; align-items: center; font-weight: 600; cursor: pointer; }
.co-check input { width: 20px; height: 20px; accent-color: var(--pink); }
.co-pickup-note { background: #eef6ff; border-radius: 14px; padding: 10px 14px; color: var(--navy); }
.choice-list { display: grid; gap: 10px; }
.choice { position: relative; display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 12px; border: 2px solid #d6e3f5; border-radius: 16px; padding: 10px 14px; cursor: pointer; background: #fbfdff; transition: border-color .2s, background .2s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #eaf2ff; color: var(--blue); }
.choice__ico .ico { width: 26px; height: 26px; }
.choice__txt { display: grid; line-height: 1.3; }
.choice__txt small { color: #5d6b8c; }
.choice__price { font-weight: 700; color: var(--pink); font-size: 1.15rem; }
.choice__price em { font-style: normal; color: var(--green); }
.choice:has(input:checked) { border-color: var(--blue); background: #eef5ff; box-shadow: 0 0 0 3px rgba(31,111,224,.12); }
.choice:has(input:checked) .choice__ico { background: var(--blue); color: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid #ffb800; outline-offset: 2px; }
.choice.is-disabled { opacity: .45; cursor: not-allowed; }
.co-summary { position: sticky; top: 120px; background: #fff; border-radius: 22px; padding: 18px 20px 20px; box-shadow: var(--shadow); display: grid; gap: 12px; }
.co-summary h2 { font-size: 1.3rem; color: var(--navy); }
.co-items { display: grid; gap: 8px; }
.co-items li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed #e0e9f6; }
.co-items li:not(:has(img)) { grid-template-columns: 1fr auto; }
.co-items img { width: 60px; }
.co-items span { display: grid; line-height: 1.3; }
.co-items small { color: #5d6b8c; }
.co-edit { color: var(--blue); font-weight: 600; font-size: .95rem; }
.co-totals { display: grid; gap: 6px; margin: 0; }
.co-totals div { display: flex; justify-content: space-between; gap: 10px; }
.co-totals dt { color: #4a5880; } .co-totals dd { margin: 0; font-weight: 600; }
.co-total { border-top: 2px solid #e3ecf8; padding-top: 10px; margin-top: 4px; }
.co-total dt { font-weight: 700; color: var(--ink); } .co-total dd { color: var(--pink); font-size: 1.6rem; font-weight: 800; }
.cart-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }

.order-success { display: flex; gap: 22px; align-items: center; background: linear-gradient(135deg, #fff, #e8f8ec); border-radius: 24px; padding: 20px 24px; box-shadow: var(--shadow); margin-bottom: 18px; }
.order-success h2 { color: #128a3d; font-size: 1.6rem; }
.order-keep { color: #8a5a00; font-size: .92rem; margin-top: 6px; }
.parcel { position: relative; width: 96px; height: 96px; flex: none; }
.parcel__box { position: absolute; left: 8px; right: 8px; bottom: 6px; height: 58px; background: linear-gradient(180deg, #f2c27e, #d99a4c); border-radius: 8px; display: grid; place-items: center; color: #fff; animation: parcel-drop .7s cubic-bezier(.3,1.4,.5,1) both; }
.parcel__box .ico { width: 30px; height: 30px; color: #1a3a9e; }
.parcel__lid { position: absolute; left: 4px; right: 4px; top: 22px; height: 16px; background: #e8b06a; border-radius: 6px; transform-origin: left bottom; animation: parcel-lid .9s .5s ease both; z-index: 2; }
@keyframes parcel-drop { from { transform: translateY(-60px) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes parcel-lid { 0% { transform: rotate(-35deg) translateY(-10px); } 100% { transform: none; } }
.order-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.order-head h1 { font-size: 2rem; color: var(--navy); font-family: var(--font-display); letter-spacing: .03em; }
.muted-s { color: #6a7898; font-size: .92rem; }
.order-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { padding: 4px 14px; border-radius: 999px; font-weight: 700; background: #e7eef9; color: #3b4d78; }
.badge--awaiting_payment, .badge--reviewing { background: #fff1d6; color: #9a5b00; }
.badge--confirmed, .badge--packing { background: #e2efff; color: #1a4fb0; }
.badge--shipped, .badge--completed, .badge--pay-paid { background: #dff6e8; color: #0e6b38; }
.badge--cancelled, .badge--expired { background: #eceff4; color: #66728c; }
.badge--pay-pending { background: #fff1d6; color: #9a5b00; }
.order-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 6px; list-style: none; padding: 14px; margin: 0 0 18px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); }
.order-steps li { display: grid; justify-items: center; gap: 6px; text-align: center; color: #8592b0; font-weight: 600; font-size: .95rem; position: relative; }
.order-steps span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #e6edf7; }
.order-steps span .ico { width: 18px; height: 18px; }
.order-steps .is-done { color: #128a3d; } .order-steps .is-done span { background: var(--green); color: #fff; }
.order-steps .is-current { color: var(--navy); } .order-steps .is-current span { background: var(--pink); color: #fff; box-shadow: 0 0 0 5px rgba(236,36,112,.18); }
.order-ended { background: #fff; border-radius: 22px; padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 18px; border-left: 6px solid #9aa6bf; display: grid; gap: 4px; }
.pay-card { border: 3px solid #ffd43b; }
.pay-amount { font-size: 1.2rem; } .pay-amount b { color: var(--pink); font-size: 1.9rem; }
.pay-deadline { background: #fff6dd; border-radius: 12px; padding: 8px 12px; color: #7a5200; }
.bank-box { display: grid; gap: 4px; background: #f2f8ff; border-radius: 16px; padding: 14px 16px; }
.bank-box--pp { grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.bank-box--pp img { width: 200px; border-radius: 12px; background: #fff; padding: 6px; }
.bank-no { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 1.15rem; }
.bank-no strong { font-size: 1.35rem; letter-spacing: .04em; color: var(--navy); }
.slip-form { display: grid; gap: 10px; border-top: 1px dashed #d6e3f5; padding-top: 14px; }
.slip-form h3 { font-size: 1.15rem; color: var(--navy); }
.slip-drop { position: relative; display: grid; place-items: center; gap: 8px; border: 2px dashed #9fc0ea; border-radius: 16px; padding: 18px; text-align: center; color: var(--blue); font-weight: 600; cursor: pointer; background: #f8fbff; }
.slip-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.slip-drop:focus-within { outline: 3px solid #ffb800; }
.slip-drop img { max-height: 240px; width: auto; border-radius: 10px; }
.info-dl { display: grid; gap: 8px; margin: 0; }
.info-dl div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }
.info-dl dt { color: #6a7898; } .info-dl dd { margin: 0; }
.timeline { display: grid; gap: 10px; border-left: 3px solid #dbe6f5; padding-left: 16px; }
.timeline li { position: relative; display: grid; }
.timeline li::before { content: ""; position: absolute; left: -23px; top: 6px; width: 11px; height: 11px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px #fff; }
.timeline p { color: #4a5880; font-size: .95rem; }
@media (max-width: 900px) {
  .co-grid, .order-grid { grid-template-columns: 1fr; }
  .co-summary { position: static; }
  .bank-box--pp { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .info-dl div { grid-template-columns: 1fr; gap: 0; }
  .order-success { flex-direction: column; text-align: center; }
}

/* ไอคอนชุดใหม่ (สี่เหลี่ยมจัตุรัส พื้นโปร่งใส) */
.title-ico { width: 54px; height: 54px; }
.quick-card img { width: 58px; height: 58px; }
.why__list img { height: 70px; width: 70px; object-fit: contain; }
.service-icons img { width: 78px; height: 78px; object-fit: contain; }
.cond-list img[src*="d-tag"] { width: 96px; height: 96px; }
.fit-card__shop { width: 96px; height: 96px; }
/* มาสคอตแบบรูป (อัปโหลดจากหลังบ้าน) ให้คงสัดส่วน */
img.mascot { height: auto; }
/* หัวข้อ "โปรโมชั่นพิเศษ" ห้ามตัดกลางคำ และให้พอดีคอลัมน์ */
.hero--promo .display-title--xl { white-space: nowrap; font-size: clamp(2.3rem, 5vw, 4.3rem); }

/* ทางลัดหน้าแรก: ข้อความบรรทัดเดียวเสมอ (JS ย่อขนาดตัวอักษรให้พอดีอัตโนมัติ) */
.quick-card > span { min-width: 0; flex: 1; display: block; }
.quick-card b, .quick-card small { white-space: nowrap; display: block; overflow: hidden; }
.quick-card b { line-height: 1.3; }
@media (max-width: 1000px) { .quick-card img { width: 52px; height: 52px; } }
@media (max-width: 520px) {
  .quick-card { flex-direction: column; text-align: center; gap: 6px; padding: 12px 10px; }
  .quick-card img { width: 48px; height: 48px; }
  .quick-card > span { width: 100%; }
}
/* คอลัมน์เท่ากันเสมอ ไม่ขยายตามความยาวข้อความ */
.quick-links { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .quick-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* จอ 1001–1180px: 5 การ์ดแคบ → วางไอคอนไว้บนข้อความ ให้ตัวอักษรไม่ต้องย่อมาก */
@media (min-width: 1001px) and (max-width: 1180px) {
  .quick-card { flex-direction: column; text-align: center; gap: 6px; padding: 12px 10px; }
  .quick-card > span { width: 100%; }
}

/* แกลเลอรีหน้าสินค้า: วงกลมจุดเด่นต้องไม่บังป้ายสินค้า (รูปสินค้าชุดใหม่ขอบใสน้อยกว่าเดิม) */
.scene { gap: 6px; padding: 16px 16px 20px; }
.scene__products { margin: -4px 0 4px; }
.scene__products img { width: 45%; margin: 0 -1.5%; }
.scene .features { gap: 8px; flex-wrap: nowrap; }
.scene .features--mini .feature-bubble { width: 92px; height: 92px; font-size: .8rem; }
.scene .features--mini .feature-bubble img { width: 42px; }
@media (max-width: 520px) {
  .scene .features--mini .feature-bubble { width: 70px; height: 70px; font-size: .64rem; }
  .scene .features--mini .feature-bubble img { width: 30px; }
  .scene .popup-word--lg { font-size: 3.2rem; }
}

/* โปรโมชั่น: หัวป้ายขนาดไม่บังสินค้าใน Hero และไม่มีรูปสินค้าซ้ำในตาราง */
.hero--promo { padding-bottom: 64px; }
.promo-products { margin-bottom: 6px; }
.price-boards { margin-top: -18px; }
.price-board__body { grid-template-columns: 1fr; }
.price-board { padding: 18px 22px 26px; }
.price-rows li:last-child { padding-left: 84px; }
.price-board__mascot { width: 120px; left: -22px; bottom: -30px; }
@media (max-width: 760px) {
  .promo-products { margin: 0 auto 8px; }
  .price-boards { margin-top: 26px; gap: 48px; }
  .price-rows li:last-child { padding-left: 58px; }
  .price-board__mascot { width: 84px; left: -10px; bottom: -24px; }
}

/* โปรโมชั่น (รอบ 2): รูปสินค้าในตาราง 1 รูป + สินค้าใน Hero วางบนโต๊ะไม้ */
.promo-products { margin-bottom: -52px; }
.price-board__body { grid-template-columns: 32% 1fr; align-items: center; }
.price-board__stack { align-self: start; padding-top: 18px; }
.price-board__stack img { width: 100%; margin: 0; }
.price-rows li:last-child { padding-left: 0; }
.price-board { padding: 18px 16px 22px; }
.price-board__mascot { width: 120px; left: -20px; bottom: -28px; }
@media (max-width: 760px) {
  .promo-products { margin: 0 auto -34px; }
  .price-boards { margin-top: 34px; }
  .price-board__body { grid-template-columns: 30% 1fr; }
  .price-rows li:last-child { padding-left: 0; }
  .price-board__mascot { width: 80px; left: -10px; bottom: -22px; }
}

/* ไอคอนแถวข้อมูลหน้าติดต่อ (ไฟล์สี่เหลี่ยมจัตุรัส) */
.info-item img { width: 76px; height: 76px; object-fit: contain; }
