/* =============================================================================
   retailer.css — Fictitious Tyre Retailer Product Page (Light Theme)
   Self-contained — does NOT import style.css, examples.css, or manufacturer.css
   ============================================================================= */

/* =============================================================================
   Variables & Reset
   ============================================================================= */

:root {
  --ret-primary: #1a56db;
  --ret-primary-hover: #1648b8;
  --ret-dark: #111827;
  --ret-text: #333;
  --ret-text-muted: #666;
  --ret-text-light: #888;
  --ret-bg: #fff;
  --ret-bg-alt: #f5f6f8;
  --ret-bg-warm: #fefce8;
  --ret-border: #e0e4e8;
  --ret-border-light: #f0f0f0;
  --ret-green: #059669;
  --ret-green-bg: #ecfdf5;
  --ret-radius: 8px;
  --ret-radius-sm: 6px;
  --ret-nav-h: 56px;
  --ret-topbar-h: 36px;

  /* tyre.info widget colors */
  --ti-blue: #0db1e7;
  --ti-accent: #5ad6ff;
  --ti-green: #22c55e;
  --ti-green-muted: #059669;
  --ti-amber: #f59e0b;
  --ti-red: #ef4444;
  --ti-red-muted: #dc2626;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--ret-text);
  background: var(--ret-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.ret-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================================
   Demo Banner (sticky)
   ============================================================================= */

.ret-demo-bar {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 24px;
  background: #0f172a;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
}

.ret-demo-bar__icon {
  flex-shrink: 0;
  color: var(--ti-blue);
}

.ret-demo-bar strong {
  color: #fff;
}

.ret-demo-bar__link {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--ti-blue);
  margin-left: 4px;
  transition: color 0.15s;
}

.ret-demo-bar__link:hover {
  color: var(--ti-accent);
}

/* =============================================================================
   Top Bar (USPs strip)
   ============================================================================= */

.ret-topbar {
  background: var(--ret-dark);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.68rem;
  height: var(--ret-topbar-h);
  display: flex;
  align-items: center;
}

.ret-topbar__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.ret-topbar__item {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.ret-topbar__item svg {
  flex-shrink: 0;
  color: var(--ti-blue);
}

/* =============================================================================
   Navigation
   ============================================================================= */

.ret-nav {
  background: var(--ret-bg);
  border-bottom: 1px solid var(--ret-border);
  height: var(--ret-nav-h);
}

.ret-nav__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.ret-nav__logo {
  font-family: 'Sora', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ret-primary);
  letter-spacing: -0.5px;
  flex-shrink: 0;
}

.ret-nav__logo span {
  color: var(--ret-dark);
}

.ret-nav__search {
  flex: 1;
  max-width: 420px;
  display: flex;
  align-items: center;
  gap: 0;
}

.ret-nav__search-input {
  flex: 1;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  padding: 7px 12px;
  border: 1px solid var(--ret-border);
  border-right: none;
  border-radius: var(--ret-radius-sm) 0 0 var(--ret-radius-sm);
  background: var(--ret-bg-alt);
  color: var(--ret-text);
}

.ret-nav__search-input::placeholder { color: var(--ret-text-light); }
.ret-nav__search-input:focus { outline: none; border-color: var(--ret-primary); }

.ret-nav__search-btn {
  padding: 7px 14px;
  background: var(--ret-primary);
  border: 1px solid var(--ret-primary);
  border-radius: 0 var(--ret-radius-sm) var(--ret-radius-sm) 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.ret-nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
  margin-left: auto;
}

.ret-nav__links a {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ret-text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.15s;
}

.ret-nav__links a:hover {
  color: var(--ret-primary);
}

.ret-nav__basket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ret-primary);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
}

/* =============================================================================
   Category Bar
   ============================================================================= */

.ret-catbar {
  background: var(--ret-bg-alt);
  border-bottom: 1px solid var(--ret-border-light);
  padding: 0;
}

