/* MY-MobileX v3 — interaction, colour and sticky-layout refinement layer */
:root {
  --v3-navy: #032564;
  --v3-navy-deep: #021c4b;
  --v3-blue: #124b8b;
  --v3-blue-bright: #2479bd;
  --v3-orange: #fc7406;
  --v3-orange-dark: #b84e00;
  --v3-cyan: #0e7490;
  --v3-green: #15803d;
  --v3-surface-blue: #edf5fd;
  --v3-surface-orange: #fff3e8;
  --v3-surface-cyan: #eaf9fb;
  --v3-border: #d7e2ef;
  --v3-shadow-card: 0 14px 38px rgba(3, 37, 100, .10);
  --v3-shadow-hover: 0 22px 56px rgba(3, 37, 100, .17);
  --sticky-header-height: 176px;
  --page-progress: 0;
}

html {
  scroll-padding-top: calc(var(--sticky-header-height) + 20px);
}

body {
  color: #40526a;
  background-color: #f5f8fc;
}

::selection {
  color: #fff;
  background: var(--v3-blue);
}

a,
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(252, 116, 6, .42);
  outline-offset: 3px;
}

/* Exact icon-and-label centring for every Bootstrap button. */
.btn > i[class*="me-"] {
  margin-right: 0 !important;
}

.btn > i[class*="ms-"] {
  margin-left: 0 !important;
}

.btn > i,
.btn > span {
  position: relative;
  z-index: 1;
}

.btn-brand {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-navy) 0%, #0b4387 100%);
  border-color: var(--v3-navy);
  box-shadow: 0 8px 20px rgba(3, 37, 100, .16);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue) 0%, var(--v3-blue-bright) 100%);
  border-color: var(--v3-blue);
  box-shadow: 0 12px 26px rgba(18, 75, 139, .25);
}

.btn-orange {
  color: var(--v3-navy-deep);
  background: linear-gradient(135deg, #ff9b29 0%, var(--v3-orange) 100%);
  border-color: var(--v3-orange);
  box-shadow: 0 8px 20px rgba(184, 78, 0, .18);
}

.btn-orange:hover,
.btn-orange:focus {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-orange-dark) 0%, #d75a00 100%);
  border-color: var(--v3-orange-dark);
  box-shadow: 0 12px 26px rgba(184, 78, 0, .26);
}

.btn-outline-primary {
  color: var(--v3-navy);
  border-color: #91add0;
  background: rgba(255, 255, 255, .82);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  color: #fff;
  background: var(--v3-blue);
  border-color: var(--v3-blue);
}

.btn i.bi-arrow-right {
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

.btn:hover i.bi-arrow-right {
  transform: translateX(4px);
}

.btn.is-added {
  color: #fff;
  background: linear-gradient(135deg, #13783a, #20a050);
  border-color: #13783a;
}

.count-badge.count-bump {
  animation: v3CountBump .42s cubic-bezier(.16, 1, .3, 1);
}

/* A compact, stable header on scroll, with a reading-progress accent. */
.site-header {
  isolation: isolate;
  border-bottom: 0;
}

.site-header::after {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--v3-orange), var(--v3-blue-bright));
  transform: scaleX(var(--page-progress));
  transform-origin: left center;
  transition: transform .12s linear;
}

.announcement-bar {
  max-height: 36px;
  overflow: hidden;
  transition: max-height .34s ease, opacity .25s ease;
}

.announcement-bar .container,
.main-header > .container:first-child,
.brand-crop {
  transition: min-height .34s cubic-bezier(.16, 1, .3, 1), height .34s cubic-bezier(.16, 1, .3, 1);
}

.main-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(16px) saturate(145%);
}

.site-header.is-scrolled .announcement-bar {
  max-height: 0;
  opacity: 0;
}

.site-header.is-scrolled .announcement-bar .container {
  min-height: 0;
  height: 0;
}

.site-header.is-scrolled .main-header > .container:first-child {
  min-height: 72px;
}

.site-header.is-scrolled .brand-crop {
  height: 62px;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(3, 37, 100, .14);
}

.header-search .form-control:hover {
  border-color: #9bb5d3;
  background: #fff;
}

.category-nav .nav-link:not(.all-categories-btn) {
  position: relative;
}

.category-nav .nav-link:not(.all-categories-btn)::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--v3-orange), var(--v3-orange-dark));
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.category-nav .nav-link:not(.all-categories-btn):hover::after,
.category-nav .nav-link:not(.all-categories-btn).active::after {
  transform: scaleX(1);
}

.all-categories-btn {
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
  box-shadow: 0 8px 18px rgba(3, 37, 100, .16);
}

.all-categories-btn:hover,
.all-categories-btn[aria-expanded="true"] {
  color: #fff !important;
  background: linear-gradient(135deg, var(--v3-navy), var(--v3-blue-bright));
}

.mega-menu {
  border-top: 3px solid var(--v3-orange);
  box-shadow: 0 26px 70px rgba(2, 28, 75, .19);
}

.mega-link::before {
  display: inline-block;
  width: 0;
  height: 2px;
  margin-right: 0;
  vertical-align: middle;
  content: "";
  background: var(--v3-orange);
  transition: width .2s ease, margin-right .2s ease;
}

.mega-link:hover::before {
  width: 10px;
  margin-right: 6px;
}

/* Rich, consistent category, product and support-card interaction. */
.category-card,
.product-card,
.support-card,
.blog-card,
.brand-pill,
.testimonial-card,
.dashboard-stat {
  position: relative;
  isolation: isolate;
}

.category-card::before,
.product-card::before,
.support-card::before,
.blog-card::before {
  position: absolute;
  z-index: 4;
  top: 0;
  right: 16px;
  left: 16px;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--v3-orange), var(--v3-blue-bright));
  border-radius: 0 0 99px 99px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform .34s cubic-bezier(.16, 1, .3, 1);
}

.category-card:hover::before,
.product-card:hover::before,
.support-card:hover::before,
.blog-card:hover::before {
  transform: scaleX(1);
}

.category-card {
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(3, 37, 100, .055);
}

