/* ==========================================================
   Shop styles (listing, product page, cart drawer, checkout)
   ========================================================== */
[hidden] { display: none !important; }
body.no-scroll { overflow: hidden; }

/* ---------- Buttons used by the shop ---------- */
.btn-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn-dark:hover { background: color-mix(in srgb, var(--dark) 85%, white); }
.btn-wa-soft { background: #ecfdf3; border-color: #bbf7d0; color: #15803d; margin-top: 12px; }
.btn-wa-soft:hover { background: #dcfce7; }
.btn.loading { opacity: .65; pointer-events: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: #dc2626; cursor: pointer; font-size: .88rem; }
.grow { flex: 1; }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a:hover { color: var(--primary); }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs span { opacity: .5; }

/* ---------- Shop hero & trust strip ---------- */
.shop-hero { padding: 44px 0 30px; background: linear-gradient(180deg, var(--surface), var(--bg)); border-bottom: 1px solid var(--line); }
.shop-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: .25em; }
.shop-hero p { max-width: 640px; margin: 0; }
.trust-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-left: 1px solid var(--line); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item b { display: block; font-size: .92rem; }
.trust-item small { color: var(--muted); font-size: .8rem; }
.trust-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }

/* ---------- Layout ---------- */
.shop-section { padding-top: 36px; }
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.shop-sidebar { position: sticky; top: 90px; }
.filter-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.filter-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.filter-head h3 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.05rem; }
.filter-close { display: none; }
.filter-block { padding: 16px 0; border-bottom: 1px solid var(--line); }
.filter-block:last-of-type { border-bottom: 0; margin-bottom: 8px; }
.filter-block h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.search-box { position: relative; }
.search-box .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { margin: 0 !important; padding-left: 38px !important; }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.cat-list a { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; border-radius: 10px; font-weight: 600; font-size: .93rem; color: var(--text); }
.cat-list a span { font-size: .76rem; font-weight: 700; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 1px 8px; }
.cat-list a:hover { background: var(--bg); }
.cat-list a.active { background: var(--primary-soft); color: var(--primary); }
.cat-list a.active span { background: var(--primary); color: #fff; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range input { margin: 0 !important; padding: .6em .7em !important; }
.check { display: flex !important; align-items: center; gap: 10px; font-weight: 500 !important; margin: 0 0 8px !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.reset-link { display: block; text-align: center; margin-top: 10px; font-weight: 600; font-size: .88rem; color: var(--muted); }
.reset-link:hover { color: #dc2626; }
.filters-overlay { display: none; }

/* ---------- Toolbar ---------- */
.shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.result-count { margin: 0; color: var(--muted); font-size: .94rem; }
.result-count b { color: var(--text); }
.bar-right { display: flex; align-items: center; gap: 10px; }
.sort-label { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.sort-label select { margin: 0; width: auto; padding: .55em 2em .55em .9em; border-radius: 999px; font-size: .9rem; }
.view-toggle { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.view-toggle button { width: 36px; height: 32px; border: 0; background: none; border-radius: 999px; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.view-toggle button.active { background: var(--primary); color: #fff; }
.filter-toggle { display: none; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; padding: .35em .8em; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .86rem; }
.active-chip:hover { background: color-mix(in srgb, var(--primary) 18%, white); }
.active-chips .reset-link { margin: 0 0 0 4px; display: inline; }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--primary) 25%, var(--line)); }
.pc-media { position: relative; display: block; overflow: hidden; background: var(--bg); }
.pc-media .thumb { aspect-ratio: 1 / 1; position: relative; }
.pc-media .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease, transform .5s ease; }
.pc-media .pc-alt { opacity: 0; }
.product-card:hover .pc-alt { opacity: 1; }
.product-card:hover .pc-media img { transform: scale(1.04); }
.product-card.is-out .pc-media .thumb { filter: grayscale(.7); opacity: .75; }
.pc-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.pc-badges span { padding: .28em .7em; border-radius: 8px; font-size: .74rem; font-weight: 800; letter-spacing: .01em; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.badge-sale { background: #ef4444; color: #fff; }
.badge-label { background: var(--surface); color: var(--text); }
.badge-out { background: var(--dark); color: #fff; }
.product-card .card-body { padding: 16px 18px 18px; }
.product-card h3 { font-size: 1.02rem; margin-bottom: .25em; }
.product-card h3 a:hover { color: var(--primary); }
.pc-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .88rem !important; margin-bottom: 12px; }
.pc-bottom { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pc-price .price { font-size: 1.2rem; }
.pc-price del { color: var(--muted); font-size: .9rem; }
.pc-stock { font-size: .78rem; font-weight: 700; color: #c2410c; white-space: nowrap; }
.btn-add { width: 100%; padding: .65em 1em; border-radius: 12px; background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn-add:hover { background: var(--primary); color: #fff; }
.js-add { margin: 0; }

/* List view */
.product-grid.is-list { grid-template-columns: 1fr; }
.product-grid.is-list .product-card { flex-direction: row; }
.product-grid.is-list .pc-media { width: 220px; flex-shrink: 0; }
.product-grid.is-list .card-body { padding: 20px 24px; }
.product-grid.is-list .pc-desc { -webkit-line-clamp: 3; }
.product-grid.is-list .btn-add { width: auto; align-self: flex-start; padding: .65em 1.4em; }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 10px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 700; font-size: .92rem; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .current { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .disabled { opacity: .4; }
.pager .gap { border: 0; background: none; }

.empty.card { padding: 56px 24px; }
.empty h3 { color: var(--text); margin-top: 10px; }

/* ---------- Product page ---------- */
.product-section { padding-top: 32px; }
.pd-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; margin-top: 8px; }
.gallery { position: sticky; top: 90px; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); aspect-ratio: 1 / 1; }
.gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main .thumb-big { border-radius: 0; height: 100%; }
.gallery-main .pc-badges { top: 16px; left: 16px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.gallery-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 1 / 1; background: var(--bg); opacity: .7; transition: opacity .2s, border-color .2s; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button.active { border-color: var(--primary); opacity: 1; }
.pd-info h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .35em; }
.pd-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: .9rem; margin-bottom: 18px; }
.stock-pill { display: inline-flex; align-items: center; gap: 7px; padding: .3em .8em; border-radius: 999px; font-weight: 700; font-size: .84rem; }
.stock-pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-pill.in { background: #dcfce7; color: #15803d; }
.stock-pill.low { background: #ffedd5; color: #c2410c; }
.stock-pill.out { background: #fee2e2; color: #b91c1c; }
.pd-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.pd-price .price { font-size: 2.1rem; letter-spacing: -.02em; }
.pd-price del { color: var(--muted); font-size: 1.1rem; }
.save { background: #fef2f2; color: #dc2626; font-weight: 700; font-size: .84rem; padding: .25em .7em; border-radius: 8px; }
.pd-lead { font-size: 1.04rem; color: var(--muted); }
.pd-buy { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 0; }
.pd-perks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.pd-perks li { display: flex; gap: 12px; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.pd-perks li:last-child { border-bottom: 0; }
.pd-perks li > span { color: var(--primary); display: grid; }
.pd-perks b { display: block; font-size: .9rem; }
.pd-perks small { color: var(--muted); font-size: .84rem; }
.share { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: .9rem; }
.share-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; }
.share-btn:hover { color: var(--primary); border-color: var(--primary); }

.pd-tabs { margin-top: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tabs-nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 16px; overflow-x: auto; }
.tabs-nav button { background: none; border: 0; padding: 16px 14px; font: inherit; font-weight: 700; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-nav button.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; padding: 26px 28px; }
.tab-panel.active { display: block; }
.tab-panel.prose p { color: var(--text); opacity: .85; max-width: 760px; }
.spec-table { width: 100%; max-width: 720px; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; background: var(--bg); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

.sticky-buy { display: none; }

/* ---------- Checkout steps ---------- */
.checkout-head { padding-bottom: 26px; }
.steps { list-style: none; display: flex; align-items: center; gap: 8px; padding: 0; margin: 0 0 18px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--muted); }
.steps li:not(:last-child)::after { content: ""; width: 36px; height: 2px; background: var(--line); margin-left: 4px; border-radius: 2px; }
.steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line); font-size: .8rem; font-weight: 800; }
.steps li.current { color: var(--text); }
.steps li.current span { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps li.done span { background: #16a34a; border-color: #16a34a; color: #fff; }
.steps li.done::after { background: #16a34a; }

/* ---------- Cart table ---------- */
.cart-table { padding: 6px 22px; }
.ct-head, .ct-row { display: grid; grid-template-columns: 1fr 130px 100px 36px; gap: 16px; align-items: center; }
.ct-head { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ct-head span:nth-child(3) { text-align: right; }
.ct-row { padding: 16px 0; border-bottom: 1px solid var(--line); }
.ct-product { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ct-product b { display: block; }
.ct-product small { display: block; }
.ct-product:hover b { color: var(--primary); }
.low-note { color: #c2410c; font-weight: 600; }
.ct-line { text-align: right; }
.ct-actions { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }
.qty-sm button { width: 34px; height: 38px; }
.qty-sm input { width: 40px; margin: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; }
.qty input[type=number] { margin: 0; padding: 0; border: 0; box-shadow: none; width: 46px; text-align: center; border-radius: 0; }
.thumb-xs { width: 48px; height: 48px; aspect-ratio: auto; border-radius: 10px; flex-shrink: 0; }
.thumb-xs.thumb-ph span, .thumb-sm.thumb-ph span { font-size: .95rem; }

.summary h3 { margin-bottom: 14px; }
.coupon-form { display: flex; gap: 8px; margin-bottom: 6px; }
.coupon-form input { margin: 0 !important; padding: .6em .9em !important; text-transform: uppercase; }
.coupon-error { color: #b91c1c; font-size: .84rem; font-weight: 600; margin: 4px 0 10px; }
.coupon-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #ecfdf3; border: 1px dashed #86efac; color: #15803d; font-size: .9rem; margin-bottom: 10px; }
.coupon-applied span { display: flex; align-items: center; gap: 6px; }
.sum-discount b { color: #16a34a; }
.sum-discount em { font-style: normal; font-size: .76rem; font-weight: 700; background: #dcfce7; color: #15803d; padding: 1px 7px; border-radius: 6px; margin-left: 4px; }
.free-bar { margin: 12px 0 4px; font-size: .86rem; color: var(--muted); }
.free-bar > span { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; }
.free-bar b { color: var(--text); }
.free-bar .bar { height: 6px; border-radius: 99px; background: var(--bg); overflow: hidden; }
.free-bar .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #16a34a); border-radius: 99px; transition: width .4s ease; }
.pay-note { margin-top: 16px; text-align: center; }
.pay-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 6px; }
.pay-chips span { font-size: .76rem; font-weight: 600; padding: .25em .7em; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }

/* ---------- Checkout form ---------- */
.step-num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: .82rem; margin-right: 6px; }
.form-card h3 { display: flex; align-items: center; }
.pay-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.pay-option { margin: 0; cursor: pointer; }
.pay-option input { position: absolute; opacity: 0; }
.pay-option span { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font-weight: 600; transition: border-color .2s, background .2s; }
.pay-option input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.pay-option input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.note-box { display: flex; gap: 8px; align-items: flex-start; background: var(--bg); padding: 12px 14px; border-radius: 10px; margin: 14px 0 0; }
.mini-items { display: grid; gap: 12px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); max-height: 320px; overflow-y: auto; }
.mini-item { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.mini-item span { flex: 1; min-width: 0; }
.mini-thumb-wrap { position: relative; }
.mini-thumb-wrap em { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; border-radius: 999px; background: var(--muted); color: #fff; font-style: normal; font-size: .72rem; font-weight: 800; display: grid; place-items: center; padding: 0 5px; }
.agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 500 !important; font-size: .86rem !important; color: var(--muted); margin: 16px 0 4px !important; cursor: pointer; }
.agree input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--primary); flex-shrink: 0; }
.center-link { display: flex; justify-content: center; margin-top: 12px; font-size: .9rem; }

/* ---------- Order tracking ---------- */
.track-form .btn { margin-top: 4px; }
.track-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.track-head h3 { margin: 0; }
.track-head small, .track-head b { display: block; }
.timeline { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline li { position: relative; text-align: center; font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 38px; }
.timeline li::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.timeline li:first-child::before { display: none; }
.timeline li span { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; z-index: 1; }
.timeline li.done, .timeline li.current { color: var(--text); }
.timeline li.done span, .timeline li.current span { background: #16a34a; border-color: #16a34a; color: #fff; }
.timeline li.done::before, .timeline li.current::before { background: #16a34a; }
.timeline li.current span { box-shadow: 0 0 0 5px rgba(22,163,74,.18); }

/* ---------- Cart drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-overlay { position: absolute; inset: 0; background: rgba(11, 18, 32, .45); opacity: 0; transition: opacity .25s; }
.drawer.open .drawer-overlay { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--surface); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); box-shadow: -20px 0 60px rgba(0,0,0,.18); }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; display: flex; align-items: center; gap: 10px; }
.drawer-head .icon-btn:hover { color: var(--text); background: var(--bg); }
.drawer-items { flex: 1; overflow-y: auto; padding: 6px 22px; }
.drawer-empty { text-align: center; padding: 60px 10px; color: var(--muted); }
.drawer-empty .ic { margin: 0 auto 12px; opacity: .5; }
.d-item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.d-thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--bg); }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-thumb .ph { width: 100%; height: 100%; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, hsl(var(--h) 70% 55%), hsl(calc(var(--h) + 40) 75% 45%)); }
.d-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.d-name { font-weight: 700; font-size: .94rem; line-height: 1.3; }
.d-name:hover { color: var(--primary); }
.d-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; margin-top: 6px; align-self: flex-start; }
.d-qty button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; font-size: 1.05rem; font-weight: 700; color: var(--text); }
.d-qty button:disabled { opacity: .3; cursor: default; }
.d-qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; }
.d-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.d-remove { background: none; border: 0; padding: 0; font: inherit; font-size: .8rem; color: var(--muted); cursor: pointer; text-decoration: underline; }
.d-remove:hover { color: #dc2626; }
.drawer-foot { padding: 16px 22px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.drawer-foot .btn { margin-top: 10px; }
.drawer-foot .free-bar { margin-top: 0; margin-bottom: 10px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 120; background: var(--dark); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #b91c1c; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-grid.cols-4 { grid-template-columns: repeat(3, 1fr); }
  .shop-layout { grid-template-columns: 240px 1fr; gap: 22px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .shop-sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: min(330px, 88%); z-index: 90; transform: translateX(-102%); transition: transform .3s ease; overflow-y: auto; }
  .shop-sidebar.open { transform: none; }
  .shop-sidebar .filter-card { min-height: 100%; border-radius: 0; border: 0; }
  .filter-close { display: grid; }
  .filters-overlay.open { display: block; position: fixed; inset: 0; background: rgba(11,18,32,.45); z-index: 85; }
  .result-count { order: 3; width: 100%; }
  .pd-grid { grid-template-columns: 1fr; gap: 26px; }
  .gallery { position: static; }
  .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,23,42,.08); }
  .sticky-buy small, .sticky-buy b { display: block; }
  .sticky-buy b { font-size: 1.15rem; }
  .product-section ~ .site-footer, body:has(.sticky-buy) .site-footer { padding-bottom: 70px; }
  body:has(.sticky-buy) .wa-float { bottom: 86px; }
  .tab-panel { padding: 20px; }
}
@media (max-width: 600px) {
  .product-grid, .product-grid.cols-4 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card .card-body { padding: 12px; }
  .product-card h3 { font-size: .92rem; }
  .pc-desc { display: none; }
  .pc-bottom { flex-direction: column; align-items: flex-start; gap: 2px; }
  .pc-price .price { font-size: 1.05rem; }
  .btn-add { font-size: .84rem; padding: .6em .5em; }
  .btn-add .ic { display: none; }
  .product-grid.is-list .pc-media { width: 120px; }
  .product-grid.is-list .pc-desc { display: none; }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item { padding: 12px 8px; gap: 8px; }
  .trust-item small { display: none; }
  .trust-ic { width: 34px; height: 34px; }
  .sort-label { font-size: 0; gap: 0; }
  .sort-label select { font-size: .86rem; max-width: 140px; padding-right: 1.6em; }
  .shop-bar { gap: 10px; }
  .bar-right { gap: 6px; }
  .view-toggle button { width: 32px; }
  .ct-head { display: none; }
  .ct-row { grid-template-columns: 1fr auto; grid-template-areas: "p p" "q t"; gap: 12px; position: relative; }
  .ct-product { grid-area: p; padding-right: 36px; }
  .ct-row .qty { grid-area: q; justify-self: start; }
  .ct-line { grid-area: t; }
  .ct-row .icon-btn { position: absolute; top: 14px; right: 0; }
  .cart-table { padding: 4px 16px; }
  .pd-buy .qty { width: 100%; justify-content: space-between; }
  .pd-buy .qty input { flex: 1; }
  .timeline li { font-size: .7rem; }
  .steps li:not(:last-child)::after { width: 16px; }
}
