/* ==========================================================================
   Mini Cars Zone - UI enhancement layer
   Loaded after main.css and the inline styles in base.html. It only refines
   the existing theme (same brand red, navy, fonts and layout): product cards,
   buttons, badges, section headings, and the hooks the GSAP scroll
   animations in assets/js/dz-animations.js rely on.
   ========================================================================== */

:root {
  --dz-brand: #990000;
  --dz-brand-hi: #b81414;
  --dz-brand-deep: #6f0000;
  --dz-brand-soft: #fff5f5;
  --dz-brand-line: rgba(153, 0, 0, 0.18);
  --dz-ink: #253d4e;
  --dz-ink-strong: #06355b;
  --dz-muted: #7e7e7e;
  --dz-line: #ececec;
  --dz-radius: 16px;
  --dz-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dz-shadow-sm: 0 1px 2px rgba(37, 61, 78, 0.04), 0 6px 16px -8px rgba(37, 61, 78, 0.1);
  --dz-shadow-lg: 0 22px 40px -18px rgba(37, 61, 78, 0.28), 0 10px 18px -12px rgba(153, 0, 0, 0.22);
}

/* While GSAP is moving an element, CSS transitions would fight every frame. */
.dz-anim {
  transition: none !important;
}

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */
.product-cart-wrap:not(.style-2):not(.popular-products-empty) {
  border: 1px solid var(--dz-line);
  border-radius: var(--dz-radius);
  box-shadow: var(--dz-shadow-sm);
  isolation: isolate;
  transition: transform 0.45s var(--dz-ease), box-shadow 0.45s var(--dz-ease), border-color 0.3s ease;
}

/* Brand accent that draws across the top edge on hover. */
.product-cart-wrap:not(.style-2):not(.popular-products-empty)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 12;
  background: linear-gradient(90deg, var(--dz-brand-deep), var(--dz-brand), var(--dz-brand-hi));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s var(--dz-ease);
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .product-cart-wrap:not(.style-2):not(.popular-products-empty):hover {
    transform: translateY(-6px);
    box-shadow: var(--dz-shadow-lg);
    border-color: rgba(153, 0, 0, 0.32);
  }
  .product-cart-wrap:not(.style-2):not(.popular-products-empty):hover::before {
    transform: scaleX(1);
  }
}

/* Image well: same soft pink, with a light spot behind the model. */
.product-cart-wrap .product-img-action-wrap .product-img > a {
  background: radial-gradient(circle at 50% 38%, #ffffff 0%, #fff8f8 45%, var(--dz-brand-soft) 100%) !important;
}
.product-cart-wrap .product-img-action-wrap .product-img {
  border-radius: 12px;
}
.product-cart-wrap .product-img-action-wrap .product-img-zoom a img {
  transition: transform 0.9s var(--dz-ease), opacity 0.35s ease, visibility 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-cart-wrap:hover .product-img-zoom a img {
    transform: scale3d(1.08, 1.08, 1) translateZ(0);
  }
}

/* Wishlist / quick view: round buttons. */
.product-cart-wrap .product-img-action-wrap .product-action-1 {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  gap: 8px;
}
.product-cart-wrap .product-action-1 a.action-btn,
.product-cart-wrap .product-action-1 button {
  width: 38px;
  height: 38px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--dz-ink);
  box-shadow: 0 8px 18px -8px rgba(37, 61, 78, 0.35);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--dz-ease);
}
.product-cart-wrap .product-action-1 a.action-btn i,
.product-cart-wrap .product-action-1 button i {
  margin: 0;
  font-size: 15px;
  line-height: 1;
  transition: color 0.25s ease;
}
.product-cart-wrap .product-action-1 a.action-btn:hover,
.product-cart-wrap .product-action-1 button:hover {
  background: var(--dz-brand);
  color: #fff;
  transform: scale(1.08);
}
.product-cart-wrap .product-action-1 a.action-btn:hover i,
.product-cart-wrap .product-action-1 button:hover i {
  color: #fff;
}
.product-cart-wrap .product-action-1 a.action-btn:focus-visible {
  outline: 2px solid var(--dz-brand);
  outline-offset: 2px;
}

/* Desktop: the buttons stack in the top-right corner and slide in on hover,
   with the label tooltip opening to the left. */
