/* AIRBKK — สไตล์เฉพาะหน้าใหม่ที่ดีไซน์อนุมัติไม่มี (สินค้า ตะกร้า ชำระเงิน ติดตามออเดอร์)
   ใช้สีและฟอนต์ชุดเดียวกับหน้าที่อนุมัติ แต่ใช้หน่วย px เพื่อให้ตัวหนังสือไม่ต่ำกว่า 14px ตามมาตรฐาน 1Day1Deaw
   ไฟล์นี้ไม่แตะ style.css ที่อนุมัติ */

.shop-body { background: #f6f9fc; }
.shop-main {
  font-size: 16px; line-height: 1.65; color: var(--ink);
  padding: 28px 16px 72px; max-width: 1120px; margin: 0 auto;
}
@media (min-width: 768px) { .shop-main { padding: 40px 32px 64px; } }
.shop-main h1 { font-size: 28px; line-height: 1.3; margin: 0 0 8px; }
.shop-main h2 { font-size: 22px; line-height: 1.35; margin: 32px 0 12px; }
.shop-main h3 { font-size: 18px; line-height: 1.4; margin: 0 0 6px; }
.shop-main p { margin: 0 0 12px; }
.shop-main a { color: #0b7fae; }
@media (min-width: 768px) { .shop-main h1 { font-size: 36px; } .shop-main h2 { font-size: 26px; } }
.shop-lead { color: #55697c; font-size: 16px; margin-bottom: 24px; }

/* ── ลำดับหน้า ── */
.shop-crumb { font-size: 14px; color: #5f7285; padding: 14px 16px 0; max-width: 1120px; margin: 0 auto; }
.shop-crumb i { margin: 0 8px; font-style: normal; color: #9fb1c0; }
.shop-crumb a { color: #0b7fae; text-decoration: none; }
.shop-crumb a:hover { text-decoration: underline; }

/* ── ปุ่ม ── */
.sbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(105deg, #0897c9, #04abe5); color: #fff;
  border: 1px solid transparent; border-radius: 8px; padding: 13px 22px;
  font: 600 16px/1.3 inherit; font-family: inherit; text-decoration: none;
  cursor: pointer; -webkit-appearance: none; appearance: none; min-height: 48px;
}
.sbtn:hover { filter: brightness(1.05); }
.sbtn[disabled], .sbtn.is-off { background: #c2ced6; cursor: not-allowed; filter: none; }
.sbtn--ghost { background: #fff; color: var(--ink); border-color: #cfe0e9; }
.sbtn--ghost:hover { background: #f2f9fd; filter: none; }
.sbtn--wide { width: 100%; }
.sbtn .icon { width: 18px; height: 18px; }
.sbtn:focus-visible, .slink:focus-visible, .sfield:focus-visible { outline: 3px solid #04adea; outline-offset: 2px; }

/* ── การ์ดสินค้า ── */
.prod-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.prod-filters a {
  display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 15px;
  background: #fff; border: 1px solid #d8e6ee; color: var(--ink); text-decoration: none;
}
.prod-filters a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .prod-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.prod-card {
  background: #fff; border: 1px solid #e3edf3; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s;
}
.prod-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px #0b3a5814; }
.prod-card > a { display: block; text-decoration: none; color: inherit; }
.prod-thumb { aspect-ratio: 4 / 3; background: #eef4f8; overflow: hidden; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; }
.prod-body { padding: 12px 14px 16px; display: flex; flex-direction: column; flex: 1; }
.prod-cat { font-size: 13px; color: #6f8496; margin-bottom: 4px; }
.prod-name { font-size: 15px; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
@media (min-width: 768px) { .prod-name { font-size: 17px; } }
.prod-sum { font-size: 14px; color: #5f7285; line-height: 1.55; margin-bottom: 12px; }
.prod-price { font-size: 20px; font-weight: 700; color: #ee1717; margin-top: auto; }
.prod-price small { font-size: 14px; color: #6f8496; font-weight: 400; }
.prod-quote { font-size: 15px; font-weight: 600; color: #0b7fae; margin-top: auto; }
.prod-card .sbtn { margin-top: 12px; font-size: 15px; padding: 11px 14px; min-height: 44px; }

/* ── ป้าย ── */
.tag { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag--placeholder { background: #ffeddb; color: #9a5a12; }
.tag--out { background: #f0f3f5; color: #78899a; }
.tag--low { background: #fff2f2; color: #b5322f; }
.tag--ok { background: #e6f6ed; color: #24734a; }

/* ── หน้ารายละเอียดสินค้า ── */
.pd { display: grid; gap: 24px; }
@media (min-width: 900px) { .pd { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }
.pd-media img { width: 100%; border-radius: 12px; display: block; }
.pd-price { font-size: 32px; font-weight: 700; color: #ee1717; margin: 8px 0 4px; }
.pd-price small { font-size: 16px; color: #6f8496; font-weight: 400; }
.pd-detail { white-space: pre-line; font-size: 16px; line-height: 1.8; color: #40566b; }
.pd-opt { margin: 20px 0; }
.pd-opt label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 15px; }
.pd-buy { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.qty { display: inline-flex; border: 1px solid #cfe0e9; border-radius: 8px; overflow: hidden; background: #fff; }
.qty button { width: 46px; height: 48px; border: 0; background: #fff; font-size: 22px; cursor: pointer; color: var(--ink); font-family: inherit; }
.qty button:hover { background: #eef7fb; }
.qty input { width: 56px; height: 48px; border: 0; border-inline: 1px solid #e6eef3; text-align: center; font: 600 17px inherit; font-family: inherit; color: var(--ink); -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ── ฟอร์ม ── */
.sform { display: grid; gap: 18px; }
.srow { display: grid; gap: 18px; }
@media (min-width: 700px) { .srow--2 { grid-template-columns: 1fr 1fr; } }
.sfield-wrap label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.sfield-wrap .req { color: #c0392b; }
.sfield {
  width: 100%; display: block; background: #fff; border: 1px solid #d5e3ea; border-radius: 8px;
  padding: 13px 14px; font: 400 16px/1.5 inherit; font-family: inherit; color: var(--ink);
  -webkit-appearance: none; appearance: none; min-height: 50px;
}
select.sfield {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%237a8a93' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px auto; padding-right: 40px;
}
textarea.sfield { min-height: 110px; resize: vertical; }
.sfield::placeholder { color: #9aa5aa; }
.sfield.is-bad { border-color: #c0392b; background: #fffafa; }
.err { display: block; color: #c0392b; font-size: 14px; margin-top: 5px; }
.hint { font-size: 14px; color: #6f8496; margin-top: 5px; }
.sradio { display: flex; flex-direction: column; gap: 10px; }
.sradio label {
  display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d5e3ea; background: #fff;
  border-radius: 10px; padding: 14px 16px; cursor: pointer; font-weight: 400;
}
.sradio label:has(input:checked) { border-color: #04adea; background: #f2fbff; box-shadow: 0 0 0 1px #04adea; }
.sradio input { margin-top: 3px; width: 20px; height: 20px; flex-shrink: 0; accent-color: #04adea; }
.sradio b { display: block; }
.sradio small { color: #6f8496; font-size: 14px; }

/* ── ตะกร้าและสรุปยอด ── */
.cart-wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .cart-wrap { grid-template-columns: 1fr 360px; align-items: start; gap: 36px; } }
.cart-line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; background: #fff; border: 1px solid #e3edf3; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.cart-line img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; }
.cart-line .nm { font-weight: 700; font-size: 16px; }
.cart-line .op { font-size: 14px; color: #6f8496; }
.cart-line .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.cart-line .price { font-weight: 700; font-size: 18px; white-space: nowrap; }
.slink { background: none; border: 0; color: #b5322f; font: 400 14px inherit; font-family: inherit; cursor: pointer; text-decoration: underline; padding: 6px 2px; }
.sum { background: #fff; border: 1px solid #e3edf3; border-radius: 12px; padding: 20px; position: sticky; top: 16px; }
.sum h2 { margin-top: 0; font-size: 19px; }
.sum dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin: 0 0 14px; font-size: 15px; }
.sum dt { color: #55697c; } .sum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.sum .total { border-top: 1px solid #e6eef3; padding-top: 14px; display: flex; justify-content: space-between; align-items: baseline; font-size: 17px; }
.sum .total b { font-size: 26px; color: #ee1717; }
.sum .free-hint { background: #eef9ff; border-radius: 8px; padding: 10px 12px; font-size: 14px; color: #0b6d97; margin-bottom: 14px; }

/* ── กล่องข้อมูล ── */
.note { border-radius: 10px; padding: 14px 16px; font-size: 15px; line-height: 1.6; margin: 0 0 18px; }
.note--info { background: #eef7fd; color: #17567a; border: 1px solid #cfe7f5; }
.note--warn { background: #fff6e8; color: #8a5312; border: 1px solid #f3dcbb; }
.note--ok   { background: #eaf7f0; color: #1f6b46; border: 1px solid #c7e7d5; }
.note--bad  { background: #fdeeee; color: #a13330; border: 1px solid #f2cfcf; }
.note b { display: block; margin-bottom: 4px; }

.empty { text-align: center; padding: 56px 20px; background: #fff; border: 1px solid #e3edf3; border-radius: 12px; }
.empty .icon { width: 48px; height: 48px; color: #a9c2d2; margin-bottom: 12px; }
.empty p { color: #6f8496; }

/* ── ชำระเงิน ── */
.pay-grid { display: grid; gap: 24px; }
@media (min-width: 860px) { .pay-grid { grid-template-columns: 300px 1fr; gap: 36px; align-items: start; } }
.qr-box { background: #fff; border: 1px solid #e3edf3; border-radius: 12px; padding: 18px; text-align: center; }
.qr-box svg { width: 100%; max-width: 240px; height: auto; margin: 0 auto; display: block; }
.qr-amt { font-size: 30px; font-weight: 700; color: #ee1717; margin: 10px 0 2px; }
.bank { background: #fff; border: 1px solid #e3edf3; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; }
.bank .no { font-size: 21px; font-weight: 700; letter-spacing: .5px; font-variant-numeric: tabular-nums; }
.copy { background: #eef7fd; border: 1px solid #cfe7f5; color: #0b6d97; border-radius: 7px; padding: 8px 14px; font: 600 14px inherit; font-family: inherit; cursor: pointer; margin-top: 8px; min-height: 40px; }
.drop { border: 2px dashed #c5dfeb; background: #f7fcff; border-radius: 12px; padding: 26px 16px; text-align: center; cursor: pointer; display: block; }
.drop .icon { width: 34px; height: 34px; color: #099cce; margin-bottom: 8px; }
.drop b { display: block; color: #2e87ad; }
.drop small { color: #6f8496; font-size: 14px; }
.drop img { max-width: 240px; margin: 12px auto 0; border-radius: 8px; display: block; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── ไทม์ไลน์สถานะ ── */
.tl { list-style: none; padding: 0; margin: 18px 0 0; }
.tl li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 20px; position: relative; }
.tl li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: #dce8ef; }
.tl .dot { width: 26px; height: 26px; border-radius: 50%; background: #dce8ef; display: grid; place-items: center; }
.tl .dot .icon { width: 15px; height: 15px; color: #fff; }
.tl li.on .dot { background: #04adea; }
.tl .when { font-size: 14px; color: #6f8496; }
.tl b { font-size: 16px; }

/* ── ตาราง ── */
.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: 15px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid #e9eff3; vertical-align: top; }
.tbl th { background: #f3f8fb; font-size: 14px; color: #47607a; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl-wrap { overflow-x: auto; border: 1px solid #e3edf3; border-radius: 12px; }

/* ── ปุ่มลอยล่างจอ (มือถือเท่านั้น) ── */
.shop-floatbar { display: none; }
@media (max-width: 767px) {
  .shop-floatbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1px; position: fixed; inset: auto 0 0 0;
    background: #d9e6ee; z-index: 50; height: 56px;
  }
  .shop-floatbar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    background: #fff; color: var(--ink); text-decoration: none; font: 600 15px inherit; font-family: inherit;
  }
  .shop-floatbar a:last-child { background: #06c755; color: #fff; }
  .shop-floatbar .icon { width: 19px; height: 19px; }
  .shop-main { padding-bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) { .prod-card { transition: none; } }

/* ท้ายเว็บบนหน้าใหม่: ลิงก์ต้องดูเหมือนข้อความเดิมที่อนุมัติ ไม่ใช่ลิงก์สีน้ำเงินของเบราว์เซอร์ */
.shop-body .footer-links a,
.shop-body .footer-contact a,
.shop-body .footer-main a { color: inherit; text-decoration: none; }
.shop-body .footer-links a:hover,
.shop-body .footer-contact a:hover { text-decoration: underline; }
.cart-line > a { display: block; }
.cart-line > span { display: block; }

/* ── หน้าใหม่ก็เต็มจอเหมือนกัน ระยะขอบเท่ากับ .inner ของดีไซน์ที่อนุมัติ (43rem) ── */
@media (min-width: 768px) {
  .shop-main { max-width: none; padding-left: calc(100vw * 43 / 728); padding-right: calc(100vw * 43 / 728); }
  .shop-crumb { max-width: none; padding-left: calc(100vw * 43 / 728); padding-right: calc(100vw * 43 / 728); }
}
/* จอกว้างมาก การ์ดสินค้าไม่ควรใหญ่เกินจำเป็น เพิ่มเป็น 4 คอลัมน์ */
@media (min-width: 1500px) { .prod-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 2100px) { .prod-grid { grid-template-columns: repeat(5, 1fr); } }
/* ข้อความยาวๆ ยังต้องอ่านง่าย ไม่ลากยาวจนตาไล่ไม่ทัน */
.pd-detail, .shop-lead { max-width: 76ch; }
