﻿@charset "UTF-8";

/* ============================================================
   achome-shop.css — ร้านของที่ระลึกสาขาการบัญชี (/achome)
   ------------------------------------------------------------
   โหลดต่อจาก kbs-public.css เสมอ จึงใช้ตัวแปรสี (--brand-*, --ink,
   --line ฯลฯ) กับคลาสหัวเว็บ/ท้ายเว็บ (.pub-topbar, .pub-footer)
   ร่วมกับหน้า public อื่นได้เลย ไฟล์นี้เพิ่มเฉพาะของที่เป็นของร้าน

   หลักที่ยึด
   - มือถือมาก่อน : ลูกค้าส่วนใหญ่เข้าจากลิงก์ในไลน์/เฟซบุ๊ก
   - ปุ่มสำคัญต้องแตะง่าย ความสูงอย่างน้อย 44px
   - ราคาใช้ฟอนต์ตัวเลข (--font-num) ให้อ่านเลขได้ชัด
   - ทุกสถานะของคำสั่งซื้อมีทั้งสีและไอคอน ไม่สื่อด้วยสีอย่างเดียว
     เพื่อให้คนตาบอดสีแยกออก
   ============================================================ */

/* ------------------------------------------------------------
   1) ตัวแปรเฉพาะร้าน
   ------------------------------------------------------------ */
:root {
    --shop-accent: #B0521E;        /* ส้มอิฐ — สีของปุ่มสั่งซื้อ ตัดกับน้ำเงินของคณะ */
    --shop-accent-dark: #8E4118;
    --shop-accent-soft: #FDF1E9;
    --shop-ok: #157F4A;
    --shop-ok-soft: #E6F5EC;
    --shop-warn: #A96A0B;
    --shop-warn-soft: #FDF2E0;
    --shop-danger: #C43D3D;
    --shop-danger-soft: #FBEAEA;
    --shop-info: #1F6FBF;
    --shop-info-soft: #E9F1FB;
}

/* ------------------------------------------------------------
   2) หัวเว็บ : ปุ่มตะกร้าพร้อมตัวเลขจำนวน
   ------------------------------------------------------------ */
.shop-cartbtn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 42px;
    padding: .45rem .95rem;
    border: 1px solid var(--brand-200);
    border-radius: var(--r-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
    font-size: .93rem;
    text-decoration: none;
    transition: background .18s var(--ease), border-color .18s var(--ease);
}

.shop-cartbtn:hover,
.shop-cartbtn:focus-visible {
    background: var(--brand-100);
    border-color: var(--brand-300);
    color: var(--brand-800);
}

.shop-cartbtn i { font-size: 1.05rem; }

/* ตัวเลขจำนวนชิ้น — ซ่อนเองเมื่อตะกร้าว่าง (หน้าเว็บใส่ hidden ให้) */
.shop-cartbtn-count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-pill);
    background: var(--shop-accent);
    color: #fff;
    font-family: var(--font-num);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
}

/* ------------------------------------------------------------
   3) แบนเนอร์หน้าแรก
   ------------------------------------------------------------ */
.shop-hero {
    background: linear-gradient(135deg, var(--brand-800) 0%, var(--brand-600) 58%, var(--brand-500) 100%);
    color: #fff;
    padding: clamp(2.2rem, 6vw, 3.8rem) 0;
}

.shop-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .8rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .14);
    color: #DCE9F8;
    font-size: .82rem;
    font-weight: 500;
    margin-bottom: .9rem;
}

.shop-hero h1 {
    font-size: clamp(1.6rem, 4.4vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .6rem;
}

.shop-hero-lead {
    color: #C8DAEF;
    font-size: clamp(.95rem, 2.2vw, 1.08rem);
    line-height: 1.7;
    max-width: 46ch;
    margin: 0;
}

.shop-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .65rem;
    margin-top: 1.4rem;
}

.shop-hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .42rem .85rem;
    border-radius: var(--r-pill);
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    color: #E6EFF9;
    font-size: .86rem;
}

