/* (03/12/2026) r4 [SST-R4] ตามม็อกอัพ https://claude.ai/artifact/RPCimWVTx1XRgAjS7rX9WD : แถบจุดเด่น · แถบหมวดไอคอน · ช่องค้นหา · ตัวกรอง PV/รูปแบบ · ปุ่มดูรายละเอียด · แบ่งหน้า
   (08/11/2026) หน้าร้าน r3 Redesign ตาม Mockup — shopping/cart_shopping/cart_product_v2.php · prefix .sst-
   โหลดต่อจาก shop_list.css (ใช้ token --sv2-* เดิม · สีจาก configmlm > ตั้งค่าสี Member ผ่าน --shd-*) · ไม่กระทบหน้าอื่น (หน้า detail ไม่โหลดไฟล์นี้) */

.sst {
    --sst-r: 18px;
    --sst-line: #e6ebf2;
    --sst-bg: #f4f7fb;
    --sst-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -18px rgba(15, 40, 80, .25);
    --sst-c1: var(--sv2-c1);
    --sst-c2: var(--sv2-c2);
    --sst-tint: color-mix(in srgb, var(--sst-c1) 12%, #fff);
    background: var(--sst-bg);
    padding: 22px 0 96px;
}
.sst-wrap { max-width: 1720px; margin: 0 auto; padding: 0 clamp(14px, 2.4vw, 40px); }
.sst-layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 24px; align-items: start; }
.sst-main { min-width: 0; }
.sst-icon-btn {
    width: 38px; height: 38px; border: 0; border-radius: 12px; background: var(--sv2-soft); color: var(--sv2-text);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.sst-btn {
    flex: 1 1 0; height: 48px; border: 0; border-radius: 14px; font-size: 15px; font-weight: 700; cursor: pointer;
    background: var(--sst-c2); color: #fff;
}
.sst-btn--ghost { background: #fff; color: var(--sv2-text); border: 1px solid var(--sst-line); }

/* ================= Sidebar ================= */
.sst-side { position: sticky; top: 90px; align-self: start; min-width: 0; }
.sst-side-body {
    background: #fff; border: 1px solid var(--sst-line); border-radius: var(--sst-r); box-shadow: var(--sst-shadow);
    padding: 18px 14px 16px;
}
.sst-drawer-head, .sst-drawer-foot, .sst-backdrop { display: none; }
.sst-box + .sst-box { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sst-line); }
.sst-box h2 { margin: 0 6px 10px; font-size: 16px; font-weight: 700; color: var(--sv2-text); }
.sst-groups { display: flex; flex-direction: column; gap: 2px; }
.sst-group {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 42px; padding: 6px 10px;
    border: 0; border-radius: 12px; background: transparent; color: var(--sv2-text); font-size: 15px; text-align: left; cursor: pointer;
    transition: background .15s, color .15s;
}
.sst-group:hover { background: var(--sv2-soft); }
.sst-group.is-on { background: var(--sst-tint); color: var(--sst-c2); font-weight: 700; }
.sst-gic {
    flex: 0 0 28px; width: 28px; height: 28px; border-radius: 9px; overflow: hidden;
    display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--c, var(--sst-c2)) 13%, #fff); color: var(--c, var(--sst-c2));
}
.sst-gic img { width: 100%; height: 100%; object-fit: cover; }
.sst-group.is-on .sst-gic { background: #fff; }
.sst-gname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sst-count { flex: 0 0 auto; font-size: 13px; font-weight: 600; color: var(--sv2-muted); }
.sst-group.is-on .sst-count { color: var(--sst-c2); }

/* แบรนด์ : desktop = รายการมี checkbox + โลโก้ */
.sst-brands { display: flex; flex-direction: column; gap: 2px; }
.sst-brand { display: block; margin: 0; cursor: pointer; }
.sst-brand input { position: absolute; opacity: 0; pointer-events: none; }
.sst-brand-box {
    display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 5px 10px; border-radius: 12px;
    font-size: 14.5px; color: var(--sv2-text); transition: background .15s;
}
.sst-brand-box:hover { background: var(--sv2-soft); }
.sst-brand-tick {
    flex: 0 0 20px; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c5cfdb; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: transparent; transition: all .15s;
}
.sst-brand input:checked + .sst-brand-box .sst-brand-tick { background: var(--sst-c2); border-color: var(--sst-c2); color: #fff; }
.sst-brand input:focus-visible + .sst-brand-box { outline: 2px solid var(--sst-c1); outline-offset: 1px; }
.sst-brand-logo { flex: 0 0 auto; width: 44px; height: 22px; object-fit: contain; }
.sst-brand-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ช่วงราคา */
.sst-range { position: relative; height: 26px; margin: 4px 8px 6px; }
.sst-range-track { position: absolute; left: 0; right: 0; top: 11px; height: 4px; border-radius: 4px; background: #dfe6ef; }
.sst-range-fill { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--sst-c1); }
.sst-range input[type=range] {
    position: absolute; left: -8px; right: -8px; width: calc(100% + 16px); top: 0; height: 26px; margin: 0;
    background: none; pointer-events: none; -webkit-appearance: none; appearance: none;
}
.sst-range input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%;
    background: #fff; border: 4px solid var(--sst-c1); box-shadow: 0 2px 6px rgba(15, 23, 42, .2); cursor: pointer;
}
.sst-range input[type=range]::-moz-range-thumb {
    pointer-events: auto; width: 14px; height: 14px; border-radius: 50%;
    background: #fff; border: 4px solid var(--sst-c1); box-shadow: 0 2px 6px rgba(15, 23, 42, .2); cursor: pointer;
}
.sst-range input[type=range]::-moz-range-track { background: none; }
.sst-range-val { display: flex; align-items: center; gap: 8px; margin: 8px 6px 0; }
.sst-range-val label {
    flex: 1 1 0; display: flex; align-items: center; gap: 4px; margin: 0; height: 38px; padding: 0 10px;
    border: 1px solid var(--sst-line); border-radius: 10px; background: #fff; font-size: 14px; color: var(--sv2-muted);
}
.sst-range-val input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; color: var(--sv2-text); -moz-appearance: textfield; }
.sst-range-val input::-webkit-inner-spin-button { -webkit-appearance: none; }
.sst-dash { color: var(--sv2-muted); }
.sst-checks { display: flex; flex-direction: column; gap: 4px; margin: 0 6px; }
.sst-checks label { display: flex; align-items: center; gap: 10px; min-height: 34px; margin: 0; font-size: 14.5px; font-weight: 400; color: var(--sv2-text); cursor: pointer; }
.sst-checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--sst-c2); }