.ret-catbar__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
}

.ret-catbar__link {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ret-text-muted);
  padding: 10px 16px;
  transition: color 0.15s, background 0.15s;
}

.ret-catbar__link:first-child {
  padding-left: 0;
}

.ret-catbar__link:hover {
  color: var(--ret-primary);
  background: rgba(26, 86, 219, 0.04);
}

/* =============================================================================
   Breadcrumbs
   ============================================================================= */

.ret-breadcrumb {
  padding: 14px 0;
  font-size: 0.72rem;
  color: var(--ret-text-light);
}

.ret-breadcrumb a {
  color: var(--ret-text-muted);
  transition: color 0.15s;
}

.ret-breadcrumb a:hover { color: var(--ret-primary); }

.ret-breadcrumb__sep {
  margin: 0 6px;
  color: var(--ret-border);
}

/* =============================================================================
   Product Section
   ============================================================================= */

.ret-product {
  padding-bottom: 40px;
}

.ret-product__grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}

/* Left: Image */
.ret-product__image-wrap {
  background: var(--ret-bg-alt);
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius);
  overflow: hidden;
  position: relative;
}

.ret-product__image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.ret-product__badge-corner {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--ret-primary);
  color: #fff;
}

/* Right: Details */
.ret-product__details {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ret-product__brand {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ret-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ret-product__title {
  font-family: 'Sora', sans-serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--ret-dark);
  line-height: 1.2;
}

.ret-product__size-label {
  font-size: 0.85rem;
  color: var(--ret-text-muted);
}

.ret-product__stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ret-green);
  margin-top: 2px;
}

.ret-product__stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ret-green);
}

/* Price area */
.ret-product__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
}

.ret-product__price {
  font-family: 'Sora', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--ret-dark);
  line-height: 1;
}

.ret-product__price-inc {
  font-size: 0.72rem;
  color: var(--ret-text-light);
}

.ret-product__price-per {
  font-size: 0.75rem;
  color: var(--ret-text-muted);
  margin-top: 2px;
}

/* EU Label */
.ret-product__eu {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.ret-eu-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--ret-border);
  background: var(--ret-bg);
  color: var(--ret-text-muted);
}

.ret-eu-badge__grade {
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 0.65rem;
}

.ret-eu-badge__grade--a { background: #22c55e; color: #fff; }
.ret-eu-badge__grade--b { background: #86efac; color: #14532d; }
.ret-eu-badge__grade--db { background: #e8eaed; color: #333; }

/* tyre.info score widget (inline in product area) */
.ret-product__ti-score {
  margin-top: 10px;
}

/* Actions */
.ret-product__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.ret-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius-sm);
  overflow: hidden;
}

.ret-qty__btn {
  width: 34px;
  height: 36px;
  background: var(--ret-bg-alt);
  border: none;
  font-size: 1rem;
  color: var(--ret-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ret-qty__btn:hover { background: var(--ret-border); }

.ret-qty__val {
  width: 40px;
  height: 36px;
  border: none;
  border-left: 1px solid var(--ret-border);
  border-right: 1px solid var(--ret-border);
  text-align: center;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ret-text);
}

.ret-btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 10px 28px;
  border-radius: var(--ret-radius-sm);
  border: none;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.ret-btn--primary {
  background: var(--ret-primary);
  color: #fff;
}

.ret-btn--primary:hover {
  background: var(--ret-primary-hover);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.25);
}

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

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

/* Delivery & fitting info */
.ret-product__info-boxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--ret-border-light);
}

.ret-info-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--ret-radius-sm);
  background: var(--ret-bg-alt);
  font-size: 0.78rem;
}

.ret-info-box__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ret-primary);
  margin-top: 1px;
}

.ret-info-box__text {
  color: var(--ret-text-muted);
  line-height: 1.45;
}

.ret-info-box__text strong {
  color: var(--ret-text);
}