@media (hover: hover) and (pointer: fine) {
  .product-cart-wrap .product-img-action-wrap .product-action-1 {
    flex-direction: column;
    top: 34px;
    right: 34px;
    left: auto;
    bottom: auto;
    min-width: 0;
    transform: translateX(14px);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.45s var(--dz-ease);
  }
  .product-cart-wrap:hover .product-img-action-wrap .product-action-1 {
    transform: translateX(0);
  }
  .product-cart-wrap .product-action-1 a.action-btn:last-child {
    transition-delay: 0.04s;
  }
  .product-cart-wrap .product-action-1 a.action-btn::after,
  .product-cart-wrap .product-action-1 button::after {
    left: auto;
    right: calc(100% + 12px);
    bottom: auto;
    top: 50%;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transform: translate(6px, -50%);
  }
  .product-cart-wrap .product-action-1 a.action-btn:hover::after,
  .product-cart-wrap .product-action-1 button:hover::after {
    transform: translate(0, -50%);
  }
  .product-cart-wrap .product-action-1 a.action-btn::before,
  .product-cart-wrap .product-action-1 button::before {
    left: auto;
    right: calc(100% + 1px);
    bottom: auto;
    top: 50%;
    margin: 0;
    border-width: 6px;
    border-top-color: transparent;
    border-left-color: var(--dz-brand);
    transform: translate(6px, -50%);
  }
  .product-cart-wrap .product-action-1 a.action-btn:hover::before,
  .product-cart-wrap .product-action-1 button:hover::before {
    transform: translate(0, -50%);
  }
}

/* Touch screens keep the always-visible buttons from base.html (bottom-right);
   only their shape changes. */
@media (hover: none), (pointer: coarse) {
  .product-cart-wrap .product-img-action-wrap .product-action-1 {
    gap: 6px;
  }
  .product-cart-wrap .product-action-1 a.action-btn {
    width: 34px;
    height: 34px;
  }
}

