/* =========================================================
   ACi Shop — category (listing) + product pages
   Loaded after style.css
   ========================================================= */

/* ---------- Page head / breadcrumb ---------- */
.page-head { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; padding: 30px 0 34px; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px 300px at 95% 0%, rgba(255,103,29,.28), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(53,177,201,.28), transparent 60%); }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .06; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(circle at 70% 20%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 20%, #000, transparent 70%); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #9fb3c1; margin-bottom: 14px; }
.crumbs a:hover { color: var(--cy); }
.crumbs .ico { width: 14px; height: 14px; opacity: .6; }
.crumbs b { color: #fff; font-weight: 600; }
.page-head h1 { font-size: clamp(24px, 3vw, 36px); }
.page-head h1 span { color: var(--or-l); }
.page-head p.lead { color: #b9c9d4; max-width: 720px; margin-top: 8px; font-size: 15px; }
.subcats { display: flex; gap: 10px; margin-top: 22px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.subcats::-webkit-scrollbar { display: none; }
.subcat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); font-size: 14px; font-weight: 600; transition: .3s var(--ease); }
.subcat .ico { width: 20px; height: 20px; color: var(--cy); transition: color .3s; }
.subcat small { color: #9fb3c1; font-weight: 400; font-size: 12px; }
.subcat:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.subcat.active { background: var(--or); border-color: var(--or); }
.subcat.active .ico, .subcat.active small { color: #fff; }

/* ---------- Listing layout ---------- */
.shop { padding: 28px 0 10px; }
.shop-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; }

/* ---------- Filters sidebar ---------- */
.filters { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); position: sticky; top: 150px; max-height: calc(100vh - 170px); display: flex; flex-direction: column; }
.filters-head { display: none; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.filters-head h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.filters-body { overflow-y: auto; padding: 6px 20px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; flex: 1; }
.filters-foot { display: none; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); gap: 10px; }
.filters-foot .btn { flex: 1; }
.f-block { border-bottom: 1px solid var(--line); padding: 14px 0; }
.f-block:last-child { border-bottom: 0; }
.f-title { display: flex; align-items: center; justify-content: space-between; width: 100%; font-weight: 800; font-size: 15px; text-align: start; }
.f-title .ico { width: 18px; height: 18px; transition: transform .3s var(--ease); color: var(--gray); }
.f-block.closed .f-title .ico { transform: rotate(-90deg); }
.f-content { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease); }
.f-content > div { overflow: hidden; padding-top: 12px; }
.f-block.closed .f-content { grid-template-rows: 0fr; }
.f-block.closed .f-content > div { padding-top: 0; }

.tree a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border-radius: 10px; font-size: 14px; color: var(--muted); transition: .2s; }
.tree a:hover { background: var(--bg); color: var(--ink); }
.tree a.on { background: rgba(255,103,29,.1); color: var(--or-d); font-weight: 600; }
.tree a small { font-size: 12px; color: var(--gray); }
.tree ul { margin-inline-start: 12px; border-inline-start: 1.5px solid var(--line); padding-inline-start: 6px; margin-top: 2px; display: none; }
.tree li.open > ul { display: block; animation: popIn .35s var(--ease) both; }
.tree a.parent { color: var(--ink); font-weight: 600; }