/* ------------------------------------------------------------
   4) ส่วนเนื้อหา
   ------------------------------------------------------------ */
.shop-section { padding: clamp(1.8rem, 5vw, 3rem) 0; }
.shop-section--alt { background: var(--bg); }

.shop-section-head { margin-bottom: 1.5rem; }

.shop-section-head h2 {
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 .3rem;
}

.shop-section-head p {
    color: var(--muted);
    margin: 0;
    font-size: .95rem;
}

/* ------------------------------------------------------------
   5) การ์ดสินค้า
   ------------------------------------------------------------ */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.15rem;
}

.shop-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
    box-shadow: var(--sh-1);
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}

.shop-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--sh-2);
    border-color: var(--brand-200);
}

/* กรอบรูปสัดส่วนคงที่ — ป้องกันการ์ดสูงไม่เท่ากันเมื่อรูปต้นฉบับคนละขนาด */
.shop-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--line-soft);
    overflow: hidden;
}

.shop-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s var(--ease);
}

.shop-card:hover .shop-card-media img { transform: scale(1.04); }

.shop-card-tag {
    position: absolute;
    top: .6rem;
    left: .6rem;
    padding: .22rem .6rem;
    border-radius: var(--r-pill);
    background: var(--shop-accent);
    color: #fff;
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .01em;
}

.shop-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: .95rem 1rem 1.05rem;
}

.shop-card-kind {
    color: var(--muted);
    font-size: .78rem;
    margin-bottom: .18rem;
}

.shop-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.4;
    margin: 0 0 .35rem;
}

.shop-card-desc {
    color: var(--ink-2);
    font-size: .87rem;
    line-height: 1.55;
    margin: 0 0 .85rem;
    /* ตัดสามบรรทัด เพื่อให้ราคาของทุกการ์ดอยู่ระดับเดียวกัน */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shop-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: auto;
}

.shop-price {
    font-family: var(--font-num);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-700);
    white-space: nowrap;
}

.shop-price small {
    font-family: var(--font-th);
    font-size: .78rem;
    font-weight: 400;
    color: var(--muted);
    margin-left: .15rem;
}

.shop-card-soldout {
    color: var(--shop-danger);
    font-size: .84rem;
    font-weight: 600;
}

/* ------------------------------------------------------------
   6) ปุ่ม
   ------------------------------------------------------------ */
.shop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    min-height: 44px;
    padding: .55rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    font-family: var(--font-th);
    font-size: .93rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}

/* aspNetDisabled : คลาสที่ ASP.NET ใส่ให้ LinkButton ที่ Enabled="false"
   ปุ่มแบบนั้นเรนเดอร์ออกมาไม่มี href อยู่แล้ว แต่ยังดูเหมือนปุ่มปกติ
   ถ้าไม่ทำให้จางลง ลูกค้าจะกดแล้วงงว่าทำไมไม่มีอะไรเกิดขึ้น */
