/* GAZ Shocks shop — catalogue, product, basket and checkout. Loaded only on shop pages. */

:root {
    --shop-navy: #0452a0;
    --shop-navy-2: #0f4f9b;
    --shop-gold: #fee087;
    --shop-ink: #16181c;
    --shop-text: #2a2f36;
    --shop-muted: #5c6470;
    --shop-line: #e1e5ea;
    --shop-soft: #f4f6f9;
    --shop-ok: #067647;
    --shop-danger: #b42318;
    --shop-radius: 10px;
}

#shop [hidden] { display: none !important; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.shop-page { padding: 40px 0 72px; font-family: 'Poppins', Helvetica, Arial, sans-serif; color: var(--shop-text); }
.shop-narrow { max-width: 760px; }
.shop-page-title {
    font-family: 'Racing Sans One', Helvetica, Arial, sans-serif;
    font-weight: normal; font-size: 42px; line-height: 1.05; color: var(--shop-ink);
    letter-spacing: -0.5px; margin: 0 0 20px;
}
.shop-lead { font-size: 17px; line-height: 1.6; margin: 0 0 18px; }
.shop-hint { font-size: 13.5px; color: var(--shop-muted); line-height: 1.55; margin: 10px 0 0; }
.shop-note { font-size: 13px; color: var(--shop-muted); line-height: 1.5; margin: 10px 0 0; }
.shop-note-center { text-align: center; }
.shop-optional { font-weight: 400; color: var(--shop-muted); }
.shop-link { color: var(--shop-navy); font-weight: 600; text-decoration: none; }
.shop-link:hover { text-decoration: underline; }
.shop-pre { white-space: pre-line; }
.shop-section-heading {
    font-family: 'Racing Sans One', Helvetica, Arial, sans-serif;
    font-weight: normal; font-size: 34px; color: var(--shop-ink); margin: 0 0 22px; letter-spacing: -0.4px;
}

