/* ITSC Store — shop.html (Category -> Sub-category -> Products -> Product page). Cart styles come from itsc-products.css */

/* ---------- Hero ---------- */
.sh-hero { padding: 56px 0 64px; }
.sh-hero-in { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 30px 50px; align-items: end; }
.sh-hero h1 { font-size: clamp(30px, 4vw, 52px); margin: 20px 0 14px; max-width: 820px; line-height: 1.08; overflow-wrap: anywhere; }
.sh-hero .hero-lead { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.6; }
.sh-hero .crumbs { max-width: 100%; }
.sh-hero .crumbs span { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sh-hero-side { display: flex; flex-direction: column; gap: 14px; min-width: 340px; }
.sh-search { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 18px; border-radius: 16px; background: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); }
.sh-search i { font-size: 22px; color: var(--muted); }
.sh-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font: inherit; font-size: 15.5px; color: var(--ink); }
.sh-search kbd { padding: 3px 9px; border: 1px solid var(--line); border-radius: 7px; font: 600 12px/1.4 var(--f-body); color: var(--muted); background: var(--bg-soft); }
.sh-search:focus-within { box-shadow: 0 0 0 3px rgba(0, 159, 227, .45), 0 20px 50px -20px rgba(0, 0, 0, .6); }
.sh-stats { display: flex; gap: 10px; }
.sh-stats div { flex: 1; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.sh-stats b { display: block; font-size: 20px; color: #fff; }
.sh-stats span { font-size: 12px; color: rgba(255, 255, 255, .6); }
.sh-headcart { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; font: 700 14px var(--f-body); cursor: pointer; transition: background .25s; }
.sh-headcart:hover { background: rgba(255, 255, 255, .14); }
.sh-headcart i { font-size: 20px; }
.sh-headcart b { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 100px; font-size: 12px; background: rgba(255, 255, 255, .16); }
.sh-headcart.has b { background: var(--red); }

/* ---------- Section ---------- */
.sh-section { padding: 56px 0 90px; background: var(--bg-soft); min-height: 60vh; }
.sh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sh-head h2 { font-size: clamp(24px, 2.6vw, 34px); }
.sh-head > p { margin: 0; color: var(--muted); font-weight: 600; font-size: 14px; }
.sh-eyebrow { display: inline-block; margin-bottom: 8px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c, var(--blue)); }
.sh-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ink); }
.sh-all:hover { color: var(--c, var(--blue)); }