.shop-btn:disabled,
.shop-btn[disabled],
.shop-btn.aspNetDisabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.shop-btn--buy { background: var(--shop-accent); color: #fff; }
.shop-btn--buy:hover, .shop-btn--buy:focus-visible { background: var(--shop-accent-dark); color: #fff; }

.shop-btn--primary { background: var(--brand-600); color: #fff; }
.shop-btn--primary:hover, .shop-btn--primary:focus-visible { background: var(--brand-700); color: #fff; }

.shop-btn--outline { background: var(--surface); border-color: var(--line); color: var(--ink-2); }
.shop-btn--outline:hover, .shop-btn--outline:focus-visible { border-color: var(--brand-300); color: var(--brand-700); }

.shop-btn--ghost { background: transparent; color: var(--brand-600); padding-inline: .5rem; }
.shop-btn--ghost:hover { color: var(--brand-800); text-decoration: underline; }

.shop-btn--danger { background: var(--surface); border-color: var(--line); color: var(--shop-danger); }
.shop-btn--danger:hover, .shop-btn--danger:focus-visible { background: var(--shop-danger-soft); border-color: var(--shop-danger); }

.shop-btn--sm { min-height: 36px; padding: .32rem .75rem; font-size: .85rem; }
.shop-btn--block { width: 100%; }

/* ------------------------------------------------------------
   7) หน้ารายละเอียดสินค้า
   ------------------------------------------------------------ */
.shop-detail {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: 1fr;
}

@media (min-width: 900px) {
    .shop-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.4rem; }
}

.shop-gallery-main {
    aspect-ratio: 1 / 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    overflow: hidden;
}

.shop-gallery-main img { width: 100%; height: 100%; object-fit: contain; display: block; }

.shop-gallery-thumbs {
    display: flex;
    gap: .55rem;
    margin-top: .7rem;
    flex-wrap: wrap;
}

.shop-thumb {
    width: 68px;
    height: 68px;
    border: 2px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--surface);
    padding: 0;
    cursor: pointer;
}

.shop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-thumb.is-active { border-color: var(--brand-500); }

.shop-detail-title {
    font-size: clamp(1.35rem, 3.4vw, 1.85rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    margin: 0 0 .5rem;
}

.shop-detail-price {
    font-family: var(--font-num);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-700);
    margin-bottom: 1rem;
}

.shop-detail-desc {
    color: var(--ink-2);
    line-height: 1.75;
    margin-bottom: 1.3rem;
}

/* ------------------------------------------------------------
   8) ตัวเลือกสินค้า (สี / ไซส์)
   ------------------------------------------------------------ */
.shop-optgroup { margin-bottom: 1.2rem; }

.shop-optgroup-label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: .93rem;
    margin-bottom: .5rem;
}

.shop-optgroup-label .shop-req { color: var(--shop-danger); margin-left: .15rem; }

/* RadioButtonList ของ ASP.NET เรนเดอร์เป็น table หรือ span ชุด input+label
   จึงจัดรูปที่ label โดยตรงแล้วซ่อน input จริงไว้ */
.shop-opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.shop-opts table, .shop-opts tbody, .shop-opts tr { display: contents; }
.shop-opts td { display: inline-block; }

.shop-opts input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.shop-opts label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 42px;
    padding: .4rem .9rem;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink-2);
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}

.shop-opts label:hover { border-color: var(--brand-300); }

.shop-opts input[type="radio"]:checked + label {
    border-color: var(--brand-600);
    background: var(--brand-50);
    color: var(--brand-800);
    font-weight: 600;
}

/* ตัวเลือกที่เจ้าหน้าที่ปิดขายไว้ (ของหมด)
   แสดงไว้แบบจางแทนการซ่อน ลูกค้าจะได้รู้ว่าร้านมีไซส์นี้แต่หมด
   ไม่ใช่เข้าใจว่าไม่เคยมี · input เป็น disabled อยู่แล้วจึงกดไม่ติดจริง */
.shop-opts input[type="radio"]:disabled + label {
    border-style: dashed;
    border-color: var(--line);
    background: var(--surface-2, #F7F9FC);
    color: var(--muted);
    cursor: not-allowed;
    opacity: .72;
}

.shop-opts input[type="radio"]:disabled + label:hover { border-color: var(--line); }

.shop-opts input[type="radio"]:disabled + label .shop-swatch { filter: grayscale(1); opacity: .6; }

.shop-opt-out {
    margin-left: .1rem;
    padding: .08rem .38rem;
    border-radius: 999px;
    background: var(--shop-danger-soft);
    color: #932D2D;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .01em;
    white-space: nowrap;
}

/* วงแหวนโฟกัสตอนใช้แป้นพิมพ์ — ต้องเห็นชัดเพราะ input จริงถูกซ่อน */
.shop-opts input[type="radio"]:focus-visible + label {
    outline: 2px solid var(--brand-500);
    outline-offset: 2px;
}

.shop-swatch {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(7, 31, 59, .22);
    display: inline-block;
    flex: none;
}

/* ตัวเลือกจำนวน */
.shop-qty {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--surface);
}