/* Size selector */
.ret-product__size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.ret-product__size-row label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ret-text);
  white-space: nowrap;
}

.ret-product__size-row select {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  padding: 6px 32px 6px 10px;
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius-sm);
  background: var(--ret-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23666'/%3E%3C/svg%3E") no-repeat right 10px center;
  appearance: none;
  color: var(--ret-text);
  cursor: pointer;
}

/* Guarantee strip */
.ret-product__guarantee {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--ret-green);
  font-weight: 500;
}

/* =============================================================================
   Product Tabs / Sections below product
   ============================================================================= */

.ret-tabs {
  border-top: 1px solid var(--ret-border);
  background: var(--ret-bg);
}

.ret-tabs__nav {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--ret-border);
}

.ret-tabs__btn {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ret-text-muted);
  padding: 14px 20px;
  border: none;
  background: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.ret-tabs__btn:hover {
  color: var(--ret-text);
}

.ret-tabs__btn--active {
  color: var(--ret-primary);
  border-bottom-color: var(--ret-primary);
}

.ret-tabs__panel {
  display: none;
  max-width: 1140px;
  margin: 0 auto;
  padding: 32px 24px;
}

.ret-tabs__panel--active {
  display: block;
}

/* Description tab */
.ret-desc h3 {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ret-dark);
  margin-bottom: 8px;
}

.ret-desc p {
  font-size: 0.85rem;
  color: var(--ret-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
  max-width: 720px;
}

.ret-desc ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
  max-width: 720px;
}

.ret-desc li {
  font-size: 0.82rem;
  color: var(--ret-text-muted);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}

.ret-desc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ret-primary);
}

/* Specs tab */
.ret-specs {
  max-width: 600px;
}

.ret-specs__row {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--ret-border-light);
}

.ret-specs__label {
  width: 200px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ret-text-muted);
}

.ret-specs__value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ret-text);
}

/* =============================================================================
   tyre.info Widget Shared — Light Theme
   (Compact subset — only score badge + reviews)
   ============================================================================= */

.ti-widget {
  background: var(--ret-bg);
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ti-widget__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--ret-bg-alt);
  border-bottom: 1px solid var(--ret-border-light);
  font-size: 0.72rem;
  color: var(--ret-text-muted);
}

.ti-widget__header strong { color: var(--ret-dark); }

.ti-widget__body { padding: 16px; }

.ti-widget__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 16px;
  background: var(--ret-bg-alt);
  border-top: 1px solid var(--ret-border-light);
  font-size: 0.65rem;
  color: var(--ret-text-light);
}

.ti-widget__footer img { display: inline-block; vertical-align: -1px; }

.ti-powered-tyre { font-weight: 600; color: var(--ret-dark); }
.ti-powered-dot { font-weight: 600; color: var(--ti-blue); }

/* Score circle */
.ti-score-circle {
  position: relative;
  flex-shrink: 0;
}

.ti-score-circle img { width: 100%; height: 100%; display: block; }

.ti-score-circle__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  color: #fff;
}

.ti-score-circle--sm  { width: 44px; height: 44px; }
.ti-score-circle--sm .ti-score-circle__value { font-size: 0.8rem; }
.ti-score-circle--md  { width: 56px; height: 56px; }
.ti-score-circle--md .ti-score-circle__value { font-size: 1rem; }
.ti-score-circle--lg  { width: 80px; height: 80px; }
.ti-score-circle--lg .ti-score-circle__value { font-size: 1.5rem; }

.ti-score-circle--link {
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s;
}

.ti-score-circle--link:hover {
  transform: scale(1.06);
  filter: brightness(1.1);
}

/* Compact score badge */
.ti-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--ret-bg);
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.ti-badge:hover {
  border-color: var(--ti-blue);
  box-shadow: 0 4px 12px rgba(13, 177, 231, 0.1);
}

.ti-badge__info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.ti-badge__score-text {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ret-dark);
}

