/*
Theme Name: MV Tyres
Theme URI: https://mvtyres.com
Author: MV Tyres Ltd.
Description: Custom WooCommerce storefront for MV Tyres UK.
Version: 1.0.0
Text Domain: mv-tyres
*/

:root {
  --mv-navy: #112b55;
  --mv-navy-2: #173967;
  --mv-navy-3: #0b1f3d;
  --mv-blue-soft: #eef4fb;
  --mv-line: #dfe6ef;
  --mv-text: #172033;
  --mv-muted: #6d7788;
  --mv-bg: #f7f9fc;
  --mv-white: #ffffff;
  --mv-success: #1c8b5c;
  --mv-radius: 14px;
  --mv-shadow: 0 10px 30px rgba(20, 43, 79, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mv-text);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }

.mv-container {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.mv-topbar {
  background: var(--mv-navy-3);
  color: #fff;
  font-size: 13px;
}
.mv-topbar .mv-container {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.mv-topbar__items { display: flex; gap: 28px; align-items: center; }
.mv-topbar__item { display: inline-flex; align-items: center; gap: 7px; opacity: .96; }
.mv-topbar svg { width: 15px; height: 15px; flex: 0 0 auto; }

.mv-header {
  background: #fff;
  border-bottom: 1px solid var(--mv-line);
}
.mv-header__main {
  min-height: 82px;
  display: grid;
  grid-template-columns: 190px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 32px;
}
.mv-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.mv-brand .custom-logo { max-height: 60px; width: auto; }
.mv-brand-fallback { display: grid; line-height: .9; color: var(--mv-navy); }
.mv-brand-fallback__mark { font-size: 44px; font-weight: 950; letter-spacing: -5px; }
.mv-brand-fallback__name { font-size: 16px; font-weight: 800; letter-spacing: -.5px; margin-left: 3px; }

.mv-site-search { position: relative; }
.mv-site-search input {
  width: 100%;
  height: 46px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  padding: 0 52px 0 16px;
  background: #fff;
  outline: none;
  transition: .2s ease;
}
.mv-site-search input:focus { border-color: var(--mv-navy); box-shadow: 0 0 0 3px rgba(17, 43, 85, .08); }
.mv-site-search button {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--mv-navy);
  display: grid;
  place-items: center;
}
.mv-site-search svg { width: 18px; height: 18px; }

.mv-header-actions { display: flex; align-items: center; gap: 10px; }
.mv-header-action {
  min-width: 92px;
  padding: 8px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 750;
  color: var(--mv-navy);
}
.mv-header-action:hover { background: var(--mv-blue-soft); }
.mv-header-action svg { width: 23px; height: 23px; }
.mv-cart-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  padding: 0 5px;
  margin-left: -4px;
  background: var(--mv-navy);
  color: #fff;
  font-size: 10px;
}