/* ต้องครอบ a ด้วย : หน้าสินค้าใช้ปุ่ม <button> จริง แต่หน้าตะกร้าใช้
   asp:LinkButton ซึ่ง ASP.NET เรนเดอร์ออกมาเป็น <a> ถ้าเขียนแค่ button
   ปุ่มในหน้าตะกร้าจะไม่ได้ความกว้างและพื้นหลัง กลายเป็นลิงก์จิ๋วติดขอบ */
.shop-qty button,
.shop-qty a {
    width: 42px;
    flex: none;
    border: 0;
    background: var(--surface-2, #F7F9FC);
    color: var(--ink-2);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    /* <a> ไม่จัดกึ่งกลางให้เองเหมือน <button> ต้องสั่งเอง */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    user-select: none;
}

.shop-qty button:hover,
.shop-qty a:hover,
.shop-qty a:focus-visible { background: var(--brand-50); color: var(--brand-700); }

.shop-qty input {
    width: 62px;
    flex: none;
    border: 0;
    border-inline: 1px solid var(--line);
    text-align: center;
    font-family: var(--font-num);
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    padding: .5rem 0;
    background: var(--surface);
}

.shop-qty input:focus { outline: 2px solid var(--brand-300); outline-offset: -2px; }

/* ------------------------------------------------------------
   9) ตะกร้าและสรุปยอด
   ------------------------------------------------------------ */
.shop-layout {
    display: grid;
    gap: 1.4rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 992px) {
    .shop-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 1.8rem; }
    .shop-layout-side { position: sticky; top: 1.2rem; }
}

.shop-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--sh-1);
    overflow: hidden;
}

.shop-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--line-soft);
    background: var(--surface);
}

.shop-panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0;
    display: flex;
    align-items: center;
    gap: .45rem;
}

.shop-panel-body { padding: 1.1rem; }
.shop-panel-body--flush { padding: 0; }

/* หนึ่งบรรทัดในตะกร้า */
.shop-line {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--line-soft);
}

.shop-line:last-child { border-bottom: 0; }

.shop-line-media {
    width: 76px;
    height: 76px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--line-soft);
    flex: none;
}

.shop-line-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.shop-line-name {
    font-weight: 600;
    color: var(--ink);
    font-size: .96rem;
    line-height: 1.4;
    margin: 0 0 .2rem;
}

.shop-line-opt {
    color: var(--muted);
    font-size: .84rem;
    margin: 0 0 .55rem;
}

.shop-line-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
}

.shop-line-total {
    font-family: var(--font-num);
    font-weight: 700;
    color: var(--ink);
    font-size: 1.02rem;
}

.shop-line-unit {
    display: block;
    font-family: var(--font-th);
    font-weight: 400;
    font-size: .78rem;
    color: var(--muted);
}

/* แถวสรุปยอด */
.shop-sum-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: .42rem 0;
    color: var(--ink-2);
    font-size: .93rem;
}

.shop-sum-row span:last-child { font-family: var(--font-num); font-weight: 600; color: var(--ink); }

.shop-sum-row--total {
    margin-top: .55rem;
    padding-top: .8rem;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
}

.shop-sum-row--total span:last-child {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-700);
}

.shop-sum-note { color: var(--muted); font-size: .82rem; line-height: 1.6; margin-top: .7rem; }

/* ------------------------------------------------------------
   10) ฟอร์ม
   ------------------------------------------------------------ */
.shop-field { margin-bottom: 1rem; }

.shop-label {
    display: block;
    font-weight: 600;
    color: var(--ink);
    font-size: .9rem;
    margin-bottom: .35rem;
}

.shop-label .shop-req { color: var(--shop-danger); margin-left: .15rem; }

.shop-input,
.shop-select,
.shop-textarea {
    width: 100%;
    min-height: 44px;
    padding: .55rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--ink);
    font-family: var(--font-th);
    font-size: .95rem;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}

.shop-textarea { min-height: 96px; resize: vertical; line-height: 1.6; }

.shop-input:focus,
.shop-select:focus,
.shop-textarea:focus {
    outline: 0;
    border-color: var(--brand-400);
    box-shadow: 0 0 0 3px rgba(29, 107, 192, .14);
}

