/* 11/11 owner's list for daicto.com (via the chat room). Colours + sizes = ChatGPT (reels/marketing/montri_1109/dc_fix_1111/plan.json),
   all text/background pairs pass WCAG AA. Loaded after style.css + store.css on every page. */
:root { --ink: #1F2933; --mut: #475569; --line: #F5D6E1; --soft: #FDEEF3; --green: #B8336A; --price: #9D342B; }
body { background: #FFFAFC; color: var(--ink); }

/* grey text at the top and bottom stands out more */
.announce { background: #C2366F; color: #fff; font-size: 14px; padding: 10px 16px; }
.announce a { color: #FFD3E4; }
.nav { font-size: 17px; font-weight: 600; gap: 30px; }
.nav a { color: var(--ink); }
.foot { background: #8E2457 !important; color: #FFF0F5 !important; font-size: 15px; }
.foot h4 { color: #fff; font-size: 16px; }
.foot p, .foot .copy { color: #FFF0F5 !important; }
.foot a { color: #FFD3E4 !important; }
.foot .foot-btns a.ln, .foot .foot-btns a.tel { color: #8E2457 !important; }
.foot .foot-btns a.ln { color: #fff !important; }
/* 11/11 item 17: Montri's own LINE QR in the footer (same picture as on the contact page) */
/* 11/11 round 3 (Montri: "QR ไม่ได้ทรง … ขยับขึ้นมา footer จะได้สั้น"): own grid cell under บริการลูกค้า / นโยบาย, always square */
.foot-grid > div:first-child, .foot-grid > div:nth-child(4) { grid-row: span 2; }
.foot-grid > .foot-qr { grid-column: 2 / span 2; grid-row: 2; align-self: start; }
.foot-qr { display: flex; gap: 16px; align-items: center; background: rgba(255,255,255,.06); border-radius: 14px; padding: 14px; }
.foot-qr a { flex: 0 0 auto; line-height: 0; }
.foot-qr img { width: 128px; height: 128px; max-width: none; aspect-ratio: 1 / 1; object-fit: contain; background: #fff; padding: 6px; border-radius: 10px; }
.foot-qr p { margin: 0; font-size: 14px; line-height: 1.6; }
.foot-qr b { color: #fff; }
.foot .copy { margin-top: 20px; }
.disclaimer, .muted, .why-grid span { color: var(--mut); }
/* 11/11 round 3: the 4 "ทำไมต้อง DAICTO" headings bigger and stronger */
.why-grid div { padding: 26px 18px; border-radius: 14px; }
.why-grid b { font-size: 21px; font-weight: 700; color: var(--green); margin-bottom: 8px; }
.why-grid span { font-size: 15px; line-height: 1.6; }
/* 11/11 round 3: the info strip is information, not buttons — no boxes, bigger icon + text, thin dividers */
.trust { gap: 0; padding: 30px 0 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 26px; margin-bottom: 14px; }
.trust div { background: none; border-radius: 0; padding: 8px 14px; font-size: 17px; font-weight: 700; color: var(--ink); display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: default; }
.trust div + div { border-left: 1px solid var(--line); }
.trust span { margin: 0; font-size: 30px; line-height: 1; }
.disclaimer { font-size: 14px; }

/* buttons */
.btn-dark { background: var(--green); border-color: var(--green); color: #fff; }
.btn-dark:hover { background: #8E2457; }
.btn-out { border-color: #D6457F; color: var(--green); }
.more a { border-color: #D6457F; color: var(--green); font-weight: 600; }

/* bigger prices */
.price { color: var(--price); font-size: 26px; font-weight: 700; }
.price small { font-size: 15px; font-weight: 600; color: var(--mut); }
.price.big { font-size: 30px; }

/* every product picture the same size */
.pimg.sq { aspect-ratio: 1 / 1; background: #FFF5F8; border-radius: 14px; }
.pimg.sq img { object-fit: contain; }
.grid4.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.prod { text-align: center; }
.pname { display: block; font-size: 19px; font-weight: 600; color: var(--ink); margin-top: 14px; text-decoration: none; }
.pshort { margin: 4px 0 6px; color: var(--mut); font-size: 15px; }
.prod .price { margin: 4px 0 12px; }
.pbtn { display: inline-block; padding: 11px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; }
.pg-main, .qv-main { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; background: #FFF5F8; border-radius: 14px; }
.qv-th, .pg-th { flex-wrap: wrap; }
.qv-th img, .pg-th img { width: 72px; height: 72px; object-fit: contain; background: #FFF5F8; border-radius: 8px; }
.page-imgs img { aspect-ratio: 1 / 1; object-fit: contain; background: #FFF5F8; }

/* 11/11 drag / swipe / arrows on every product picture */
.sw { position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pimg.sq.sw > a { display: block; width: 100%; height: 100%; }
.sw img { -webkit-user-drag: none; transition: transform .25s ease; cursor: grab; }
.sw img:active { cursor: grabbing; }
.sw-a { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; padding: 0 0 3px; box-shadow: 0 2px 8px rgba(31,41,51,.12); }
.sw-a.prev { left: 8px; } .sw-a.next { right: 8px; }
.sw-a:hover { background: #fff; border-color: var(--green); color: var(--green); }
.sw-n { position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 12px; font-weight: 600; background: rgba(31,41,51,.72); color: #fff; padding: 2px 9px; border-radius: 999px; pointer-events: none; }
.qv-th, .pg-th { cursor: pointer; }
.qv-th img.on, .pg-th img.on { outline: 2px solid var(--green); outline-offset: 1px; }

/* sliding banner */
.hs { --hh: min(78vh, 720px); }
.hs-track { position: relative; height: var(--hh); }
.hs-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
.hs-slide.on { opacity: 1; z-index: 1; }
.hs-slide img { width: 100%; height: var(--hh); object-fit: cover; }
.hs-slide.own img { animation: none; }
.hs-slide .hero-txt { z-index: 2; }
.hs-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; z-index: 3; }
.hs-dots button { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; }
.hs-dots button.on { background: #fff; width: 26px; border-radius: 6px; }
.hs-arr { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.8); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.hs-arr.prev { left: 16px; } .hs-arr.next { right: 16px; }

/* package cards (instead of the "1 แถม 1" picture chips) */
.pk-box { margin: 8px 0 16px; }
.pk-title { font-size: 19px; font-weight: 700; margin: 6px 0 2px; }
.pk-sub { color: var(--mut); font-size: 14px; margin: 0 0 10px; }
.pk-g { font-weight: 700; font-size: 15px; color: var(--green); margin: 14px 0 6px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.pkc { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 14px 12px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); }
.pkc.on { border-color: var(--green); box-shadow: 0 0 0 2px rgba(25,90,66,.18); background: #FFF7FA; }
.pkc em { position: absolute; top: -10px; left: 10px; font-style: normal; font-size: 12px; font-weight: 700; background: #FFE0EC; color: #8E2457; padding: 2px 8px; border-radius: 999px; }
.pkc-n { font-size: 14px; font-weight: 600; }
.pkc-p { font-size: 22px; color: var(--price); }
.pkc-u, .pkc-d { font-size: 13px; color: var(--mut); }
.pkc-s { font-size: 13px; font-weight: 700; color: var(--green); }
.pk-note { font-size: 12px; color: var(--mut); margin: 10px 0 0; }

/* self-care block on the home page */
.sec-sub { text-align: center; color: var(--mut); margin: -6px auto 22px; max-width: 640px; font-size: 16px; }
.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sc-card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 0 0 18px; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.sc-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31,41,51,.10); }
.sc-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: #FFF5F8; }
.sc-card > :not(img) { padding: 0 18px; }
.sc-p { font-size: 13px; font-weight: 700; color: var(--green); margin-top: 8px; }
.sc-card b { font-size: 19px; }
.sc-t { color: var(--mut); font-size: 15px; line-height: 1.6; }
.sc-cta { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--green); }

/* all products page */
.allp-h { text-align: center; font-size: clamp(26px, 3vw, 36px); margin: 8px 0 10px; }
.allp-h2 { font-size: 24px; margin: 46px 0 16px; text-align: center; }
.allp-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 22px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs button { border: 1.5px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; }
.tabs button.on { border-color: var(--green); background: var(--green); color: #fff; }
.sortl { font-size: 15px; color: var(--mut); } .sortl select { font: inherit; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: 10px; margin-left: 6px; color: var(--ink); }
.cmp-wrap { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; }
.cmp th, .cmp td { border: 1px solid var(--line); padding: 12px; vertical-align: top; text-align: left; }
.cmp th { background: #FFF5F8; }
.cmp th a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-size: 15px; text-align: center; }
.cmp th img { width: 96px; height: 96px; object-fit: contain; }
.cmp td:first-child { font-weight: 700; background: #FFF5F8; width: 180px; }
.cmp .price { font-size: 20px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; font-size: 16px; }
.faq p { margin: 10px 0 0; color: var(--ink); line-height: 1.7; }

@media (max-width: 900px) {
  .foot-grid > div:first-child, .foot-grid > div:nth-child(4), .foot-grid > .foot-qr { grid-row: auto; grid-column: auto; }
  .trust div:nth-child(3) { border-left: 0; } .trust div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid4.g3, .sc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav { font-size: 16px; }
  .price { font-size: 22px; } .price.big { font-size: 26px; }
  .hs { --hh: min(62vh, 520px); }
  .hs-arr { display: none; }
  .grid4.g3, .sc-grid { grid-template-columns: 1fr; }
  .pk-grid { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .hs-slide { transition: none; } .sc-card { transition: none; }
}

/* 12/11 Montri (LINE 11:40): DAICTO logo picture in the header, DBD box in the footer next to the LINE QR */
.logo img { display: block; height: 52px; width: auto; }
@media (max-width: 520px) { .logo img { height: 40px; } }
.foot-grid > .foot-dbd { grid-column: 4; grid-row: 2; align-self: start; }
.foot-dbd img { width: 100%; max-width: 260px; height: auto; border-radius: 12px; background: #fff; }
@media (max-width: 900px) { .foot-grid > .foot-dbd { grid-column: auto; grid-row: auto; } }
@media (min-width: 901px) { .foot-grid > div:has(> form.news) { grid-column: 4; grid-row: 1; } }

/* 13/11 Montri "ความสวยงามผ่านมือถือ": on phones the product page was still 2 columns (".pg { 1fr 1fr }" came after the phone rule in store.css),
   so pictures sat in a narrow strip beside squeezed price cards. Phones: one column, thumbnails in one swipe row under the big picture. */
@media (max-width: 900px) {
  .pg { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pg > * { min-width: 0; }
  .pg-gal { position: static; }
  .pg-th { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 4px; }
  .pg-th::-webkit-scrollbar { display: none; }
  .pg-th img { flex: none; width: 64px; height: 64px; }
}
/* 13/11 payment step after the order */
.pay-box { max-width: 520px; margin: 30px auto; text-align: center; }
.pay-box .pay-sum { font-size: 16px; line-height: 1.7; margin: 10px 0 16px; } .pay-box .pay-sum b { font-size: 22px; color: var(--green); }
.pay-qr, .pay-bank, .slip-f { background: #FFF5F8; border-radius: 14px; padding: 16px; margin: 0 0 14px; text-align: center; }
#dcQr { width: 220px; height: 220px; margin: 8px auto; background: #fff; padding: 6px; border-radius: 10px; } #dcQr svg { width: 100%; height: 100%; }
.slip-f input[type=file] { width: 100%; margin: 6px 0 10px; font-size: 14px; } .slip-ok { color: var(--green); font-weight: 700; margin: 6px 0; }
.pay-box .btn-out { display: inline-block; margin-top: 10px; }

/* 16/11 Montri "หน้าเว็บไม่ได้ ต้อง Size ด้วย": the shop's own banner pictures are shown whole (no cropping) on computer and phone;
   a soft blurred copy of the same picture fills the space around it. Best fit: 1920 x 720 px on computer. */
.hs-slide.own { background: #FCE8EF; overflow: hidden; }
.hs-slide.own img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(28px) brightness(1.05); transform: scale(1.15); opacity: .7; }
.hs-slide.own img.fg { position: relative; width: 100%; height: var(--hh); object-fit: contain; }
.hs[data-own] { --hh: min(78vh, 720px); }
@media (max-width: 760px) { .hs-slide.own img.fg { object-fit: contain; } }

/* 16/11 owner "รูปมันไม่เต็ม": pack pictures (square promo posters) show whole in the cart and the order summary; the price column never runs off narrow phones */
.dr-item { grid-template-columns: 76px minmax(0, 1fr) auto; }
.dr-item img, .sum-item img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 8px; border: 1px solid var(--line, #eee); }
.sum-item { grid-template-columns: 76px minmax(0, 1fr) auto; }
.sum-item > span { min-width: 0; overflow-wrap: anywhere; }
.sum-item > b { white-space: nowrap; text-align: right; }
.dr-item > div { min-width: 0; overflow-wrap: anywhere; }

/* 16/11 Montri "ตะกร้าสินค้า (2) เห็นรายการเดียว": on phones the whole cart drawer scrolls, every item can be reached; the totals bar stays at the bottom */
.drawer { height: 100vh; height: 100dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.drawer .dr-list { flex: none; overflow: visible; }
.drawer .dr-f { position: sticky; bottom: 0; background: #fff; z-index: 2; box-shadow: 0 -8px 18px rgba(0,0,0,.06); }
.drawer .disc-lines p { margin: 2px 0; }

/* 17/11 Montri: about text in the footer, home videos, phone banners at their own shape */
.foot-about { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.foot-about p { max-width: 920px; line-height: 1.75; margin: 6px 0 0; }
.dc-about { line-height: 1.75; }
.dc-hv { padding-top: 6px; padding-bottom: 6px; } .dc-hv .hv-h h2 { font-size: 1.35rem; }
.hs.hs-phone .hs-slide.own { background: #fff; } .hs.hs-phone .hs-slide.own img.bg { display: none; }
.hs.hs-phone .hs-dots { bottom: 8px; } .hs.hs-phone .hs-dots button { width: 8px; height: 8px; } .hs.hs-phone .hs-dots button.on { width: 20px; }

/* 17/11 Montri: เรื่องราวของร้าน block on the home page */
.dc-story-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; background: #fff; border-radius: 18px; padding: 24px; box-shadow: 0 6px 24px rgba(23,36,31,.06); }
.dc-story-in img { width: 100%; height: auto; border-radius: 14px; display: block; }
.dc-story-txt h2 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.6vw, 2rem); color: #8E2457; }
.dc-story-txt p { margin: 0; line-height: 1.8; color: #334; }
@media (max-width: 760px) { .dc-story-in { grid-template-columns: 1fr; gap: 16px; padding: 14px; } }

/* 17/11 phones: the built-in slides' text fits the shorter banner */
.hs.hs-phone .hero-txt { padding-top: 14px; }
.hs.hs-phone .hero-txt h1 { font-size: 19px; line-height: 1.3; margin: 0 0 4px; }
.hs.hs-phone .hero-txt p { font-size: 12px; }
.dc-hv .hv-row.one .hv-item.wide { flex-basis: min(760px, 100%); }

/* 17/11 Jessie Mum: pink brand, text logo */
.logo.jm-logo { text-decoration: none; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.jm-logo b { font: 400 30px/1.15 'Pacifico', cursive; color: #D6457F; letter-spacing: .01em; }
.jm-logo small { font-size: 10.5px; color: #8E2457; letter-spacing: .14em; margin-top: 4px; text-transform: uppercase; }
.jm-tips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.jm-tips div { background: #fff; border: 1px solid #F5D6E1; border-radius: 16px; padding: 18px; }
.jm-tips b { display: block; color: #D6457F; font-size: 1.1rem; margin-bottom: 6px; }
.jm-ing { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.jm-ing div { background: #FFF5F8; border-radius: 16px; padding: 18px; }
.jm-ing b { display: block; color: #8E2457; margin-bottom: 4px; }
.jm-gal { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.jm-gal img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; }
.jm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.jm-split img { width: 100%; border-radius: 18px; }
.jm-note { font-size: .88rem; color: #8a6b78; margin-top: 10px; }
@media (max-width: 760px) { .jm-tips, .jm-gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jm-ing, .jm-split { grid-template-columns: 1fr; } }

/* 17/11 Jessie Mum hero: the page banners are 16:9 with their own words → box = 16:9, whole picture on every screen */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hs, .hs[data-own] { --hh: min(56.25vw, 680px); }
@media (max-width: 760px) { .hs, .hs[data-own] { --hh: 56.25vw; } }
/* 17/11 Jessie Mum layout: one product centred, tips 2 per row inside the split */
.grid4.g3[data-grid="jessie"] { grid-template-columns: minmax(0, 400px); justify-content: center; }
.jm-split .jm-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 760px) { .jm-logo b { font-size: 23px; } .jm-logo small { font-size: 9px; letter-spacing: .1em; } }

/* 17/11 product details from the back office keep their lines */
#productPage p.desc { white-space: pre-line; }

/* 17/11 owner "รูปไม่เต็ม": every picture shows whole — galleries keep each picture's own shape (no square crop), the award poster full width */
.jm-gal { align-items: start; }
.jm-gal img { aspect-ratio: auto !important; height: auto !important; object-fit: contain !important; background: #fff; }
.jm-full { display: block; width: 100%; height: auto !important; object-fit: contain !important; aspect-ratio: auto !important; border-radius: 18px; margin: 10px 0 16px; }
.jm-split img { height: auto !important; object-fit: contain !important; }

/* 17/11 LINE button (customer's LINE ID = his phone): green LINE, blue Facebook, white tel */
.foot-btns a.ln{background:#06C755!important;color:#fff!important;border:0}
.foot-btns a.fb{background:#1877F2;color:#fff!important}
.foot .foot-btns a.ln,.foot .foot-btns a.fb{color:#fff!important}
@media (max-width:700px){.foot{padding-bottom:150px!important}}  /* floating LINE + tel bubbles never cover the footer form at the very bottom */