.mv-nav { border-bottom: 1px solid var(--mv-line); background: #fff; }
.mv-nav .mv-container { display: flex; align-items: center; justify-content: center; }
.mv-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.mv-menu > li > a {
  min-height: 47px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 750;
  color: #1f2c40;
  border-bottom: 2px solid transparent;
}
.mv-menu > li > a:hover,
.mv-menu > li.current-menu-item > a { color: var(--mv-navy); border-bottom-color: var(--mv-navy); }
.mv-mobile-toggle { display: none; }

.mv-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 50%, rgba(17, 43, 85, .12), transparent 25%),
    linear-gradient(90deg, #f9fbfe 0%, #f5f8fc 55%, #e8eef6 100%);
  border-bottom: 1px solid var(--mv-line);
}
.mv-hero::after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  border: 44px solid rgba(17, 43, 85, .11);
  right: -90px;
  top: -105px;
  box-shadow: inset 0 0 0 26px rgba(17, 43, 85, .035), 0 0 0 18px rgba(255,255,255,.5);
  transform: rotate(-14deg);
}
.mv-hero::before {
  content: "";
  position: absolute;
  width: 240px;
  height: 42px;
  background: repeating-linear-gradient(90deg, rgba(17,43,85,.13) 0 18px, transparent 18px 32px);
  right: 90px;
  bottom: 66px;
  transform: rotate(-18deg);
  opacity: .65;
}
.mv-hero__inner {
  position: relative;
  z-index: 2;
  min-height: 430px;
  padding: 56px 0 40px;
}
.mv-hero__copy { width: min(560px, 100%); margin-bottom: 30px; }
.mv-hero__eyebrow { color: var(--mv-navy); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .11em; }
.mv-hero h1 {
  margin: 8px 0 12px;
  max-width: 630px;
  color: var(--mv-navy);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: .98;
  letter-spacing: -2.5px;
}
.mv-hero__copy p { margin: 0; color: #4e5c70; font-size: 17px; }

.mv-finder {
  width: min(860px, 100%);
  background: #fff;
  border: 1px solid #d4deeb;
  border-radius: 16px;
  box-shadow: var(--mv-shadow);
  overflow: hidden;
}
.mv-finder__tabs { display: flex; border-bottom: 1px solid var(--mv-line); }
.mv-finder__tab {
  border: 0;
  background: #fff;
  color: #5c687a;
  padding: 15px 22px;
  min-width: 180px;
  font-weight: 800;
  border-right: 1px solid var(--mv-line);
}
.mv-finder__tab.is-active { color: #fff; background: var(--mv-navy); }
.mv-finder__panel { display: none; padding: 18px; }
.mv-finder__panel.is-active { display: block; }
.mv-finder__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr)) 170px;
  gap: 12px;
  align-items: end;
}
.mv-field label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; color: #3e4b5e; }
.mv-field select,
.mv-field input {
  width: 100%;
  height: 44px;
  border: 1px solid #cbd6e4;
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: #243044;
  outline: none;
}
.mv-field select:focus,
.mv-field input:focus { border-color: var(--mv-navy); box-shadow: 0 0 0 3px rgba(17,43,85,.07); }
.mv-btn {
  min-height: 44px;
  border: 1px solid var(--mv-navy);
  border-radius: 9px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 850;
  background: var(--mv-navy);
  color: #fff;
  transition: .2s ease;
}
.mv-btn:hover { background: var(--mv-navy-2); transform: translateY(-1px); }
.mv-btn--ghost { background: #fff; color: var(--mv-navy); }
.mv-btn--ghost:hover { background: var(--mv-blue-soft); }
.mv-finder__hint { margin-top: 10px; font-size: 12px; color: var(--mv-muted); }
.mv-finder__hint a { color: var(--mv-navy); text-decoration: underline; }
.mv-vehicle-panel {
  min-height: 88px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: end;
}
.mv-vehicle-note { font-size: 13px; color: var(--mv-muted); margin-top: 8px; }

.mv-benefits { border-bottom: 1px solid var(--mv-line); background: #fff; }
.mv-benefits__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.mv-benefit { padding: 18px 20px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--mv-line); }
.mv-benefit:last-child { border-right: 0; }
.mv-benefit__icon { width: 38px; height: 38px; color: var(--mv-navy); flex: 0 0 auto; }
.mv-benefit strong { display: block; font-size: 13px; color: var(--mv-navy); }
.mv-benefit span { display: block; margin-top: 2px; font-size: 12px; color: var(--mv-muted); }

.mv-section { padding: 42px 0; }
.mv-section--soft { background: var(--mv-bg); }
.mv-section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.mv-section-head h2 { margin: 0; color: var(--mv-navy); font-size: 25px; line-height: 1.1; letter-spacing: -.6px; }
.mv-section-head p { margin: 5px 0 0; color: var(--mv-muted); font-size: 14px; }
.mv-text-link { color: var(--mv-navy); font-size: 13px; font-weight: 800; }
.mv-text-link:hover { text-decoration: underline; }

.mv-category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mv-category-card {
  min-height: 145px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--mv-line);
  border-radius: 13px;
  background: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: .2s ease;
}
.mv-category-card:hover { transform: translateY(-2px); box-shadow: var(--mv-shadow); border-color: #c8d5e5; }
.mv-category-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -38px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
  border: 19px solid rgba(17,43,85,.10);
  box-shadow: inset 0 0 0 9px rgba(17,43,85,.04);
}
.mv-category-card__icon { width: 34px; height: 34px; color: var(--mv-navy); margin-bottom: 24px; }
.mv-category-card strong { color: var(--mv-navy); font-size: 16px; }
.mv-category-card span { margin-top: 4px; color: var(--mv-muted); font-size: 12px; }

