/* QQuack Shop Tyres page — loads after base.css (tyre card lives there) */
.shop-container { width: min(1360px, 92%); margin: 0 auto; }
.shop-eyebrow { margin: 0 0 12px; color: var(--yellow); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.shop-eyebrow span { display: inline-block; width: 32px; height: 3px; margin: 0 10px 4px 0; border-radius: 2px; background: var(--yellow); }

/* Hero + size search */
.shop-hero { position: relative; isolation: isolate; padding: 48px 0 56px; border-bottom: 1px solid #222b31; background: #05090c url("../images/whychooseus.jpg") 75% center / cover no-repeat; }
.shop-hero:before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,6,8,.96) 0%, rgba(3,6,8,.85) 45%, rgba(3,6,8,.25) 80%, rgba(3,6,8,.1)); }
.breadcrumb { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: #aab3bb; font-size: 14px; }
.breadcrumb a { transition: color .2s; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb i { font-size: 10px; color: #5d676e; }
.breadcrumb span { color: #fff; font-weight: 600; }
.shop-hero h1 { margin: 0 0 12px; font: 900 clamp(48px, 6vw, 84px)/.92 var(--display); font-style: italic; letter-spacing: .5px; text-shadow: 0 4px 22px #000; }
.shop-hero h1 em { color: var(--yellow); font-style: inherit; }
.shop-hero-text { max-width: 520px; margin: 0 0 30px; color: #e1e5e8; font-size: 18px; line-height: 1.6; }
.size-search { width: min(100%, 760px); display: grid; grid-template-columns: repeat(3, 1fr) auto; align-items: end; gap: 12px; padding: 20px; border: 1px solid #c9a80088; border-radius: 16px; background: rgba(8,12,14,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 24px 50px -18px #000, 0 0 40px -14px #ffd90055; }
.size-search label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; color: #eef0f2; }
.size-search input { width: 100%; min-width: 0; padding: 13px 14px; border: 2px solid transparent; border-radius: 10px; background: #f7f8fa; color: #111; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s; }
.size-search input:focus { border-color: var(--yellow); box-shadow: 0 0 0 4px #ffd90040; }
.size-search .button { min-height: 50px; padding: 12px 22px; font-size: 16px; white-space: nowrap; }

/* Vehicle type chips */
.type-bar { display: flex; gap: 12px; padding: 32px 0 8px; overflow-x: auto; scrollbar-width: none; }
.type-bar::-webkit-scrollbar { display: none; }
.type-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border: 1px solid #2c363d; border-radius: 999px; background: #0e1418; color: #e6e9ec; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.type-chip i { color: var(--yellow); transition: color .2s; }
.type-chip:hover { border-color: var(--yellow); color: var(--yellow); }
.type-chip.active { background: var(--yellow); border-color: var(--yellow); color: #111; }
.type-chip.active i { color: #111; }

/* Layout */
.shop-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; padding: 28px 0 80px; }

/* Filters */
.filters { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2c363d transparent; padding: 22px; border: 1px solid #222c33; border-radius: 18px; background: linear-gradient(180deg, #0e1519, #080b0e); }
.filters-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #222b31; }
.filters-head h2 { margin: 0; font: 800 26px/1 var(--display); letter-spacing: .5px; text-transform: uppercase; }
.filters-head h2 i { color: var(--yellow); font-size: 18px; margin-right: 6px; }
.clear-filters { border: 0; background: none; color: var(--yellow); font-size: 14px; font-weight: 700; cursor: pointer; }
.clear-filters:hover { text-decoration: underline; }
.filters-close { display: none; width: 40px; height: 40px; border: 1px solid #2c363d; border-radius: 50%; background: #0e1418; color: #fff; font-size: 18px; cursor: pointer; }
.filter-group { padding: 16px 0; border-bottom: 1px solid #1c252b; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; list-style: none; font-size: 16px; font-weight: 700; cursor: pointer; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary:after { content: "\f078"; font: 900 12px "Font Awesome 6 Free"; color: #8d979e; transition: transform .2s; }
.filter-group[open] summary { margin-bottom: 12px; }
.filter-group[open] summary:after { transform: rotate(180deg); }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 0; color: #d3d9dd; font-size: 15px; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; display: grid; place-items: center; border: 2px solid #46525a; border-radius: 6px; background: #0a0e11; cursor: pointer; transition: border-color .2s, background .2s; }
.check.radio input { border-radius: 50%; }
.check input:checked { border-color: var(--yellow); background: var(--yellow); }
.check input:checked:after { content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; color: #111; }
.check.radio input:checked:after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #111; }
.check:hover { color: #fff; }
.check small { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: #182127; color: #9aa4ab; font-size: 12px; text-align: center; }
.check .stars { color: #f5b800; font-size: 13px; letter-spacing: 1px; }
.price-range { width: 100%; accent-color: var(--yellow); cursor: pointer; }
.price-scale { display: flex; justify-content: space-between; margin-top: 8px; color: #9aa4ab; font-size: 14px; }
.price-scale output { color: var(--yellow); font-weight: 800; }
.toggle { display: flex; align-items: center; gap: 12px; padding: 8px 0; color: #d3d9dd; font-size: 15px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-ui { position: relative; flex: 0 0 42px; height: 24px; border-radius: 999px; background: #25303700; border: 2px solid #46525a; transition: background .2s, border-color .2s; }
.toggle-ui:after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #8d979e; transition: transform .2s, background .2s; }
.toggle input:checked + .toggle-ui { background: var(--yellow); border-color: var(--yellow); }
.toggle input:checked + .toggle-ui:after { transform: translateX(18px); background: #111; }
.toggle input:focus-visible + .toggle-ui { outline: 2px solid var(--yellow); outline-offset: 3px; }
.filters-help { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 20px; padding: 16px; border-radius: 14px; background: #ffd9000f; border: 1px solid #ffd90033; }
.filters-help > i { color: var(--yellow); font-size: 24px; }
.filters-help div { display: flex; flex-direction: column; flex: 1; }
.filters-help strong { font-size: 15px; }
.filters-help span { color: #aab3bb; font-size: 13px; }
.filters-help a { flex-basis: 100%; margin-left: 36px; color: var(--yellow); font-size: 14px; font-weight: 700; }
.filters-help a:after { content: " →"; }

/* Results bar */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 24px; padding: 14px 18px; border: 1px solid #222c33; border-radius: 14px; background: #0b1013; }
.filters-open { display: none; }
.results-count { margin: 0; color: #c7ced3; font-size: 16px; }
.results-count strong { color: var(--yellow); font-size: 20px; }
.active-chips { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; }
.active-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid #ffd90055; border-radius: 999px; background: #ffd90014; color: #ffe46b; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .2s; }
.active-chip:hover { background: #ffd90030; }
.sort { display: flex; align-items: center; gap: 10px; margin-left: auto; color: #aab3bb; font-size: 14px; }
.sort select { padding: 10px 36px 10px 14px; border: 1px solid #2c363d; border-radius: 10px; background: #0e1418 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23ffd900' stroke-width='2'/%3E%3C/svg%3E") right 14px center no-repeat; color: #fff; font: 600 15px var(--body); appearance: none; -webkit-appearance: none; cursor: pointer; }
.sort select:focus { outline: 2px solid var(--yellow); outline-offset: 2px; }
.view-toggle { display: flex; gap: 6px; }
.view-toggle button { width: 42px; height: 42px; border: 1px solid #2c363d; border-radius: 10px; background: #0e1418; color: #9aa4ab; font-size: 16px; cursor: pointer; transition: all .2s; }
.view-toggle button:hover { color: var(--yellow); }
.view-toggle button.active { background: var(--yellow); border-color: var(--yellow); color: #111; }

/* Product grid (cards come from base.css) */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px; }
.product-grid .tyre-card[hidden] { display: none; }
.tyre-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.season-tag { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.season-tag.all-season { background: #e8f3ff; color: #1a5fb4; }
.season-tag.summer { background: #fff3d6; color: #b36b00; }
.season-tag.winter { background: #e6f7fb; color: #0d7f99; }
.season-tag.all-terrain { background: #eef3e4; color: #4d6b1f; }
.stock.in i { color: #1fb24a; }
.stock.low { color: #b36b00; font-weight: 600; }
.stock.low i { color: #f39c00; }
.stock.out { color: #c0283a; font-weight: 600; }
.notify-me { border-color: #c9ced2; background: #fff; color: #222; }
.notify-me:hover { border-color: #111; color: #111; }

/* List view */
.product-grid.list-view { grid-template-columns: 1fr; }
.list-view .tyre-card { flex-direction: row; }
.list-view .tyre-image { flex: 0 0 260px; height: auto; min-height: 240px; }
.list-view .tyre-body { border-top: 0; border-left: 1px solid #eceff2; padding: 22px 26px; }
.list-view .tyre-actions { max-width: 380px; }

/* Empty state */
.empty-state { padding: 64px 24px; border: 1px dashed #2c363d; border-radius: 18px; text-align: center; }
.empty-state > i { color: var(--yellow); font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { margin: 0 0 8px; font-size: 24px; }
.empty-state p { margin: 0 0 22px; color: #aab3bb; }

/* Help banner */
.shop-help { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 80px; padding: 44px 48px; border: 1px solid #ffd90044; border-radius: 22px; background: radial-gradient(600px 300px at 90% 50%, #ffd90022, transparent 70%), linear-gradient(120deg, #11181d, #07090b); }
.shop-help h2 { margin: 0 0 10px; font: 900 44px/1 var(--display); font-style: italic; }
.shop-help h2 em { color: var(--yellow); font-style: inherit; }
.shop-help p:not(.shop-eyebrow) { max-width: 600px; margin: 0; color: #c7ced3; font-size: 16px; line-height: 1.6; }
.shop-help strong { color: var(--yellow); }
.help-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Toast */
.toast { position: fixed; z-index: 100; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; visibility: hidden; padding: 14px 22px; border-radius: 12px; background: #111619; border: 1px solid var(--yellow); color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 16px 40px -10px #000, 0 0 24px -6px #ffd90066; transition: transform .3s, opacity .3s, visibility .3s; pointer-events: none; }
.toast i { color: var(--yellow); margin-right: 6px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Responsive */
@media (max-width: 1100px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; z-index: 60; top: 0; left: 0; bottom: 0; width: min(360px, 88vw); max-height: none; border-radius: 0 18px 18px 0; transform: translateX(-105%); transition: transform .3s; box-shadow: 20px 0 60px #000a; }
  .filters.open { transform: none; }
  .filters-close { display: grid; place-items: center; }
  .filters-open { display: inline-flex; padding: 10px 16px; font-size: 14px; }
}
@media (max-width: 700px) {
  .shop-hero { padding: 32px 0 40px; background-position: 70% center; }
  .shop-hero:before { background: linear-gradient(180deg, rgba(3,6,8,.9), rgba(3,6,8,.82)); }
  .shop-hero-text { font-size: 16px; }
  .size-search { grid-template-columns: repeat(3, 1fr); padding: 16px; }
  .size-search .button { grid-column: 1 / -1; }
  .size-search label { font-size: 13px; }
  .results-bar { padding: 12px; }
  .sort { margin-left: 0; width: 100%; }
  .sort select { flex: 1; }
  .view-toggle { display: none; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .list-view .tyre-card { flex-direction: column; }
  .shop-help { flex-direction: column; align-items: flex-start; padding: 32px 22px; margin-bottom: 56px; }
  .shop-help h2 { font-size: 34px; }
  .shop-layout { padding-bottom: 56px; }
}
@media (max-width: 420px) {
  .size-search { grid-template-columns: 1fr 1fr; }
  .size-search label:nth-child(3) { grid-column: 1 / -1; }
}
