/* Retail storefront — dark catalog aesthetic (inspired by modern merch / Bunker-style layouts) */
:root {
  --retail-bg: #0a0a0a;
  --retail-surface: #141414;
  --retail-card: #1a1a1a;
  --retail-border: #2a2a2a;
  --retail-text: #f5f5f5;
  --retail-muted: #9a9a9a;
  --retail-accent: #e85d04;
  --retail-accent-hover: #ff7b2e;
}

* {
  box-sizing: border-box;
}

body.retail-body {
  margin: 0;
  min-height: 100vh;
  background: var(--retail-bg);
  color: var(--retail-text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
}

.retail-nav {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--retail-border);
  backdrop-filter: blur(8px);
}

.retail-nav .navbar-brand {
  padding: 0;
  display: inline-flex;
  align-items: center;
}

.retail-nav .navbar-brand img {
  width: 60px;
  height: auto;
  display: block;
}

.retail-hero {
  background: linear-gradient(180deg, #121212 0%, var(--retail-bg) 55%);
  border-bottom: 1px solid var(--retail-border);
  padding: 3rem 0 2.5rem;
}

.retail-hero-carousel {
  position: relative;
  height: clamp(210px, 30vh, 300px);
  border: 1px solid var(--retail-border);
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0f0f0f;
}

.retail-hero-carousel .carousel-inner,
.retail-hero-carousel .carousel-item {
  height: 100%;
}

.retail-hero-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.retail-hero-carousel-alt {
  position: absolute;
  top: 1.15rem;
  right: 1.2rem;
  z-index: 2;
  margin: 0;
  box-sizing: border-box;
  /* Grow left from the right edge; only cap at carousel width minus gutters (no 50% cap on mobile). */
  width: min(max-content, calc(100% - 2.4rem));
  padding: 0.4rem 0.65rem;
  text-align: right;
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  line-height: 1.35;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 0.4rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  overflow-wrap: break-word;
  pointer-events: none;
}

.retail-hero-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1.15rem 1.2rem 2.5rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 20%, rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

.retail-hero-carousel-overlay h1 {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.8rem, 4.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.retail-hero-carousel-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  max-width: 34rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.retail-hero-indicators {
  z-index: 3;
  margin-bottom: 0.6rem;
}

.retail-hero-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  margin: 0 4px;
}

.retail-hero-indicators .active {
  background: var(--retail-accent);
}

.retail-hero h1 {
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  margin: 0 0 0.75rem;
}

.retail-hero p.lead {
  color: var(--retail-muted);
  font-size: 1.1rem;
  max-width: 36rem;
  margin: 0;
}

.retail-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.retail-step-pill {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--retail-border);
  color: var(--retail-muted);
  background: transparent;
}

.retail-step-pill.active {
  border-color: var(--retail-accent);
  color: var(--retail-accent);
  background: rgba(232, 93, 4, 0.08);
}

.retail-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.retail-make-catalog {
  padding-top: 1.25rem;
}

@media (max-width: 575.98px) {
  .retail-make-catalog {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 1rem;
  }
}

.retail-card {
  background: var(--retail-card);
  border: 1px solid var(--retail-border);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
  height: 100%;
}

.retail-card:hover {
  border-color: #3a3a3a;
  transform: translateY(-2px);
}

.retail-card .img-wrap {
  aspect-ratio: 4 / 3;
  background: var(--retail-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.retail-card .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.retail-card .body {
  padding: 1rem 1.1rem 1.25rem;
}

.retail-card .title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0 0 0.35rem;
}

.retail-card .meta {
  font-size: 0.85rem;
  color: var(--retail-muted);
}

.retail-price {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  color: var(--retail-accent);
  margin-top: 0.5rem;
}

.retail-badge-warn {
  font-size: 0.7rem;
  background: rgba(220, 53, 69, 0.2);
  color: #ff8a95;
  border: 1px solid rgba(220, 53, 69, 0.35);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  margin-top: 0.5rem;
  display: inline-block;
}

.retail-section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--retail-border);
}

.retail-back {
  color: var(--retail-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.retail-back:hover {
  color: var(--retail-accent);
}

.retail-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--retail-border);
  color: var(--retail-muted);
  font-size: 0.85rem;
}

.retail-placeholder {
  color: #444;
  font-size: 3rem;
}