.mv-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mv-product-card {
  position: relative;
  border: 1px solid var(--mv-line);
  border-radius: 14px;
  background: #fff;
  padding: 15px;
  min-width: 0;
  transition: .2s ease;
}
.mv-product-card:hover { transform: translateY(-2px); box-shadow: var(--mv-shadow); }
.mv-product-card__image {
  position: relative;
  aspect-ratio: 1.2/1;
  background: linear-gradient(145deg, #f7f9fc, #fff);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 13px;
  display: grid;
  place-items: center;
}
.mv-product-card__image img { width: 100%; height: 100%; object-fit: contain; }
.mv-product-card__image--empty::after {
  content: "";
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 16px solid rgba(17,43,85,.14);
  box-shadow: inset 0 0 0 7px rgba(17,43,85,.06);
}
.mv-product-card__brand { color: var(--mv-muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.mv-product-card h3 { margin: 5px 0 5px; min-height: 42px; color: #1d2a3d; font-size: 15px; line-height: 1.3; }
.mv-product-card__meta { color: var(--mv-muted); font-size: 12px; margin-bottom: 9px; }
.mv-product-card__rating { min-height: 20px; color: var(--mv-navy); font-size: 12px; }
.mv-product-card__price { margin: 9px 0 12px; color: var(--mv-navy); font-size: 20px; font-weight: 900; }
.mv-product-card__price .amount { color: inherit; }
.mv-product-card__actions { display: flex; gap: 8px; }
.mv-product-card__actions .mv-btn { width: 100%; min-height: 40px; font-size: 12px; }
.mv-product-card--empty { min-height: 310px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.mv-product-card--empty h3 { min-height: auto; }

.mv-process {
  display: grid;
  grid-template-columns: 180px repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--mv-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}
.mv-process__title { padding: 22px; background: var(--mv-blue-soft); color: var(--mv-navy); display: flex; align-items: center; font-weight: 850; }
.mv-process__step { position: relative; padding: 20px 18px 20px 50px; border-left: 1px solid var(--mv-line); }
.mv-process__number { position: absolute; left: 16px; top: 18px; width: 27px; height: 27px; border-radius: 50%; background: var(--mv-navy); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.mv-process__step strong { display: block; color: var(--mv-navy); font-size: 13px; }
.mv-process__step span { display: block; margin-top: 3px; color: var(--mv-muted); font-size: 12px; }

.mv-trade-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.mv-trade-card, .mv-trust-card {
  border-radius: 14px;
  padding: 28px;
  border: 1px solid var(--mv-line);
}
.mv-trade-card { background: var(--mv-navy); color: #fff; }
.mv-trade-card h3, .mv-trust-card h3 { margin: 0 0 8px; font-size: 22px; }
.mv-trade-card p { margin: 0 0 18px; color: rgba(255,255,255,.76); max-width: 600px; }
.mv-trade-card .mv-btn { background: #fff; color: var(--mv-navy); border-color: #fff; }
.mv-trust-card { background: #fff; }
.mv-trust-card h3 { color: var(--mv-navy); }
.mv-trust-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 9px; }
.mv-trust-list li { display: flex; gap: 9px; color: #4d5a6d; font-size: 13px; }
.mv-trust-list li::before { content: "✓"; color: var(--mv-success); font-weight: 900; }

.mv-footer { background: var(--mv-navy-3); color: #fff; margin-top: 44px; }
.mv-footer__main { padding: 44px 0 30px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 38px; }
.mv-footer__brand p { max-width: 280px; color: rgba(255,255,255,.7); font-size: 13px; }
.mv-footer h4 { margin: 0 0 14px; font-size: 14px; }
.mv-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mv-footer li, .mv-footer a { color: rgba(255,255,255,.72); font-size: 13px; }
.mv-footer a:hover { color: #fff; }
.mv-footer__bottom { border-top: 1px solid rgba(255,255,255,.13); min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255,255,255,.58); font-size: 12px; }

/* WooCommerce */
.woocommerce .woocommerce-breadcrumb { color: var(--mv-muted); font-size: 12px; margin: 22px 0; }
.woocommerce .woocommerce-breadcrumb a { color: var(--mv-navy); }
.woocommerce ul.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 16px; border: 1px solid var(--mv-line); border-radius: 14px; background: #fff; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--mv-text); font-size: 15px; }
.woocommerce ul.products li.product .price { color: var(--mv-navy); font-weight: 900; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  border-radius: 9px;
  background: var(--mv-navy);
  color: #fff;
  font-weight: 800;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--mv-navy-2); color: #fff; }
.mv-content-wrap { padding: 30px 0 60px; }

@media (max-width: 1024px) {
  .mv-header__main { grid-template-columns: 150px 1fr auto; gap: 18px; }
  .mv-header-action { min-width: auto; }
  .mv-header-action span:not(.mv-cart-count) { display: none; }
  .mv-finder__grid { grid-template-columns: repeat(2, 1fr); }
  .mv-finder__grid .mv-btn { grid-column: span 2; }
  .mv-benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .mv-benefit:nth-child(2) { border-right: 0; }
  .mv-benefit:nth-child(-n+2) { border-bottom: 1px solid var(--mv-line); }
  .mv-category-grid, .mv-product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
  .mv-process { grid-template-columns: repeat(2, 1fr); }
  .mv-process__title { grid-column: 1 / -1; }
  .mv-process__step { border-top: 1px solid var(--mv-line); }
}

@media (max-width: 760px) {
  .mv-container { width: min(100% - 24px, 1180px); }
  .mv-topbar .mv-container { min-height: 32px; justify-content: center; }
  .mv-topbar__items { gap: 14px; }
  .mv-topbar__item:nth-child(n+2) { display: none; }
  .mv-header__main { min-height: 68px; grid-template-columns: 1fr auto; gap: 10px; }
  .mv-brand-fallback__mark { font-size: 36px; }
  .mv-site-search { grid-column: 1 / -1; grid-row: 2; margin-bottom: 12px; }
  .mv-header-actions { grid-column: 2; grid-row: 1; }
  .mv-header-action--account { display: none; }
  .mv-nav .mv-container { justify-content: flex-start; min-height: 46px; }
  .mv-mobile-toggle { display: inline-flex; border: 0; background: transparent; color: var(--mv-navy); padding: 8px 0; font-weight: 850; gap: 8px; align-items: center; }
  .mv-menu { display: none; position: absolute; z-index: 50; left: 12px; right: 12px; top: auto; flex-direction: column; align-items: stretch; padding: 8px; border: 1px solid var(--mv-line); border-radius: 12px; background: #fff; box-shadow: var(--mv-shadow); }
  .mv-menu.is-open { display: flex; }
  .mv-menu > li > a { width: 100%; min-height: 42px; padding: 0 12px; border-bottom: 0; }
  .mv-hero__inner { min-height: auto; padding: 36px 0 32px; }
  .mv-hero::after { right: -250px; opacity: .5; }
  .mv-hero h1 { font-size: 42px; max-width: 470px; }
  .mv-finder__tab { min-width: 0; flex: 1; padding-inline: 10px; }
  .mv-finder__grid { grid-template-columns: repeat(2, 1fr); }
  .mv-vehicle-panel { grid-template-columns: 1fr; }
  .mv-benefits__grid { grid-template-columns: 1fr; }
  .mv-benefit { border-right: 0; border-bottom: 1px solid var(--mv-line); }
  .mv-benefit:last-child { border-bottom: 0; }
  .mv-category-grid, .mv-product-grid, .woocommerce ul.products { grid-template-columns: 1fr; }
  .mv-process { grid-template-columns: 1fr; }
  .mv-process__title { grid-column: auto; }
  .mv-process__step { border-left: 0; }
  .mv-trade-grid { grid-template-columns: 1fr; }
  .mv-footer__main { grid-template-columns: 1fr 1fr; }
  .mv-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .mv-hero h1 { font-size: 36px; }
  .mv-finder__grid { grid-template-columns: 1fr; }
  .mv-finder__grid .mv-btn { grid-column: auto; }
  .mv-footer__main { grid-template-columns: 1fr; }
  .mv-footer__brand { grid-column: auto; }
  .mv-footer__bottom { align-items: flex-start; flex-direction: column; padding: 16px 0; }
}
