/* =====================================================================
   Mint Baby — soft pastel theme
   ===================================================================== */
:root {
  --bg: #f4fbf8;
  --surface: #ffffff;
  --surface-2: #eef8f4;
  --text: #24413a;
  --text-2: #3f5d55;
  --muted: #7b948d;
  --line: #dcefe8;
  --line-strong: #c8e6dc;
  --primary: #178a74;
  --primary-strong: #0f7462;
  --primary-ink: #ffffff;
  --primary-soft: #d9f5ee;
  --accent: #ff8fab;
  --accent-strong: #d9577a;
  --accent-soft: #ffe4ec;
  --price: #e05a7f;
  --sale: #ff7a9c;
  --success: #178a74; --success-soft: #d9f5ee;
  --danger: #cf4a64; --danger-soft: #ffe4ea;
  --info: #4b6fd1; --info-soft: #e5ebff;
  --warning: #9b6a00; --warning-soft: #fff3cf;
  --radius: 26px;
  --radius-sm: 16px;
  --radius-pill: 99px;
  --shadow: 0 10px 30px -12px rgba(23, 138, 116, .22);
  --panel-border: 1px solid #e3f3ed;
  --font: 'Noto Sans Thai Looped', 'Noto Sans Thai', system-ui, sans-serif;
  --font-head: 'Mali', 'Noto Sans Thai Looped', sans-serif;
  --container: 1160px;
  --ph-bg: linear-gradient(135deg, #e3f7f0, #fdeaf0);
  --ad-bg: linear-gradient(120deg, #ffb3c6, #c6b8ff);
  --ad-ink: #3d2a4f;
  --lav: #ece6ff; --butter: #fff4cc; --peach: #ffe4ea; --sky: #e1f1ff; --mint: #d9f5ee;
}
body { padding-bottom: 0; }
h1, h2, h3 { font-weight: 700; color: #1d3a33; }
.btn { border-radius: 99px; border: 0; }
.btn-primary { background: linear-gradient(135deg, #1fa287, #178a74); box-shadow: 0 8px 20px -8px rgba(23,138,116,.6); }
.btn-outline { border: 2px solid var(--primary); }
.input { border-radius: 16px; border-color: var(--line-strong); background: #fbfefd; }
.chip { border: 0; background: #fff; box-shadow: 0 2px 8px -4px rgba(23,138,116,.3); }
.panel { box-shadow: var(--shadow); }
::selection { background: var(--accent-soft); }

/* header */
.mb-ann { background: linear-gradient(90deg, var(--peach), var(--lav), var(--sky)); color: #5b3e64; text-align: center; padding: 7px 16px; font-size: 14px; font-weight: 600; }
.mb-head { position: sticky; top: 12px; z-index: 30; padding: 0 0 4px; margin-top: 12px; }
.mb-bar { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px); border-radius: 99px; padding: 10px 12px 10px 22px; box-shadow: 0 10px 30px -14px rgba(23,138,116,.35); border: 1px solid #e3f3ed; }
.mb-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--primary-strong); }
.mb-logo:hover { text-decoration: none; }
.mb-leaf { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); font-size: 21px; }
.mb-nav { display: flex; gap: 2px; margin-inline: auto; }
.mb-nav a { padding: 8px 16px; border-radius: 99px; color: var(--text-2); font-weight: 600; font-size: 15px; }
.mb-nav a:hover { background: var(--surface-2); text-decoration: none; }
.mb-nav a.on { background: var(--primary-soft); color: var(--primary-strong); }
.mb-tools { display: flex; gap: 8px; align-items: center; }
.mb-round, .mb-find summary { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--primary-strong); font-weight: 700; font-size: 18px; cursor: pointer; position: relative; list-style: none; }
.mb-find summary::-webkit-details-marker { display: none; }
.mb-round:hover { text-decoration: none; background: var(--primary-soft); }
.mb-find { position: relative; }
.mb-find form { position: absolute; right: 0; top: 54px; width: min(340px, 80vw); background: #fff; padding: 10px; border-radius: 22px; box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.mb-cart { background: var(--primary); color: #fff; }
.mb-cart:hover { background: var(--primary-strong); }
.mb-cart b, .mb-tabbar b { position: absolute; top: -4px; right: -4px; background: var(--accent); color: #fff; border: 2px solid #fff; border-radius: 99px; min-width: 22px; height: 22px; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.mb-flash:empty { display: none; }
.mb-flash { padding-top: 16px; }

/* hero */
.mb-hero { padding: 40px 0 10px; overflow: hidden; }
.mb-hero-in { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; }
.mb-pill { display: inline-block; background: #fff; color: var(--primary-strong); padding: 6px 16px; border-radius: 99px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.mb-hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.15; margin: 18px 0 14px; }
.mb-hero p { font-size: 18px; color: var(--text-2); max-width: 520px; }
.mb-hero-art { position: relative; height: 400px; }
.mb-blob { position: absolute; border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; animation: mbmorph 10s ease-in-out infinite; }
.b1 { inset: 30px 40px 20px 30px; background: var(--mint); }
.b2 { width: 170px; height: 170px; right: 0; top: 0; background: var(--peach); animation-delay: -3s; }
.b3 { width: 130px; height: 130px; left: 0; bottom: 10px; background: var(--lav); animation-delay: -6s; }
@keyframes mbmorph { 50% { border-radius: 60% 40% 35% 65% / 55% 60% 40% 45%; transform: rotate(8deg); } }
.mb-hero-face { position: absolute; inset: 0; display: grid; place-items: center; font-size: 150px; }
.mb-bubble { position: absolute; width: 74px; height: 74px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 34px; box-shadow: var(--shadow); animation: mbfloat 5s ease-in-out infinite; }
.q1 { left: 12%; top: 8%; } .q2 { right: 14%; top: 42%; animation-delay: -1.2s; } .q3 { left: 4%; top: 52%; animation-delay: -2.4s; } .q4 { right: 32%; bottom: 0; animation-delay: -3.6s; }
@keyframes mbfloat { 50% { transform: translateY(-14px); } }

/* modules */
.mb-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 26px; }
.mb-mod-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 24px; color: var(--text); transition: transform .15s; }
.mb-mod-card:hover { text-decoration: none; transform: translateY(-4px); }
.mb-mod-card small { display: block; color: var(--muted); font-size: 13px; }
.mb-mod-card b { font-family: var(--font-head); font-size: 17px; }
.mb-mod-ic { width: 58px; height: 58px; flex: none; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 28px; box-shadow: 0 6px 14px -8px rgba(0,0,0,.25); }
.c-lav { background: var(--lav); } .c-butter { background: var(--butter); } .c-peach { background: var(--peach); } .c-sky { background: var(--sky); } .c-mint { background: var(--mint); }
.mb-ads { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 26px; }
.mb-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.mb-sec-head .section-title { margin: 0; }
.mb-sec-head a { font-weight: 600; background: var(--primary-soft); padding: 6px 16px; border-radius: 99px; }
.mb-tabs { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.mb-tabs button { border: 0; background: #fff; padding: 8px 18px; border-radius: 99px; font: inherit; font-weight: 600; color: var(--text-2); cursor: pointer; white-space: nowrap; box-shadow: 0 2px 10px -6px rgba(23,138,116,.4); }
.mb-tabs button.on { background: var(--primary); color: #fff; }
.mb-cell[hidden] { display: none; }
.mb-cell > .mb-card { height: 100%; }

/* product card */
.mb-card { background: #fff; border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.mb-card:hover { transform: translateY(-5px); box-shadow: 0 18px 36px -14px rgba(23,138,116,.35); }
.mb-card-img { position: relative; display: block; border-radius: 20px; overflow: hidden; }
.mb-disc { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; padding: 3px 11px; border-radius: 99px; }
.mb-out { position: absolute; inset: auto 10px 10px; text-align: center; background: rgba(255,255,255,.9); border-radius: 99px; padding: 4px; font-weight: 700; color: var(--muted); font-size: 13px; }
.mb-card-body { padding: 12px 8px 6px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mb-mod { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mb-card h3 { font-family: var(--font); font-size: 15.5px; font-weight: 600; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mb-card h3 a { color: var(--text); }
.mb-card-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mb-card .price { font-size: 19px; }
.mb-card .price-old { display: block; font-size: 12px; }
.mb-plus { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary-strong); display: grid; place-items: center; font-size: 24px; font-weight: 700; transition: transform .2s; }
.mb-card:hover .mb-plus { background: var(--primary); color: #fff; transform: rotate(90deg); text-decoration: none; }

.mb-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: linear-gradient(120deg, var(--mint), var(--sky)); padding: 26px; border-radius: 30px; }
.mb-promise div { display: grid; gap: 2px; background: rgba(255,255,255,.7); border-radius: 22px; padding: 18px; }
.mb-promise span { font-size: 30px; } .mb-promise small { color: var(--muted); }

/* pages */
.gallery-main { border: 0; box-shadow: var(--shadow); }
.buy-form { background: linear-gradient(160deg, var(--mint), #fff 70%); }
.news-card { border: 0; }
.filter-link { border-radius: 99px; }
.table th { color: var(--primary-strong); }
.ship-option { border-radius: 20px; }
.ad { box-shadow: var(--shadow); }
.empty { border: 0; box-shadow: var(--shadow); }

/* footer */
.mb-foot { margin-top: 70px; padding-bottom: 24px; }
.mb-foot-card { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 26px; background: #fff; border-radius: 34px; padding: 34px; box-shadow: var(--shadow); }
.mb-foot h4 { color: var(--primary-strong); font-size: 16px; }
.mb-foot-card > div > a:not(.mb-logo) { display: block; color: var(--text-2); padding: 3px 0; }
.mb-socials { display: flex; gap: 8px; }
.mb-socials a { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.mb-socials a:hover { text-decoration: none; background: var(--primary-soft); }
.mb-copy { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.mb-tabbar { display: none; }

@media (max-width: 1080px) {
  .mb-hero-in { grid-template-columns: 1fr; }
  .mb-hero-art { height: 280px; }
  .mb-nav { overflow-x: auto; scrollbar-width: none; }
  .mb-nav a { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .mb-foot-card { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .mb-nav { display: none; }
  .mb-tools { margin-left: auto; }
  .mb-head { top: 8px; margin-top: 8px; }
  .mb-bar { padding: 7px 8px 7px 14px; }
  .mb-logo { font-size: 19px; } .mb-leaf { width: 34px; height: 34px; font-size: 17px; }
  .mb-round, .mb-find summary { width: 40px; height: 40px; }
  .mb-cart, a.mb-round[href*="account"] { display: none; }
  .mb-hero { padding-top: 20px; }
  .mb-hero-art { height: 220px; }
  .mb-hero-face { font-size: 100px; }
  .mb-bubble { width: 56px; height: 56px; font-size: 26px; }
  .mb-mods { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mb-mod-card { flex-direction: column; text-align: center; padding: 14px 10px; }
  .mb-mod-card small { display: none; }
  .mb-card { padding: 7px; border-radius: 20px; }
  .mb-card .price { font-size: 16px; }
  .mb-plus { width: 34px; height: 34px; font-size: 20px; }
  .mb-promise { grid-template-columns: 1fr; padding: 16px; }
  .mb-foot-card { grid-template-columns: 1fr; padding: 24px; }
  .mb-tabbar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); border-radius: 26px; box-shadow: 0 10px 30px -10px rgba(23,138,116,.45); padding: 6px; }
  .mb-tabbar a { flex: 1; display: grid; justify-items: center; font-size: 11.5px; color: var(--muted); padding: 5px 0; border-radius: 18px; font-weight: 600; }
  .mb-tabbar a span { font-size: 21px; position: relative; line-height: 1.2; }
  .mb-tabbar a.on { background: var(--primary-soft); color: var(--primary-strong); }
  .mb-tabbar a:hover { text-decoration: none; }
  .mb-tabbar b { top: -6px; right: -12px; }
}