/* Badges: floating pills. */
.product-cart-wrap .product-badges.product-badges-position {
  top: 14px;
  left: 14px;
  gap: 6px;
}
.product-cart-wrap .product-badges span {
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.45);
}
.product-cart-wrap .product-badges span.new {
  background: linear-gradient(135deg, var(--dz-brand-hi), var(--dz-brand));
}
.product-cart-wrap .product-badges span.hot {
  background: linear-gradient(135deg, #ff6f96, #f74b81);
}
.product-cart-wrap .product-badges span.sale {
  background: linear-gradient(135deg, #7fcaf3, #4fa9e0);
}

/* Card text */
.product-cart-wrap:not(.style-2) .product-content-wrap {
  padding-top: 16px;
}
.product-cart-wrap .product-content-wrap .product-category {
  margin-bottom: 6px;
}
.product-cart-wrap .product-content-wrap .product-category a {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(153, 0, 0, 0.72);
}
.product-cart-wrap .product-content-wrap .product-category a:hover {
  color: var(--dz-brand);
}
.product-cart-wrap:not(.style-2) .product-content-wrap h2 {
  font-size: 15.5px;
  line-height: 1.38;
  font-weight: 700;
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  /* Long names stop at two lines. Cards in a row still line up because the
     price row is pinned to the bottom (see "Equal-height cards" below). */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* No reviews yet: the rating row renders empty, so drop its reserved space. */
.product-cart-wrap .product-content-wrap .product-rate-cover:not(:has(*)) {
  display: none;
}

/* --------------------------------------------------------------------------
   Equal-height cards: every card in a grid row is as tall as the tallest,
   and the price / Add row sits on the bottom edge. Slider and deal cards
   (style-2) keep their own layout.
   -------------------------------------------------------------------------- */
.row > [class*="col"]:has(> .product-cart-wrap:not(.style-2):not(.popular-products-empty)) {
  display: flex;
  flex-direction: column;
}
.row > [class*="col"] > .product-cart-wrap:not(.style-2):not(.popular-products-empty) {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.row > [class*="col"] > .product-cart-wrap:not(.style-2):not(.popular-products-empty) .product-img-action-wrap {
  flex: 0 0 auto;
}
.row > [class*="col"] > .product-cart-wrap:not(.style-2):not(.popular-products-empty) .product-content-wrap {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.row > [class*="col"] > .product-cart-wrap:not(.style-2):not(.popular-products-empty) .product-card-bottom {
  margin-top: auto;
}
/* Sale cards: the crossed-out old price wraps under the price on narrow cards,
   making that card's price row taller than its neighbours. In any row that has
   a sale card, put the old price on its own line every time, and give the
   other cards an invisible line of the same size, so the dashed lines and
   prices across the row match. Rows without a sale card are unchanged. */
.row:has(> [class*="col"] > .product-cart-wrap .product-card-bottom .old-price) .product-card-bottom .product-price .old-price {
  flex-basis: 100%;
}
.row:has(> [class*="col"] > .product-cart-wrap .product-card-bottom .old-price) .product-card-bottom .product-price:not(:has(.old-price))::after {
  content: "\00a0";
  flex-basis: 100%;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

/* The pinned row needs a little air above it when the text is short. */
.row > [class*="col"] > .product-cart-wrap:not(.style-2):not(.popular-products-empty) .product-content-wrap > :nth-last-child(2) {
  margin-bottom: 14px;
}
.product-cart-wrap .product-content-wrap h2 a {
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: color 0.25s ease, background-size 0.4s var(--dz-ease);
}
.product-cart-wrap .product-content-wrap h2 a:hover {
  color: var(--dz-brand);
  background-size: 100% 1px;
}
.product-cart-wrap .product-content-wrap .font-small.text-muted {
  font-size: 12.5px;
}
.product-cart-wrap .product-content-wrap .font-small.text-muted a {
  color: var(--dz-ink);
  font-weight: 600;
}
.product-cart-wrap .product-content-wrap .font-small.text-muted a:hover {
  color: var(--dz-brand);
}

/* Price */
.product-cart-wrap .product-content-wrap .product-price span {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.product-cart-wrap .product-content-wrap .product-price span.old-price {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.product-cart-wrap:not(.style-2) .product-card-bottom {
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed #f0dcdc;
}

/* --------------------------------------------------------------------------
   Add button on cards: pill, fills with brand red from below on hover.
   -------------------------------------------------------------------------- */
.product-cart-wrap .product-card-bottom .add-cart .add {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--dz-brand-line);
  border-radius: 999px;
  background-color: var(--dz-brand-soft);
  color: var(--dz-brand);
  font-family: "Quicksand", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  transition: color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--dz-ease), box-shadow 0.35s var(--dz-ease);
}
.product-cart-wrap .product-card-bottom .add-cart .add::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--dz-brand-hi), var(--dz-brand) 55%, var(--dz-brand-deep));
  transform: translateY(101%);
  transition: transform 0.45s var(--dz-ease);
}
.product-cart-wrap .product-card-bottom .add-cart .add i {
  display: inline-block;
  transition: transform 0.35s var(--dz-ease);
}
.product-cart-wrap .product-card-bottom .add-cart .add:hover {
  background-color: var(--dz-brand-soft);
  border-color: var(--dz-brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -12px rgba(153, 0, 0, 0.7);
}
.product-cart-wrap .product-card-bottom .add-cart .add:hover::before {
  transform: translateY(0);
}
.product-cart-wrap .product-card-bottom .add-cart .add:hover i {
  transform: rotate(-10deg) scale(1.12);
}
.product-cart-wrap .product-card-bottom .add-cart .add:active {
  transform: translateY(0) scale(0.96);
}
.product-cart-wrap .product-card-bottom .add-cart .add:focus-visible {
  outline: 2px solid var(--dz-brand);
  outline-offset: 2px;
}

/* After a successful add (main.js sets .is-added and swaps in a check icon). */
.product-cart-wrap .product-card-bottom .add-cart .add.is-added {
  border-color: var(--dz-brand);
  color: #fff;
}
.product-cart-wrap .product-card-bottom .add-cart .add.is-added::before {
  transform: translateY(0);
}
.product-cart-wrap .product-card-bottom .add-cart .add.is-added i {
  animation: dz-pop 0.5s var(--dz-ease);
}
@keyframes dz-pop {
  0% { transform: scale(0.2); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Sold out and stock-limit states keep their own look - no fill, no lift. */
.add.sold-out-cart-btn::before,
.add.is-stock-limit::before {
  display: none !important;
}
.product-cart-wrap .product-card-bottom .add-cart .add.sold-out-cart-btn:hover {
  transform: none;
  box-shadow: none;
}
/* Same size as the Add pill (main.css forces 5px padding with !important,
   which made Sold out 6px shorter and shifted the price row on its card). */
.product-cart-wrap .product-card-bottom .add-cart .add.sold-out-cart-btn {
  border-radius: 999px;
  padding: 8px 16px !important;
}

/* --------------------------------------------------------------------------
   Full-width "Add To cart" buttons inside cards (home "Newly Added").
   -------------------------------------------------------------------------- */
.product-cart-wrap .product-content-wrap form .btn {
  border-radius: 10px;
}
.product-cart-wrap .product-content-wrap .sold .progress {
  height: 6px;
  border-radius: 999px;
  background-color: #f6e6e6;
}
.product-cart-wrap .product-content-wrap .sold .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dz-brand-hi), var(--dz-brand));
}

/* --------------------------------------------------------------------------
   Deal cards (style-2) and the countdown
   -------------------------------------------------------------------------- */
.product-cart-wrap.style-2 .product-img-action-wrap {
  overflow: hidden;
  border-radius: 15px;
}
.product-cart-wrap.style-2 .product-img-action-wrap img {
  transition: transform 0.9s var(--dz-ease);
}
.product-cart-wrap.style-2 .product-content-wrap {
  transition: transform 0.45s var(--dz-ease);
}
.product-cart-wrap.style-2 .product-content-wrap .deals-content {
  border: 1px solid #f3e3e3;
  box-shadow: 0 14px 30px -18px rgba(37, 61, 78, 0.35);
  transition: box-shadow 0.45s var(--dz-ease), border-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .product-cart-wrap.style-2:hover .product-img-action-wrap img {
    transform: scale(1.06);
  }
  .product-cart-wrap.style-2:hover .product-content-wrap {
    transform: translateY(-8px);
  }
  .product-cart-wrap.style-2:hover .product-content-wrap .deals-content {
    border-color: rgba(153, 0, 0, 0.3);
    box-shadow: var(--dz-shadow-lg);
  }
}
.deals-countdown .countdown-section {
  border-radius: 10px;
  box-shadow: 0 10px 22px -14px rgba(37, 61, 78, 0.45);
}
.deals-countdown .countdown-section .countdown-amount {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* --------------------------------------------------------------------------
   Small product lists (home "Top Selling", "Trending" ...)
   -------------------------------------------------------------------------- */
.product-list-small article {
  border-radius: 12px;
  transition: transform 0.4s var(--dz-ease);
}
.product-list-small figure {
  overflow: hidden;
  border-radius: 10px;
}
.product-list-small figure img {
  transition: transform 0.7s var(--dz-ease);
}
@media (hover: hover) and (pointer: fine) {
  .product-list-small article.hover-up:hover {
    transform: translateX(6px);
  }
  .product-list-small article:hover figure img {
    transform: scale(1.07);
  }
}

/* --------------------------------------------------------------------------
   Featured brand cards
   -------------------------------------------------------------------------- */
.card-2 {
  transition: transform 0.45s var(--dz-ease), box-shadow 0.45s var(--dz-ease), border-color 0.3s ease, background-color 0.3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card-2:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -18px rgba(153, 0, 0, 0.45);
  }
}

/* --------------------------------------------------------------------------
   Section headings: an accent bar under the title. dz-animations.js animates
   --dz-bar from 0 to 1 when the heading scrolls into view.
   -------------------------------------------------------------------------- */
.section-title > h3,
.section-title > .title > h3 {
  position: relative;
  letter-spacing: -0.01em;
}
.section-title > h3::after,
.section-title > .title > h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 46px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--dz-brand), var(--dz-brand-hi));
  transform: scaleX(var(--dz-bar, 1));
  transform-origin: left center;
}
.section-title.style-1::after {
  transform: scaleX(var(--dz-bar, 1));
  transform-origin: left center;
}