.ti-badge__basis {
  font-size: 0.62rem;
  color: var(--ret-text-light);
}

.ti-badge__right { flex-shrink: 0; }

.ti-badge__cta {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ti-blue);
  white-space: nowrap;
}

.ti-badge__cta svg { margin-left: 2px; vertical-align: middle; }

.ti-badge__powered {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 0.62rem;
  color: var(--ret-text-light);
}

.ti-badge__powered img { display: inline-block; }
.ti-badge__powered strong { color: var(--ret-text-muted); }

/* Confidence */
.ti-conf {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
}

.ti-conf--high { color: var(--ti-green-muted); }

.ti-conf__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ti-green);
}

.ti-conf-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.ti-conf-badge--high {
  background: rgba(34, 197, 94, 0.1);
  color: var(--ti-green-muted);
}

/* Breakdown link */
.ti-breakdown-link {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--ti-blue);
  cursor: pointer;
  margin-top: 2px;
  transition: color 0.15s;
}

.ti-breakdown-link:hover { color: var(--ret-dark); }
.ti-breakdown-link svg { vertical-align: middle; }

/* Leave a review button */
.ti-leave-review-btn {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ti-blue);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s;
}

.ti-leave-review-btn:hover { background: #0a9ed0; }

/* Stars */
.ti-stars { display: inline-flex; gap: 1px; }

.ti-star {
  width: 14px;
  height: 14px;
  display: inline-block;
}

.ti-star--full {
  background: var(--ti-amber);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ti-star--half {
  background: linear-gradient(90deg, var(--ti-amber) 50%, #d1d5db 50%);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.ti-star--empty {
  background: #d1d5db;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* =============================================================================
   Reviews Widget (in tab)
   ============================================================================= */

.ti-reviews { width: 100%; }

.ti-reviews__top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ret-border-light);
}

.ti-reviews__score {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ti-reviews__score-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ti-reviews__score-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--ret-text-light);
}

.ti-reviews__star-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.ti-reviews__avg {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.ti-reviews__avg-num {
  font-family: 'Sora', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ret-dark);
  line-height: 1;
}

.ti-reviews__avg-of {
  font-size: 0.78rem;
  color: var(--ret-text-light);
}

.ti-reviews__count {
  font-size: 0.7rem;
  color: var(--ret-text-muted);
}

.ti-reviews__dist {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ti-dist-row {
  display: grid;
  grid-template-columns: 14px 1fr 28px;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: background 0.15s;
}

.ti-dist-row:hover { background: var(--ret-bg-alt); }
.ti-dist-row--active { background: rgba(245, 158, 11, 0.08); }

.ti-dist-row span:first-child {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ret-text-muted);
}

.ti-dist-row span:last-child {
  font-size: 0.65rem;
  color: var(--ret-text-light);
  text-align: right;
}

.ti-dist-track {
  height: 6px;
  background: #e8eaed;
  border-radius: 3px;
  overflow: hidden;
}

.ti-dist-fill {
  height: 100%;
  background: var(--ti-amber);
  border-radius: 3px;
}

/* Filter bar */
.ti-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: var(--ret-radius-sm);
  margin-bottom: 12px;
  font-size: 0.75rem;
  color: var(--ret-text-muted);
}

.ti-filter-bar--hidden { display: none; }

.ti-filter-bar__clear {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ti-blue);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.ti-filter-bar__clear:hover { text-decoration: underline; }

/* Review cards */
.ti-reviews__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ti-review {
  padding: 14px 0;
  border-bottom: 1px solid var(--ret-border-light);
}

.ti-review:last-child { border-bottom: none; }
.ti-review--hidden { display: none; }

.ti-review__top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 5px;
}

.ti-review__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ti-blue);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ti-review__avatar--green  { background: var(--ti-green); }
.ti-review__avatar--amber  { background: var(--ti-amber); }
.ti-review__avatar--purple { background: #7c3aed; }

.ti-review__info { display: flex; flex-direction: column; }

.ti-review__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ret-dark);
}