.sst-clear {
    display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 42px; margin-top: 18px;
    border: 1px solid color-mix(in srgb, var(--sst-c1) 45%, #fff); border-radius: 12px; background: #fff;
    color: var(--sst-c2); font-size: 14.5px; font-weight: 700; cursor: pointer; transition: background .15s;
}
.sst-clear:hover { background: var(--sst-tint); }

/* ================= Banner ================= */
.sst-hero {
    position: relative; overflow: hidden; border-radius: 22px; background: #e8eef6;
    aspect-ratio: 1500 / 400; box-shadow: var(--sst-shadow); isolation: isolate;
}
.sst-hero-track { display: flex; height: 100%; transition: transform .55s cubic-bezier(.2, .7, .2, 1); will-change: transform; }
.sst-hero-slide { flex: 0 0 100%; height: 100%; user-select: none; }
.sst-hero-slide.is-link { cursor: pointer; }
.sst-hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; -webkit-user-drag: none; }
.sst-hero-nav {
    position: absolute; top: 50%; z-index: 2; width: 42px; height: 42px; margin-top: -21px; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(255, 255, 255, .92); color: #0f172a; box-shadow: 0 6px 18px -6px rgba(15, 23, 42, .35);
    opacity: .9; transition: opacity .2s, transform .2s;
}
.sst-hero-nav:hover { opacity: 1; transform: scale(1.06); }
.sst-hero-prev { left: 14px; }
.sst-hero-next { right: 14px; }
.sst-hero-dots { position: absolute; left: 50%; bottom: 14px; z-index: 2; transform: translateX(-50%); display: flex; gap: 6px; }
.sst-hero-dots button {
    width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
    background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(15, 23, 42, .1); transition: width .25s, background .25s;
}
.sst-hero-dots button.is-on { width: 24px; background: var(--sst-c1); }
/* แถบจุดเด่นบริการ */
.sst-perks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.sst-perk { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 14px; background: #fff; border: 1px solid var(--sst-line); border-radius: 16px; color: var(--sv2-text) !important; text-decoration: none !important; }
a.sst-perk:hover { border-color: var(--sst-c1); }
.sst-pic { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c); }
.sst-perk > div { min-width: 0; }
.sst-perk b { display: block; font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.sst-perk span:not(.sst-pic) { display: block; font-size: 12.5px; color: var(--sv2-muted); }

/* ================= Toolbar ================= */
.sst-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 10px; }
.sst-msearch {
    flex: 1 1 360px; display: flex; align-items: center; gap: 10px; height: 46px; margin: 0; padding: 0 5px 0 14px;
    background: #fff; border: 1px solid #cbd5e1; border-radius: 14px; color: var(--sv2-muted);
}
.sst-msearch:focus-within { border-color: var(--sst-c1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sst-c1) 15%, transparent); }
.sst-msearch input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--sv2-text); }
.sst-sbtn { flex: 0 0 auto; height: 36px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--sst-c2); color: #fff; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.sst-sbtn:hover { filter: brightness(1.1); }
.sst-found { margin: 0 0 12px; font-size: 14.5px; color: var(--sv2-muted); }
.sst-found b { color: var(--sv2-text); }
.sst-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.sst-sort { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14.5px; color: var(--sv2-text); font-weight: 500; }
.sst-sort select {
    height: 42px; min-width: 150px; padding: 0 36px 0 14px; border: 1px solid var(--sst-line); border-radius: 12px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
    -webkit-appearance: none; appearance: none; font-size: 14.5px; color: var(--sv2-text); cursor: pointer;
}
.sst-view { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--sst-line); border-radius: 13px; background: #fff; }
.sst-view button {
    width: 36px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--sv2-muted);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.sst-view button.is-on { background: var(--sst-c1); color: #fff; }
.sst-filter-btn {
    display: none; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border: 1px solid var(--sst-line);
    border-radius: 12px; background: #fff; color: var(--sv2-text); font-size: 14.5px; font-weight: 700; cursor: pointer;
}
.sst-badge {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sst-c1); color: #fff;
    font-size: 12px; line-height: 20px; text-align: center;
}