/* --------------------------------------------------------------------------
   Buttons: a soft light sweep and a small lift. Colours stay the theme's.
   -------------------------------------------------------------------------- */
:root {
  --dz-sweep: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.28) 50%, transparent 65%);
}
.btn:not(.btn-close):not(.dropdown-toggle):not(:disabled):not(.sold-out-cart-btn),
.btn-banner-cta {
  background-image: var(--dz-sweep);
  background-size: 260% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
  transition: background-color 0.3s ease, background-position 0.7s var(--dz-ease), color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--dz-ease), box-shadow 0.35s var(--dz-ease);
}
@media (hover: hover) and (pointer: fine) {
  .btn:not(.btn-close):not(.dropdown-toggle):not(:disabled):not(.sold-out-cart-btn):hover,
  .btn-banner-cta:hover {
    /* main.css sets the hover colour with the `background` shorthand, which
       would drop the sweep image, so restate it. */
    background-image: var(--dz-sweep);
    background-size: 260% 100%;
    background-repeat: no-repeat;
    background-position: -30% 0;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px -14px rgba(37, 61, 78, 0.7);
  }
}
.btn:not(.btn-close):not(:disabled):not(.sold-out-cart-btn):active,
.btn-banner-cta:active {
  transform: translateY(0) scale(0.98);
}
.btn i.fi-rs-arrow-small-right {
  display: inline-block;
  transition: transform 0.35s var(--dz-ease);
}
.btn:hover i.fi-rs-arrow-small-right {
  transform: translateX(4px);
}