/* ---------- Level 1: categories ---------- */
.sh-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.sh-cat { position: relative; display: flex; flex-direction: column; padding: 24px; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.sh-cat::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.sh-cat:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.sh-cat:hover::before { transform: none; }
.sh-cat-no { position: absolute; top: 18px; right: 20px; font-size: 13px; font-weight: 800; color: var(--line); }
.sh-cat-ic { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; font-size: 28px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); transition: background .35s, color .35s; }
.sh-cat:hover .sh-cat-ic { background: var(--c); color: #fff; }
.sh-cat h3 { margin: 18px 0 8px; font-size: 18.5px; }
.sh-cat p { flex: 1; margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-cat-meta { display: flex; justify-content: space-between; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); }
.sh-cat-meta b { color: var(--ink); }
.sh-go { position: absolute; right: 20px; bottom: 54px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 20px; color: #fff; background: var(--c); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .35s var(--ease); }
.sh-cat:hover .sh-go { opacity: 1; transform: none; }

/* ---------- Placeholder product "views" ---------- */
.sh-ph { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 18px; text-align: center; overflow: hidden; color: var(--ink); background: radial-gradient(circle at 50% 38%, color-mix(in srgb, var(--c) 16%, #fff) 0%, #fff 70%); user-select: none; }
.sh-ph.v0 i { position: relative; font-size: clamp(54px, 9vw, 92px); color: var(--c); filter: drop-shadow(0 12px 18px color-mix(in srgb, var(--c) 35%, transparent)); }
.sh-ph-ring { position: absolute; width: 62%; aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -62%); border-radius: 50%; border: 1.5px dashed color-mix(in srgb, var(--c) 35%, transparent); }
.sh-ph.v0 b { position: relative; margin-top: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.sh-ph.v0 small { position: relative; font-size: 14px; font-weight: 700; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-ph.v1 { align-items: stretch; justify-content: center; text-align: left; padding: 9% 11%; background: linear-gradient(160deg, #fff 0%, color-mix(in srgb, var(--c) 10%, #fff) 100%); }
.sh-ph.v1 ul { list-style: none; margin: 14px 0; padding: 0; display: grid; gap: 10px; }
.sh-ph.v1 li { display: flex; gap: 8px; font-size: clamp(13px, 1.3vw, 16px); font-weight: 600; line-height: 1.35; }
.sh-ph.v1 li i { flex: none; margin-top: 2px; color: var(--c); font-size: 18px; }
.sh-ph.v1 b { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sh-ph-tag { align-self: flex-start; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: var(--c); }
.sh-ph.v2 { color: #fff; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--c) 70%, #1b2a6b) 0%, var(--ink) 75%); }
.sh-ph.v2 i { font-size: clamp(54px, 8vw, 84px); color: var(--yellow); }
.sh-ph.v2 strong { font-size: clamp(16px, 1.8vw, 22px); }
.sh-ph.v2 small { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* ---------- Level 2: sub-categories ---------- */
.sh-subs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.sh-sub { display: flex; flex-direction: column; border-radius: 20px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.sh-sub:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sh-sub-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.sh-sub-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .6s var(--ease); }
.sh-sub:hover .sh-sub-media img, .sh-sub:hover .sh-sub-media .sh-ph { transform: scale(1.04); }
.sh-sub-media .sh-ph { transition: transform .6s var(--ease); }
.sh-sub-media .sh-ph.v0 small { display: none; }
.sh-sub-ic { position: absolute; left: 16px; bottom: -1px; width: 46px; height: 40px; display: grid; place-items: center; border-radius: 12px 12px 0 0; font-size: 22px; color: #fff; background: var(--c); }
.sh-sub-body { flex: 1; display: flex; flex-direction: column; padding: 20px 20px 18px; }
.sh-sub-body h3 { font-size: 18px; margin-bottom: 6px; }
.sh-sub-body p { margin: 0 0 14px; font-size: 14px; line-height: 1.55; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.sh-chips span { padding: 3px 9px; border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--ink); background: var(--bg-soft); border: 1px solid var(--line); }
.sh-sub-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); }
.sh-sub-foot b { color: var(--ink); }
.sh-sub-foot em { margin-left: auto; font-style: normal; }
.sh-sub-foot > i { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; font-size: 19px; color: #fff; background: var(--ink); transition: background .3s, transform .3s var(--ease); }
.sh-sub:hover .sh-sub-foot > i { background: var(--c); transform: translateX(3px); }

.sh-more { margin-top: 46px; }
.sh-more h4 { font-size: 15px; margin-bottom: 12px; color: var(--muted); }
.sh-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.sh-pills a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 100px; font-size: 13.5px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid var(--line); transition: border-color .25s, color .25s; }
.sh-pills a i { font-size: 17px; color: var(--c); }
.sh-pills a:hover { border-color: var(--c); color: var(--c); }
.sh-hitsubs { margin-bottom: 22px; }

/* ---------- Level 3: product list ---------- */
.sh-list { display: grid; grid-template-columns: 270px 1fr; gap: 26px; align-items: start; }
.sh-filter { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; max-height: calc(100vh - 120px); overflow: auto; scrollbar-width: thin; }
.sh-fhead { display: flex; justify-content: space-between; align-items: center; padding: 0 4px; }
.sh-fhead strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.sh-reset { border: 0; background: none; font: 700 13px var(--f-body); color: var(--red); cursor: pointer; }
.sh-fbox { padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.sh-fbox h5 { margin-bottom: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sh-checks, .sh-radios { display: grid; gap: 2px; max-height: 260px; overflow: auto; }
.sh-checks label, .sh-radios label { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; font-size: 14px; color: var(--ink); cursor: pointer; }
.sh-checks label:hover, .sh-radios label:hover { background: var(--bg-soft); }
.sh-checks input, .sh-radios input { width: 17px; height: 17px; accent-color: var(--c); flex: none; }
.sh-checks span, .sh-radios span { flex: 1; }
.sh-checks em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.sh-sublinks { display: grid; gap: 2px; }
.sh-sublinks a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text); }
.sh-sublinks a i { font-size: 18px; color: var(--muted); }
.sh-sublinks a span { flex: 1; }
.sh-sublinks a em { font-style: normal; font-size: 12px; color: var(--muted); }
.sh-sublinks a:hover { background: var(--bg-soft); color: var(--ink); }
.sh-sublinks a.on { background: var(--c); color: #fff; }
.sh-sublinks a.on i, .sh-sublinks a.on em { color: #fff; }
.sh-help { position: relative; padding: 18px; border-radius: 16px; color: #fff; background: var(--ink); }
.sh-help .pulse { position: absolute; top: 20px; right: 20px; }
.sh-help strong { display: block; margin-bottom: 4px; }
.sh-help p { margin: 0 0 12px; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.sh-help .btn { height: 42px; padding: 0 16px; font-size: 14px; }

.sh-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sh-bar p { margin: 0 auto 0 0; color: var(--muted); font-size: 14px; }
.sh-bar b { color: var(--ink); }
.sh-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.sh-sort select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 14px var(--f-body); color: var(--ink); cursor: pointer; }
.sh-ftoggle { display: none; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 700 14px var(--f-body); color: var(--ink); cursor: pointer; }
.sh-active { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.sh-active:empty { display: none; }
.sh-active button { display: inline-flex; align-items: center; gap: 4px; padding: 6px 8px 6px 12px; border: 0; border-radius: 100px; font: 600 13px var(--f-body); color: #fff; background: var(--c); cursor: pointer; }

.sh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.sh-grid-wide { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sh-card { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s; }
.sh-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.sh-card.in-cart { border-color: var(--c); }
.sh-card-media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.sh-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; transition: transform .6s var(--ease); }
.sh-card-media .sh-ph { transition: transform .6s var(--ease); }
.sh-card:hover .sh-card-media img, .sh-card:hover .sh-card-media .sh-ph { transform: scale(1.05); }
.sh-card-media .sh-ph.v0 small { display: none; }
.sh-badge { position: absolute; top: 12px; left: 12px; max-width: calc(100% - 24px); padding: 4px 10px; border-radius: 100px; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; color: var(--ink); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sh-pics { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 100px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(11, 16, 32, .7); }
.sh-card-body { flex: 1; display: flex; flex-direction: column; padding: 14px 16px 16px; }
.sh-card-name { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-card-name:hover { color: var(--c); }
.sh-card-spec { margin: 6px 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sh-card-foot { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.sh-card-act { display: flex; gap: 8px; }
.sh-card-act .sh-buy-slot { flex: 1; display: flex; }
.sh-card-act .pd-add, .sh-card-act .pd-qty { flex: 1; }
.sh-card .pd-add:hover { background: var(--c); }

.sh-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; }
.sh-price small { font-size: 12px; color: var(--muted); font-weight: 600; }
.sh-price b { font-size: 19px; color: var(--ink); }
.sh-price em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }
.sh-price span { width: 100%; font-size: 12px; color: var(--muted); }
.sh-price.ask b { font-size: 15px; color: var(--c); }

.sh-loadwrap { display: flex; justify-content: center; margin-top: 30px; }
.sh-loadwrap .btn[hidden] { display: none; }
.sh-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 50px 20px; text-align: center; border-radius: 20px; background: #fff; border: 1px dashed var(--line); }
.sh-empty[hidden] { display: none; }
.sh-empty > i { font-size: 46px; color: var(--muted); }
.sh-empty strong { font-size: 18px; color: var(--ink); }
.sh-empty p { margin: 0 0 6px; color: var(--muted); }
.sh-loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 80px 0; color: var(--muted); font-weight: 600; }
.sh-loading i { font-size: 24px; }

/* ---------- Level 4: product page ---------- */
.sh-pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.sh-gal { position: sticky; top: 100px; align-self: start; outline: none; }
.sh-gal:focus-visible .sh-stage { box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 45%, transparent); }
.sh-stage { position: relative; aspect-ratio: 1 / 1; border-radius: 20px; overflow: hidden; background: #fff; border: 1px solid var(--line); touch-action: pan-y; cursor: zoom-in; }
.sh-track { display: flex; height: 100%; transition: transform .5s var(--ease); }
.sh-slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.sh-slide img { width: 100%; height: 100%; object-fit: contain; padding: 22px; transition: transform .3s; user-select: none; -webkit-user-drag: none; }
.sh-slide img.zoom { transform: scale(1.9); }
.sh-nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; margin-top: -22px; border: 1px solid var(--line); border-radius: 50%; font-size: 26px; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .3); cursor: pointer; opacity: 0; transition: opacity .3s, background .25s, color .25s; }
.sh-nav.prev { left: 14px; }
.sh-nav.next { right: 14px; }
.sh-stage:hover .sh-nav, .sh-nav:focus-visible { opacity: 1; }
.sh-nav:hover { background: var(--c); color: #fff; border-color: transparent; }
.sh-gcount { position: absolute; left: 14px; bottom: 14px; z-index: 2; padding: 4px 11px; border-radius: 100px; font-size: 12.5px; font-weight: 700; color: #fff; background: rgba(11, 16, 32, .72); }
.sh-expand { position: absolute; right: 14px; bottom: 14px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 12px; font-size: 20px; color: #fff; background: rgba(11, 16, 32, .72); cursor: pointer; }
.sh-expand:hover { background: var(--c); }
.sh-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.sh-thumb { flex: 0 0 82px; height: 82px; padding: 0; border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; transition: border-color .25s, transform .25s; }
.sh-thumb:hover { transform: translateY(-2px); }
.sh-thumb.on { border-color: var(--c); }
.sh-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.sh-thumb .sh-ph { padding: 4px; gap: 0; }
.sh-thumb .sh-ph i { font-size: 30px !important; }
.sh-thumb .sh-ph b, .sh-thumb .sh-ph small, .sh-thumb .sh-ph strong, .sh-thumb .sh-ph-ring, .sh-thumb .sh-ph ul { display: none; }
.sh-thumb .sh-ph.v1::after { content: "\2261"; font-size: 30px; color: var(--c); }
.sh-thumb .sh-ph-tag { display: none; }

.sh-info { min-width: 0; }
.sh-info-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sh-brandchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 100px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.sh-brandchip:hover { background: var(--c); color: #fff; }
.sh-sku { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.sh-pname { margin: 14px 0 6px; font-size: clamp(24px, 2.6vw, 34px); overflow-wrap: anywhere; }
.sh-where { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; }
.sh-pricebox { padding: 18px 20px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.sh-price.big b { font-size: 32px; }
.sh-price.big.ask b { font-size: 24px; }
.sh-price.big span { font-size: 13.5px; }
.sh-pricebox > small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.sh-keys { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 9px; }
.sh-keys li { display: flex; gap: 9px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.sh-keys i { flex: none; margin-top: 1px; font-size: 19px; color: var(--c); }
.sh-buy { display: grid; grid-template-columns: auto 1fr 1fr; gap: 10px; align-items: end; margin-top: 4px; }
.sh-qtypick { display: flex; flex-direction: column; gap: 6px; }
.sh-qtypick > span { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.sh-qtypick .pd-qty.sm { height: 52px; padding: 4px; border-radius: 14px; }
.sh-qtypick .pd-qty.sm button { width: 38px; height: 42px; border-radius: 10px; }
.sh-buy .btn { height: 52px; justify-content: center; padding: 0 16px; }
.sh-addbtn.done { background: var(--green); }
.sh-addbtn.done::before { opacity: 0 !important; }
.sh-buynow { color: #fff; background: var(--c); box-shadow: 0 14px 30px -14px var(--c); }
.sh-buynow:hover { color: #fff; transform: translateY(-3px); filter: brightness(1.05); }
.sh-incart { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 14px; font-weight: 600; color: var(--green); }
.sh-incart[hidden] { display: none; }
.sh-incart button { border: 0; padding: 0; background: none; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
.sh-ask { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 18px 0 22px; }
.sh-ask a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.sh-ask a i { font-size: 20px; }
.sh-ask a:first-child i { color: #25d366; }
.sh-ask a:hover { color: var(--c); }
.sh-assure { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.sh-assure div { display: flex; gap: 10px; align-items: flex-start; }
.sh-assure i { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; font-size: 20px; color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.sh-assure span { font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.sh-assure b { display: block; font-size: 13.5px; color: var(--ink); }

.sh-tabs { margin-top: 24px; padding: 8px 28px 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.sh-tablist { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.sh-tablist button { position: relative; padding: 16px 14px; border: 0; background: none; font: 700 15px var(--f-body); color: var(--muted); cursor: pointer; white-space: nowrap; }
.sh-tablist button.on { color: var(--ink); }
.sh-tablist button.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px; background: var(--c); }
.sh-tab[hidden] { display: none; }
.sh-spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sh-spec th, .sh-spec td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.sh-spec th { width: 32%; font-weight: 600; color: var(--muted); background: var(--bg-soft); }
.sh-spec td { color: var(--ink); }
.sh-spec tr:last-child th, .sh-spec tr:last-child td { border-bottom: 0; }
.sh-svc { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.sh-svc li { display: flex; gap: 12px; font-size: 14.5px; line-height: 1.55; }
.sh-svc i { flex: none; font-size: 22px; color: var(--c); }
.sh-svc b { color: var(--ink); }
.sh-related { margin-top: 50px; }
.sh-rel { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- Lightbox ---------- */
.sh-lb { position: fixed; inset: 0; z-index: 1300; display: grid; place-items: center; padding: 60px 70px; background: rgba(8, 12, 28, .92); opacity: 0; transition: opacity .25s; }
.sh-lb.in { opacity: 1; }
.sh-lb-stage { width: min(900px, 100%); aspect-ratio: 1 / 1; max-height: 100%; border-radius: 20px; overflow: hidden; background: #fff; }
.sh-lb-stage img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.sh-lb-x, .sh-lb-nav { position: absolute; width: 50px; height: 50px; display: grid; place-items: center; border: 0; border-radius: 50%; font-size: 28px; color: #fff; background: rgba(255, 255, 255, .12); cursor: pointer; }
.sh-lb-x:hover, .sh-lb-nav:hover { background: rgba(255, 255, 255, .25); }
.sh-lb-x { top: 16px; right: 16px; }
.sh-lb-nav.prev { left: 14px; top: 50%; margin-top: -25px; }
.sh-lb-nav.next { right: 14px; top: 50%; margin-top: -25px; }
.sh-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-weight: 700; color: rgba(255, 255, 255, .8); }

/* Cart thumbnail (real photo) */
.ci-img { width: 46px; height: 46px; flex: none; object-fit: contain; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 3px; }
.ci-txt a:hover strong { color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .sh-rel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sh-pdp { gap: 28px; padding: 22px; }
}
@media (max-width: 960px) {
    .sh-hero-in { grid-template-columns: 1fr; }
    .sh-hero-side { min-width: 0; }
    .sh-list { grid-template-columns: 1fr; }
    .sh-filter { position: static; max-height: none; display: none; }
    .sh-filter.open { display: flex; }
    .sh-ftoggle { display: inline-flex; }
    .sh-help { display: none; }
    .sh-pdp { grid-template-columns: 1fr; }
    .sh-gal { position: static; }
}
@media (max-width: 640px) {
    .sh-hero { padding: 36px 0 44px; }
    .sh-hero .hero-lead { font-size: 15.5px; }
    .sh-section { padding: 32px 0 70px; }
    .container.sh-wrap { padding: 0 16px; }
    .sh-cats, .sh-subs { grid-template-columns: 1fr; gap: 14px; }
    .sh-grid, .sh-grid-wide, .sh-rel { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sh-card-body { padding: 12px; }
    .sh-card-name { font-size: 14.5px; }
    .sh-card-spec { display: none; }
    .sh-price b { font-size: 16px; }
    .sh-card-act .pd-wa { display: none; }
    .sh-pdp { padding: 14px; border-radius: 18px; }
    .sh-nav { opacity: 1; width: 38px; height: 38px; font-size: 22px; margin-top: -19px; }
    .sh-thumb { flex-basis: 64px; height: 64px; }
    .sh-buy { grid-template-columns: 1fr 1fr; }
    .sh-qtypick { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }
    .sh-assure { grid-template-columns: 1fr; }
    .sh-tabs { padding: 4px 14px 16px; border-radius: 18px; }
    .sh-spec th, .sh-spec td { padding: 10px; font-size: 13.5px; }
    .sh-spec th { width: 38%; }
    .sh-stats { display: none; }
    .sh-lb { padding: 70px 10px; }
    .sh-lb-nav.prev { left: 6px; }
    .sh-lb-nav.next { right: 6px; }
    .sh-sort select { max-width: 160px; }
}