.retail-product-detail {
  background: var(--retail-card);
  border: 1px solid var(--retail-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.retail-product-detail--clickable {
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s;
}

.retail-product-detail--clickable:hover {
  border-color: #3a3a3a;
  transform: translateY(-2px);
}

.retail-product-detail--clickable:focus-visible {
  outline: 2px solid var(--retail-accent);
  outline-offset: 2px;
}

.retail-product-detail .row > [class*="col-"] {
  min-width: 0;
}

.retail-product-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 100%;
}

.retail-cta-bar {
  background: var(--retail-surface);
  border: 1px solid var(--retail-border);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  margin-top: 2rem;
}

.btn-retail-primary {
  background: var(--retail-accent);
  border: none;
  color: #111;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
}

.btn-retail-primary:hover {
  background: var(--retail-accent-hover);
  color: #111;
}

.btn-retail-ghost {
  border: 1px solid var(--retail-border);
  color: var(--retail-text);
  background: transparent;
}

.btn-retail-ghost:hover {
  border-color: var(--retail-muted);
  color: var(--retail-text);
}

.retail-contact-enquiry-card {
  max-width: 28rem;
}

.retail-checkout-option-actions {
  margin-bottom: 0.25rem;
}

.retail-checkout-flow {
  width: min(100%, 920px);
  margin-inline: auto;
}

.retail-order-summary {
  background: var(--retail-card);
  border: 1px solid var(--retail-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
}

.retail-order-summary--inline {
  margin-bottom: 1.25rem;
}

.retail-form-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--retail-muted);
  margin-bottom: 0.35rem;
}

.retail-address-suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  z-index: 20;
  max-height: 230px;
  overflow: auto;
  border: 1px solid var(--retail-border);
  border-radius: 0.35rem;
  background: #121212;
}

.retail-address-suggestion-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--retail-border);
  background: transparent;
  color: var(--retail-text);
  text-align: left;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
}

.retail-address-suggestion-item:hover {
  background: rgba(232, 93, 4, 0.2);
}

.retail-distance-warning {
  border: 1px solid;
  border-radius: 0.35rem;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
}

.retail-distance-warning--error {
  border-color: rgba(220, 53, 69, 0.5);
  background: rgba(220, 53, 69, 0.18);
  color: #ffb3bd;
}

.retail-distance-warning--review {
  border-color: rgba(255, 193, 7, 0.5);
  background: rgba(255, 193, 7, 0.16);
  color: #ffe08a;
}

.retail-option-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.retail-option-actions .btn-order-line {
  text-align: left;
  justify-content: flex-start;
}

.retail-success-panel {
  background: var(--retail-card);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}

.retail-success-panel .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 1.75rem;
}

/* Reg / VIN lookup — full grid width on make page, same gutters as make tiles */
.retail-section-title.retail-section-title--toolbar {
  margin-top: 0;
  margin-bottom: 0;
  align-self: center;
}

.retail-vrm-row {
  grid-column: 1 / -1;
  min-width: 0;
  justify-self: start;
  width: 100%;
  max-width: 100%;
}

@media (min-width: 576px) {
  .retail-make-catalog .retail-vrm-row {
    max-width: 50%;
  }
}

.retail-vrm-lookup {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.65rem;
  width: 100%;
  min-width: 0;
}

.retail-vrm-input.vrmentry {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  padding: 0.4rem 0.65rem;
  font-family: "UKNumberPlate", "Bebas Neue", system-ui, sans-serif;
  font-size: clamp(0.95rem, 3.5vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  color: #111;
  background: linear-gradient(180deg, #f7e078 0%, #e8c940 100%);
  border: 1px solid #8a7a30;
  border-radius: 0.35rem;
}

.retail-vrm-input.vrmentry:focus {
  outline: 2px solid var(--retail-accent);
  outline-offset: 2px;
}

.retail-vrm-find.btn {
  flex: 0 0 auto;
  align-self: stretch;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  white-space: nowrap;
}

@media (max-width: 399.98px) {
  .retail-vrm-lookup {
    flex-direction: column;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.5rem;
  }

  .retail-vrm-find.btn {
    width: 100%;
  }
}

.retail-finding-overlay {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(2px);
}

.retail-finding-panel {
  background: var(--retail-card);
  border: 1px solid var(--retail-border);
  border-radius: 0.5rem;
  padding: 1.75rem 2rem;
  min-width: 240px;
}

.retail-stripe-element-wrap {
  padding: 1rem 1rem 0.5rem;
  background: var(--retail-card);
  border: 1px solid var(--retail-border);
  border-radius: 0.5rem;
}