/* แถบหมวด : การ์ดไอคอนเรียงแถวเดียว (เลื่อนแนวนอนเมื่อหมวดเยอะ) · คลาส .sst-chip + data-group เดิม */
.sst-chipbar { position: relative; margin: 16px 0 14px; background: #fff; border: 1px solid var(--sst-line); border-radius: 18px; }
.sst-chips { display: flex; gap: 6px; padding: 10px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.sst-chips::-webkit-scrollbar { display: none; } /* ไม่แสดงสกอลบาร์ · ใช้ลูกศร .sst-cnav */
.sst-cnav {
    position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border: 1px solid var(--sst-line); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: #fff; color: var(--sst-c2); cursor: pointer;
    box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35); transition: transform .15s;
}
.sst-cnav:hover { transform: scale(1.06); }
.sst-cnav--l { left: -14px; }
.sst-cnav--r { right: -14px; }
.sst-chip {
    flex: 1 0 112px; max-width: 150px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 6px;
    border: 0; border-radius: 16px; background: transparent; color: var(--sv2-text); font-size: 14.5px; font-weight: 600; cursor: pointer;
    transition: background .15s, color .15s;
}
.sst-chip:hover { background: var(--sv2-soft); }
.sst-cic {
    width: 58px; height: 58px; border-radius: 16px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--c) 13%, #fff); color: var(--c);
}
.sst-cic img { width: 100%; height: 100%; object-fit: cover; }
.sst-cname { max-width: 100%; text-align: center; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sst-chip.is-on { background: var(--sst-c2); color: #fff; }
.sst-chip.is-on .sst-cic { background: rgba(255, 255, 255, .18); color: #fff; }

/* ================= Product Grid / Card ================= */
.sst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 18px; }
.sst-card {
    position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
    background: #fff; border: 1px solid var(--sst-line); border-radius: var(--sst-r); box-shadow: var(--sst-shadow);
    transition: transform .2s, box-shadow .2s;
}
.sst-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(15, 23, 42, .04), 0 22px 40px -22px rgba(15, 40, 80, .35); }
.sst-media { position: relative; }
.sst-img { display: block; aspect-ratio: 1 / 1; background: var(--sv2-soft); overflow: hidden; }
.sst-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.sst-card:hover .sst-img img { transform: scale(1.04); }
.sst-flag {
    position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 5px;
    height: 28px; padding: 0 12px; border-radius: 14px; font-size: 13px; font-weight: 700; color: #fff;
    background: var(--sst-c2); box-shadow: 0 6px 14px -8px rgba(15, 23, 42, .5);
}
.sst-flag--f34 { background: linear-gradient(135deg, #f97316, #ef4444); }
.sst-flag--f34::before { content: "🔥"; font-size: 12px; }
.sst-flag--f35 { background: linear-gradient(135deg, #a855f7, #ec4899); }
.sst-flag--f35::before { content: "★"; }
.sst-flag--pk { background: linear-gradient(135deg, #7c3aed, #6366f1); }
.sst-wish, .sst-share {
    position: absolute; top: 10px; z-index: 1; width: 36px; height: 36px; border: 0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    background: rgba(255, 255, 255, .95); color: #64748b; box-shadow: 0 4px 12px -4px rgba(15, 23, 42, .3);
}
.sst-wish { right: 10px; }
.sst-share { right: 52px; }
.sst-wish .wishlist-added { color: #ef4444; }
.sst-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 14px 14px; }
.sst-code { display: none; font-size: 12.5px; color: var(--sv2-muted); } /* r4 ตามม็อกอัพ ไม่แสดงรหัส (ค้นหาด้วยรหัสได้) */
.sst-card.is-variant .sst-code { display: block; } /* การ์ดหลายแบบบอกจำนวนแบบ */
.sst-name {
    margin-top: 3px; font-size: 15.5px; font-weight: 600; line-height: 1.35; color: var(--sv2-text) !important;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.sst-name:hover { color: var(--sst-c2) !important; }
.sst-price { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 12px; }
.sst-price strong { font-size: 19px; font-weight: 700; color: var(--sv2-text); }
.sst-pv {
    flex: 0 0 auto; height: 24px; padding: 0 10px; border-radius: 12px; font-size: 12.5px; font-weight: 700; line-height: 24px;
    background: var(--sst-tint); color: var(--sst-c2);
}
.sst-buy { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: 8px; margin-top: auto; }
.sst-detail {
    min-width: 0; height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px;
    border: 1px solid var(--sst-line); border-radius: 12px; background: #fff; color: var(--sst-c2) !important;
    font-size: 14.5px; font-weight: 700; white-space: nowrap; text-decoration: none !important; transition: border-color .15s;
}
.sst-detail:hover { border-color: var(--sst-c1); }
.sst-qty {
    flex: 0 0 auto; display: flex; align-items: center; height: 42px; border: 1px solid var(--sst-line); border-radius: 12px; background: #fff;
}
.sst-qty button {
    width: 30px; height: 100%; border: 0; background: transparent; font-size: 18px; line-height: 1; color: var(--sv2-text); cursor: pointer;
}
.sst-qty button:hover { color: var(--sst-c2); }
.sst-qin {
    width: 30px; height: 100%; border: 0; outline: 0; text-align: center; font-size: 15px; font-weight: 600; color: var(--sv2-text);
    background: transparent; -moz-appearance: textfield; padding: 0;
}
.sst-qin::-webkit-inner-spin-button, .sst-qin::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sst-add {
    flex: 1 1 auto; min-width: 0; height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    border: 0; border-radius: 12px; background: var(--sst-c2); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 18px -12px var(--sst-c2); transition: filter .15s, transform .15s;
}
.sst-add span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sst-add:hover { filter: brightness(1.1); }
.sst-add:active { transform: translateY(1px); }
.sst-add.is-busy { opacity: .7; cursor: progress; }
.sst-add.is-pop { animation: sst-pop .4s ease; }
@keyframes sst-pop { 40% { transform: scale(1.06); } }
/* (11/11/2026) ป้าย "ในตะกร้า N" : เดิมเป็นบรรทัดใต้ปุ่ม → การ์ดสูงไม่เท่ากัน/ปุ่มไม่ตรงแถว · ย้ายเป็นป้ายลอยมุมล่างซ้ายของรูป (ไม่กินที่ในการ์ด)
   .sst-body เป็นจุดอ้างอิง (top ติดลบ = ขึ้นไปบนรูป) · ขอบการ์ดสีเขียวอ่อนเมื่อมีสินค้าในตะกร้า · มุมมองรายการ (.is-list) คงไว้ในเนื้อหา */
.sst-body { position: relative; }
.sst-incart {
    position: absolute; left: 12px; top: -40px; z-index: 1;
    display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px 0 9px; border-radius: 14px;
    background: #16a34a; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1; white-space: nowrap;
    box-shadow: 0 6px 14px -8px rgba(22, 101, 52, .7); pointer-events: none;
}
.sst-incart b { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .25); font-size: 11.5px; }
.sst-card:has(.sst-incart:not([hidden])) { border-color: color-mix(in srgb, #16a34a 35%, #fff); }
.sst-grid.is-list .sst-incart { position: static; align-self: flex-start; margin-top: 10px; }

/* มุมมองรายการ */
.sst-grid.is-list { grid-template-columns: 1fr; }
.sst-grid.is-list .sst-card { flex-direction: row; }
.sst-grid.is-list .sst-media { flex: 0 0 200px; }
.sst-grid.is-list .sst-img { height: 100%; }
.sst-grid.is-list .sst-body { padding: 16px 20px; }
.sst-grid.is-list .sst-buy { max-width: 360px; }

.sst-empty { margin-top: 10px; }
.sst-card.sst-in { animation: sst-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 25ms); }
@keyframes sst-in { from { opacity: 0; transform: translateY(8px); } }

/* แบ่งหน้า */
.sst-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; font-size: 14px; color: var(--sv2-muted); }
.sst-pager .sst-per { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; white-space: nowrap; }
.sst-pager select { width: auto; height: 38px; padding: 0 10px; border: 1px solid var(--sst-line); border-radius: 10px; background: #fff; color: var(--sv2-text); }
/* (03/12/2026) Dropdown select2 (เรียงตาม / ต่อหน้า) ในหน้าร้าน */
.sst select.select2-hidden-accessible { position: absolute !important; width: 1px !important; min-width: 0 !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; pointer-events: none !important; } /* select ตัวจริงที่ select2 ซ่อน : กฎ .sst-sort/.sst-pager select เดิมทำให้กลับมาแสดงและกดได้ (เปิดรายการซ้อน 2 อัน) */
.sst .select2-container--default .select2-selection--single { height: 42px; border-radius: 12px !important; }
.sst .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 40px; padding-left: 14px; padding-right: 34px; font-size: 14.5px; color: var(--sv2-text); }
.sst .select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; right: 8px; }
.sst .sst-sort .select2-container { min-width: 170px; }
.sst-pager .select2-container--default .select2-selection--single { height: 38px; border-radius: 10px !important; }
.sst-pager .select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 36px; }
.sst-pager .select2-container--default .select2-selection--single .select2-selection__arrow { height: 36px; }
.sst-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.sst-pages button { min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid var(--sst-line); border-radius: 10px; background: #fff; color: var(--sv2-text); font-weight: 700; cursor: pointer; }
.sst-pages button.is-on { background: var(--sst-c2); border-color: var(--sst-c2); color: #fff; }
.sst-pages button:disabled { opacity: .4; cursor: default; }

/* แจ้งผลใส่ตะกร้า */
.sst-toast {
    position: fixed; left: 50%; bottom: 96px; z-index: 1060; display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100vw - 24px));
    padding: 12px 14px 12px 16px; border-radius: 16px; background: #0f172a; color: #fff; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .5);
    font-size: 14.5px; transform: translate(-50%, 20px); opacity: 0; transition: transform .25s, opacity .25s;
}
.sst-toast.is-show { transform: translate(-50%, 0); opacity: 1; }
.sst-toast-ic { flex: 0 0 28px; height: 28px; border-radius: 50%; background: #22c55e; display: flex; align-items: center; justify-content: center; }
.sst-toast.is-err .sst-toast-ic { background: #ef4444; }
.sst-toast-msg { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sst-toast-go { flex: 0 0 auto; padding: 6px 12px; border-radius: 10px; background: rgba(255, 255, 255, .14); color: #fff !important; font-weight: 700; }
.sst-toast.is-err .sst-toast-go { display: none; }

@media (prefers-reduced-motion: reduce) {
    .sst-card.sst-in, .sst-add.is-pop { animation: none; }
    .sst-hero-track, .sst-card, .sst-img img { transition: none; }
}

/* ================= Responsive ================= */
@media (max-width: 1365px) {
    .sst-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 20px; }
    .sst-grid { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 14px; }
}

/* แท็บเล็ต / มือถือ : Sidebar → Filter Drawer (เลื่อนขึ้นจากล่าง) */
@media (max-width: 991px) {
    .sst { padding-top: 14px; }
    .sst-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .sst-filter-btn { display: inline-flex; }
    .sst-view { display: none; }
    .sst-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .sst-msearch { order: 3; flex-basis: 100%; }

    .sst-side {
        position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 1050; max-height: 86vh;
        display: flex; flex-direction: column; background: #fff; border-radius: 22px 22px 0 0;
        box-shadow: 0 -20px 50px -20px rgba(15, 23, 42, .45);
        transform: translateY(105%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .7, .2, 1), visibility .3s;
    }
    .sst-drawer-open .sst-side { transform: none; visibility: visible; }
    .sst-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; font-size: 18px; }
    .sst-drawer-head::before {
        content: ""; position: absolute; left: 50%; top: 7px; width: 40px; height: 4px; margin-left: -20px; border-radius: 2px; background: #d6dde7;
    }
    .sst-side-body { flex: 1 1 auto; overflow-y: auto; border: 0; box-shadow: none; border-radius: 0; padding: 4px 18px 16px; overscroll-behavior: contain; }
    .sst-drawer-foot { display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--sst-line); background: #fff; }
    .sst-backdrop { display: block; position: fixed; inset: 0; z-index: 1049; background: rgba(15, 23, 42, .45); }
    .sst-backdrop[hidden] { display: none; }
    .sst-side .sst-clear { display: none; }

    /* หมวดในลิ้นชัก = ชิปตัดบรรทัด */
    .sst-groups { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .sst-group { width: auto; min-height: 40px; padding: 4px 14px 4px 6px; border: 1px solid var(--sst-line); border-radius: 20px; font-size: 14.5px; }
    .sst-group .sst-gic { flex-basis: 28px; border-radius: 50%; }
    .sst-gname { white-space: nowrap; }
    .sst-group.is-on { border-color: var(--sst-c1); }

    /* แบรนด์ในลิ้นชัก = การ์ดโลโก้ 2 คอลัมน์ */
    .sst-brands { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sst-brand-box {
        position: relative; flex-direction: column; justify-content: center; gap: 6px; min-height: 104px; padding: 14px 10px 10px;
        border: 1.5px solid var(--sst-line); border-radius: 16px; background: #fff; text-align: center;
    }
    .sst-brand-box:hover { background: #fff; }
    .sst-brand-tick { position: absolute; right: 8px; top: 8px; width: 22px; height: 22px; border-radius: 50%; }
    .sst-brand-logo { width: 100%; max-width: 132px; height: 44px; }
    .sst-brand-name { flex: 0 0 auto; width: 100%; font-weight: 600; font-size: 14px; }
    .sst-brand .sst-count { font-size: 12px; }
    .sst-brand input:checked + .sst-brand-box { border-color: var(--sst-c1); background: var(--sst-tint); }

    /* แถบหมวด = เลื่อนแนวนอน */
    .sst-chip { flex: 0 0 92px; font-size: 13px; }
    .sst-cic { width: 48px; height: 48px; }
    .sst-cnav { width: 34px; height: 34px; margin-top: -17px; }
    .sst-cnav--l { left: -8px; }
    .sst-cnav--r { right: -8px; }
    .sst-hero { border-radius: 18px; }
}
@media (max-width: 767px) {
    /* Banner มือถือ : ครอปกลางภาพ (เนื้อหา Banner ตัวอย่างอยู่ช่วงกลาง 14–86%) */
    .sst-hero { aspect-ratio: 2.8 / 1; border-radius: 16px; }
    .sst-hero-nav { width: 32px; height: 32px; margin-top: -16px; }
    .sst-hero-nav svg { width: 16px; height: 16px; }
    .sst-hero-prev { left: 8px; }
    .sst-hero-next { right: 8px; }
    .sst-hero-dots { bottom: 8px; }
    .sst-sort > span:not(.select2) { display: none; } /* ซ่อนคำว่า "เรียงตาม" ไม่ใช่กล่อง select2 (เป็น span เหมือนกัน) */
    .sst-sort select { min-width: 0; width: 150px; }
}
@media (max-width: 575px) {
    .sst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sst-body { padding: 10px 10px 12px; }
    .sst-name { font-size: 14.5px; }
    .sst-price { flex-direction: column; align-items: flex-start; gap: 4px; margin: 6px 0 10px; }
    .sst-price strong { font-size: 17px; }
    .sst-buy { grid-template-columns: minmax(0, 1fr); gap: 6px; }
    .sst-detail { display: none; } /* มือถือ : กดรูป/ชื่อเพื่อดูรายละเอียด */
    .sst-perk { padding: 10px; gap: 8px; }
    .sst-pic { flex-basis: 34px; width: 34px; height: 34px; }
    .sst-perk span:not(.sst-pic) { display: none; }
    .sst-perk b { font-size: 13px; }
    .sst-add { height: 40px; font-size: 14.5px; }
    .sst-flag { left: 8px; top: 8px; height: 24px; padding: 0 9px; font-size: 12px; }
    .sst-incart { left: 8px; top: -34px; height: 24px; padding: 0 9px 0 7px; font-size: 12px; }
    .sst-wish, .sst-share { top: 6px; width: 32px; height: 32px; }
    .sst-wish { right: 6px; }
    .sst-share { right: 42px; }
    .sst-tools { flex: 1 1 auto; }
    .sst-sort { flex: 1 1 auto; }
    .sst-sort select:not(.select2-hidden-accessible), .sst .sst-sort .select2-container { width: 100% !important; min-width: 0; } /* select ที่ select2 ซ่อนไว้ห้ามขยาย (ล้นจอ) */
}
html.sst-lock, html.sst-lock body { overflow: hidden; }

/* (08/11/2026) r3.1 : ปรับจากภาพหน้าจอจริง */
.sst-sort > span { white-space: nowrap; }
.sst-brand-logo { display: none; }                     /* desktop : รายการชื่อแบรนด์ล้วน (โลโก้เล็กเกินอ่าน) */
@media (max-width: 991px) {
    .sst-brand-logo { display: block; width: 100%; max-width: 150px; height: 64px; object-fit: contain; }
    .sst-brand-box { min-height: 112px; gap: 4px; }
    .sst-brand-logo + .sst-brand-name { font-size: 13px; color: var(--sv2-muted); font-weight: 500; }
}
@media (max-width: 767px) {
    .sst-hero-nav { display: none; }                   /* มือถือ : ปัด/จุดแทนลูกศร (ลูกศรบังข้อความ Banner) */
}