.category-card:hover {
  background: linear-gradient(180deg, #fff 0%, var(--v3-surface-blue) 100%);
  border-color: #9db9d8;
  box-shadow: var(--v3-shadow-card);
}

.category-icon {
  box-shadow: inset 0 0 0 1px rgba(18, 75, 139, .06);
  transition: color .25s ease, background .25s ease, transform .34s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease;
}

.row > :nth-child(3n + 2) .category-card .category-icon {
  color: var(--v3-orange-dark);
  background: var(--v3-surface-orange);
}

.row > :nth-child(3n) .category-card .category-icon {
  color: var(--v3-cyan);
  background: var(--v3-surface-cyan);
}

.category-card:hover .category-icon {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
  box-shadow: 0 12px 24px rgba(18, 75, 139, .22);
  transform: translateY(-3px) rotate(-4deg) scale(1.06);
}

.product-card {
  border-color: var(--v3-border);
  box-shadow: 0 8px 26px rgba(3, 37, 100, .06);
  transition: border-color .28s ease, transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}

.product-card:hover {
  border-color: #a9c1dc;
  box-shadow: var(--v3-shadow-hover);
}

.product-media {
  background:
    radial-gradient(circle at 82% 16%, rgba(252, 116, 6, .10), transparent 23%),
    linear-gradient(145deg, #fbfdff, #edf4fb);
}

.product-media::after {
  position: absolute;
  right: -38px;
  bottom: -48px;
  width: 120px;
  height: 120px;
  content: "";
  border: 18px solid rgba(18, 75, 139, .045);
  border-radius: 50%;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
}

.product-card:hover .product-media::after {
  transform: translate(-12px, -9px) scale(1.12);
}

.product-badge {
  color: var(--v3-navy-deep);
  background: linear-gradient(135deg, #ffad44, var(--v3-orange));
  box-shadow: 0 5px 12px rgba(184, 78, 0, .16);
}

.product-card:hover .product-badge {
  animation: v3BadgeLift .48s cubic-bezier(.16, 1, .3, 1);
}

.product-actions {
  opacity: 1;
  transform: none;
}

.product-actions .icon-btn {
  position: relative;
  color: var(--v3-navy);
  background: rgba(255, 255, 255, .94);
  border-color: #d5e1ee;
  box-shadow: 0 7px 18px rgba(3, 37, 100, .11);
  backdrop-filter: blur(8px);
}

.product-actions .icon-btn::after {
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  padding: 6px 9px;
  color: #fff;
  content: attr(data-tooltip);
  pointer-events: none;
  white-space: nowrap;
  background: var(--v3-navy-deep);
  border-radius: 6px;
  font-size: .68rem;
  font-weight: 800;
  opacity: 0;
  transform: translate(5px, -50%);
  transition: opacity .18s ease, transform .22s ease;
}

.product-actions .icon-btn:hover::after,
.product-actions .icon-btn:focus-visible::after {
  opacity: 1;
  transform: translate(0, -50%);
}

.product-actions .toggle-wishlist:hover,
.product-actions .toggle-wishlist.active {
  color: #fff;
  background: linear-gradient(135deg, #d94b64, #b42346);
  border-color: #b42346;
}

.product-actions .add-compare:hover,
.product-actions .add-compare.active {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-cyan), var(--v3-blue));
  border-color: var(--v3-cyan);
}

.product-actions .quick-view:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
  border-color: var(--v3-blue);
}

.product-card .add-cart i {
  transition: transform .28s cubic-bezier(.16, 1, .3, 1);
}

.product-card .add-cart:hover i {
  transform: translateX(2px) rotate(-7deg) scale(1.1);
}

.support-card:hover {
  border-color: #9bb9d9;
  box-shadow: var(--v3-shadow-hover);
}

.row > :nth-child(3n + 2) .support-card > i {
  color: var(--v3-orange-dark);
  background: var(--v3-surface-orange);
}

.row > :nth-child(3n) .support-card > i {
  color: var(--v3-cyan);
  background: var(--v3-surface-cyan);
}

.brand-pill:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
  border-color: var(--v3-blue);
  box-shadow: var(--v3-shadow-card);
}

.dashboard-stat:hover {
  border-color: #a8bfd9;
  box-shadow: var(--v3-shadow-card);
  transform: translateY(-4px);
}

.dashboard-stat i {
  transition: color .25s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.dashboard-stat:hover i {
  color: var(--v3-orange-dark);
  transform: translateY(-2px) scale(1.1);
}

/* Catalog sidebar and controls remain available during long product grids. */
.catalog-section {
  position: relative;
}

.catalog-sidebar {
  align-self: stretch !important;
}

.catalog-filter-sticky {
  border-color: var(--v3-border);
  box-shadow: var(--v3-shadow-card);
}

.filter-card-head {
  padding-bottom: 20px;
  border-bottom: 1px solid #e4ecf5;
}

.filter-head-icon,
.toolbar-count-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(18, 75, 139, .20);
  font-size: 1.08rem;
}