/* Home hero: the theme's h1 colour is navy, which made "Discover Rare"
   nearly invisible on the dark banner. Match the rest of the hero copy. */
.home-banner-text h1 {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Home hero - cinematic 3D showroom (assets/js/dz-hero3d.js).
   The inline script in index.html adds, before the first paint, on desktops
   that can run it:
     .dz-cinematic       the hero starts dark (no photo flash)
     .dz-cinematic-copy  the headline, stats and button wait for the 3D
                         timeline (dz-animations.js holds them, dz-hero3d.js
                         plays them in sequence)
   Both are removed again if the 3D cannot run, bringing the photo back.
   -------------------------------------------------------------------------- */
.dz-cinematic .home-banner-full {
  background: #0e0f12;
}
.dz-cinematic .home-banner-full > img {
  opacity: 0;
}
.dz-cinematic-copy .home-banner-text > *,
.dz-cinematic-copy .home-banner-stats {
  opacity: 0;
  /* Failsafe: never leave the copy hidden if every script fails. */
  animation: dz-copy-failsafe 0.6s ease 20s forwards;
}
@keyframes dz-copy-failsafe {
  to { opacity: 1; visibility: visible; }
}

.home-banner-full .dz-hero3d {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.4s ease;
  background: #0e0f12;
}
.home-banner-full .dz-hero3d canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.home-banner-full.dz-hero3d-on .dz-hero3d {
  opacity: 1;
}
.home-banner-full > img {
  transition: opacity 1.4s ease;
}
.home-banner-full.dz-hero3d-on > img {
  opacity: 0;
}
/* Darken only behind the headline (the gradient is gone before the car).
   A pseudo-element, so it can fade out while the film plays. */
.home-banner-full.dz-hero3d-on .home-banner-overlay {
  background: none;
}
.home-banner-full.dz-hero3d-on .home-banner-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.12) 32%, rgba(0, 0, 0, 0) 44%);
  pointer-events: none;
  transition: opacity 1.2s ease;
}
.home-banner-full.dz-hero3d-on .home-banner-inner {
  position: relative;
  z-index: 1;
}
.home-banner-full.dz-film .home-banner-overlay::before {
  opacity: 0;
}

/* Stats: editorial, not a dashboard card - no box, no glass; big numbers
   and small tracked labels split by hairlines. */
