/* 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: #E7E2D8; --soft: #F6F2EA; --green: #195A42; --price: #9D342B; }
body { background: #FFFDF9; color: var(--ink); }

/* grey text at the top and bottom stands out more */
.announce { background: #21372B; color: #fff; font-size: 14px; padding: 10px 16px; }
.announce a { color: #FFE084; }
.nav { font-size: 17px; font-weight: 600; gap: 30px; }
.nav a { color: var(--ink); }
.foot { background: #17241F !important; color: #F5F5EF !important; font-size: 15px; }
.foot h4 { color: #fff; font-size: 16px; }
.foot p, .foot .copy { color: #F5F5EF !important; }
.foot a { color: #FFE084 !important; }
.foot .foot-btns a.ln, .foot .foot-btns a.tel { color: #17241F !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: #12432F; }
.btn-out { border-color: #35634F; color: var(--green); }
.more a { border-color: #35634F; 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: #FAF8F3; 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: #FAF8F3; border-radius: 14px; }
.qv-th, .pg-th { flex-wrap: wrap; }
.qv-th img, .pg-th img { width: 72px; height: 72px; object-fit: contain; background: #FAF8F3; border-radius: 8px; }
.page-imgs img { aspect-ratio: 1 / 1; object-fit: contain; background: #FAF8F3; }

/* 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: #F7FBF8; }
.pkc em { position: absolute; top: -10px; left: 10px; font-style: normal; font-size: 12px; font-weight: 700; background: #FFF0B3; color: #713A00; 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: #FAF8F3; }
.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: #FAF8F3; }
.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: #FAF8F3; 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; } }