.ti-review__date {
  font-size: 0.62rem;
  color: var(--ret-text-light);
}

.ti-review__stars { margin-bottom: 3px; }

.ti-review__title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ret-dark);
  margin-bottom: 3px;
}

.ti-review__meta {
  display: flex;
  gap: 12px;
  font-size: 0.65rem;
  color: var(--ret-text-light);
  margin-bottom: 5px;
}

.ti-review__text {
  font-size: 0.8rem;
  color: var(--ret-text-muted);
  line-height: 1.6;
  margin-bottom: 5px;
}

.ti-review__helpful {
  font-size: 0.65rem;
  color: var(--ret-text-light);
}

/* =============================================================================
   Also Available / Related Sizes
   ============================================================================= */

.ret-sizes {
  padding: 36px 0;
  background: var(--ret-bg-alt);
  border-top: 1px solid var(--ret-border-light);
}

.ret-sizes__title {
  font-family: 'Sora', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ret-dark);
  margin-bottom: 16px;
}

.ret-sizes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.ret-size-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: var(--ret-bg);
  border: 1px solid var(--ret-border);
  border-radius: var(--ret-radius-sm);
  transition: border-color 0.15s;
  cursor: pointer;
}

.ret-size-card:hover { border-color: var(--ret-primary); }

.ret-size-card__size {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ret-dark);
}

.ret-size-card__meta {
  font-size: 0.65rem;
  color: var(--ret-text-light);
}

.ret-size-card__price {
  font-family: 'Sora', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ret-dark);
}

/* =============================================================================
   Footer
   ============================================================================= */

.ret-footer {
  padding: 36px 0 20px;
  background: var(--ret-dark);
  color: rgba(255, 255, 255, 0.5);
}

.ret-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 28px;
}

.ret-footer__brand-name {
  font-family: 'Sora', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.ret-footer__brand-name span { color: rgba(255, 255, 255, 0.5); }

.ret-footer__brand-text {
  font-size: 0.75rem;
  line-height: 1.6;
}

.ret-footer__col-title {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 10px;
}

.ret-footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ret-footer__links a {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.15s;
}

.ret-footer__links a:hover { color: rgba(255, 255, 255, 0.8); }

.ret-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
}