/* Buttons */
.shop-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 20px; border-radius: 8px; border: 1px solid var(--shop-line); background: #fff;
    color: var(--shop-ink); font: 600 15px 'Poppins', Helvetica, Arial, sans-serif;
    text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s;
}
.shop-btn:hover { border-color: #c4cbd4; background: var(--shop-soft); }
.shop-btn:active { transform: translateY(1px); }
.shop-btn:focus-visible { outline: 3px solid var(--shop-navy); outline-offset: 2px; }
.shop-btn-primary { background: var(--shop-gold); border-color: var(--shop-gold); color: var(--shop-ink); }
.shop-btn-primary:hover { background: #fdd665; border-color: #fdd665; }
.shop-btn-dark { background: var(--shop-navy); border-color: var(--shop-navy); color: #fff; }
.shop-btn-dark:hover { background: #033f7c; border-color: #033f7c; }
.shop-btn-lg { padding: 15px 26px; font-size: 16.5px; }
.shop-btn-block { width: 100%; }
.shop-btn:disabled { opacity: .6; cursor: progress; }
.shop-link-btn { border: 0; background: none; color: var(--shop-muted); font: 500 13px 'Poppins', sans-serif; cursor: pointer; text-decoration: underline; padding: 4px 0; }
.shop-link-btn:hover { color: var(--shop-danger); }

/* Breadcrumbs */
.shop-crumbs { font-size: 13.5px; color: var(--shop-muted); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.shop-crumbs a { color: var(--shop-navy); text-decoration: none; font-weight: 600; }
.shop-crumbs a:hover { text-decoration: underline; }

/* ---------- Shop front ---------- */
.shop-hero { height: 340px; max-height: 340px; }
.shop-finder { position: relative; z-index: 2; margin-top: -86px; font-family: 'Poppins', Helvetica, Arial, sans-serif; }
.shop-finder-panel {
    display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
    background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(10, 25, 45, .18);
    overflow: hidden; border-top: 4px solid var(--shop-gold);
}
.shop-finder-compact { margin-top: 0; padding-top: 28px; }
.shop-finder-compact .shop-finder-panel { box-shadow: 0 6px 22px rgba(10, 25, 45, .08); }
.shop-finder-compact + .shop-results-section { padding-top: 24px; }
.shop-search, .shop-vehicle { padding: 24px 26px; }
.shop-vehicle { background: var(--shop-soft); border-left: 1px solid var(--shop-line); }
.shop-finder-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--shop-navy); margin-bottom: 10px; }
.shop-search-row, .shop-vehicle-row { display: flex; gap: 10px; }
.shop-search-row input, .shop-vehicle-row select, .shop-sort select, .shop-field select {
    flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid #c2c9d2; border-radius: 8px;
    font: 15px 'Poppins', Helvetica, Arial, sans-serif; color: var(--shop-ink); background: #fff;
}
.shop-search-row input:focus, .shop-vehicle-row select:focus, .shop-field select:focus { outline: 2px solid var(--shop-navy); border-color: var(--shop-navy); }
.shop-vehicle-row select:disabled { background: #eef1f4; color: #8a929c; }
.shop-assurances { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; padding: 18px 0 0; margin: 0; font-size: 14px; color: var(--shop-muted); }
.shop-assurances li { display: inline-flex; align-items: center; gap: 8px; }
.shop-assurances li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--shop-navy); }
.shop-assurances a { color: var(--shop-navy); font-weight: 600; }

.shop-ranges-section { padding-top: 48px; }
.shop-ranges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.shop-range {
    display: flex; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--shop-line);
    border-radius: var(--shop-radius); background: #fff; text-decoration: none; color: inherit;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.shop-range:hover { border-color: var(--shop-navy); box-shadow: 0 10px 28px rgba(4, 82, 160, .12); transform: translateY(-2px); }
.shop-range-media { flex: 0 0 92px; height: 92px; border-radius: 8px; background: var(--shop-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.shop-range-media img { max-width: 86%; max-height: 86%; object-fit: contain; }
.shop-range-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-family: 'Poppins', Helvetica, Arial, sans-serif; }
.shop-range-name { font-weight: 700; font-size: 16.5px; color: var(--shop-ink); line-height: 1.25; }
.shop-range-blurb { font-size: 13px; color: var(--shop-muted); line-height: 1.4; }
.shop-range-meta { font-size: 13px; font-weight: 600; color: var(--shop-navy); margin-top: 3px; }

/* Results */
.shop-results-section { padding-top: 40px; font-family: 'Poppins', Helvetica, Arial, sans-serif; }
.shop-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.shop-results-title { font-family: 'Racing Sans One', Helvetica, Arial, sans-serif; font-weight: normal; font-size: 34px; line-height: 1.1; color: var(--shop-ink); margin: 0; }
.shop-results-count { margin: 4px 0 0; color: var(--shop-muted); font-size: 14px; }
.shop-sort { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.shop-sort select { flex: none; padding: 9px 12px; }
.shop-facets { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.shop-facet {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px;
    border: 1px solid var(--shop-line); background: #fff; color: var(--shop-ink); font-size: 13.5px; font-weight: 500; text-decoration: none;
}
.shop-facet span { color: var(--shop-muted); font-size: 12.5px; }
.shop-facet:hover { border-color: var(--shop-navy); }
.shop-facet.is-active { background: var(--shop-navy); border-color: var(--shop-navy); color: #fff; }
.shop-facet.is-active span { color: #cfe0f5; }
.shop-noresults { text-align: center; padding: 48px 20px; border: 1px dashed #cfd6de; border-radius: var(--shop-radius); background: var(--shop-soft); font-family: 'Poppins', sans-serif; }
.shop-noresults h3 { font-size: 20px; margin: 0 0 8px; color: var(--shop-ink); }
.shop-noresults a { color: var(--shop-navy); font-weight: 600; }

/* Product cards */
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.shop-card {
    display: flex; flex-direction: column; border: 1px solid var(--shop-line); border-radius: var(--shop-radius);
    background: #fff; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s;
    font-family: 'Poppins', Helvetica, Arial, sans-serif;
}
.shop-card:hover { border-color: var(--shop-navy); box-shadow: 0 10px 28px rgba(4, 82, 160, .12); transform: translateY(-2px); }
.shop-card-media { aspect-ratio: 4 / 3; background: var(--shop-soft); display: flex; align-items: center; justify-content: center; }
.shop-card-media img { max-width: 82%; max-height: 82%; object-fit: contain; }
.shop-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 15px 15px; flex: 1; }
.shop-card-range { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--shop-navy); }
.shop-card-name { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--shop-ink); }
.shop-card-fits { font-size: 13px; color: var(--shop-text); line-height: 1.4; }
.shop-card-sku { font-size: 12.5px; color: var(--shop-muted); }
.shop-card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 10px; }
.shop-card-price { font-weight: 700; font-size: 18px; color: var(--shop-ink); }
.shop-card-stock { font-size: 12px; color: var(--shop-muted); white-space: nowrap; }
.shop-card-stock.is-out { color: var(--shop-danger); font-weight: 600; }

.shop-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 0; font-size: 14.5px; }
.shop-pager a, .shop-pager span { min-width: 40px; padding: 8px 12px; border-radius: 8px; text-align: center; border: 1px solid var(--shop-line); text-decoration: none; color: var(--shop-ink); background: #fff; }
.shop-pager a:hover { border-color: var(--shop-navy); }
.shop-pager .is-current { background: var(--shop-navy); border-color: var(--shop-navy); color: #fff; font-weight: 600; }
.shop-pager .shop-pager-gap { border-color: transparent; background: none; min-width: 20px; }

/* ---------- Product page ---------- */
.shop-item { padding-top: 0; }
.shop-item-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 44px; align-items: start; }
.shop-gallery { position: sticky; top: 120px; }
.shop-gallery-main { aspect-ratio: 1 / 1; border-radius: 14px; background: var(--shop-soft); display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid var(--shop-line); }
.shop-gallery-main img { max-width: 88%; max-height: 88%; object-fit: contain; }
.shop-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.shop-gallery-thumb { width: 78px; height: 78px; padding: 4px; border-radius: 8px; border: 2px solid var(--shop-line); background: var(--shop-soft); cursor: pointer; }
.shop-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.shop-gallery-thumb.is-active, .shop-gallery-thumb:hover { border-color: var(--shop-navy); }
.shop-gallery-note { font-size: 12.5px; color: var(--shop-muted); margin: 10px 0 0; }

.shop-buy-range { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--shop-navy); margin: 0 0 6px; }
.shop-buy-title { font-family: 'Poppins', Helvetica, Arial, sans-serif; font-size: 28px; font-weight: 700; line-height: 1.25; color: var(--shop-ink); margin: 0 0 6px; }
.shop-buy-sku { font-size: 14px; color: var(--shop-muted); margin: 0 0 18px; }
.shop-buy-sku strong { color: var(--shop-ink); }

.shop-fits { border: 1px solid var(--shop-line); border-radius: var(--shop-radius); padding: 14px 16px; margin-bottom: 18px; background: #fff; }
.shop-fits h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--shop-muted); margin: 0 0 8px; font-weight: 700; }
.shop-fits ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.shop-fits li { font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.shop-fits li span { color: var(--shop-muted); font-size: 13.5px; }
.shop-fits li .shop-fits-pos { color: var(--shop-navy); font-weight: 600; }
.shop-fits li em { flex-basis: 100%; font-size: 13px; color: var(--shop-muted); }
.shop-fits details { margin-top: 8px; font-size: 14px; }
.shop-fits summary { cursor: pointer; color: var(--shop-navy); font-weight: 600; margin-bottom: 6px; }
.shop-fits-check { font-size: 13px; color: var(--shop-muted); margin: 10px 0 0; }
.shop-fits-check a { color: var(--shop-navy); font-weight: 600; }

.shop-option { border: 0; margin: 0 0 16px; padding: 0; }
.shop-option legend { font-weight: 700; font-size: 15px; color: var(--shop-ink); margin-bottom: 4px; }
.shop-option-intro, .shop-option-note { font-size: 13px; color: var(--shop-muted); line-height: 1.5; margin: 0 0 8px; }
.shop-option-note { margin: 8px 0 0; }
.shop-choice {
    display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border: 1px solid var(--shop-line);
    border-radius: 8px; margin-bottom: 8px; cursor: pointer; background: #fff; font-size: 14.5px; line-height: 1.4;
}
.shop-choice:hover { border-color: #9fb3c9; }
.shop-choice:has(input:checked) { border-color: var(--shop-navy); box-shadow: inset 0 0 0 1px var(--shop-navy); background: #f5f9fe; }
.shop-choice input { margin-top: 3px; accent-color: var(--shop-navy); width: 17px; height: 17px; flex: none; }
.shop-choice-label { flex: 1; }
.shop-choice-sub { display: block; font-size: 13px; color: var(--shop-muted); }
.shop-choice-price { font-weight: 700; white-space: nowrap; color: var(--shop-ink); }

.shop-buy-price { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 2px; flex-wrap: wrap; }
.shop-buy-amount { font-size: 34px; font-weight: 700; color: var(--shop-ink); letter-spacing: -.5px; }
.shop-buy-vat { font-size: 14px; color: var(--shop-muted); }
.shop-buy-each { font-size: 13px; color: var(--shop-muted); margin: 0 0 16px; }
.shop-buy-actions { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.shop-buy-actions .shop-btn-primary { flex: 1; min-width: 200px; }
.shop-qty label { display: block; font-size: 12.5px; font-weight: 600; margin-bottom: 4px; color: var(--shop-muted); }
.shop-qty-stepper { display: inline-flex; align-items: stretch; border: 1px solid #c2c9d2; border-radius: 8px; overflow: hidden; background: #fff; height: 50px; }
.shop-qty-stepper button { width: 40px; border: 0; background: var(--shop-soft); font-size: 20px; cursor: pointer; color: var(--shop-ink); }
.shop-qty-stepper button:hover { background: #e6eaef; }
.shop-qty-stepper input { width: 52px; border: 0; text-align: center; font: 600 16px 'Poppins', sans-serif; -moz-appearance: textfield; }
.shop-qty-stepper input::-webkit-outer-spin-button, .shop-qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-cart .shop-qty-stepper { height: 40px; }
/* "Added to basket" pop-up (js/shop.js); top is set in JS to clear the fixed header */
.shop-toast {
    position: fixed; right: 20px; top: 100px; z-index: 1000;
    width: 340px; max-width: calc(100vw - 24px);
    background: #fff; color: var(--shop-text);
    border: 1px solid var(--shop-line); border-top: 4px solid var(--shop-gold); border-radius: var(--shop-radius);
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.22);
    padding: 14px 16px 16px;
    opacity: 0; transform: translateY(-12px); pointer-events: none; visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
}
.shop-toast.is-visible { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity 0.2s ease, transform 0.2s ease; }
.shop-toast-head { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.shop-toast-tick { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--shop-ok); color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.shop-toast-close { margin-left: auto; width: 30px; height: 30px; border: none; background: none; font-size: 22px; line-height: 1; color: var(--shop-muted); cursor: pointer; border-radius: 50%; }
.shop-toast-close:hover { background: var(--shop-soft); color: var(--shop-ink); }
.shop-toast-body { display: flex; gap: 12px; align-items: center; margin: 12px 0 14px; }
.shop-toast-body img { width: 64px; height: 64px; object-fit: contain; border: 1px solid var(--shop-line); border-radius: 8px; background: #fff; flex: none; }
.shop-toast-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; }
.shop-toast-name { font-weight: 600; line-height: 1.35; }
.shop-toast-info small { color: var(--shop-muted); font-size: 12.5px; }
.shop-toast-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-toast-actions .shop-btn { text-align: center; padding: 10px 12px; font-size: 14px; }
@media (max-width: 600px) {
    .shop-toast { left: 12px; right: 12px; width: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-toast, .shop-toast.is-visible { transition: none; transform: none; }
}

/* Basket icon nudge when something is added */
@keyframes shop-bump { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.25); } }
.nav-basket.is-bumped .nav-basket-count { animation: shop-bump 0.45s ease; }

.shop-buy-status { margin: 12px 0 0; font-size: 14px; display: none; padding: 11px 14px; border-radius: 8px; background: #e7f6ef; color: #05603a; }
.shop-buy-status.is-visible { display: block; }
.shop-buy-status a, .shop-added a { color: inherit; font-weight: 700; }
.shop-added { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 14px; border-radius: 8px; background: #e7f6ef; color: #05603a; font-size: 14px; margin-bottom: 14px; }
.shop-buy-out { font-size: 15px; padding: 12px 14px; border-radius: 8px; background: var(--shop-soft); }
.shop-buy-out a { color: var(--shop-navy); font-weight: 600; }
.shop-buy-facts { list-style: none; padding: 16px 0 0; margin: 18px 0 0; border-top: 1px solid var(--shop-line); display: grid; gap: 9px; font-size: 14px; line-height: 1.5; }
.shop-buy-facts li { padding-left: 24px; position: relative; }
.shop-buy-facts li::before { content: '✓'; position: absolute; left: 0; color: var(--shop-ok); font-weight: 700; }
.shop-buy-facts a { color: var(--shop-navy); font-weight: 600; }

.shop-item-details { max-width: 860px; margin: 48px 0 0; }
.shop-detail-block { margin-bottom: 32px; }
.shop-detail-block h2 { font-size: 20px; font-weight: 700; color: var(--shop-ink); margin: 0 0 12px; }
.shop-detail-block p { font-size: 15.5px; line-height: 1.7; margin: 0 0 12px; }
.shop-line { display: block; }
.shop-detail-list { margin: 0 0 12px; padding-left: 20px; font-size: 15.5px; line-height: 1.7; }
.shop-specs { border-collapse: collapse; width: 100%; max-width: 560px; font-size: 14.5px; }
.shop-specs th, .shop-specs td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--shop-line); }
.shop-specs th { width: 44%; color: var(--shop-muted); font-weight: 500; }
.shop-range-more { font-size: 14.5px; }
.shop-range-more a { color: var(--shop-navy); font-weight: 600; }
.shop-related { margin-top: 24px; padding-top: 36px; border-top: 1px solid var(--shop-line); }

/* ---------- Basket ---------- */
.shop-cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.shop-cart-lines { border-top: 1px solid var(--shop-line); }
.shop-cart-line { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--shop-line); }
.shop-cart-thumb { width: 96px; height: 96px; border-radius: 8px; background: var(--shop-soft); display: flex; align-items: center; justify-content: center; }
.shop-cart-thumb img { max-width: 86%; max-height: 86%; object-fit: contain; }
.shop-cart-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.shop-cart-name { font-weight: 600; font-size: 15.5px; color: var(--shop-ink); text-decoration: none; line-height: 1.35; }
.shop-cart-name:hover { color: var(--shop-navy); }
.shop-cart-sku, .shop-cart-lead { font-size: 12.5px; color: var(--shop-muted); }
.shop-cart-option { font-size: 13px; color: var(--shop-navy); font-weight: 500; }
.shop-cart-qty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.shop-cart-price { text-align: right; min-width: 100px; }
.shop-cart-price strong { display: block; font-size: 16.5px; color: var(--shop-ink); }
.shop-cart-price span { font-size: 12.5px; color: var(--shop-muted); }
.shop-cart-actions { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }

.shop-cart-summary { background: var(--shop-soft); border-radius: 14px; padding: 22px; position: sticky; top: 120px; border: 1px solid var(--shop-line); }
.shop-cart-summary h2 { font-size: 19px; font-weight: 700; margin: 0 0 14px; color: var(--shop-ink); }
.shop-totals { margin: 14px 0 0; }
.shop-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.shop-totals dt { color: var(--shop-text); }
.shop-totals dd { margin: 0; font-weight: 600; white-space: nowrap; }
.shop-totals-sub { font-size: 13px !important; color: var(--shop-muted); }
.shop-totals-sub dt, .shop-totals-sub dd { color: var(--shop-muted); font-weight: 400; }
.shop-totals-total { border-top: 1px solid #cfd6de; margin-top: 6px; padding-top: 12px !important; font-size: 18px !important; }
.shop-totals-total dt, .shop-totals-total dd { font-weight: 700; color: var(--shop-ink); }
.shop-cart-summary .shop-btn-block { margin-top: 18px; }

/* ---------- Checkout ---------- */
.shop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; align-items: start; }
.shop-checkout-errors:not(.validation-summary-valid) {
    background: #fdecea; border: 1px solid #f5c6c0; color: var(--shop-danger); border-radius: 8px;
    padding: 12px 16px; margin-bottom: 18px; font-size: 14px;
}
.shop-checkout-errors.validation-summary-valid { display: none; }
.shop-checkout-errors ul { margin: 0; padding-left: 18px; }
.shop-section { background: #fff; border: 1px solid var(--shop-line); border-radius: 12px; padding: 22px 24px; margin-bottom: 16px; }
.shop-section-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--shop-ink); margin: 0 0 16px; }
.shop-section-number { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--shop-navy); color: #fff; font-size: 14px; font-weight: 700; flex: none; }
.shop-subtitle { font-size: 15px; font-weight: 700; margin: 18px 0 10px; color: var(--shop-ink); }
.shop-field { margin-bottom: 14px; }
.shop-field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--shop-ink); margin-bottom: 5px; }
.shop-field input, .shop-field textarea, .shop-field select {
    width: 100%; padding: 11px 13px; border: 1px solid #c2c9d2; border-radius: 8px;
    font: 15px 'Poppins', Helvetica, Arial, sans-serif; color: var(--shop-ink); background: #fff;
}
.shop-field input:focus, .shop-field textarea:focus { outline: 2px solid var(--shop-navy); outline-offset: 0; border-color: var(--shop-navy); }
.shop-field .input-validation-error { border-color: var(--shop-danger); background: #fffafa; }
.shop-field-compact { margin: 0 0 6px; }
.shop-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.shop-field-row-3 { grid-template-columns: 1.3fr 1fr 0.8fr; }
.shop-error { display: block; font-size: 12.5px; color: var(--shop-danger); margin-top: 4px; }
.shop-error:empty, .shop-error.field-validation-valid { display: none; }
.shop-choices { display: grid; gap: 8px; }
.shop-choice-card { margin: 0; }
.shop-delivery-address { margin-top: 6px; }
.shop-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.5; cursor: pointer; margin: 16px 0 6px; }
.shop-checkbox input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--shop-navy); flex: none; }
.shop-checkbox a { color: var(--shop-navy); font-weight: 600; }
.shop-terms + .shop-error { margin-bottom: 10px; }
.shop-section .shop-btn-block { margin-top: 14px; }
.shop-cart-summary .pay-icons { justify-content: center; margin-top: 8px; }
.shop-checkout-summary { position: sticky; top: 120px; }

/* Discount code box in the checkout summary */
.shop-discount { margin: 16px 0 4px; padding-top: 14px; border-top: 1px solid var(--shop-line); }
.shop-discount label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; }
.shop-discount-entry { display: flex; gap: 8px; }
.shop-discount-entry input { flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--shop-line); border-radius: 8px; font: inherit; font-size: 16px; text-transform: uppercase; }
.shop-discount-entry input:focus { outline: 2px solid var(--shop-navy); outline-offset: 0; border-color: var(--shop-navy); }
.shop-discount-entry .shop-btn { padding: 10px 16px; }
.shop-discount-applied { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0; padding: 9px 12px; border-radius: 8px; background: #e7f6ef; color: var(--shop-ok); font-size: 14px; }
.shop-link-btn { background: none; border: none; padding: 0; font: inherit; font-size: 13.5px; color: var(--shop-navy); text-decoration: underline; cursor: pointer; }
.shop-totals-discount dd, .shop-totals-discount dt { color: var(--shop-ok) !important; }
.shop-discount [hidden], .shop-totals [hidden] { display: none !important; }
.shop-summary-lines { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.shop-summary-lines li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 13.5px; }
.shop-confirm-summary .shop-summary-lines li { grid-template-columns: minmax(0, 1fr) auto; }
.shop-summary-lines img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--shop-line); }
.shop-summary-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: var(--shop-ink); font-weight: 500; line-height: 1.35; }
.shop-summary-name small { color: var(--shop-muted); font-size: 12px; font-weight: 400; }
.shop-summary-price { font-weight: 600; white-space: nowrap; }

