/* ===== MY FANTASTIC TIRES - GLOBAL COLORS ===== */
:root {
  --mft-orange: #ff6a00;
  --mft-orange-dark: #e45d00;
  --mft-black: #111111;
  --mft-grey: #f6f6f6;
}

/* Base accents */
a,
.link-item a:hover {
  color: var(--mft-orange);
}

.btn-mft,
.mft-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  background: var(--mft-orange);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: background .2s ease, transform .15s ease, box-shadow .15s ease;
}

.btn-mft:hover,
.mft-btn-primary:hover {
  background: var(--mft-orange-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

/* ===== HERO SECTION (HOME) ===== */
.mft-hero {
  position: relative;
  background: #000; /* fallback under the image */
  color: #fff;
  overflow: hidden;
}

.mft-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.7;
  transform: scale(1.05);
}

.mft-hero::after {
  /* dark gradient overlay so text is readable */
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0.0) 100%);
}

.mft-hero-inner {
  position: relative;
  z-index: 2;
  padding: 4rem 0 3.5rem;
}

.mft-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mft-hero-title {
  margin-top: 1.5rem;
  font-size: 2.8rem;
  line-height: 1.1;
  font-weight: 800;
}

.mft-hero-title span {
  color: var(--mft-orange);
}

.mft-hero-subtitle {
  margin-top: 1rem;
  max-width: 460px;
  font-size: 1rem;
  color: rgba(255,255,255,0.82);
}

/* Left search card */
.mft-hero-card {
  background: rgba(255,255,255,0.96);
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  padding: 1.75rem 1.75rem 1.3rem;
  color: #111;
}

.mft-hero-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: .35rem;
}

.mft-hero-card-subtitle {
  font-size: .9rem;
  color: #555;
  margin-bottom: 1.4rem;
}

.mft-hero-select {
  width: 100%;
  margin-bottom: .9rem;
  border-radius: 999px;
  border: 1px solid #ddd;
  padding: .55rem .95rem;
  font-size: .9rem;
}

.mft-hero-select:focus {
  border-color: var(--mft-orange);
  box-shadow: 0 0 0 2px rgba(255,106,0,0.28);
}

.mft-hero-note {
  font-size: .75rem;
  color: #777;
  margin-top: .3rem;
}

/* Right side CTA block */
.mft-hero-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
}

.mft-hero-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,0.8);
}

/* ===== HOME BEST SELLERS ===== */
.mft-home-bestsellers {
  padding: 3.5rem 0 3rem;
  background: var(--mft-grey);
}

.mft-section-title {
  text-align: center;
  margin-bottom: 2rem;
}

.mft-section-title span {
  position: relative;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.mft-section-title span::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -0.55rem;
  width: 46px;
  height: 3px;
  transform: translateX(-50%);
  background: var(--mft-orange);
  border-radius: 999px;
}

/* Product cards grid */
.mft-product-grid {
  row-gap: 2.2rem;
}

.mft-product-card .product-miniature {
  position: relative;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* subtle lift */
.mft-product-card .product-miniature:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
}

/* sheen / flash on hover */
.mft-product-card .product-miniature::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.65) 45%,
    rgba(255,255,255,0) 80%);
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.mft-product-card .product-miniature:hover::before {
  opacity: 1;
  transform: translateX(140%);
  transition: transform .35s ease-out, opacity .4s ease-out;
}

/* tighten internal padding */
.mft-product-card .thumbnail-container {
  padding: 1.1rem 1.1rem 0.6rem;
}

/* price + buttons strip */
.mft-product-card .product-description {
  padding: 0 1.1rem 1rem;
}

.mft-product-card .product-price-and-shipping {
  margin-top: .5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

/* compact buttons row under card */
.mft-product-actions {
  display: flex;
  margin-top: .75rem;
}

.mft-product-actions .add-to-cart {
  flex: 1 1 auto;
}

.mft-product-actions .add-to-cart .btn {
  width: 100%;
  border-radius: 999px 0 0 999px;
  background: var(--mft-orange);
  border: none;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mft-product-actions .add-to-cart .btn:hover {
  background: var(--mft-orange-dark);
}

.mft-product-actions .wishlist-btn,
.mft-product-actions .compare-btn {
  width: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-left: none;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.mft-product-actions .wishlist-btn i,
.mft-product-actions .compare-btn i {
  font-size: 1.1rem;
  color: var(--mft-orange);
}

.mft-product-actions .wishlist-btn:hover,
.mft-product-actions .compare-btn:hover {
  background: #111;
}

.mft-product-actions .wishlist-btn:hover i,
.mft-product-actions .compare-btn:hover i {
  color: #fff;
}

/* ===== RESPONSIVE (HOME) ===== */
@media (max-width: 991px) {
  .mft-hero-inner {
    padding: 3rem 0 2.5rem;
  }
  .mft-hero-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 767px) {
  .mft-hero-inner {
    padding: 2.2rem 0 2rem;
  }
  .mft-hero-card {
    margin-bottom: 1.5rem;
  }
  .mft-hero::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
  }
}

/* ============================
   My Fantastic Tires – Legal pages
   ============================ */

.mft-legal-page {
  font-family: "system-ui", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  color: #181818;
}

/* Hero with Porsche background – scoped ONLY to legal pages */
.mft-legal-page .mft-hero {
  position: relative;
  min-height: 320px;
  background-image: url('../img/porche-bg.jpeg');
  background-size: cover;
  background-position: center center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

/* dark overlay */
.mft-legal-page .mft-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.85),
    rgba(0, 0, 0, 0.25)
  );
  transition: background 300ms ease;
}