.ret-footer__payments {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ret-footer__pay-icon {
  width: 36px;
  height: 22px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
}

/* =============================================================================
   Score Modal (same as manufacturer page)
   ============================================================================= */

.ti-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.ti-modal-overlay.show { display: flex; }

.ti-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: tiModalIn 0.25s ease-out;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.ti-modal--sm { max-width: 520px; }

@keyframes tiModalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.ti-modal__header {
  padding: 24px 24px 20px;
  border-bottom: 1px solid #334155;
  background: #1e293b;
  border-radius: 16px 16px 0 0;
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ti-modal__close {
  position: absolute;
  top: 12px; right: 12px;
  background: #334155;
  border: 1px solid #475569;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  color: #cbd5e1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  z-index: 1;
  line-height: 1;
}

.ti-modal__close:hover { background: #475569; color: #fff; }

.ti-modal__tyre-img {
  width: 80px; height: 80px;
  border-radius: 10px;
  background: #334155;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ti-modal__tyre-img img { width: 100%; height: 100%; object-fit: cover; }

.ti-modal__tyre-info { flex: 1; min-width: 0; padding-right: 40px; }

.ti-modal__tyre-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #fff;
  line-height: 1.3;
  font-family: 'Sora', sans-serif;
}

.ti-modal__badges { display: flex; gap: 6px; flex-wrap: wrap; }

.ti-modal__badge {
  display: inline-block;
  font-size: 0.68rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  text-transform: uppercase; letter-spacing: 0.3px;
}

.ti-modal__badge--season { background: #e7f5ff; color: #1971c2; }
.ti-modal__badge--tier   { background: #f3f0ff; color: #6741d9; }

.ti-modal__score-block { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ti-modal__score-max { font-size: 0.6rem; font-weight: 500; color: rgba(255, 255, 255, 0.7); margin-top: -4px; }

.ti-modal__meta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 24px; background: #fafbfc; border-bottom: 1px solid #f0f0f0;
  font-size: 0.78rem; color: #666;
}

.ti-modal__meta-sep { color: #ddd; }

.ti-modal__about { margin: 16px 24px 0; padding: 14px 16px; background: #f8fafc; border: 1px solid #e9ecef; border-radius: 8px; }
.ti-modal__about p { font-size: 0.82rem; color: #555; line-height: 1.6; margin: 0; }

.ti-modal__categories { padding: 20px 24px 0; }

.ti-modal__section-label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #999; margin-bottom: 12px; }
.ti-modal__section-desc { font-size: 0.78rem; color: #888; line-height: 1.5; margin: -4px 0 12px; }

.ti-modal__cat { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ti-modal__cat-name { width: 80px; flex-shrink: 0; font-size: 0.82rem; font-weight: 500; color: #444; text-align: right; }
.ti-modal__cat-bar-wrap { flex: 1; height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.ti-modal__cat-bar { height: 100%; border-radius: 4px; transition: width 0.5s ease; }
.ti-modal__cat-bar--excellent { background: #28a745; }
.ti-modal__cat-bar--strong    { background: #0db1e7; }
.ti-modal__cat-bar--good      { background: #17a2b8; }
.ti-modal__cat-score { width: 40px; flex-shrink: 0; font-size: 0.8rem; font-weight: 600; color: #333; text-align: right; }
.ti-modal__cat-tests { width: 80px; flex-shrink: 0; font-size: 0.7rem; color: #aaa; white-space: nowrap; }

.ti-modal__section { border-top: 1px solid #f0f0f0; margin-top: 16px; }
.ti-modal__section-hdr { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; cursor: pointer; user-select: none; transition: background 0.15s; }
.ti-modal__section-hdr:hover { background: #fafafa; }
.ti-modal__section-title { font-size: 0.88rem; font-weight: 700; color: #333; margin: 0; }
.ti-modal__chevron { transition: transform 0.25s ease; color: #bbb; }
.ti-modal__section.open .ti-modal__chevron { transform: rotate(180deg); }
.ti-modal__section-body { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.ti-modal__section.open .ti-modal__section-body { max-height: 2000px; }
.ti-modal__section-content { padding: 0 24px 20px; }

.ti-modal__components { display: flex; gap: 10px; flex-wrap: wrap; }
.ti-modal__component { flex: 1; min-width: 170px; background: #f8f9fa; border-radius: 10px; padding: 14px; border: 1px solid #eee; }
.ti-modal__component-name { font-size: 0.82rem; font-weight: 700; color: #333; margin-bottom: 2px; }
.ti-modal__component-weight { font-size: 0.72rem; color: #999; margin-bottom: 8px; }
.ti-modal__component-detail { font-size: 0.76rem; color: #666; line-height: 1.5; }
.ti-modal__component-detail div { padding: 1px 0; }
.ti-modal__component-detail strong { color: #333; }

.ti-modal__methodology-subtitle { font-size: 0.82rem; font-weight: 700; color: #333; margin-bottom: 8px; }
.ti-modal__weight-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.ti-modal__weight-label { width: 100px; flex-shrink: 0; font-size: 0.8rem; color: #555; text-align: right; }
.ti-modal__weight-bar-wrap { flex: 1; height: 8px; background: #e9ecef; border-radius: 4px; overflow: hidden; }
.ti-modal__weight-bar { height: 100%; border-radius: 4px; background: #0db1e7; }
.ti-modal__weight-pct { width: 36px; flex-shrink: 0; font-size: 0.8rem; font-weight: 600; color: #333; }

.ti-modal__table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.ti-modal__table th { text-align: left; padding: 8px 10px; background: #f8f9fa; font-weight: 600; color: #555; border-bottom: 2px solid #e9ecef; white-space: nowrap; }
.ti-modal__table td { padding: 8px 10px; border-bottom: 1px solid #f0f0f0; color: #444; vertical-align: top; }
.ti-modal__pos-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: #e9ecef; color: #333; }
.ti-modal__pos-badge--top3 { background: #d4edda; color: #155724; }

.ti-modal__footer {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 24px; border-top: 1px solid #f0f0f0;
  font-size: 0.72rem; color: #888;
}
.ti-modal__footer img { display: inline-block; }
.ti-modal__footer strong { color: #333; }

/* Review form modal */
.ti-review-form { padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.ti-review-form__group { display: flex; flex-direction: column; gap: 4px; }
.ti-review-form__label { font-size: 0.75rem; font-weight: 600; color: var(--ret-text); }
.ti-review-form__input,
.ti-review-form__textarea { font-family: 'Inter', sans-serif; font-size: 0.82rem; padding: 8px 12px; border: 1px solid var(--ret-border); border-radius: var(--ret-radius-sm); background: var(--ret-bg); color: var(--ret-text); transition: border-color 0.15s; }
.ti-review-form__input:focus,
.ti-review-form__textarea:focus { outline: none; border-color: var(--ti-blue); }
.ti-review-form__textarea { resize: vertical; min-height: 80px; }
.ti-review-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ti-review-form__stars { display: flex; gap: 4px; }
.ti-review-form__star { font-size: 1.6rem; color: #d1d5db; cursor: pointer; transition: color 0.1s; line-height: 1; }
.ti-review-form__star:hover,
.ti-review-form__star.active { color: var(--ti-amber); }
.ti-review-form__submit { font-family: 'Inter', sans-serif; font-size: 0.85rem; font-weight: 600; padding: 10px 24px; border: none; border-radius: var(--ret-radius-sm); background: var(--ti-blue); color: #fff; cursor: pointer; transition: background 0.15s; align-self: flex-start; }
.ti-review-form__submit:hover { background: #0a9ed0; }

/* =============================================================================
   Responsive
   ============================================================================= */

@media (max-width: 900px) {
  .ret-product__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ret-product__image-wrap {
    max-width: 360px;
    margin: 0 auto;
  }

  .ret-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .ret-ti-reviews__top {
    flex-direction: column;
    gap: 14px;
  }

  .ti-reviews__top {
    flex-direction: column;
    gap: 14px;
  }
}

@media (max-width: 600px) {
  .ret-topbar__inner { gap: 14px; }

  .ret-nav__search { display: none; }
  .ret-catbar { display: none; }

  .ret-product__actions { flex-wrap: wrap; }

  .ret-tabs__nav { overflow-x: auto; }
  .ret-tabs__btn { white-space: nowrap; padding: 12px 14px; font-size: 0.75rem; }

  .ret-footer__grid { grid-template-columns: 1fr; gap: 20px; }
  .ret-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }

  .ti-badge__cta { display: none; }

  .ti-modal-overlay { padding: 10px; }
  .ti-modal { border-radius: 12px; }
  .ti-modal__header { padding: 16px; border-radius: 12px 12px 0 0; flex-wrap: wrap; }
  .ti-modal__tyre-info { padding-right: 32px; }
  .ti-modal__categories { padding: 16px 16px 0; }
  .ti-modal__cat-name { width: 60px; font-size: 0.75rem; }
  .ti-modal__section-hdr { padding: 12px 16px; }
  .ti-modal__section-content { padding: 0 16px 16px; }
  .ti-modal__components { flex-direction: column; }
  .ti-modal__about { margin: 12px 16px 0; }

  .ti-review-form__row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ti-modal { animation: none; }
  .ti-modal__cat-bar { transition: none; }
}