.filter-overline {
  display: block;
  margin-bottom: 2px;
  color: var(--v3-orange-dark);
  font-size: .64rem;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.filter-card .filter-group {
  border-color: #e4ecf5;
}

.filter-card .form-check {
  margin-inline: -8px;
  padding: 7px 8px 7px 34px;
  border-radius: 8px;
  transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.filter-card .form-check:hover {
  color: var(--v3-navy);
  background: var(--v3-surface-blue);
  transform: translateX(2px);
}

.form-check-input:checked {
  background-color: var(--v3-blue);
  border-color: var(--v3-blue);
}

.form-range::-webkit-slider-thumb {
  background: var(--v3-orange-dark);
}

.form-range::-moz-range-thumb {
  background: var(--v3-orange-dark);
  border: 0;
}

.catalog-toolbar {
  border-color: rgba(190, 207, 225, .9);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 9px 28px rgba(3, 37, 100, .09);
  backdrop-filter: blur(16px) saturate(145%);
}

.catalog-toolbar .toolbar-count-icon {
  width: 38px;
  height: 38px;
  flex-basis: 38px;
  color: var(--v3-navy);
  background: var(--v3-surface-orange);
  box-shadow: none;
}

.sort-control .form-select {
  min-width: 176px;
}

.pagination .page-link {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.pagination a.page-link:hover {
  color: var(--v3-navy);
  background: var(--v3-surface-orange);
  border-color: #ffd1a5;
  transform: translateY(-2px);
}

.offcanvas {
  --bs-offcanvas-width: min(370px, calc(100vw - 24px));
}

.offcanvas-header {
  background: linear-gradient(135deg, var(--v3-surface-blue), #fff);
  border-bottom: 1px solid var(--v3-border);
}

.mobile-filter-list .form-check {
  min-height: 46px;
  margin-bottom: 8px !important;
  padding: 11px 12px 11px 40px;
  background: #f8fbfe;
  border: 1px solid #e1eaf4;
  border-radius: 10px;
}

.mobile-filter-list .form-check-input {
  margin-left: -27px;
}

.mobile-filter-list .form-check:has(.form-check-input:checked) {
  color: var(--v3-navy);
  background: var(--v3-surface-blue);
  border-color: #9cb8d7;
}

.offcanvas-filter-actions {
  position: sticky;
  bottom: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff 20%);
}

body:has(.offcanvas.show) .mobile-bottom-nav,
body:has(.offcanvas.show) .cookie-banner,
body:has(.offcanvas.show) .back-to-top {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.filter-enter {
  animation: v3FilterEnter .38s cubic-bezier(.16, 1, .3, 1) both;
}

.grid-resorted > [data-product] {
  animation: v3GridSettle .38s cubic-bezier(.16, 1, .3, 1) both;
}

/* Section transitions and promotional surfaces. */
.promo-section + .compatibility-section {
  padding-top: 0;
}

.promo-card {
  box-shadow: 0 16px 38px rgba(3, 37, 100, .16);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease;
}

.promo-card::before {
  position: absolute;
  z-index: 1;
  top: -30%;
  left: -24%;
  width: 25%;
  height: 170%;
  content: "";
  background: rgba(255, 255, 255, .12);
  transform: rotate(18deg) translateX(-160%);
  transition: transform .8s cubic-bezier(.16, 1, .3, 1);
}

.promo-card:hover {
  box-shadow: 0 24px 58px rgba(3, 37, 100, .23);
  transform: translateY(-6px);
}

.promo-card:hover::before {
  transform: rotate(18deg) translateX(650%);
}

.compatible-finder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 0%, rgba(36, 121, 189, .42), transparent 32%),
    linear-gradient(120deg, var(--v3-navy-deep), var(--v3-blue));
  box-shadow: 0 18px 48px rgba(3, 37, 100, .20);
}

.compatible-finder::after {
  position: absolute;
  right: -90px;
  bottom: -140px;
  width: 300px;
  height: 300px;
  content: "";
  pointer-events: none;
  border: 38px solid rgba(255, 255, 255, .07);
  border-radius: 50%;
  animation: v3Orbit 8s ease-in-out infinite;
}

.compatible-finder > * {
  position: relative;
  z-index: 1;
}

.newsletter-band {
  background:
    radial-gradient(circle at 12% 25%, rgba(36, 121, 189, .30), transparent 26%),
    linear-gradient(105deg, var(--v3-blue), var(--v3-navy-deep));
}

.newsletter-form {
  box-shadow: 0 14px 34px rgba(2, 28, 75, .22);
}

.footer-link {
  position: relative;
  transition: color .2s ease, transform .2s ease;
}

.footer-link:hover {
  transform: translateX(4px);
}

.social-link {
  transition: color .22s ease, background-color .22s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.social-link:hover {
  transform: translateY(-4px) rotate(-5deg);
}

.back-to-top {
  border-color: #c8d6e6;
  box-shadow: 0 12px 30px rgba(3, 37, 100, .18);
  transition: color .2s ease, background-color .2s ease, transform .3s cubic-bezier(.16, 1, .3, 1), opacity .2s ease;
}

.back-to-top:hover {
  color: #fff;
  background: var(--v3-orange-dark);
  border-color: var(--v3-orange-dark);
  transform: translateY(-4px);
}

@media (min-width: 992px) {
  .catalog-filter-sticky,
  .account-nav,
  .product-gallery,
  .summary-card {
    position: sticky;
    top: calc(var(--sticky-header-height) + 18px);
  }

  .catalog-filter-sticky {
    max-height: calc(100vh - var(--sticky-header-height) - 36px);
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: #a9bdd4 transparent;
    scrollbar-width: thin;
  }

  .catalog-filter-sticky::-webkit-scrollbar {
    width: 6px;
  }

  .catalog-filter-sticky::-webkit-scrollbar-thumb {
    background: #a9bdd4;
    border-radius: 99px;
  }

  .catalog-toolbar {
    position: sticky;
    z-index: 24;
    top: calc(var(--sticky-header-height) + 10px);
  }
}

@media (max-width: 991.98px) {
  :root {
    --sticky-header-height: 138px;
  }

  .site-header.is-scrolled .main-header > .container:first-child {
    min-height: 64px;
  }

  .site-header.is-scrolled .brand-crop {
    height: 54px;
  }

  .catalog-toolbar,
  .catalog-filter-sticky,
  .account-nav {
    position: static;
  }

  .mobile-filter-trigger {
    color: var(--v3-navy);
    background: linear-gradient(135deg, #fff, var(--v3-surface-blue));
    border-color: #91add0;
    box-shadow: 0 8px 20px rgba(3, 37, 100, .08);
  }

  .product-actions .icon-btn::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .section-space,
  .section-space-sm {
    scroll-margin-top: calc(var(--sticky-header-height) + 10px);
  }

  .category-card:hover,
  .product-card:hover,
  .support-card:hover,
  .blog-card:hover,
  .promo-card:hover {
    transform: translateY(-3px);
  }

  .sort-control {
    width: 100%;
  }

  .sort-control .form-select {
    min-width: 0;
    flex: 1;
  }

  .catalog-toolbar {
    gap: 12px;
  }

  .catalog-toolbar > * {
    width: 100%;
  }

  .promo-section + .compatibility-section {
    padding-top: 8px;
  }

  .compatible-finder::after {
    right: -130px;
    bottom: -160px;
  }
}

@media (max-width: 575.98px) {
  .product-actions .icon-btn {
    box-shadow: 0 5px 13px rgba(3, 37, 100, .10);
  }

  .product-card .add-cart {
    gap: 6px;
  }

  .toolbar-count-icon {
    display: none;
  }

  .pagination .page-link {
    min-width: 36px;
    min-height: 38px;
    margin-inline: 1px;
    padding-inline: 9px;
  }
}

@media (hover: none) {
  .product-actions .icon-btn::after {
    display: none;
  }

  .btn:hover,
  .category-card:hover,
  .product-card:hover,
  .support-card:hover,
  .blog-card:hover,
  .promo-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::after,
  .compatible-finder::after,
  .product-card:hover .product-badge {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes v3BadgeLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes v3CountBump {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.38) rotate(-7deg); }
}

@keyframes v3Orbit {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(-16px, -9px, 0) rotate(7deg); }
}

@keyframes v3FilterEnter {
  from { opacity: .3; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes v3GridSettle {
  from { opacity: .55; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   V4 LAYOUT CONTRACT
   One section rhythm, one grid rhythm, one control rhythm across every page.
   -------------------------------------------------------------------------- */
:root {
  --v4-section-y: 56px;
  --v4-section-head-gap: 30px;
  --v4-grid-gap: 24px;
  --v4-card-padding: 24px;
  --v4-control-height: 46px;
}

main > :is(section, article).section-space,
main > :is(section, article).section-space-sm {
  padding-top: var(--v4-section-y) !important;
  padding-bottom: var(--v4-section-y) !important;
  margin: 0 !important;
}

main > .page-hero {
  min-height: 220px;
  padding-block: 52px;
}

main .section-head {
  margin-bottom: var(--v4-section-head-gap) !important;
}

main .section-copy {
  margin-top: 10px;
  margin-bottom: 0;
}

main .row.g-3,
main .row.g-4,
main .row.g-lg-4 {
  --bs-gutter-x: var(--v4-grid-gap);
  --bs-gutter-y: var(--v4-grid-gap);
}

main .row.g-5 {
  --bs-gutter-x: 32px;
  --bs-gutter-y: 32px;
}

.product-showcase-section,
.proof-section,
.content-grid-section,
.help-section,
.account-section,
.catalog-section {
  background:
    radial-gradient(circle at 92% 12%, rgba(18, 75, 139, .035), transparent 25%),
    linear-gradient(180deg, #f7faff 0%, #f3f7fb 100%);
}

.brand-section,
.guide-section {
  background: #fff;
}

.promo-section,
.compatibility-section {
  background: #f5f8fc;
}

.surface-card,
.filter-card,
.summary-card,
.cart-item,
.article-content,
.support-card,
.testimonial-card,
.blog-card,
.product-card,
.brand-pill,
.dashboard-stat {
  border-color: #d7e2ef;
}

.support-card,
.testimonial-card,
.blog-card-body,
.dashboard-stat {
  padding: var(--v4-card-padding);
}

.section-title,
.page-hero h1 {
  text-wrap: balance;
}

.section-title {
  margin-bottom: 0;
  line-height: 1.18;
}

.section-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
}

.btn {
  min-height: var(--v4-control-height);
  height: auto;
  padding: 0 20px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  text-align: center;
}

.btn-sm,
.btn-group-sm > .btn {
  min-height: 38px;
  padding-inline: 14px;
}

.btn-lg,
.btn-group-lg > .btn {
  min-height: 52px;
  padding-inline: 26px;
}

.btn > i {
  display: inline-flex;
  height: 1em;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.form-control,
.form-select,
.input-group-text {
  min-height: var(--v4-control-height);
}

.category-card,
.brand-pill,
.support-card,
.testimonial-card,
.blog-card,
.dashboard-stat,
.surface-card,
.filter-card,
.summary-card {
  border-radius: 16px;
}

.product-card {
  border-radius: 16px;
}

.product-body {
  padding: 18px;
}

.product-card .add-cart {
  min-height: 44px;
  margin-top: 16px;
}

.catalog-toolbar {
  min-height: 68px;
  margin-bottom: var(--v4-grid-gap) !important;
  padding: 11px 16px;
}

.catalog-pagination {
  margin-top: 40px;
}

.pagination {
  gap: 8px;
  margin-bottom: 0;
}

.pagination .page-item {
  margin: 0;
}

.pagination .page-link {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 0 14px;
  align-items: center;
  justify-content: center;
  color: var(--v3-navy);
  background: #fff;
  border: 1px solid #cfdaE8;
  border-radius: 10px;
  box-shadow: 0 5px 14px rgba(3, 37, 100, .06);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.pagination .page-item.active .page-link,
.pagination .page-item[aria-current="page"] .page-link {
  color: #fff !important;
  background: linear-gradient(135deg, var(--v3-orange) 0%, var(--v3-orange-dark) 100%) !important;
  border-color: var(--v3-orange-dark) !important;
  box-shadow: 0 10px 22px rgba(184, 78, 0, .28);
  transform: translateY(-2px);
  animation: v4PaginationIn .42s cubic-bezier(.16, 1, .3, 1) both;
}

.pagination .page-item.disabled .page-link {
  color: #8b9bb0;
  background: #edf2f7;
  border-color: #e0e7ef;
  box-shadow: none;
  opacity: 1;
}

.pagination a.page-link:hover,
.pagination a.page-link:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
  border-color: var(--v3-blue);
  box-shadow: 0 9px 20px rgba(18, 75, 139, .22);
  transform: translateY(-2px);
}

.help-search-wrap {
  margin-bottom: 32px;
}

.help-cta {
  margin-top: 32px;
}

.account-layout > aside,
.catalog-sidebar {
  align-self: stretch;
}

.account-section .surface-card.mb-4 {
  margin-top: 0 !important;
  margin-bottom: var(--v4-grid-gap) !important;
}

.account-section .surface-card.mt-4 {
  margin-top: var(--v4-grid-gap) !important;
  margin-bottom: 0 !important;
}

.account-nav a {
  position: relative;
  min-height: 50px;
}

.account-nav a::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--v3-orange);
  border-radius: 0 99px 99px 0;
  opacity: 0;
  transform: scaleY(.4);
  transition: opacity .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.account-nav a.active::before,
.account-nav a:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.account-nav a i {
  transition: color .2s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.account-nav a.active i,
.account-nav a:hover i {
  color: var(--v3-orange-dark);
  transform: translateX(2px);
}

.promo-card,
.compatible-finder {
  min-height: 250px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.promo-card .btn {
  margin-top: 6px;
}

.newsletter-band {
  padding-block: 38px;
}

.footer-main {
  padding-block: 54px 40px;
}

@media (max-width: 1199.98px) {
  :root {
    --v4-section-y: 48px;
    --v4-section-head-gap: 28px;
    --v4-grid-gap: 22px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --v4-section-y: 36px;
    --v4-section-head-gap: 22px;
    --v4-grid-gap: 16px;
    --v4-card-padding: 20px;
    --v4-control-height: 46px;
  }

  main > .page-hero {
    min-height: 176px;
    padding-block: 34px;
  }

  .section-title {
    line-height: 1.22;
  }

  .help-search-wrap {
    margin-bottom: 24px;
  }

  .help-cta {
    margin-top: 24px;
    padding: 20px !important;
  }

  .help-cta .btn {
    width: 100%;
  }

  .catalog-pagination {
    margin-top: 30px;
  }

  .pagination {
    gap: 4px;
  }

  .pagination .page-link {
    min-width: 38px;
    min-height: 40px;
    padding-inline: 10px;
    border-radius: 8px;
    font-size: .78rem;
  }

  .promo-card,
  .compatible-finder {
    min-height: auto;
  }
}

@media (max-width: 359.98px) {
  .pagination .page-link {
    min-width: 34px;
    min-height: 38px;
    padding-inline: 8px;
    font-size: .72rem;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    background: #fff !important;
  }

  body {
    padding-bottom: 0 !important;
  }

  .site-header,
  .catalog-filter-sticky,
  .catalog-toolbar,
  .account-nav,
  .product-gallery,
  .summary-card {
    position: static !important;
  }

  .site-header::after,
  .skip-link,
  .mobile-filter-trigger,
  .mobile-bottom-nav,
  .back-to-top,
  .cookie-banner,
  .toast-container {
    display: none !important;
  }

  .motion-ready .reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .product-card,
  .support-card,
  .blog-card,
  .testimonial-card,
  .promo-card,
  .surface-card {
    break-inside: avoid;
  }

  .site-header,
  .page-hero,
  .newsletter-band,
  .site-footer,
  .product-badge,
  .btn,
  .pagination .page-link {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* --------------------------------------------------------------------------
   V7 HERO + GUIDE CONTRACT
   Fixed-height carousel frames, outside controls and spacious guide cards.
   -------------------------------------------------------------------------- */
.hero-section {
  --hero-frame-height: 500px;
  --hero-arrow-size: 46px;
}

#heroCarousel {
  overflow: visible;
  border-radius: 0;
  isolation: auto;
}

.hero-section .carousel-inner {
  height: var(--hero-frame-height);
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 18px 52px rgba(3, 37, 100, .15);
  isolation: isolate;
}

.hero-section .carousel-item,
.hero-slide {
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.hero-slide {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: none;
}

.hero-content {
  width: min(66%, 720px);
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: clamp(48px, 4.4vw, 64px) clamp(72px, 6.4vw, 96px);
}

.hero-title {
  font-size: clamp(2.5rem, 4.4vw, 4rem);
}

.hero-slide.light .hero-title {
  max-width: 17ch;
  font-size: clamp(2.4rem, 3.9vw, 3.55rem);
}

.hero-carousel-control {
  width: var(--hero-arrow-size);
  height: var(--hero-arrow-size);
}

.carousel-control-prev.hero-carousel-control {
  left: calc(var(--hero-arrow-size) / -2);
}

.carousel-control-next.hero-carousel-control {
  right: calc(var(--hero-arrow-size) / -2);
}

.hero-arrow {
  width: 100%;
  height: 100%;
  border-color: rgba(145, 173, 208, .72);
  box-shadow: 0 12px 30px rgba(2, 28, 75, .22);
}

.guide-intro {
  max-width: 760px;
  margin: 0 auto 40px;
}

.guide-intro-icon {
  display: inline-grid;
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--v3-blue);
  background: linear-gradient(145deg, #fff, var(--v3-surface-blue));
  border: 1px solid #cbddee;
  border-radius: 20px;
  box-shadow: 0 14px 30px rgba(3, 37, 100, .1);
}

.guide-intro-icon i {
  font-size: 2rem;
}

.guide-intro h2 {
  margin-bottom: 10px;
  line-height: 1.2;
}

.guide-intro p {
  max-width: 700px;
  line-height: 1.7;
}

.guide-grid {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.guide-grid > [class*="col-"] {
  display: flex;
}

.guide-step-card {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 230px;
  padding: 30px;
  overflow: hidden;
  flex-direction: column;
  align-items: flex-start;
  color: #40526a;
  background: linear-gradient(145deg, #fff 0%, #fbfdff 100%);
  border: 1px solid #d3e0ed;
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(3, 37, 100, .07);
  transition: border-color .25s ease, box-shadow .32s ease, transform .32s cubic-bezier(.16, 1, .3, 1);
}

.guide-step-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--v3-orange), var(--v3-blue));
  transform: scaleX(.16);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}

.guide-step-card:hover {
  border-color: #9dbbd9;
  box-shadow: 0 20px 48px rgba(3, 37, 100, .14);
  transform: translateY(-6px);
}

.guide-step-card:hover::before {
  transform: scaleX(1);
}

.guide-step-top {
  display: flex;
  width: 100%;
  margin-bottom: 22px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.guide-step-number,
.guide-step-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.guide-step-number {
  width: 46px;
  height: 46px;
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(3, 37, 100, .16);
  font-size: .82rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.guide-step-icon {
  width: 48px;
  height: 48px;
  color: var(--v3-orange-dark);
  background: var(--v3-surface-orange);
  border: 1px solid #f7d7bd;
  border-radius: 14px;
  transition: color .22s ease, background-color .22s ease, transform .3s cubic-bezier(.16, 1, .3, 1);
}

.guide-step-icon i {
  font-size: 1.25rem;
}

.guide-step-card:hover .guide-step-icon {
  color: #fff;
  background: var(--v3-orange-dark);
  transform: rotate(-5deg) scale(1.06);
}

.guide-step-card h3 {
  margin: 0 0 10px;
  color: #111827;
  font-size: 1.08rem;
  font-weight: 850;
  line-height: 1.38;
}

.guide-step-card p {
  margin: 0;
  line-height: 1.72;
}

.guide-cta {
  margin-top: 40px;
}

.guide-cta p {
  max-width: 640px;
  line-height: 1.65;
}

@media (max-width: 1199.98px) {
  .hero-section {
    --hero-frame-height: 470px;
    --hero-arrow-size: 44px;
  }

  .hero-content {
    width: 66%;
    padding: 48px 66px;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    --hero-frame-height: 480px;
    --hero-arrow-size: 42px;
  }

  .hero-content {
    width: 70%;
    max-width: 70%;
    padding: 46px 54px;
  }

  .guide-step-card {
    min-height: 262px;
    padding: 26px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    --hero-frame-height: 520px;
    --hero-arrow-size: 40px;
  }

  .hero-section .container {
    padding-right: 20px;
    padding-left: 20px;
  }

  .hero-section .carousel-inner,
  .hero-slide {
    border-radius: 18px;
  }

  .hero-content {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    padding: 34px 20px 188px;
  }

  .hero-title,
  .hero-slide.light .hero-title {
    max-width: 14ch;
    font-size: clamp(2.1rem, 9.5vw, 2.7rem);
  }

  .hero-visual {
    right: 14%;
    bottom: -30px;
    width: 72%;
    height: 238px;
  }

  .guide-intro {
    margin-bottom: 28px;
  }

  .guide-intro-icon {
    width: 62px;
    height: 62px;
    margin-bottom: 16px;
    border-radius: 17px;
  }

  .guide-intro-icon i {
    font-size: 1.7rem;
  }

  .guide-grid {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
  }

  .guide-step-card {
    min-height: 220px;
    padding: 22px;
    border-radius: 16px;
  }

  .guide-step-top {
    margin-bottom: 18px;
  }

  .guide-step-number {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .guide-step-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .guide-cta {
    margin-top: 28px;
  }
}

@media (max-width: 575.98px) {
  .hero-actions .btn {
    flex: 1 1 0;
    padding-inline: 8px;
    white-space: nowrap;
    font-size: .78rem;
  }
}

@media (max-width: 359.98px) {
  .hero-section {
    --hero-frame-height: 550px;
    --hero-arrow-size: 36px;
  }

  .hero-section .container {
    padding-right: 18px;
    padding-left: 18px;
  }

  .hero-content {
    padding: 30px 16px 190px;
  }

  .hero-actions .btn {
    flex-basis: 100%;
  }
}

@media (hover: none) {
  .guide-step-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-step-card,
  .guide-step-card::before,
  .guide-step-icon {
    transition: none !important;
  }
}

@media print {
  #heroCarousel,
  .hero-section .carousel-inner,
  .hero-section .carousel-item,
  .hero-slide,
  .hero-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
  }

  .hero-carousel-control {
    display: none !important;
  }
}

@keyframes v4PaginationIn {
  from { opacity: .4; transform: translateY(3px) scale(.9); }
  to { opacity: 1; transform: translateY(-2px) scale(1); }
}

/* --------------------------------------------------------------------------
   V6 COMPONENT REFINEMENT
   Searchable selects, review rhythm and unclipped compatibility controls.
   -------------------------------------------------------------------------- */
.review-grid {
  --bs-gutter-x: 24px;
  --bs-gutter-y: 24px;
}

.review-grid > [class*="col-"] {
  display: flex;
}

.review-grid .testimonial-card {
  width: 100%;
  min-height: 220px;
}

.live-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0;
  pointer-events: none;
}

.live-select {
  position: relative;
  width: 100%;
  color: #111827;
}

.live-select-toggle {
  display: flex;
  width: 100%;
  min-height: var(--v4-control-height);
  padding: 0 14px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #111827;
  background: #fff;
  border: 1px solid #cbd8e7;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(3, 37, 100, .04);
  line-height: 1.2;
  text-align: left;
  transition: border-color .2s ease, box-shadow .22s ease, transform .22s ease;
}

.live-select-toggle:hover {
  border-color: #91add0;
}

.live-select.open .live-select-toggle,
.live-select-toggle:focus-visible {
  border-color: var(--v3-blue);
  box-shadow: 0 0 0 4px rgba(18, 75, 139, .12), 0 10px 22px rgba(3, 37, 100, .08);
}

.live-select-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-select-chevron {
  flex: 0 0 auto;
  color: #52667f;
  transition: transform .25s cubic-bezier(.16, 1, .3, 1);
}

.live-select.open .live-select-chevron {
  transform: rotate(180deg);
}

.live-select-menu {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  min-width: max(100%, 220px);
  padding: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, .99);
  border: 1px solid #d4e0ed;
  border-radius: 14px;
  box-shadow: 0 22px 54px rgba(2, 28, 75, .18);
  transform: translateY(-6px) scale(.985);
  transform-origin: top center;
  transition: opacity .18s ease, transform .24s cubic-bezier(.16, 1, .3, 1), visibility .18s;
}

.live-select.open .live-select-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.live-select-search-wrap {
  position: relative;
  margin-bottom: 8px;
}

.live-select-search-wrap > i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #60758e;
  pointer-events: none;
  transform: translateY(-50%);
}

.live-select-search {
  width: 100%;
  height: 42px;
  padding: 0 12px 0 38px;
  color: #111827;
  background: #f7faff;
  border: 1px solid #d7e2ef;
  border-radius: 9px;
  outline: 0;
}

.live-select-search:focus {
  background: #fff;
  border-color: var(--v3-blue);
  box-shadow: 0 0 0 3px rgba(18, 75, 139, .1);
}

.live-select-options {
  max-height: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.live-select-option {
  display: flex;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #283b53;
  background: transparent;
  border: 0;
  border-radius: 8px;
  line-height: 1.35;
  text-align: left;
  transition: color .18s ease, background-color .18s ease, transform .18s ease;
}

.live-select-option:hover,
.live-select-option:focus-visible {
  color: var(--v3-navy);
  background: var(--v3-surface-blue);
  transform: translateX(2px);
}

.live-select-option.is-selected {
  color: #fff;
  background: linear-gradient(135deg, var(--v3-blue), var(--v3-navy));
}

.live-select-option[hidden] {
  display: none;
}

.live-select-empty {
  padding: 12px 10px;
  color: #64748b;
  font-size: .84rem;
  text-align: center;
}

.sort-control .live-select {
  min-width: 176px;
  flex: 1;
}

.compatible-finder {
  overflow: visible;
}

.compatible-finder::after {
  right: 20px;
  bottom: 14px;
  width: 180px;
  height: 180px;
  border-width: 26px;
}

.compatible-finder .live-select-toggle {
  min-height: 50px;
  border-color: transparent;
}

.was-validated .live-select-native:invalid + .live-select .live-select-toggle {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}

@media (max-width: 767.98px) {
  .review-grid {
    --bs-gutter-x: 16px;
    --bs-gutter-y: 16px;
  }

  .review-grid .testimonial-card {
    min-height: auto;
  }

  .sort-control .live-select {
    min-width: 0;
  }

  .live-select-menu {
    min-width: 100%;
  }

  .compatible-finder::after {
    right: 10px;
    bottom: 10px;
    width: 128px;
    height: 128px;
    border-width: 20px;
  }
}

@media print {
  .live-select {
    display: none !important;
  }

  .live-select-native {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: var(--v4-control-height) !important;
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   V8 HERO RHYTHM + OVERFLOW CONTRACT
   Equal outer breathing, fully outside controls and width-safe live selects.
   -------------------------------------------------------------------------- */
:root {
  --v8-hero-space-y: 40px;
  --v8-hero-side-clearance: 60px;
  --v8-hero-arrow-gap: 14px;
}

/* Link states remain clean; active navigation indicators use borders/pseudo-elements. */
a,
a:hover,
a:focus,
a:focus-visible,
a:active,
.btn-link,
.btn-link:hover,
.btn-link:focus,
.btn-link:focus-visible,
.btn-link:active {
  text-decoration: none !important;
  text-decoration-line: none !important;
}

/* Reserve an equal four-sided air zone around the home carousel. */
.page-home .hero-section {
  padding-top: var(--v8-hero-space-y) !important;
  padding-bottom: var(--v8-hero-space-y) !important;
}

.page-home #heroCarousel {
  margin-right: var(--v8-hero-side-clearance);
  margin-left: var(--v8-hero-side-clearance);
}

/* The following heading starts after the hero's own bottom breathing space. */
.page-home main > .home-category-section {
  padding-top: 0 !important;
}

/* Controls sit completely outside the rounded frame with a visible gap. */
.page-home .carousel-control-prev.hero-carousel-control {
  left: calc((var(--hero-arrow-size) + var(--v8-hero-arrow-gap)) * -1);
}

.page-home .carousel-control-next.hero-carousel-control {
  right: calc((var(--hero-arrow-size) + var(--v8-hero-arrow-gap)) * -1);
}

.page-home .hero-carousel-control:hover .hero-arrow,
.page-home .hero-carousel-control:focus-visible .hero-arrow {
  box-shadow: 0 16px 34px rgba(2, 28, 75, .26);
}

/* Searchable selects never create a horizontal scrollbar or escape a column. */
.live-select,
.live-select-menu,
.live-select-options,
.live-select-option {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.live-select {
  overflow: visible;
}

.live-select-menu {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.live-select-options {
  width: 100%;
  overflow-x: hidden !important;
  overflow-y: auto;
  overscroll-behavior-x: none;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

.live-select-option {
  overflow: hidden;
  overflow-wrap: anywhere;
  white-space: normal;
}

.live-select-option:hover,
.live-select-option:focus-visible {
  transform: none;
}

.compatible-finder .row > [class*="col-"],
.sort-control {
  min-width: 0;
}

@media (max-width: 1199.98px) {
  :root {
    --v8-hero-space-y: 36px;
    --v8-hero-side-clearance: 56px;
    --v8-hero-arrow-gap: 12px;
  }
}

@media (max-width: 767.98px) {
  :root {
    --v8-hero-space-y: 28px;
    --v8-hero-side-clearance: 46px;
    --v8-hero-arrow-gap: 8px;
  }

  .page-home .hero-section .container {
    padding-right: 12px;
    padding-left: 12px;
  }

  .page-home main > .home-category-section {
    padding-bottom: var(--v4-section-y) !important;
  }
}

@media (max-width: 359.98px) {
  :root {
    --v8-hero-space-y: 24px;
    --v8-hero-side-clearance: 38px;
    --v8-hero-arrow-gap: 7px;
  }

  .hero-section {
    --hero-frame-height: 590px;
    --hero-arrow-size: 31px;
  }

  .hero-content {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media print {
  .page-home #heroCarousel {
    margin-right: 0;
    margin-left: 0;
  }
}

/* --------------------------------------------------------------------------
   V9 FIXED HERO COLUMNS
   Stable content/visual regions with one shared frame and exact edge alignment.
   -------------------------------------------------------------------------- */
.page-home .hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 54%) minmax(0, 46%);
  align-items: stretch;
}

.page-home .hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  grid-column: 1;
  width: 100%;
  max-width: none;
  height: 100%;
  min-width: 0;
  padding: 54px clamp(44px, 4.7vw, 68px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.page-home .hero-title {
  width: 100%;
  max-width: 11.5ch;
}

.page-home .hero-slide.light .hero-title {
  max-width: 13ch;
}

.page-home .hero-text {
  max-width: 43ch;
}

.hero-visual-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-column: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(145deg, #185a99 0%, #2478b9 100%);
  border-left: 1px solid rgba(255, 255, 255, .14);
}

.hero-slide.orange .hero-visual-panel,
.hero-slide.light .hero-visual-panel {
  background: #f3f7fb;
  border-left-color: rgba(157, 181, 208, .34);
}

.hero-visual-panel .hero-visual {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  filter: none;
  animation: none !important;
  transform: none;
}

.carousel-item.active .hero-visual-panel .hero-visual {
  animation: v9VisualReveal .72s cubic-bezier(.16, 1, .3, 1) both !important;
}

@keyframes v9VisualReveal {
  from { opacity: .45; transform: scale(.965); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1199.98px) {
  .page-home .hero-slide {
    grid-template-columns: minmax(0, 57%) minmax(0, 43%);
  }

  .page-home .hero-content {
    padding: 46px 44px;
  }

  .page-home .hero-title,
  .page-home .hero-slide.light .hero-title {
    font-size: clamp(2.35rem, 5vw, 3.35rem);
  }
}

@media (max-width: 991.98px) {
  .page-home .hero-slide {
    grid-template-columns: minmax(0, 59%) minmax(0, 41%);
  }

  .page-home .hero-content {
    padding: 38px 34px;
  }

  .page-home .hero-title,
  .page-home .hero-slide.light .hero-title {
    max-width: 12ch;
    font-size: clamp(2.15rem, 5.6vw, 2.75rem);
  }

  .page-home .hero-text {
    margin-bottom: 22px;
    font-size: .98rem;
    line-height: 1.58;
  }
}

@media (max-width: 767.98px) {
  .page-home .hero-slide {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 70%) minmax(0, 30%);
  }

  .page-home .hero-content {
    grid-row: 1;
    width: 100%;
    height: 100%;
    padding: 28px 18px 18px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .page-home .hero-title,
  .page-home .hero-slide.light .hero-title {
    max-width: 11ch;
    font-size: clamp(1.9rem, 8.8vw, 2.35rem);
  }

  .page-home .hero-text {
    max-width: 28ch;
    margin-bottom: 18px;
    font-size: .9rem;
    line-height: 1.5;
  }

  .page-home .hero-actions {
    width: 100%;
    justify-content: center;
  }

  .hero-visual-panel {
    grid-row: 2;
    grid-column: 1;
    border-top: 1px solid rgba(157, 181, 208, .28);
    border-left: 0;
  }

  .hero-visual-panel .hero-visual {
    object-fit: cover;
  }
}

@media (max-width: 359.98px) {
  .page-home .hero-slide {
    grid-template-rows: minmax(0, 76%) minmax(0, 24%);
  }

  .page-home .hero-content {
    padding: 24px 14px 14px;
  }

  .page-home .hero-title,
  .page-home .hero-slide.light .hero-title {
    font-size: 1.82rem;
  }

  .page-home .hero-text {
    font-size: .84rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-item.active .hero-visual-panel .hero-visual {
    animation: none !important;
  }
}

@media print {
  .page-home .hero-slide {
    display: block;
  }

  .hero-visual-panel {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   V10 HERO CAPTION + OUTSIDE INDICATOR CONTRACT
   Safe lower artwork labels and indicators fully below the shared frame.
   -------------------------------------------------------------------------- */
.page-home #heroCarousel .carousel-indicators {
  position: absolute;
  right: auto;
  bottom: -30px;
  left: 50%;
  display: flex;
  width: auto;
  height: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  gap: 7px;
  transform: translateX(-50%);
}

.page-home #heroCarousel .carousel-indicators [data-bs-target] {
  position: relative;
  width: 28px;
  height: 20px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  opacity: 1;
  background: transparent;
  border: 0;
  border-radius: 99px;
  transition: width .3s cubic-bezier(.16, 1, .3, 1);
}

.page-home #heroCarousel .carousel-indicators [data-bs-target]::after {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 4px;
  content: "";
  background: #9ab0c9;
  border-radius: 99px;
  box-shadow: 0 2px 8px rgba(3, 37, 100, .12);
  transform: translateY(-50%);
  transition: background-color .25s ease, box-shadow .25s ease, transform .25s cubic-bezier(.16, 1, .3, 1);
}

.page-home #heroCarousel .carousel-indicators [data-bs-target]:hover::after,
.page-home #heroCarousel .carousel-indicators [data-bs-target]:focus-visible::after {
  background: var(--v3-blue);
  box-shadow: 0 4px 12px rgba(3, 37, 100, .22);
  transform: translateY(-50%) scaleY(1.35);
}

.page-home #heroCarousel .carousel-indicators [data-bs-target].active {
  width: 42px;
}

.page-home #heroCarousel .carousel-indicators [data-bs-target].active::after {
  background: var(--v3-orange-dark);
  box-shadow: 0 4px 13px rgba(184, 78, 0, .24);
}

@media (min-width: 768px) {
  .page-home .hero-slide.orange .hero-visual-panel,
  .page-home .hero-slide.light .hero-visual-panel {
    grid-template-rows: minmax(0, 1fr) 28px;
  }

  .page-home .hero-slide.orange .hero-visual,
  .page-home .hero-slide.light .hero-visual {
    grid-row: 1;
    height: 100%;
    align-self: stretch;
  }
}

@media (max-width: 767.98px) {
  .page-home .hero-visual-panel {
    grid-template-rows: minmax(0, 1fr);
  }

  .page-home .hero-slide.orange .hero-visual,
  .page-home .hero-slide.light .hero-visual {
    min-height: 0;
    padding-bottom: 8px;
    object-fit: contain;
  }

  .page-home #heroCarousel .carousel-indicators {
    bottom: -24px;
    height: 16px;
    gap: 5px;
  }

  .page-home #heroCarousel .carousel-indicators [data-bs-target] {
    width: 22px;
    height: 16px;
  }

  .page-home #heroCarousel .carousel-indicators [data-bs-target].active {
    width: 34px;
  }
}

@media (max-width: 359.98px) {
  .page-home #heroCarousel .carousel-indicators {
    bottom: -21px;
    height: 14px;
  }

  .page-home #heroCarousel .carousel-indicators [data-bs-target] {
    height: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home #heroCarousel .carousel-indicators [data-bs-target],
  .page-home #heroCarousel .carousel-indicators [data-bs-target]::after {
    transition: none !important;
  }
}

@media print {
  .page-home #heroCarousel .carousel-indicators {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   V11 SINGLE-LAYER HERO MOTION + SEAMLESS VISUAL EDGE
   One transform transition prevents cross-fade ghosting and nested image blink.
   -------------------------------------------------------------------------- */
.page-home #heroCarousel .carousel-item {
  backface-visibility: hidden;
  transition: transform .76s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}

.page-home #heroCarousel .hero-slide {
  backface-visibility: hidden;
  transform: translateZ(0);
}

.page-home #heroCarousel .hero-visual-panel {
  width: calc(100% + 2px);
  margin-right: -2px;
  background-clip: padding-box;
  border-left: 0;
  border-radius: 0 24px 24px 0;
  backface-visibility: hidden;
  transform: translateZ(0);
}

.page-home #heroCarousel .hero-visual-panel .hero-visual,
.page-home #heroCarousel .carousel-item.active .hero-visual-panel .hero-visual {
  opacity: 1 !important;
  animation: none !important;
  transform: none !important;
}

@media (max-width: 767.98px) {
  .page-home #heroCarousel .hero-visual-panel {
    width: 100%;
    height: calc(100% + 2px);
    margin-right: 0;
    margin-bottom: -2px;
    border-top: 0;
    border-radius: 0 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home #heroCarousel .carousel-item {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   V12 RESPONSIVE PNG BRAND ASSETS
   Supplied transparent artwork always fits inside its frame without cropping.
   -------------------------------------------------------------------------- */
.brand-logo {
  position: relative;
  display: flex;
  flex: 0 0 142px;
  align-items: center;
  justify-content: flex-start;
  width: 142px;
  height: 78px;
  padding: 4px 0;
  overflow: visible;
  line-height: 0;
  transition: height .34s cubic-bezier(.16, 1, .3, 1);
}

.brand-logo img,
.footer-logo-wrap img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  transform: none;
}

.brand-logo img {
  object-position: left center;
}

.site-header.is-scrolled .brand-logo {
  height: 62px;
}

.footer-logo-wrap {
  position: relative;
  display: grid;
  width: 270px;
  max-width: 100%;
  height: 168px;
  padding: 0;
  overflow: hidden;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, .18);
}

.footer-logo-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  object-position: center;
}

@media (max-width: 1199.98px) {
  .brand-logo {
    flex-basis: 134px;
    width: 134px;
    height: 74px;
  }
}

@media (max-width: 991.98px) {
  .brand-logo {
    flex-basis: 118px;
    width: 118px;
    height: 64px;
    padding-block: 2px;
  }

  .site-header.is-scrolled .brand-logo {
    height: 54px;
  }

  .footer-logo-wrap {
    width: 250px;
    height: 164px;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    flex-basis: 106px;
    width: 106px;
    height: 58px;
  }

  .footer-logo-wrap {
    width: 240px;
    height: 156px;
  }
}

@media (max-width: 359.98px) {
  .brand-logo {
    flex-basis: 92px;
    width: 92px;
    height: 52px;
  }
}
