.catalog-page {
  --petrol: #171717;
  --petrol-dark: #070707;
  --ink: #151515;
  background: #fff;
}
.catalog-page .header-shell { background: rgba(7,7,7,.97); }
.catalog-page .site-header.scrolled .header-shell { background: rgba(7,7,7,.98); }
.catalog-page .dropdown-heading { background: linear-gradient(110deg,#070707 0%,#171717 72%,#292929 100%); }
.breadcrumb a { color: var(--brand-red); text-decoration: none; }

/* Page header banner */
.shop-header { position: relative; min-height: 360px; overflow: hidden; color: #fff; background: var(--petrol-dark); isolation: isolate; }
.shop-header-photo { position: absolute; inset: 0; z-index: -3; background: url("../images/why-choose-us-workshop.webp") center 68%/cover no-repeat; }
.shop-shape { position: absolute; inset: 0; pointer-events: none; }
.shop-shape-main { z-index: -2; background: linear-gradient(100deg, rgba(5,5,5,.9) 0%, rgba(21,21,21,.76) 70%, rgba(38,38,38,.28) 100%); clip-path: polygon(0 0, 64% 0, 50% 100%, 0 100%); }
.shop-shape-stripe { z-index: -2; background: var(--brand-red); clip-path: polygon(64% 0, 66.4% 0, 52.4% 100%, 50% 100%); }
.shop-shape-glow { z-index: -2; background: rgba(237,28,36,.55); clip-path: polygon(52.4% 100%, 57% 100%, 59.5% 78%, 54.5% 78%); mix-blend-mode: multiply; }
.shop-shape-glow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(237,28,36,.35), transparent); clip-path: polygon(0 0, 100% 0, 80% 60%, 0 60%); opacity: 0; }
.shop-header-inner { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 360px; padding-top: 135px; padding-bottom: 1.5rem; }
.shop-header-copy { max-width: 520px; }
.shop-kicker { display: inline-block; margin-bottom: .9rem; padding-bottom: .5rem; color: #ff6a70; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; border-bottom: 2px solid var(--brand-red); }
.shop-title { margin-bottom: .75rem; font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1; }
.shop-sub { max-width: 420px; margin: 0; color: rgba(255,255,255,.75); font-size: 1rem; line-height: 1.6; }
.shop-crumb { margin-top: 2rem; }
.shop-breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.45); --bs-breadcrumb-item-active-color: rgba(255,255,255,.75); font-size: .85rem; }
.shop-breadcrumb a { color: #fff; text-decoration: none; }
.shop-breadcrumb a:hover { color: #ff6a70; }

.shop-section { padding: 2.5rem 0 4.5rem; }
.shop-container { max-width: 1320px; }

/* Filters */
.filter-panel { position: sticky; top: 105px; max-height: calc(100vh - 125px); overflow-y: auto; padding-right: .5rem; scrollbar-width: thin; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.filter-heading h2 { margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--ink); }
.filter-clear { padding: 0; color: var(--brand-red); background: none; border: 0; font-size: .8rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.filter-group { border-bottom: 1px solid #e6eaed; }
.filter-group summary { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; color: var(--ink); font-size: .95rem; font-weight: 700; cursor: pointer; list-style: none; }
.filter-group summary::-webkit-details-marker { display: none; }
.filter-group summary i { font-size: .8rem; transition: transform .2s ease; }
.filter-group[open] summary i { transform: rotate(180deg); }
.filter-options { padding-bottom: 1rem; }
.filter-check { display: flex; align-items: center; gap: .7rem; padding: .38rem 0; color: #4a5358; font-size: .9rem; cursor: pointer; }
.filter-check input { position: absolute; opacity: 0; pointer-events: none; }
.filter-check .box { flex: 0 0 auto; display: grid; place-items: center; width: 18px; height: 18px; background: #fff; border: 1.5px solid #b9c1c6; border-radius: 3px; transition: background .15s ease, border-color .15s ease; }
.filter-check .box::after { content: ""; width: 5px; height: 9px; margin-top: -2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .15s ease; }
.filter-check input:checked + .box { background: var(--brand-red); border-color: var(--brand-red); }
.filter-check input:checked + .box::after { transform: rotate(45deg) scale(1); }
.filter-check input:focus-visible + .box { outline: 2px solid var(--petrol); outline-offset: 2px; }
.filter-check:hover .label { color: var(--ink); }
.filter-check input:checked ~ .label { color: var(--ink); font-weight: 600; }
.filter-check .count { margin-left: auto; color: #98a1a6; font-size: .78rem; }
.filter-help { margin-top: 1.5rem; padding: 1.25rem; text-align: center; background: #f4f6f7; }
.filter-help i { color: var(--brand-red); font-size: 1.5rem; }
.filter-help p { margin: .4rem 0; color: var(--ink); font-size: .88rem; font-weight: 600; }
.filter-help a { color: var(--brand-red); font-size: .85rem; font-weight: 600; }

/* Toolbar */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding-bottom: 1.25rem; border-bottom: 1px solid #e6eaed; }
.shop-search { flex: 1 1 280px; display: flex; align-items: center; gap: .65rem; min-height: 46px; padding: 0 .9rem; background: #f4f6f7; border: 1px solid transparent; transition: border-color .2s ease, background .2s ease; }
.shop-search:focus-within { background: #fff; border-color: var(--ink); }
.shop-search i { color: #6b757b; }
.shop-search input { flex: 1; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: .92rem; }
.shop-controls { display: flex; align-items: center; gap: .6rem; }
.catalog-sort { min-height: 46px; padding: 0 2.2rem 0 .9rem; color: var(--ink); background-color: #fff; border: 1px solid #cfd6db; border-radius: 0; font-size: .88rem; font-weight: 500; }
.catalog-sort:focus { border-color: var(--ink); outline: 0; }
.view-switch { display: flex; border: 1px solid #cfd6db; }
.view-switch button { display: grid; place-items: center; width: 44px; height: 44px; color: #7b858b; background: #fff; border: 0; }
.view-switch button + button { border-left: 1px solid #cfd6db; }
.view-switch button.active { color: #fff; background: var(--ink); }
.filter-open-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1rem; color: var(--ink); background: #fff; border: 1px solid var(--ink); font-size: .88rem; font-weight: 600; }
.filter-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; color: #fff; background: var(--brand-red); border-radius: 50%; font-size: .68rem; }

.results-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.1rem 0 1.4rem; }
.result-count { margin: 0; color: #5b656b; font-size: .9rem; }
.result-count strong { color: var(--ink); }
.active-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.active-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .4rem .3rem .75rem; color: var(--ink); background: #f0f3f5; border-radius: 999px; font-size: .78rem; font-weight: 500; }
.active-chip button { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; color: #fff; background: #7b858b; border: 0; border-radius: 50%; font-size: .55rem; }
.active-chip button:hover { background: var(--brand-red); }

/* Product cards */
/* Product card: see product-card.css */

.product-grid.list-view > [class*="col-"] { width: 100%; flex: 0 0 100%; }

.empty-state i { color: var(--brand-red); font-size: 2.5rem; }
.catalog-pagination { margin-top: 3rem; }
.catalog-pagination .page-link { display: grid; place-items: center; min-width: 42px; min-height: 42px; margin: 0 .15rem; color: var(--ink); background: #fff; border: 1px solid #dfe4e7; border-radius: 0; font-size: .88rem; }
.catalog-pagination .page-link:hover { border-color: var(--ink); background: #fff; }
.catalog-pagination .page-item.active .page-link { color: #fff; background: var(--ink); border-color: var(--ink); }
.catalog-pagination .page-item.disabled .page-link { color: #b5bcc0; background: #fafbfb; }

/* Mobile filter drawer */
.filter-drawer { max-width: 340px; }
.filter-drawer .offcanvas-title { font-weight: 700; }
.filter-drawer .filter-heading { border-bottom: 0; padding-top: 0; }
.drawer-footer { padding: 1rem 1.25rem; border-top: 1px solid #e6eaed; }

@media (max-width: 991.98px) {
  .shop-header, .shop-header-inner { min-height: 320px; }
  .shop-header-inner { padding-top: 120px; }
  .shop-shape-main { clip-path: polygon(0 0, 82% 0, 62% 100%, 0 100%); }
  .shop-shape-stripe { clip-path: polygon(82% 0, 85% 0, 65% 100%, 62% 100%); }
  .shop-shape-glow { display: none; }
}
@media (max-width: 575.98px) {
  .shop-header-photo { background-position: left center; }
  .shop-shape-main { clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%); background: linear-gradient(100deg, rgba(5,5,5,.9), rgba(24,24,24,.68)); }
  .shop-shape-stripe { clip-path: polygon(100% 0, 100% 5%, 90% 100%, 88% 100%); }
  .shop-sub { max-width: 280px; }
}
@media (max-width: 575.98px) {
  .shop-section { padding-top: 1.5rem; }
  .shop-controls { width: 100%; }
  .shop-controls .sort-wrap { flex: 1; }
  .catalog-sort { width: 100%; padding-right: 1.9rem; font-size: .8rem; text-overflow: ellipsis; }
  .shop-controls .sort-wrap { min-width: 0; }
    }

/* Product modal (quick view) */
.product-badge { position: absolute; top: 1rem; left: 1rem; padding: .35rem .6rem; color: #fff; background: var(--petrol); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.availability { position: absolute; right: 1rem; bottom: 1rem; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; color: #1b6e4b; background: rgba(255,255,255,.94); border-radius: 999px; font-size: .65rem; font-weight: 600; }
.availability::before { content: ""; width: 6px; height: 6px; background: #22a06b; border-radius: 50%; }
.availability.request { color: #915d10; }
.availability.request::before { background: #e6a23c; }
.product-meta { color: var(--brand-red); font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.product-code { color: #929ba0; font-size: .75rem; }
.product-specs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 0; }
.product-specs span { padding: .3rem .55rem; color: #5d686e; background: #f3f5f6; font-size: .72rem; }
.product-modal-content { position: relative; border: 0; border-radius: 16px; overflow: hidden; }
.product-modal-close { position: absolute; z-index: 3; top: 1rem; right: 1rem; padding: .55rem; background-color: #fff; border-radius: 50%; opacity: 1; }
.product-modal-image { position: relative; height: 100%; min-height: 320px; background: #f2f4f5; }
.product-modal-image img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.product-modal-body { display: flex; flex-direction: column; height: 100%; padding: 2.5rem; }
.product-modal-name { margin: .6rem 0 .5rem; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--ink); line-height: 1.1; }
.product-modal-desc { margin: 1.25rem 0 1.5rem; color: #6b7478; font-size: .9rem; line-height: 1.6; }
.product-modal-actions { margin-top: auto; }
@media (max-width: 767.98px) { .product-modal-image { min-height: 240px; } .product-modal-image img { min-height: 240px; } .product-modal-body { padding: 1.75rem; } }