/* ---------- Payment hand-off & confirmation ---------- */
.shop-paying { text-align: center; padding: 40px 0; }
.shop-spinner { display: inline-block; width: 44px; height: 44px; border-radius: 50%; border: 4px solid #d9e3ef; border-top-color: var(--shop-navy); animation: shop-spin .9s linear infinite; margin-bottom: 18px; }
@keyframes shop-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .shop-spinner { animation-duration: 3s; } }
.shop-pay-retry { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.shop-confirm-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 8px; }
.shop-confirm-tick { flex: none; width: 54px; height: 54px; border-radius: 50%; background: #e7f6ef; color: var(--shop-ok); font-size: 28px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.shop-confirm-head .shop-page-title { font-size: 34px; margin-bottom: 8px; }
.shop-confirm-next { background: #f5f9fe; border-left: 4px solid var(--shop-navy); border-radius: 0 8px 8px 0; padding: 14px 18px; margin: 10px 0 22px; font-size: 15px; line-height: 1.6; }
.shop-confirm-next p { margin: 0; }
.shop-confirm-summary { position: static; margin-bottom: 18px; }
.shop-confirm-addresses { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #cfd6de; font-size: 14px; }
.shop-confirm-addresses h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--shop-muted); margin: 0 0 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shop-ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .shop-finder-panel { grid-template-columns: 1fr; }
    .shop-vehicle { border-left: 0; border-top: 1px solid var(--shop-line); }
    .shop-item-grid { grid-template-columns: 1fr; gap: 24px; }
    .shop-gallery { position: static; }
    .shop-gallery-main { aspect-ratio: 4 / 3; }
    .shop-cart, .shop-checkout { grid-template-columns: 1fr; }
    .shop-cart-summary, .shop-checkout-summary { position: static; }
    .shop-checkout-summary { order: -1; }
}
@media (max-width: 767px) {
    .shop-hero { height: 260px; }
    .shop-finder { margin-top: -60px; }
    .shop-finder-compact { margin-top: 0; padding-top: 16px; }
    .shop-finder-compact .shop-vehicle { display: none; }
    .shop-search, .shop-vehicle { padding: 18px; }
    .shop-search-row, .shop-vehicle-row { flex-wrap: wrap; }
    .shop-vehicle-row select { flex-basis: 100%; }
    .shop-vehicle-row .shop-btn { flex: 1; }
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .shop-card-body { padding: 11px 12px 12px; }
    .shop-card-name { font-size: 14px; }
    .shop-card-price { font-size: 16px; }
    .shop-ranges { grid-template-columns: 1fr; }
    .shop-page-title { font-size: 34px; }
    .shop-buy-title { font-size: 23px; }
    .shop-buy-amount { font-size: 30px; }
    .shop-field-row, .shop-field-row-3 { grid-template-columns: 1fr; }
    .shop-cart-line { grid-template-columns: 72px minmax(0, 1fr); gap: 10px 14px; }
    .shop-cart-thumb { width: 72px; height: 72px; }
    .shop-cart-qty { grid-column: 2; flex-direction: row; justify-content: flex-start; gap: 14px; }
    .shop-cart-price { grid-column: 2; text-align: left; }
    .shop-confirm-addresses { grid-template-columns: 1fr; }
    .shop-section { padding: 18px; }
}

/* Spring Finder (Shop/Springs) */
.shop-spring-finder { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; margin-top: 20px; }
.shop-spring-finder [hidden] { display: none !important; }
.shop-spring-types { display: grid; gap: 10px; }
.shop-spring-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shop-spring-warning { font-size: 14px; line-height: 1.55; padding: 11px 14px; border-radius: 8px; background: #fff4d6; color: #6b4a00; margin: 0 0 14px; }
.shop-spring-summary { position: sticky; top: 120px; }
.shop-spring-summary h2 { margin-bottom: 6px; }
.shop-spring-spec { font-size: 15px; font-weight: 600; margin: 0 0 6px; line-height: 1.45; }
.shop-spring-price { font-size: 22px; font-weight: 700; margin: 10px 0 14px; color: var(--shop-ink); }
.shop-spring-price:empty { display: none; }
.shop-spring-summary .shop-qty { margin-bottom: 8px; }
.shop-spring-summary .shop-btn-block { margin-top: 8px; }
.shop-spring-summary .shop-btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.shop-spring-cta { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--shop-radius); background: var(--shop-ink); color: #fff; margin: 0 0 24px; }
.shop-spring-cta strong { color: var(--shop-gold); }
.shop-spring-cta p { margin: 0; font-size: 15px; line-height: 1.5; }
@media (max-width: 1023px) {
    .shop-spring-finder { grid-template-columns: 1fr; }
    .shop-spring-summary { position: static; }
}
@media (max-width: 600px) {
    .shop-spring-row { grid-template-columns: 1fr; }
}
