:root {
  --bg: #faf7f1;
  --ink: #23281f;
  --muted: #71705f;
  --line: #e7e0cf;
  --green: #0b7a2e;
  --green-dark: #0a5723;
  --green-soft: #eaf3e2;
  --yellow: #ffd24d;
  --yellow-soft: #fff3cd;
  --surface: #f3efe4;
  --price: #d8432a;
  --shadow: 0 10px 26px rgba(64, 56, 28, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Thai", system-ui, sans-serif;
  letter-spacing: 0;
}

img,
svg {
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  background: rgba(250, 247, 241, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  white-space: nowrap;
}

.brand strong {
  color: var(--green);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(11, 122, 46, 0.25);
  font-size: 15px;
  font-weight: 800;
  transform: rotate(-4deg);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: #314039;
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--green);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.header-action {
  padding: 0 16px;
  color: #fff;
  background: var(--green);
}

svg {
  width: 19px;
  height: 19px;
}

svg path,
svg circle,
svg rect {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: center;
  gap: clamp(38px, 6vw, 82px);
  min-height: min(640px, calc(100vh - 128px));
  padding: clamp(34px, 5vw, 60px) clamp(20px, 5vw, 72px) 48px;
  background:
    radial-gradient(ellipse at 78% 12%, rgba(255, 210, 77, 0.16), transparent 52%),
    linear-gradient(135deg, #0b5c26 0%, #0d6b2c 55%, #073f1a 100%);
  color: #fff;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--green);
}

.mark {
  background: linear-gradient(to bottom, transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
}

.hero h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.15;
  font-weight: 800;
}

.hero p {
  max-width: 560px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.85;
}

.hero-note {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.hero-note strong {
  color: var(--green-dark);
  font-weight: 700;
}

/* ── hero โทนเข้ม ── */
.hero h1 {
  color: #fff;
}

.hero-copy > p {
  color: rgba(255, 255, 255, 0.82);
}

.hero .eyebrow {
  color: #ffd24d;
}

.hero .eyebrow::before {
  background: #ffd24d;
}

.hero .mark {
  display: inline-block;
  padding: 1px 10px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: 6px;
  transform: rotate(-1deg);
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 4px;
  max-width: 520px;
  margin-top: 26px;
  padding: 6px 6px 6px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
}

.hero-search svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: var(--muted);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 10px;
  border: none;
  outline: none;
  font: inherit;
  font-size: 15px;
  background: transparent;
  color: var(--ink);
}

.hero-search button {
  border: none;
  border-radius: 9px;
  padding: 11px 20px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: var(--green);
  cursor: pointer;
}

.hero-search button:hover {
  background: var(--green-dark);
}

.hero-platforms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.hero-platform {
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  color: #fff;
  font-weight: 600;
}

.hero-platform.soon {
  background: transparent;
  border-style: dashed;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.hero .hero-note {
  color: rgba(255, 255, 255, 0.72);
}

.hero .hero-note strong,
.hero .hero-note a {
  color: #ffd24d;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
}

.button.primary {
  color: #fff;
  background: var(--green-dark);
  border-bottom: 3px solid #063d18;
  box-shadow: none;
}

.button.primary:hover {
  background: var(--green);
}

.button.secondary {
  color: var(--green-dark);
  background: #fff;
  border-color: var(--line);
  border-bottom-width: 3px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.trust-row div {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  color: #31523c;
  background: var(--green-soft);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
}

.trust-row svg {
  width: 17px;
  height: 17px;
  color: var(--green);
}

.shelf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.mini-product {
  min-height: 220px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(var(--lift, 0)) rotate(var(--tilt, 0deg));
}

.mini-product:nth-child(odd) {
  --tilt: -0.6deg;
}

.mini-product:nth-child(even) {
  --tilt: 0.5deg;
}

.mini-product:nth-child(2),
.mini-product:nth-child(5) {
  --lift: 30px;
}

.mini-product:nth-child(3) {
  --lift: -18px;
}

.mini-product img {
  width: 100%;
  height: 126px;
  object-fit: cover;
  background: var(--surface);
  border-radius: 6px;
}

.mini-product.tall img {
  height: 170px;
}

.mini-product h3,
.deal-card h3 {
  margin: 12px 0 3px;
  font-size: 15px;
  line-height: 1.35;
}

.mini-product p,
.deal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mini-product strong,
.deal-card strong {
  display: block;
  margin-top: 8px;
  color: var(--price);
  font-size: 18px;
  font-weight: 800;
}

.section {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 5vw, 72px);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.section h2,
.notify h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.2;
}

.section-head a,
.section-head span {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
  border-color: #9ed6ae;
  transform: translateY(-2px);
}

.category-card span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: #fff;
  border-radius: 8px;
  font-size: 20px;
}

#deals {
  background: #f6faf7;
}

.deal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.deal-card {
  position: relative;
  min-width: 0;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.deal-card.featured {
  grid-column: span 2;
}

.deal-card.featured .deal-thumb {
  aspect-ratio: 2.4;
  max-height: 210px;
  width: 100%;
}

.deal-card.featured h3 {
  font-size: 17px;
}

.deal-card img {
  width: 100%;
  aspect-ratio: 1.16;
  object-fit: cover;
  border-radius: 6px;
  background: var(--surface);
}

.discount {
  position: absolute;
  top: 20px;
  left: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  color: #2c2100;
  background: var(--yellow);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(-2.5deg);
  box-shadow: 0 3px 8px rgba(64, 56, 28, 0.18);
}

.discount.off {
  color: #fff;
  background: var(--price);
}

.deal-card div {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.deal-card strong {
  margin: 0;
}

.deal-card del,
.deal-card small {
  color: var(--muted);
}

a.deal-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.deal-card:hover {
  transform: translateY(-3px);
  border-color: var(--green-dark);
  box-shadow: 0 10px 24px rgba(7, 135, 45, 0.12);
}

.deal-thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  aspect-ratio: 1.6;
  padding: 10px 12px;
  background: var(--tint, var(--surface));
  border-radius: 8px;
}

.thumb-word {
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 800;
  line-height: 1.05;
  color: var(--tint-ink, #8b8268);
  opacity: 0.4;
  letter-spacing: 0.5px;
}

.thumb-emoji {
  position: absolute;
  top: 9px;
  right: 11px;
  font-size: 19px;
}

.cat-beauty      { --tint: #f9e7ec; --tint-ink: #b45c7c; }
.cat-electronics { --tint: #e5eef8; --tint-ink: #4a76b8; }
.cat-home        { --tint: #ebf3e2; --tint-ink: #5e8c4a; }
.cat-fashion     { --tint: #fbf0dc; --tint-ink: #bd8430; }
.cat-auto        { --tint: #ecebf4; --tint-ink: #6c64a8; }
.cat-other       { --tint: #f1ede2; --tint-ink: #8b8268; }

.deal-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(2 * 1.35em);
}

.deal-shop {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.deal-cta {
  margin-top: auto;
  padding-top: 10px;
  color: #ee4d2d;
  font-size: 12px;
  font-weight: 700;
}

.deal-note {
  margin: -12px 0 24px;
  color: var(--muted);
  font-size: 13px;
}

.deal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.deal-error,
.deal-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.deal-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

#deal-search {
  flex: 1 1 220px;
  max-width: 320px;
  font: inherit;
  font-size: 14px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

#deal-search:focus {
  outline: 2px solid var(--green-dark);
  outline-offset: 1px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: inherit;
  border-radius: 999px;
  padding: 6px 14px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--green-dark);
}

.chip.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.deal-meta {
  margin: 4px 0 0 !important;
  color: var(--muted);
  font-size: 12px;
}

a.mini-product {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.mini-product:hover h3 {
  text-decoration: underline;
}

.mini-thumb {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  aspect-ratio: 1.15;
  padding: 8px 10px;
  background: var(--tint, var(--surface));
  border-radius: 6px;
}

.mini-thumb .thumb-word {
  font-size: 19px;
}

.mini-thumb .thumb-emoji {
  top: 7px;
  right: 8px;
  font-size: 15px;
}

.mini-product img {
  width: 100%;
  aspect-ratio: 1.15;
  object-fit: cover;
  border-radius: 6px;
}

.category-card small {
  margin-left: 4px;
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.disclosure {
  margin-top: 16px;
  padding: 12px 14px;
  background: #f2f9f4;
  border: 1px solid #dcebe0;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.6;
}

/* ── หน้าเนื้อหา (เกี่ยวกับเรา / นโยบาย / เงื่อนไข / disclosure) ── */
.page-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 64px) 20px;
}

.page-main h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 4vw, 34px);
  line-height: 1.25;
}

.page-updated {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.page-main h2 {
  margin: 30px 0 10px;
  font-size: 19px;
}

.page-main p,
.page-main li {
  margin: 0 0 12px;
  line-height: 1.85;
}

.page-main ul,
.page-main ol {
  margin: 0 0 12px;
  padding-left: 24px;
}

.page-main a {
  color: var(--green);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-links a {
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}

.how p {
  margin: 16px 0 0;
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.how ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.how li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.how li::before {
  content: counter(step);
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
}

.names {
  background: #142017;
  color: #fff;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.name-grid article {
  padding: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.name-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
  font-size: 20px;
}

.name-grid span {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.7;
}

.notify {
  display: grid;
  grid-template-columns: auto 1fr minmax(360px, 0.9fr);
  gap: 22px;
  align-items: center;
  margin: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 72px) clamp(48px, 7vw, 88px);
  padding: clamp(24px, 4vw, 36px);
  color: #102018;
  background: var(--yellow-soft);
  border: 1px solid #f2dd90;
  border-radius: 8px;
}

.mail-visual {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  background: #fff;
  border-radius: 8px;
}

.mail-visual svg {
  width: 62px;
  height: 62px;
}

.notify p {
  margin: 8px 0 0;
  color: #5a573f;
  line-height: 1.7;
}

.notify form {
  display: flex;
  position: relative;
  gap: 8px;
}

.notify input,
.notify button {
  height: 50px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
}

.notify input {
  min-width: 0;
  flex: 1;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #e0cc80;
}

.notify button {
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  border: 0;
  font-weight: 800;
  cursor: pointer;
}

.notify button:disabled {
  cursor: default;
  opacity: 0.82;
}

.form-status {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  margin: 0;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.6;
}

.site-footer p {
  margin: 0;
}

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

.coming-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 199, 58, 0.22), transparent 28%),
    radial-gradient(circle at 82% 72%, rgba(7, 135, 45, 0.16), transparent 32%),
    #ffffff;
}

.coming-main {
  position: relative;
  display: grid;
  min-height: calc(100vh - 68px);
  place-items: center;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
}

.coming-main::before,
.coming-main::after {
  content: "";
  position: absolute;
  width: clamp(180px, 22vw, 320px);
  height: clamp(180px, 22vw, 320px);
  border: 1px solid rgba(7, 135, 45, 0.1);
  border-radius: 999px;
  pointer-events: none;
}

.coming-main::before {
  left: clamp(18px, 7vw, 118px);
  bottom: clamp(76px, 16vh, 170px);
  background: rgba(255, 199, 58, 0.08);
}

.coming-main::after {
  top: clamp(70px, 14vh, 150px);
  right: clamp(22px, 8vw, 128px);
  background: rgba(7, 135, 45, 0.06);
}

.coming-card {
  position: relative;
  z-index: 2;
  width: min(100%, 680px);
  padding: clamp(28px, 5vw, 56px);
  text-align: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 24px 70px rgba(19, 65, 35, 0.14);
  backdrop-filter: blur(18px);
}

.coming-brand {
  justify-content: center;
}

.coming-page .brand-mark {
  border-radius: 14px;
}

.coming-domain {
  margin: 28px 0 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
}

.coming-card h1 {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(56px, 10vw, 108px);
  line-height: 0.95;
  font-weight: 800;
}

.coming-copy {
  max-width: 520px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.8;
}

.tiny-shelf {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.tiny-shelf span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  font-size: 22px;
}

.coming-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 32px 0 0;
  padding: 0 16px;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
}

.coming-notify {
  display: block;
  max-width: 480px;
  margin: 34px auto 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.coming-notify form {
  display: flex;
  position: relative;
  gap: 8px;
}

.coming-notify input,
.coming-notify button {
  height: 52px;
}

.coming-footer {
  padding: 0 20px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.coming-footer p {
  margin: 0;
}

.floating-deal {
  position: absolute;
  z-index: 1;
  display: grid;
  min-width: 76px;
  height: 48px;
  place-items: center;
  color: var(--green-dark);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-weight: 800;
  animation: deal-float 5s ease-in-out infinite;
}

.deal-a {
  top: 20%;
  left: 12%;
}

.deal-b {
  right: 13%;
  top: 28%;
  animation-delay: -1.4s;
}

.deal-c {
  right: 20%;
  bottom: 18%;
  color: #2c2100;
  background: var(--yellow);
  animation-delay: -2.8s;
}

.deal-d {
  left: 19%;
  bottom: 27%;
  min-width: 54px;
  color: var(--ink);
  animation-delay: -3.5s;
}

.deal-e {
  top: 52%;
  right: 10%;
  min-width: 66px;
  color: var(--green-dark);
  background: var(--green-soft);
  animation-delay: -0.7s;
}

.bubble-items {
  position: absolute;
  z-index: 1;
  width: 210px;
  height: 210px;
  pointer-events: none;
}

.bubble-left {
  left: clamp(72px, 10vw, 160px);
  bottom: clamp(118px, 19vh, 200px);
}

.bubble-right {
  right: clamp(56px, 8vw, 124px);
  top: clamp(112px, 17vh, 185px);
}

.bubble-items span {
  position: absolute;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(220, 232, 223, 0.9);
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(19, 65, 35, 0.08);
  font-size: 21px;
}

.bubble-items span:nth-child(1) {
  left: 18px;
  top: 36px;
}

.bubble-items span:nth-child(2) {
  right: 18px;
  top: 64px;
}

.bubble-items span:nth-child(3) {
  left: 72px;
  bottom: 18px;
}

.bubble-right span:nth-child(1) {
  left: 28px;
  top: 26px;
}

.bubble-right span:nth-child(2) {
  right: 8px;
  top: 78px;
}

.bubble-right span:nth-child(3) {
  left: 82px;
  bottom: 10px;
}

@keyframes deal-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-16px);
  }
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
    padding-block: 14px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    overflow-x: auto;
  }

  .hero,
  .how,
  .notify {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-bottom: 42px;
  }

  .hero h1 {
    max-width: 14ch;
  }

  .category-grid,
  .deal-grid,
  .name-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notify form {
    max-width: 560px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 14px;
  }

  .header-action {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-actions,
  .button,
  .notify form {
    width: 100%;
  }

  .shelf,
  .category-grid,
  .deal-grid,
  .name-grid {
    grid-template-columns: 1fr;
  }

  .mini-product:nth-child(n) {
    transform: none;
  }

  .mini-product,
  .mini-product.tall {
    min-height: 0;
  }

  .mini-product img,
  .mini-product.tall img {
    height: 190px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .notify {
    margin-inline: 20px;
  }

  .notify form {
    flex-direction: column;
  }

  .coming-main {
    min-height: calc(100vh - 64px);
    padding: 20px;
  }

  .coming-card {
    padding: 28px 20px 34px;
  }

  .coming-card h1 {
    font-size: 58px;
  }

  .coming-notify form {
    flex-direction: column;
  }

  .floating-deal {
    min-width: 58px;
    height: 38px;
    font-size: 13px;
  }

  .deal-a {
    top: 8%;
    left: 8%;
  }

  .deal-b {
    top: 12%;
    right: 6%;
  }

  .deal-c {
    right: 10%;
    bottom: 9%;
  }

  .deal-d,
  .deal-e,
  .bubble-items {
    display: none;
  }
}

/* ── การ์ดดีลแนวนอนแบบกะทัดรัด ── */
.deal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deal-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.deal-tile {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  font-size: 30px;
  background: var(--tint, var(--surface));
  border-radius: 10px;
  overflow: hidden;
}

.deal-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-card .deal-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  gap: 0;
  margin-top: 0;
}

.deal-body h3 {
  margin: 0 0 2px;
}

.deal-body .deal-shop {
  margin: 0;
}

.deal-card .price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.price-row strong {
  margin: 0;
  font-size: 17px;
}

.off-tag {
  padding: 1px 7px;
  background: var(--price);
  color: #fff;
  border-radius: 5px;
  font-size: 11.5px;
  font-weight: 800;
}

.deal-card .deal-meta {
  margin: 3px 0 0 !important;
}

.deal-card .deal-cta {
  margin-top: 8px;
  padding: 5px 12px;
  width: fit-content;
  background: #ee4d2d;
  color: #fff;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.deal-card:hover .deal-cta {
  background: #d63f20;
}

/* ── stats bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 22px clamp(20px, 5vw, 72px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.stats-bar div {
  text-align: center;
}

.stats-bar strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--green-dark);
}

.stats-bar span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ── 3 อันดับขายดี ── */
.hit-list {
  display: grid;
  gap: 10px;
}

.hit-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hit-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hit-rank {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.hit-rank.r2 { background: #e4e4e4; }
.hit-rank.r3 { background: #f0c9a4; }

.hit-tile {
  width: 54px;
  height: 54px;
  font-size: 24px;
}

.hit-body {
  flex: 1;
  min-width: 0;
}

.hit-body h3 {
  margin: 0;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hit-body p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.hit-sold {
  flex-shrink: 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 700;
}

.hit-price {
  flex-shrink: 0;
  color: var(--price);
  font-size: 16px;
  font-weight: 800;
}

/* ── footer เข้มแบบ 4 คอลัมน์ ── */
.site-footer.rich {
  display: block;
  padding: 40px clamp(20px, 5vw, 72px) 26px;
  background: #182119;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}

.footer-brand .brand {
  color: #fff;
}

.footer-brand .brand strong {
  color: #7ddf9a;
}

.footer-brand p {
  margin: 12px 0 0;
  max-width: 300px;
  font-size: 13px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col h4 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.footer-col a:hover {
  color: #ffd24d;
}

.footer-pill {
  width: fit-content;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 99px;
  color: #fff;
  font-size: 12.5px;
}

.footer-pill.soon {
  background: transparent;
  border-style: dashed;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer.rich .footer-disclosure {
  margin: 30px 0 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 12.5px;
  line-height: 1.7;
}

.site-footer.rich .footer-bottom {
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12.5px;
}

@media (max-width: 1100px) {
  .deal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hit-sold {
    display: none;
  }
}

@media (max-width: 560px) {
  .deal-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