.check { display: flex; align-items: center; gap: 10px; padding: 6px 2px; cursor: pointer; font-size: 14px; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #c3d0d9; display: grid; place-items: center; transition: .25s var(--ease); flex-shrink: 0; background: #fff; }
.check .box .ico { width: 13px; height: 13px; color: #fff; stroke-width: 3; transform: scale(0); transition: transform .25s var(--ease); }
.check input:checked + .box { background: var(--or); border-color: var(--or); }
.check input:checked + .box .ico { transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--or); outline-offset: 2px; }
.check .lbl { flex: 1; }
.check small { color: var(--gray); font-size: 12px; }
.check.off { opacity: .4; pointer-events: none; }
.radio .box { border-radius: 50%; }
.radio .box::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: scale(0); transition: transform .25s var(--ease); }
.radio input:checked + .box::after { transform: scale(1); }
.stars { color: #F5B301; letter-spacing: 1px; font-size: 13px; }
.stars i { color: #d6dfe5; font-style: normal; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 14px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 42px; height: 24px; border-radius: 24px; background: #cfdae2; position: relative; transition: background .3s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--cy-d); }
.switch input:checked + .track::after { transform: translateX(-18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--or); outline-offset: 2px; }

/* price range */
.range { position: relative; height: 28px; margin: 4px 6px 6px; }
.range .rtrack, .range .rfill { position: absolute; top: 12px; height: 4px; border-radius: 4px; }
.range .rtrack { right: 0; left: 0; background: #e3eaef; }
.range .rfill { background: var(--grad-or); }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; direction: rtl; height: 28px; }
.range input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--or); box-shadow: 0 2px 8px rgba(29,37,44,.25); cursor: grab; transition: transform .2s; }
.range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--or); box-shadow: 0 2px 8px rgba(29,37,44,.25); cursor: grab; }
.range input:active::-webkit-slider-thumb { transform: scale(1.15); cursor: grabbing; }
.range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--cy-d); outline-offset: 2px; }
.range-vals { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-top: 8px; }
.range-vals span { flex: 1; background: var(--bg); border-radius: 10px; padding: 6px 10px; text-align: center; }
.range-vals small { display: block; color: var(--gray); font-size: 11px; }
.range-vals b { font-size: 13px; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 10px 14px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar .count { font-size: 14px; color: var(--muted); margin-inline-end: auto; }
.toolbar .count b { color: var(--ink); }
.tb-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 14px; transition: .25s; position: relative; }
.tb-btn:hover { background: var(--ink); color: #fff; }
.tb-btn .ico { width: 18px; height: 18px; }
.tb-btn .badge { top: -6px; left: -6px; }
.filter-open { display: none; }
.sort { position: relative; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.sort select { appearance: none; -webkit-appearance: none; height: 42px; border-radius: 12px; border: 0; background: var(--bg); padding: 0 16px 0 36px; font-weight: 600; color: var(--ink); cursor: pointer; outline: 0; }
.sort select:focus-visible { outline: 2px solid var(--or); }
.sort .ico { position: absolute; left: 12px; width: 16px; height: 16px; pointer-events: none; color: var(--muted); }
.view { display: flex; background: var(--bg); border-radius: 12px; padding: 3px; }
.view button { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); transition: .25s; }
.view button.on { background: var(--ink); color: #fff; }
.view .ico { width: 18px; height: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips:empty { display: none; }
.chip-f { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(53,177,201,.12); color: #1b6779; font-size: 13px; font-weight: 600; animation: popIn .35s var(--ease) both; }
.chip-f button { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(53,177,201,.25); transition: .2s; }
.chip-f button:hover { background: var(--or); color: #fff; }
.chip-f button .ico { width: 12px; height: 12px; stroke-width: 2.5; }
.chip-clear { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--or-d); background: rgba(255,103,29,.1); }
.chip-clear:hover { background: var(--or); color: #fff; }

/* ---------- Results grid ---------- */
.results { position: relative; min-height: 400px; }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; transition: opacity .25s, filter .25s; }
.results.loading .cat-grid { opacity: .35; filter: blur(2px); pointer-events: none; }
.p-desc { display: none; }
.cat-grid.is-list { grid-template-columns: 1fr; }
.cat-grid.is-list .p-card { flex-direction: row; gap: 18px; align-items: stretch; }
.cat-grid.is-list .p-media { width: 230px; flex-shrink: 0; aspect-ratio: auto; min-height: 190px; }
.cat-grid.is-list .p-body { padding: 8px 4px; }
.cat-grid.is-list .p-title { min-height: 0; -webkit-line-clamp: 1; }
.cat-grid.is-list .p-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: 14px; margin-bottom: 10px; }
.cat-grid.is-list .p-actions button { opacity: 1; transform: none; }

.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--r-lg); }
.empty-state svg.ill { width: 120px; height: 120px; margin: 0 auto 10px; color: var(--cy-l); }
.empty-state h3 { font-size: 20px; margin-bottom: 6px; }
.empty-state p { color: var(--muted); margin-bottom: 20px; }
.empty-state .row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.pager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pager button { min-width: 42px; height: 42px; padding: 0 12px; border-radius: 12px; background: #fff; font-weight: 600; box-shadow: var(--shadow-sm); transition: .25s var(--ease); display: grid; place-items: center; }
.pager button:hover:not(:disabled):not(.on) { background: var(--ink); color: #fff; transform: translateY(-2px); }
.pager button.on { background: var(--grad-or); color: #fff; box-shadow: 0 8px 18px -8px rgba(255,103,29,.7); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
.pager .dots { color: var(--gray); padding: 0 4px; }
.pager .ico { width: 18px; height: 18px; }

.help-cta { margin-top: 30px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; border-radius: var(--r-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.help-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(400px 200px at 0% 50%, rgba(53,177,201,.35), transparent 60%), radial-gradient(300px 200px at 100% 50%, rgba(255,103,29,.3), transparent 60%); }
.help-cta h3 { font-size: 18px; }
.help-cta p { color: #9fb3c1; font-size: 14px; }

/* ---------- Product page ---------- */
.pd { padding: 26px 0 10px; }
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.pd-gallery { position: sticky; top: 150px; }
.pd-main { position: relative; aspect-ratio: 1 / .9; border-radius: var(--r-lg); background: radial-gradient(circle at 50% 40%, #fff 0%, #eef3f6 75%); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow-sm); }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .25s ease-out; opacity: 0; }
.pd-main img.contain { object-fit: contain; padding: 8%; }
.pd-main img.on { opacity: 1; }
.pd-main.zoomed img.on { transform: scale(2); transition: opacity .4s, transform .25s ease-out; }
.pd-main .p-badges { top: 16px; right: 16px; }
.pd-tools { position: absolute; top: 16px; left: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.pd-tools button { width: 42px; height: 42px; border-radius: 13px; background: #fff; box-shadow: var(--shadow-sm); display: grid; place-items: center; transition: .25s; }
.pd-tools button:hover { background: var(--ink); color: #fff; }
.pd-tools button.on { background: var(--or); color: #fff; }
.pd-tools button.on .ico { fill: currentColor; }
.pd-tools .ico { width: 19px; height: 19px; }
.zoom-hint { position: absolute; bottom: 14px; left: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; background: rgba(255,255,255,.9); padding: 5px 12px; border-radius: 999px; pointer-events: none; color: var(--muted); }
.zoom-hint .ico { width: 14px; height: 14px; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.pd-thumbs button { position: relative; aspect-ratio: 1; border-radius: 16px; overflow: hidden; background: radial-gradient(circle, #fff, #eef3f6); border: 2px solid transparent; transition: .3s var(--ease); }
.pd-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs button img.contain { object-fit: contain; padding: 10%; }
.pd-thumbs button.on { border-color: var(--or); box-shadow: 0 8px 18px -10px rgba(255,103,29,.7); }
.pd-thumbs button:hover:not(.on) { transform: translateY(-3px); }

.pd-info .p-cat { font-size: 13px; }
.pd-info h1 { font-size: clamp(21px, 2.3vw, 28px); margin: 6px 0 12px; line-height: 1.55; }
.pd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 14px; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pd-meta .sep { width: 1px; height: 16px; background: var(--line); }
.pd-meta a { color: var(--cy-d); font-weight: 600; }
.pd-meta bdi { font-family: Arial, sans-serif; font-weight: 600; color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.pd-meta .p-rate b { color: var(--ink); }
.pd-price { margin: 18px 0; padding: 18px 20px; border-radius: var(--r); background: linear-gradient(135deg, rgba(99,207,227,.14), rgba(255,103,29,.07)); border: 1px solid rgba(53,177,201,.2); }
.pd-price .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-price strong { font-size: 30px; font-weight: 800; line-height: 1.3; }
.pd-price strong small { font-size: 14px; font-weight: 400; color: var(--muted); margin-inline-start: 6px; }
.pd-price del { color: var(--gray); font-size: 16px; }
.pd-price .off { background: var(--or); color: #fff; font-weight: 600; border-radius: 10px; padding: 2px 12px; font-size: 14px; }
.pd-price .save { font-size: 13px; color: #178a52; margin-top: 4px; }
.pd-price .ask-big { font-size: 20px; font-weight: 800; }
.pd-price .ask-note { font-size: 13px; color: var(--muted); }
.pd-stock { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; margin-bottom: 16px; }
.pd-stock .stock { font-weight: 600; }
.pd-hl { display: grid; gap: 8px; margin-bottom: 20px; }
.pd-hl li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pd-hl .ico { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: rgba(35,178,109,.12); color: #23b26d; stroke-width: 3; }
.buy { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.qty-big { display: inline-flex; align-items: center; background: var(--bg); border-radius: 16px; padding: 4px; }
.qty-big button { width: 44px; height: 48px; border-radius: 12px; display: grid; place-items: center; transition: .2s; }
.qty-big button:hover { background: #fff; }
.qty-big button .ico { width: 18px; height: 18px; }
.qty-big input { width: 52px; text-align: center; border: 0; background: none; font-weight: 800; font-size: 17px; outline: 0; }
.buy .btn { flex: 1; min-width: 180px; height: 56px; font-size: 16px; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 16px; font-size: 14px; }
.pd-actions button { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); padding: 6px 0; transition: color .2s; }
.pd-actions button:hover, .pd-actions button.on { color: var(--or-d); }
.pd-actions button.on .ico { fill: currentColor; }
.pd-actions .ico { width: 18px; height: 18px; }
.pd-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.pd-trust div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-sm); font-size: 13px; line-height: 1.6; }
.pd-trust .ico { width: 26px; height: 26px; color: var(--or-d); }
.pd-trust b { display: block; font-size: 14px; }
.pd-trust small { color: var(--muted); }

/* tabs */
.ptabs-wrap { margin-top: 44px; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.ptabs { position: relative; display: flex; gap: 4px; padding: 0 14px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ptabs::-webkit-scrollbar { display: none; }
.ptabs button { position: relative; padding: 18px 18px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .25s; }
.ptabs button.on { color: var(--ink); }
.ptabs button small { background: var(--bg); border-radius: 999px; padding: 1px 8px; margin-inline-start: 6px; font-size: 12px; }
.ptab-ind { position: absolute; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--grad-or); left: 0; width: 0; transition: left .4s var(--ease), width .4s var(--ease); }
.tab-pane { display: none; padding: 28px; animation: popIn .45s var(--ease) both; }
.tab-pane.on { display: block; }
.tab-pane h3 { font-size: 18px; margin-bottom: 10px; }
.tab-pane p { color: #3d4d59; line-height: 2.1; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr:nth-child(odd) { background: var(--bg); }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: start; font-size: 14px; }
.spec-table th { width: 34%; color: var(--muted); font-weight: 600; border-radius: 0 10px 10px 0; }
.spec-table td { font-weight: 600; border-radius: 10px 0 0 10px; }
.spec-table bdi { direction: ltr; unicode-bidi: isolate; font-family: Arial, sans-serif; }
.compat { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.compat span { padding: 8px 16px; border-radius: 12px; background: var(--bg); font-weight: 600; font-size: 14px; direction: ltr; font-family: Arial, sans-serif; border: 1px solid var(--line); }
.note { margin-top: 18px; display: flex; gap: 10px; padding: 14px 16px; border-radius: 14px; background: rgba(255,103,29,.08); font-size: 14px; color: #8a3a12; }
.note .ico { color: var(--or-d); }
.ship-list { display: grid; gap: 12px; }
.ship-list li { display: flex; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--bg); }
.ship-list .ico { width: 26px; height: 26px; color: var(--cy-d); margin-top: 2px; }
.ship-list b { display: block; }
.ship-list small { color: var(--muted); font-size: 13px; }

.rev-top { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.rev-score { text-align: center; }
.rev-score b { font-size: 52px; line-height: 1; font-weight: 800; display: block; }
.rev-bars { display: grid; gap: 8px; }
.rev-bars div { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.rev-bars span.bar { flex: 1; height: 8px; border-radius: 8px; background: var(--bg); overflow: hidden; }
.rev-bars span.bar i { display: block; height: 100%; width: 0; background: var(--grad-or); border-radius: 8px; transition: width 1.2s var(--ease); }
.review { padding: 18px 0; border-bottom: 1px dashed var(--line); }
.review:last-of-type { border-bottom: 0; }
.review header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.review .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-cy); color: var(--ink); font-weight: 800; }
.review small { color: var(--gray); }
.review .stars { margin-inline-start: auto; }
.review p { font-size: 14px; }
.rev-form { margin-top: 22px; padding: 20px; border-radius: var(--r); background: var(--bg); }
.rev-form h4 { margin-bottom: 12px; }
.rev-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rev-form .field input, .rev-form .field textarea { background: #fff; }
.star-pick { display: flex; gap: 4px; direction: ltr; justify-content: flex-end; }
.star-pick button { color: #cdd8df; transition: color .15s, transform .15s; }
.star-pick button.on { color: #F5B301; }
.star-pick button:hover { transform: scale(1.2); }
.star-pick .ico { width: 26px; height: 26px; fill: currentColor; stroke: none; }

.rel { padding: 44px 0 10px; }
.rel .products-grid { grid-template-columns: repeat(4, 1fr); }

/* sticky buy bar (mobile) */
.buy-bar { display: none; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2500; background: rgba(15,21,26,.94); display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .35s; padding: 20px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; object-fit: contain; border-radius: 16px; background: #fff; transform: scale(.94); transition: transform .45s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox button { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; transition: .25s; }
.lightbox button:hover { background: var(--or); }
.lightbox .lb-close { top: 20px; left: 20px; }
.lightbox .lb-prev { right: 20px; top: 50%; translate: 0 -50%; }
.lightbox .lb-next { left: 20px; top: 50%; translate: 0 -50%; }

.notfound { text-align: center; padding: 80px 20px; }
.notfound h2 { font-size: 26px; margin-bottom: 8px; }
.notfound p { color: var(--muted); margin-bottom: 22px; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .shop-layout { grid-template-columns: 270px 1fr; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .rel .products-grid { grid-template-columns: repeat(3, 1fr); }
  .rel .products-grid .p-card:nth-child(4) { display: none; }
}
@media (max-width: 992px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filter-open { display: inline-flex; }
  .filters { position: fixed; top: 0; bottom: 0; right: 0; width: min(380px, 90vw); max-height: none; z-index: 1600; border-radius: 0; transform: translateX(105%); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; box-shadow: var(--shadow-lg); }
  .filters.open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
  .filters-head, .filters-foot { display: flex; }
  .pd-grid { grid-template-columns: 1fr; gap: 22px; }
  .pd-gallery { position: static; }
  .rel .products-grid { grid-template-columns: repeat(2, 1fr); }
  .rel .products-grid .p-card:nth-child(4) { display: flex; }
  body.page-product .m-bottom { display: none; }
  body.page-product { padding-bottom: 84px; }
  .buy-bar { display: flex; align-items: center; gap: 12px; position: fixed; right: 0; left: 0; bottom: 0; z-index: 960; background: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 30px -12px rgba(29,37,44,.25); transform: translateY(110%); transition: transform .45s var(--ease); }
  .buy-bar.show { transform: none; }
  .buy-bar .bb-price { flex: 1; min-width: 0; line-height: 1.4; }
  .buy-bar .bb-price del { font-size: 12px; color: var(--gray); display: block; }
  .buy-bar .bb-price strong { font-size: 17px; font-weight: 800; }
  .buy-bar .bb-price small { font-size: 11px; color: var(--muted); margin-inline-start: 4px; font-weight: 400; }
  .buy-bar .btn { height: 48px; flex-shrink: 0; }
  body.page-product .to-top { bottom: 90px; }
  body.page-product .toasts { bottom: 90px; }
}
@media (max-width: 768px) {
  .page-head { padding: 22px 0 24px; }
  .toolbar { padding: 8px; gap: 8px; }
  .toolbar .count { order: 5; flex-basis: 100%; margin: 0; padding: 4px 6px 2px; }
  .view { display: none; }
  .sort > span { display: none; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-grid.is-list { grid-template-columns: repeat(2, 1fr); }
  .cat-grid.is-list .p-card { flex-direction: column; }
  .cat-grid.is-list .p-media { width: auto; aspect-ratio: 1 / .86; min-height: 0; }
  .cat-grid .p-card { padding: 10px; }
  .pd-main { aspect-ratio: 1 / .95; border-radius: 20px; }
  .zoom-hint { display: none; }
  .pd-thumbs { gap: 8px; }
  .pd-thumbs button { border-radius: 12px; }
  .pd-price strong { font-size: 24px; }
  .pd-trust { grid-template-columns: 1fr; }
  .buy .btn { flex-basis: 100%; }
  .qty-big { width: 100%; justify-content: space-between; }
  .tab-pane { padding: 20px 16px; }
  .rev-top { grid-template-columns: 1fr; gap: 16px; }
  .rev-form .grid2 { grid-template-columns: 1fr; }
  .spec-table th, .spec-table td { padding: 11px 12px; font-size: 13px; }
  .rel .products-grid { gap: 10px; }
  .help-cta { padding: 20px; }
  .pd-info .buy .btn { height: 52px; }
}

/* nav: keep a single row with the extra "shop" item */
.nav-link { white-space: nowrap; }
@media (max-width: 1500px) {
  .nav-link { padding: 0 10px; font-size: 14.5px; }
  .nav-cta span { display: none; }
}