/* sheen motion across legal hero */
.mft-legal-page .mft-hero::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.0),
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.0)
  );
  transform: translateX(-120%);
  pointer-events: none;
  animation: mft-hero-sheen 6s infinite;
}

@keyframes mft-hero-sheen {
  0%,
  70% {
    transform: translateX(-120%);
  }
  85% {
    transform: translateX(120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.mft-legal-page .mft-hero-inner {
  position: relative;
  margin-left: 5vw;
  max-width: 540px;
  padding: 2.5rem 3rem;
  background: rgba(0, 0, 0, 0.62);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.mft-hero-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  color: #ff7a1a;
  margin-bottom: 0.4rem;
}

.mft-hero-title {
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 0.8rem;
}

.mft-hero-sub {
  font-size: 1rem;
  color: #f5f5f5;
  max-width: 30rem;
}

.mft-hero-underline {
  width: 60px;
  height: 3px;
  background-color: #ff7a1a;
  margin-top: 1.1rem;
}

/* White card that overlaps the hero */
.mft-legal-card {
  max-width: 980px;
  margin: -70px auto 3.5rem;
  background: #ffffff;
  border-radius: 18px;
  padding: 2.5rem 3rem;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 2;
}

.mft-legal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
  color: #555;
}

.mft-pill {
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.mft-pill--outline {
  background: transparent;
  border: 1px solid #ff7a1a;
  color: #ff7a1a;
}

.mft-legal-body h2,
.mft-legal-body h3 {
  font-weight: 600;
  margin-top: 1.8rem;
  margin-bottom: 0.6rem;
  color: #111;
}

.mft-legal-body h2 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mft-legal-body h3 {
  font-size: 1.02rem;
}

.mft-legal-body p {
  margin-bottom: 0.75rem;
  line-height: 1.6;
  color: #333;
}

.mft-legal-body ul {
  margin: 0 0 0.85rem 1.2rem;
  padding: 0;
}

.mft-legal-body li {
  margin-bottom: 0.3rem;
}

/* small highlighted notes */
.mft-note {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid #ff7a1a;
  background: #fff7ef;
  font-size: 0.9rem;
  color: #663300;
}

/* mobile tweaks for legal pages */
@media (max-width: 768px) {
  .mft-legal-page .mft-hero {
    min-height: 260px;
    justify-content: center;
  }

  .mft-legal-page .mft-hero-inner {
    margin: 0 1rem;
    padding: 1.7rem 1.6rem;
  }

  .mft-hero-title {
    font-size: 1.6rem;
  }

  .mft-legal-card {
    margin: -40px 1rem 2.5rem;
    padding: 1.8rem 1.4rem;
  }
}

/* --- MFT Terms Carousel (final version) --- */

.mft-terms-wrapper {
  margin: 2rem 0 3rem;
}

.mft-terms-carousel {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.mft-terms-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}

.mft-term-slide {
  flex: 0 0 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding-right: 1rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

/* header + number chip */
.mft-term-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.mft-term-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #ff7a1a;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.mft-term-heading {
  flex: 1;
}

.mft-term-title {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  font-weight: 700;
}

.mft-term-subtitle {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
  color: #777;
}

/* body text scrolls if long */
.mft-term-body {
  margin-top: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #444;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

/* arrows */
.mft-terms-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: #ff7a1a;
  color: #fff;
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  z-index: 5;
}

.mft-terms-prev { left: 1.25rem; }
.mft-terms-next { right: 1.25rem; }

.mft-terms-nav:hover {
  background: #ff8d3a;
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
}

/* dots */
.mft-terms-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
}

.mft-terms-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: #ddd;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.mft-terms-dot.is-active {
  width: 22px;
  background: #ff7a1a;
}

/* mobile tweaks */
@media (max-width: 767px) {
  .mft-terms-carousel {
    padding: 1.6rem 1.25rem 1.9rem;
    border-radius: 18px;
  }

  .mft-term-title {
    font-size: 1.35rem;
  }

  .mft-term-body {
    max-height: 400px;
  }

  .mft-terms-prev { left: 0.6rem; }
  .mft-terms-next { right: 0.6rem; }
}