.home-banner-full.dz-hero3d-on .home-banner-stats {
  position: relative;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  gap: 0;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.home-banner-full.dz-hero3d-on .stat-box {
  background: none;
  padding: clamp(12px, 1.4vw, 20px) clamp(14px, 1.7vw, 28px);
}
.home-banner-full.dz-hero3d-on .stat-box:nth-child(even) {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}
.home-banner-full.dz-hero3d-on .stat-box:nth-child(n + 3) {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.home-banner-full.dz-hero3d-on .stat-box:hover {
  background: none;
}
.home-banner-full.dz-hero3d-on .stat-label {
  color: rgba(255, 255, 255, 0.66);
  letter-spacing: 0.15em;
}

/* --------------------------------------------------------------------------
   The film's advert lines (markup in index.html, timing in dz-hero3d.js).
   Hidden until the film shows each one; GSAP animates opacity and y only,
   so nothing here uses transforms (they would clash).
   -------------------------------------------------------------------------- */
.home-banner-full .dz-ad {
  display: none;
}
.home-banner-full.dz-hero3d-on .dz-ad {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  color: #fff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-transform: uppercase;
}
.dz-ad > * {
  position: absolute;
  margin: 0;
  opacity: 0;
  visibility: hidden;
}
.dz-ad p {
  color: #fff; /* the theme colours every <p> grey */
}
.dz-ad .dz-ad-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}
.dz-ad .dz-ad-mask > span {
  display: block;
}
.dz-ad .dz-ad-char {
  display: inline-block;
}
/* Left edge lined up with the hero copy (same container as .home-banner-inner). */
.dz-ad .dz-ad-reveal,
.dz-ad .dz-ad-support,
.dz-ad .dz-ad-end {
  left: max(5%, calc((100% - 1180px) / 2));
}

/* Opening: small, widely tracked, centred above the car. */
.dz-ad .dz-ad-open {
  left: 0;
  right: 0;
  top: 8%;
  text-align: center;
  font-size: clamp(13px, 1.25vw, 19px);
  font-weight: 600;
  letter-spacing: 0.42em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}

/* Main reveal: oversized, two lines, the second in the brand red - in the
   dark space above the car during the side-profile shot. */
.dz-ad .dz-ad-reveal {
  top: 7%;
  font-size: clamp(30px, 4.4vw, 72px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.dz-ad .dz-ad-accent {
  color: #ff4d4d;
}

/* Supporting line: quiet, sentence case, lower left. */
.dz-ad .dz-ad-support {
  bottom: 20%;
  max-width: 26ch;
  font-size: clamp(16px, 1.45vw, 23px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.86);
}

/* End card: the logo and the closing line, where the shop copy will appear. */
.dz-ad .dz-ad-end {
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(10px, 1.2vw, 18px);
}
.dz-ad .dz-ad-end img {
  height: clamp(46px, 4.6vw, 70px);
  width: auto;
}
.dz-ad .dz-ad-end p {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 58px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
}

/* Skip / replay. Quiet, bottom right, above the ticker. */
.home-banner-full .dz-film-btn {
  position: absolute;
  right: clamp(16px, 2.2vw, 32px);
  bottom: 52px;
  z-index: 4;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.45);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.home-banner-full .dz-film-btn:hover {
  background: rgba(153, 0, 0, 0.75);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}
.home-banner-full .dz-film-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.home-banner-full .dz-film-btn[hidden] {
  display: none;
}

/* More room for the car on wide screens: the panel moves towards the right
   edge (up to 220px). `left`, not a transform, because GSAP animates the
   panel's transform during the reveal. dz-hero3d.js measures the panel after
   this applies and centres the car in the gap. */
@media (min-width: 1200px) {
  .home-banner-full.dz-hero3d-on .home-banner-stats {
    left: clamp(0px, calc((100vw - 1180px) / 2 - 7vw), 220px);
  }
}

/* Quick view opens with a short rise instead of Bootstrap's drop. */
#quickViewModal.fade .modal-dialog {
  transform: translateY(28px) scale(0.98);
  transition: transform 0.45s var(--dz-ease);
}
#quickViewModal.show .modal-dialog {
  transform: none;
}

/* Header cart and wishlist badge bounce (set by dz-animations.js). */
.pro-count {
  will-change: transform;
}

/* --------------------------------------------------------------------------
   Reduced motion: keep the new look, drop the movement.
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .product-cart-wrap,
  .product-cart-wrap *,
  .product-cart-wrap::before,
  .card-2,
  .product-list-small article,
  .product-list-small figure img,
  .btn,
  .btn-banner-cta,
  #quickViewModal .modal-dialog {
    transition: none !important;
    animation: none !important;
  }
  .product-cart-wrap:hover,
  .product-cart-wrap:hover .product-img-zoom a img,
  .product-cart-wrap.style-2:hover .product-content-wrap,
  .card-2:hover,
  .product-list-small article:hover,
  .btn:hover,
  .btn-banner-cta:hover {
    transform: none !important;
  }
}