.shop-hint { color: var(--muted); font-size: .82rem; margin-top: .3rem; line-height: 1.55; }
.shop-err { color: var(--shop-danger); font-size: .85rem; font-weight: 500; }

/* ตัวเลือกวิธีรับของ — การ์ดกดเลือกแทน dropdown ให้เห็นเงื่อนไขครบทั้งสองทาง */
.shop-pick { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .shop-pick { grid-template-columns: 1fr 1fr; } }

.shop-pick-card {
    display: block;
    padding: .9rem 1rem;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
}

.shop-pick-card:hover { border-color: var(--brand-300); }

.shop-pick-card.is-active {
    border-color: var(--brand-600);
    background: var(--brand-50);
}

.shop-pick-title {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-weight: 600;
    color: var(--ink);
    font-size: .95rem;
    margin-bottom: .25rem;
}

.shop-pick-desc { color: var(--muted); font-size: .84rem; line-height: 1.55; margin: 0; }

/* ------------------------------------------------------------
   11) กล่องบัญชีรับโอน
   ------------------------------------------------------------ */
.shop-bank {
    border: 1px dashed var(--brand-300);
    border-radius: var(--r-md);
    background: var(--brand-50);
    padding: 1.1rem;
}

.shop-bank-head {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .75rem;
}

.shop-bank-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--r-sm);
    background: #fff;
    padding: 3px;
    flex: none;
}

.shop-bank-name { font-weight: 600; color: var(--brand-800); }
.shop-bank-branch { color: var(--muted); font-size: .84rem; }

.shop-bank-acc {
    font-family: var(--font-num);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand-800);
    letter-spacing: .04em;
}

.shop-bank-owner { color: var(--ink-2); font-size: .9rem; }

/* ------------------------------------------------------------
   12) ป้ายสถานะคำสั่งซื้อ (ใช้ทั้งหน้าลูกค้าและหลังร้าน)
   ------------------------------------------------------------ */
.shop-state {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .68rem;
    border-radius: var(--r-pill);
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
}

.shop-state--ok { background: var(--shop-ok-soft); color: var(--shop-ok); }
.shop-state--warn { background: var(--shop-warn-soft); color: var(--shop-warn); }
.shop-state--info { background: var(--shop-info-soft); color: var(--shop-info); }
.shop-state--danger { background: var(--shop-danger-soft); color: var(--shop-danger); }

/* ------------------------------------------------------------
   13) ขั้นตอนการสั่งซื้อ
   ------------------------------------------------------------ */
.shop-steps {
    display: flex;
    align-items: center;
    gap: .4rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.shop-step {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    padding: .35rem .8rem;
    border-radius: var(--r-pill);
    background: var(--line-soft);
    color: var(--muted);
    font-size: .86rem;
}

.shop-step.is-now { background: var(--brand-600); color: #fff; font-weight: 600; }
.shop-step.is-done { background: var(--shop-ok-soft); color: var(--shop-ok); }
.shop-step-sep { color: var(--line); }

.shop-step-no {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-num);
    font-size: .75rem;
    font-weight: 700;
}

.shop-step:not(.is-now) .shop-step-no { background: rgba(7, 31, 59, .1); }

/* ------------------------------------------------------------
   14) ไทม์ไลน์สถานะในหน้าติดตาม
   ------------------------------------------------------------ */
.shop-track-list { list-style: none; margin: 0; padding: 0; }

.shop-track-item {
    position: relative;
    padding: 0 0 1.4rem 2.1rem;
    border-left: 2px solid var(--line);
    margin-left: .55rem;
}

.shop-track-item:last-child { padding-bottom: 0; border-left-color: transparent; }

.shop-track-dot {
    position: absolute;
    left: -11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--surface);
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    color: var(--muted);
}

.shop-track-item.is-done { border-left-color: var(--shop-ok); }
.shop-track-item.is-done .shop-track-dot { border-color: var(--shop-ok); background: var(--shop-ok); color: #fff; }
.shop-track-item.is-cancel { border-left-color: var(--shop-danger); }
.shop-track-item.is-cancel .shop-track-dot { border-color: var(--shop-danger); background: var(--shop-danger); color: #fff; }

.shop-track-title { font-weight: 600; color: var(--ink); font-size: .95rem; margin: 0 0 .15rem; }
.shop-track-when { color: var(--muted); font-size: .83rem; }

/* ------------------------------------------------------------
   15) แจ้งเตือน / สถานะว่าง
   ------------------------------------------------------------ */
.shop-alert {
    display: flex;
    gap: .7rem;
    padding: .85rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    font-size: .92rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.shop-alert i { font-size: 1.1rem; flex: none; margin-top: .1rem; }
.shop-alert--ok { background: var(--shop-ok-soft); border-color: #BFE3CE; color: #0E5F37; }
.shop-alert--warn { background: var(--shop-warn-soft); border-color: #EFD9AE; color: #7E4F08; }
.shop-alert--danger { background: var(--shop-danger-soft); border-color: #EFC4C4; color: #932D2D; }
.shop-alert--info { background: var(--shop-info-soft); border-color: #C6DAF2; color: #17548F; }

.shop-empty {
    text-align: center;
    padding: 3rem 1.2rem;
    color: var(--muted);
}

.shop-empty i { font-size: 2.6rem; color: var(--line); display: block; margin-bottom: .8rem; }
.shop-empty-title { font-size: 1.05rem; font-weight: 600; color: var(--ink-2); margin-bottom: .4rem; }

/* ------------------------------------------------------------
   16) หลังร้าน — ส่วนที่วางบนธีม kbs (SiteWA.Master)
   ------------------------------------------------------------ */

/* แถบตัวกรองสถานะแบบกดนับได้ */
.shop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-bottom: 1.1rem;
}

.shop-tab {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    min-height: 38px;
    padding: .35rem .85rem;
    border: 1px solid var(--line);
    border-radius: var(--r-pill);
    background: #fff;
    color: var(--ink-2);
    font-size: .88rem;
    text-decoration: none;
    cursor: pointer;
}

.shop-tab:hover { border-color: var(--brand-300); color: var(--brand-700); }
.shop-tab.is-active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; font-weight: 600; }

.shop-tab-n {
    font-family: var(--font-num);
    font-size: .78rem;
    font-weight: 700;
    padding: .05rem .42rem;
    border-radius: var(--r-pill);
    background: rgba(7, 31, 59, .08);
}

.shop-tab.is-active .shop-tab-n { background: rgba(255, 255, 255, .25); }

/* รูปสลิปย่อในตารางหลังร้าน */
.shop-slip-thumbs { display: flex; gap: .35rem; flex-wrap: wrap; }

.shop-slip-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    border: 1px solid var(--line);
    overflow: hidden;
    display: block;
}

.shop-slip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* รูปสลิปขนาดเต็มใน modal */
.shop-slip-full { max-width: 100%; max-height: 72vh; object-fit: contain; display: block; margin: 0 auto; }

/* หน้าต่างรายละเอียดที่มี UpdatePanel คั่นอยู่ข้างใน
   ------------------------------------------------------------
   UpdatePanel เรนเดอร์ <div> ครอบเนื้อหาไว้อีกชั้น หัว/เนื้อ/ท้ายของ modal
   จึงไม่ได้เป็นลูกโดยตรงของ .modal-content ซึ่งเป็น flex column
   ผลคือ .modal-dialog-scrollable ใช้ไม่ได้ เนื้อหายาว ๆ จะดันจนหัวและ
   แถวปุ่มท้ายหลุดออกนอกจอ ต้องบอกให้ div ตัวกลางทำตัวเป็น flex column แทน */
.shop-modal .modal-content > div {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* ------------------------------------------------------------
   17) พิมพ์ใบสั่งซื้อ
   ------------------------------------------------------------ */
@media print {
    .pub-topbar, .pub-footer, .shop-noprint { display: none !important; }
    .shop-panel { border: 0; box-shadow: none; }
    body { background: #fff; }
}
