:root {
  --ink: #17254d;
  --muted: #667085;
  --line: #d8dee7;
  --surface: #f7f8fb;
  --surface-strong: #eef3f6;
  --accent: #24498f;
  --accent-dark: #183972;
  --accent-soft: #e4ecfb;
  --warning-soft: #fff4d8;
  --danger-soft: #ffe7e7;
  --shadow-sm: 0 10px 30px rgba(15, 23, 42, .06);
  --shadow-md: 0 18px 50px rgba(15, 23, 42, .10);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, .14);
  --font-sans: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  /* Motion language — one calm, consistent system across the storefront */
  --motion-fast: 140ms;
  --motion-base: 220ms;
  --motion-slow: 420ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

body {
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 500;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fb 48%, #ffffff 100%);
  min-height: 100vh;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
}

/* Montserrat heading tuning — subtle negative tracking for geometric clarity */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  letter-spacing: -0.012em;
}

/* Override Bootstrap's default font-weight for display headings
   so they feel consistent with Montserrat's character. */
.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  font-weight: 700;
}

.site-header {
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.brand-logo {
  border-radius: 6px;
  display: block;
  height: 72px;
  max-width: min(62vw, 440px);
  object-fit: contain;
  object-position: left center;
  width: auto;
}

.brand-mark {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(36, 73, 143, .18);
  border-radius: 8px;
  color: var(--accent-dark);
  display: inline-flex;
  height: 48px;
  justify-content: center;
  width: 48px;
}

.footer-logo {
  border-radius: 6px;
  display: block;
  max-height: 58px;
  max-width: min(100%, 360px);
  object-fit: contain;
  object-position: left center;
}

.navbar-brand {
  color: var(--ink);
  flex-shrink: 0;
  margin-right: clamp(.5rem, 1.8vw, 1.4rem);
  padding-block: 0;
}

.nav-link {
  align-items: center;
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 700;
  min-height: 42px;
  padding: .55rem .9rem;
  transition: background-color .16s ease, color .16s ease, transform .16s ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  background: rgba(36, 73, 143, .08);
  color: var(--accent-dark);
}

.site-navbar .container {
  align-items: center;
  gap: 1rem;
}

.navbar-toggler {
  border: 1px solid rgba(23, 37, 77, .12);
  border-radius: 14px;
  padding: .55rem .75rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 4px rgba(36, 73, 143, .12);
}

.navbar-collapse {
  align-items: center;
  position: relative;
}

.nav-action-list {
  gap: .55rem;
}

.nav-utility-link,
.nav-auth-link,
.nav-primary-link,
.nav-account-submit {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 42px;
  padding: .58rem 1rem;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.nav-utility-link,
.nav-auth-link,
.nav-account-submit {
  background: rgba(23, 37, 77, .045);
  border: 1px solid transparent;
  color: var(--ink);
}

.nav-utility-link:hover,
.nav-utility-link:focus-visible,
.nav-auth-link:hover,
.nav-auth-link:focus-visible,
.nav-account-submit:hover,
.nav-account-submit:focus-visible {
  background: #fff;
  border-color: rgba(23, 37, 77, .10);
  box-shadow: var(--shadow-sm);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.nav-icon-link {
  gap: .45rem;
}

.nav-action-icon {
  font-size: 1rem;
  line-height: 1;
}

.nav-action-label {
  white-space: nowrap;
}

.nav-primary-link {
  background: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: 0 10px 24px rgba(36, 73, 143, .18);
  color: #fff;
}

.nav-primary-link:hover,
.nav-primary-link:focus-visible {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.nav-account-form {
  display: flex;
}

.nav-account-submit {
  font-family: inherit;
}

.navbar-search-shell {
  flex: 0 1 0;
  justify-content: center;
  min-width: 0;
  max-width: 0;
  opacity: 0;
  overflow: clip;
  pointer-events: none;
  transform: translateY(-8px);
  transition: max-width .24s ease, opacity .22s ease, transform .22s ease;
}

.product-list-page.nav-search-active .navbar-search-shell {
  flex: 1 1 auto;
  max-width: 640px;
  opacity: 1;
  overflow: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.navbar-product-search {
  align-items: center;
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(23, 37, 77, .12);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: .5rem;
  max-width: 600px;
  padding: .35rem .4rem .35rem .85rem;
  position: relative;
  width: min(100%, 600px);
}

.navbar-product-search .form-control,
.search-input-shell .form-control {
  background: transparent;
}

.navbar-search-icon,
.search-input-icon {
  color: var(--accent-dark);
  display: inline-flex;
  font-size: 1rem;
}

.btn-accent {
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--accent-dark);
  --bs-btn-hover-border-color: var(--accent-dark);
  --bs-btn-hover-color: #fff;
}

.text-accent {
  color: var(--accent);
}

.cart-pill {
  gap: .35rem;
  min-height: 42px;
  padding-inline: 1rem;
}

.nav-count-badge {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  justify-content: center;
  min-width: 1.6rem;
  padding: .4rem .46rem;
}

.page-shell {
  min-height: 72vh;
  padding-top: 2rem;
}

.messages {
  margin-bottom: 1rem;
}

.kicker {
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-header {
  align-items: end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.brand-hero {
  background-image: linear-gradient(100deg, rgba(7, 14, 28, .82) 0%, rgba(7, 14, 28, .58) 38%, rgba(7, 14, 28, .12) 70%, rgba(7, 14, 28, 0) 100%), var(--hero-image);
  background-position: center 38%;
  background-size: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  min-height: clamp(460px, 52vw, 600px);
  overflow: visible;
  padding: 0 clamp(1.5rem, 5vw, 3.5rem);
  position: relative;
}

.brand-hero-inner {
  align-items: center;
  display: flex;
  height: 100%;
  min-height: inherit;
  position: relative;
  z-index: 2;
}

.brand-hero-content {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 720px;
  width: 100%;
}

.hero-eyebrow {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .78rem;
  font-weight: 700;
  gap: .45rem;
  letter-spacing: .06em;
  padding: .42rem .85rem;
  text-transform: uppercase;
}

.hero-headline {
  color: #fff;
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.05;
  margin: 0;
}

.hero-lead {
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
}

.hero-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  display: flex;
  gap: .5rem;
  margin-top: .35rem;
  max-width: 720px;
  padding: .3rem .3rem .3rem .95rem;
  position: relative;
  transition: box-shadow .18s ease, transform .18s ease;
  width: 100%;
}

.hero-search:focus-within {
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .35), 0 18px 40px rgba(0, 0, 0, .22);
}

.hero-search.is-expanded {
  box-shadow: 0 22px 46px rgba(0, 0, 0, .24);
}

.hero-search-icon {
  color: var(--accent);
  display: inline-flex;
  font-size: 1.05rem;
}

.hero-search-input {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1 1 auto;
  font-family: inherit;
  font-size: 1rem;
  min-height: 46px;
  min-width: 0;
  outline: none;
  padding: 0 .15rem;
}

.hero-search-input::placeholder {
  color: rgba(102, 112, 133, .85);
}

.hero-search-button {
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 700;
  min-height: 46px;
  padding: 0 1.45rem;
  transition: background-color .16s ease, transform .16s ease;
}

.hero-search-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .95rem;
  transition: opacity .18s ease;
}

.hero-link {
  align-items: center;
  color: rgba(255, 255, 255, .92);
  display: inline-flex;
  font-weight: 700;
  gap: .25rem;
  text-decoration: none;
  transition: color .16s ease;
}

.hero-link:hover {
  color: #fff;
  text-decoration: underline;
}

.hero-call-link {
  align-items: center;
  background: rgba(255, 255, 255, .15);
  border: 1.5px solid rgba(255, 255, 255, .55);
  border-radius: 2rem;
  gap: .5rem;
  justify-content: center;
  padding: .55rem 1.25rem;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease;
}

.hero-call-link:hover,
.hero-call-link:focus-visible {
  background: rgba(255, 255, 255, .25);
  border-color: #fff;
}

.hero-call-link .bi {
  font-size: 1.1rem;
}

.hero-meta {
  color: rgba(255, 255, 255, .8);
  display: flex;
  flex-wrap: wrap;
  font-size: .88rem;
  font-weight: 600;
  gap: .35rem 1.5rem;
  list-style: none;
  margin: .5rem 0 0;
  padding: 0;
  transition: opacity .18s ease;
}

.hero-meta li {
  align-items: center;
  display: inline-flex;
  gap: .4rem;
}

.hero-meta i {
  color: rgba(255, 255, 255, .65);
}

.search-suggestions {
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(23, 37, 77, .12);
  border-radius: 18px;
  color: var(--ink);
  box-shadow: 0 24px 50px rgba(9, 19, 41, .24);
  left: 0;
  margin-top: .55rem;
  max-height: 332px;
  overflow: auto;
  padding: .3rem;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 30;
}

.search-suggestions[hidden] {
  display: none !important;
}

.search-suggestion {
  align-items: center;
  border-radius: 14px;
  color: inherit;
  display: flex;
  gap: .85rem;
  justify-content: space-between;
  padding: .7rem .8rem;
  text-decoration: none;
  transition: background-color .16s ease, transform .16s ease;
}

.search-suggestion:hover,
.search-suggestion.is-active,
.search-suggestion:focus-visible {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.search-suggestion:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.search-suggestion-copy {
  display: grid;
  gap: .15rem;
  min-width: 0;
}

.search-suggestion-label {
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.3;
}

.search-suggestion-meta {
  color: var(--muted);
  font-size: .79rem;
  line-height: 1.35;
}

.search-suggestion-type {
  background: #fff;
  border: 1px solid rgba(23, 37, 77, .10);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .03em;
  padding: .25rem .5rem;
  text-transform: uppercase;
}

.search-suggestion-empty {
  color: var(--muted);
  padding: .95rem;
  text-align: center;
}

.search-suggestions-navbar {
  border-radius: 18px;
  left: .25rem;
  margin-top: .5rem;
  right: .25rem;
}

.catalog-controls {
  position: relative;
}

.hero-logo {
  background: rgba(255, 255, 255, .96);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  display: block;
  margin-bottom: 1.25rem;
  max-height: 86px;
  max-width: min(100%, 440px);
  object-fit: contain;
  padding: .65rem .8rem;
}

.text-white-75 {
  color: rgba(255, 255, 255, .78);
}

.catalog-controls-label {
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.navbar-product-search:focus-within {
  border-color: rgba(36, 73, 143, .35);
  box-shadow: 0 0 0 4px rgba(36, 73, 143, .10), var(--shadow-sm);
}

.navbar-product-search .form-control {
  color: var(--ink);
  flex: 1 1 auto;
  font-size: .98rem;
  min-width: 0;
}

.navbar-product-search .btn {
  font-weight: 700;
  min-width: 132px;
}

.hero-stat {
  background: rgba(255, 255, 255, .78);
  border: 1px solid rgba(23, 37, 77, .10);
  border-radius: 8px;
  padding: .8rem .95rem;
}

.filter-panel,
.purchase-panel,
.summary-panel,
.auth-panel,
.order-card,
.checkout-panel {
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.filter-panel,
.checkout-panel,
.auth-panel,
.summary-panel,
.purchase-panel {
  padding: 1.25rem;
}

.location-map-card {
  background:
    linear-gradient(160deg, rgba(36, 73, 143, .08), rgba(255, 255, 255, .96) 45%),
    rgba(255, 255, 255, .96);
  border: 1px solid rgba(23, 37, 77, .10);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  padding: 1rem;
}

.location-map-card-compact {
  padding: .9rem;
}

.checkout-location-map {
  margin-top: .35rem;
}

.location-map-frame {
  background:
    linear-gradient(135deg, rgba(36, 73, 143, .12), rgba(255, 255, 255, .65)),
    repeating-linear-gradient(45deg, #f3f6fa 0 14px, #ecf1f6 14px 28px);
  border: 1px solid rgba(23, 37, 77, .10);
  border-radius: 12px;
  overflow: hidden;
}

.location-map-frame iframe {
  aspect-ratio: 16 / 10;
  border: 0;
  display: block;
  width: 100%;
}

.location-map-placeholder {
  align-items: center;
  aspect-ratio: 16 / 10;
  display: grid;
  min-height: 320px;
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  width: 100%;
}

.location-map-placeholder-body {
  display: grid;
  gap: .85rem;
  justify-items: center;
  max-width: 24rem;
  width: 100%;
}

/* Find-us section on product list page */
.find-us-section {
  padding-bottom: 2.5rem;
}

.find-us-map {
  height: 100%;
}

.find-us-map .location-map-placeholder {
  height: 100%;
}

.find-us-map iframe {
  height: 100%;
  aspect-ratio: unset;
}

/* ── Responsive Find Us carousel ── */
.find-us-responsive .carousel-item {
  min-height: 320px;
}

.find-us-responsive .location-map-frame {
  height: 100%;
  min-height: 320px;
}

/* Desktop: show all slides as a 5-4-3 flex row */
@media (min-width: 992px) {
  .find-us-responsive #findUsCarousel > .carousel-inner {
    display: flex;
    gap: 1.5rem;
  }

  .find-us-responsive #findUsCarousel > .carousel-inner > .carousel-item {
    display: block;
    margin-right: 0;
    flex: 0 0 auto;
  }

  .find-us-responsive #findUsCarousel > .carousel-inner > .carousel-item:nth-child(1) {
    width: calc(41.666% - 1rem);
  }

  .find-us-responsive #findUsCarousel > .carousel-inner > .carousel-item:nth-child(2) {
    width: calc(33.333% - 1rem);
  }

  .find-us-responsive #findUsCarousel > .carousel-inner > .carousel-item:nth-child(3) {
    width: 25%;
  }

  .find-us-responsive #findUsCarousel > .carousel-inner > .carousel-item.active {
    /* Ensure all are visible on desktop */
  }

  .find-us-responsive #findUsCarousel > .carousel-control-prev,
  .find-us-responsive #findUsCarousel > .carousel-control-next,
  .find-us-responsive #findUsCarousel > .carousel-indicators {
    display: none;
  }
}

/* ── Shop photo carousel ── */
.shop-photo-carousel {
  border-radius: 12px;
  overflow: hidden;
  height: 100%;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(36, 73, 143, .12), rgba(255, 255, 255, .65)),
    repeating-linear-gradient(45deg, #f3f6fa 0 14px, #ecf1f6 14px 28px);
  border: 1px solid rgba(23, 37, 77, .10);
}

.shop-photo-carousel .carousel-inner,
.shop-photo-carousel .carousel-item {
  height: 100%;
}

.shop-photo-carousel img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.shop-photo-placeholder {
  border-radius: 12px;
  min-height: 320px;
  background:
    linear-gradient(135deg, rgba(36, 73, 143, .12), rgba(255, 255, 255, .65)),
    repeating-linear-gradient(45deg, #f3f6fa 0 14px, #ecf1f6 14px 28px);
  border: 1px solid rgba(23, 37, 77, .10);
}

.product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.product-card:hover {
  border-color: rgba(36, 73, 143, .30);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-image,
.detail-image,
.cart-thumb {
  background:
    linear-gradient(135deg, rgba(36, 73, 143, .12), rgba(255, 255, 255, .58)),
    repeating-linear-gradient(45deg, #f2f5f7 0 10px, #e8eff0 10px 20px);
  color: var(--accent-dark);
  display: grid;
  font-weight: 800;
  place-items: center;
  text-align: center;
  text-decoration: none;
}

.product-image,
.detail-image {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.product-image img,
.detail-image img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cart-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-detail-image {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  display: grid;
  max-width: 100%;
  overflow: hidden;
  place-items: center;
  width: 100%;
}

.product-detail-image img {
  display: block;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.product-detail-layout > [class*='col-'] {
  min-width: 0;
}

.product-detail-image--placeholder {
  color: var(--accent-dark);
  font-weight: 800;
  text-align: center;
}

.product-media-shell {
  display: grid;
  gap: .8rem;
}

.product-media-stage {
  border-radius: 12px;
  overflow: hidden;
}

.product-media-frame video {
  display: block;
  object-fit: cover;
}

.product-audio-stage {
  align-items: center;
  display: grid;
  gap: .8rem;
  justify-items: center;
  padding: clamp(1.25rem, 4vw, 2rem);
  text-align: center;
  width: 100%;
}

.product-media-pill {
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(36, 73, 143, .16);
  border-radius: 999px;
  color: var(--accent-dark);
  display: inline-flex;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .04em;
  min-height: 32px;
  padding: .4rem .7rem;
  text-transform: uppercase;
}

.product-media-thumb-grid {
  display: grid;
  gap: .65rem;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.product-media-thumb {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-height: 84px;
  overflow: hidden;
  padding: 0;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.product-media-thumb.active,
.product-media-thumb:hover,
.product-media-thumb:focus-visible {
  border-color: rgba(36, 73, 143, .30);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.product-media-thumb img {
  display: block;
  height: 84px;
  object-fit: cover;
  width: 100%;
}

.product-media-thumb-icon {
  align-items: center;
  color: var(--accent-dark);
  display: grid;
  gap: .3rem;
  height: 84px;
  justify-items: center;
  width: 100%;
}

.product-media-thumb-icon i {
  font-size: 1.15rem;
}

.product-media-thumb-icon small {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}

.product-body a:not(.btn),
.order-card a:not(.btn) {
  color: inherit;
  text-decoration: none;
}

.product-body a:not(.btn):hover,
.order-card a:not(.btn):hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

.product-body a:not(.btn):focus-visible,
.order-card a:not(.btn):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.product-card-actions {
  display: flex;
  gap: .5rem;
}

.product-card-actions form {
  display: contents;
}

.product-card-actions .btn {
  align-items: center;
  display: inline-flex;
  font-size: 1rem;
  height: 2.25rem;
  justify-content: center;
  padding: 0;
  width: 2.25rem;
}

.stock-badge,
.status-badge {
  border-radius: 999px;
  font-weight: 750;
  padding: .42rem .66rem;
  white-space: nowrap;
}

.stock-in {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.stock-low {
  background: var(--warning-soft);
  color: #8a5a00;
}

.stock-out,
.status-cancelled {
  background: var(--danger-soft);
  color: #9f1f1f;
}

.status-pending {
  background: var(--warning-soft);
  color: #8a5a00;
}

.status-ready {
  background: #e1effe;
  color: #174ea6;
}

.status-completed {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   Product Detail — Price & Option Selector (redesigned)
   -------------------------------------------------------------------------- */
.product-price-block {
  align-items: baseline;
  display: flex;
  gap: .65rem;
}

.product-price-amount {
  color: var(--ink);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.option-selector-list {
  display: grid;
  gap: .55rem;
}

.option-selector-row {
  align-items: center;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  display: grid;
  gap: .75rem;
  grid-template-columns: auto 1fr auto auto;
  padding: .8rem .9rem;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.option-selector-row:hover {
  border-color: var(--accent);
  background: rgba(15, 118, 110, .04);
}

.option-selector-row:has(input:checked) {
  border-color: var(--accent);
  background: rgba(15, 118, 110, .08);
  box-shadow: 0 0 0 1.5px var(--accent);
}

.option-selector-row.is-disabled {
  cursor: not-allowed;
  opacity: .5;
}

.option-selector-row.is-disabled:hover {
  border-color: var(--line);
  background: var(--surface);
  box-shadow: none;
}

.option-selector-label {
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-selector-compare {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: line-through;
  white-space: nowrap;
}

.option-selector-price {
  font-size: .95rem;
  font-weight: 750;
  white-space: nowrap;
}

.option-selector-stock {
  font-size: .8rem;
  font-weight: 600;
  justify-self: end;
  white-space: nowrap;
}

@media (max-width: 575.98px) {
  .product-price-amount {
    font-size: 1.6rem;
  }

  .option-selector-row {
    grid-template-columns: auto 1fr auto;
    gap: .45rem;
    padding: .65rem .7rem;
  }

  .option-selector-label {
    font-size: .88rem;
  }

  .option-selector-price {
    font-size: .88rem;
    grid-column: 2;
  }

  .option-selector-stock {
    font-size: .75rem;
    grid-column: 2 / -1;
    justify-self: start;
  }
}

/* ---- Legacy variant styles (kept for backward compat) ---- */
.variant-list {
  display: grid;
  gap: .65rem;
}

.variant-fieldset {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.variant-selection-summary {
  align-items: center;
  background: linear-gradient(180deg, rgba(15, 118, 110, .08), rgba(15, 118, 110, .03));
  border: 1px solid rgba(15, 118, 110, .16);
  border-radius: 12px;
  display: grid;
  gap: .85rem;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: .9rem;
  padding: .85rem .95rem;
}

.variant-selection-copy {
  display: grid;
  gap: .2rem;
  min-width: 0;
}

.variant-selection-label {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.variant-selection-name {
  min-width: 0;
}

.variant-selection-meta {
  align-items: end;
  display: grid;
  gap: .45rem;
  justify-items: end;
}

.variant-selection-price {
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.variant-option {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: .75rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: .7rem .8rem;
}

.variant-option-line {
  align-items: center;
  display: grid;
  gap: .75rem;
  grid-template-columns: minmax(0, 1fr) auto auto;
  min-width: 0;
}

.variant-option-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.variant-option-price-group {
  align-items: baseline;
  display: inline-flex;
  gap: .45rem;
  justify-self: end;
  white-space: nowrap;
}

.variant-option-compare {
  color: var(--muted);
  font-size: .88rem;
  text-decoration: line-through;
}

.variant-option-price {
  font-weight: 750;
  white-space: nowrap;
}

.variant-option-status {
  justify-self: end;
}

@media (max-width: 575.98px) {
  .variant-selection-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .variant-selection-meta {
    justify-items: start;
  }

  .variant-option-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .variant-option-name {
    white-space: normal;
  }

  .variant-option-status {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

.quantity-col {
  width: 220px;
}

.qty-stepper {
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  overflow: hidden;
  width: fit-content;
}

.qty-stepper-btn {
  background: var(--surface);
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 700;
  min-width: 48px;
  padding: .65rem 1rem;
  transition: background .15s ease;
}

.qty-stepper-btn:hover {
  background: var(--surface-strong);
}

.qty-stepper-input {
  align-items: center;
  border: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  display: inline-flex;
  font-size: 1rem;
  font-weight: 700;
  justify-content: center;
  min-width: 56px;
  padding: .65rem .75rem;
  text-align: center;
  -moz-appearance: textfield;
}

.qty-stepper-input::-webkit-inner-spin-button,
.qty-stepper-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.qty-stepper--updating {
  opacity: .55;
  pointer-events: none;
  transition: opacity .15s ease;
}

.qty-stepper-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.qty-stepper-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: .45;
}

.cart-thumb {
  border-radius: 8px;
  flex: 0 0 72px;
  height: 72px;
  width: 72px;
}

.summary-panel.sticky-summary {
  top: 96px;
}

.stepper {
  counter-reset: step;
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 1.25rem;
}

.stepper span {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: flex;
  font-size: .9rem;
  font-weight: 700;
  gap: .5rem;
  padding: .65rem .75rem;
}

.stepper span::before {
  align-items: center;
  background: var(--surface-strong);
  border-radius: 999px;
  color: var(--ink);
  content: counter(step);
  counter-increment: step;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: .78rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.stepper .active {
  border-color: rgba(15, 118, 110, .35);
  color: var(--accent-dark);
}

.stepper .active::before {
  background: var(--accent);
  color: #fff;
}

.auth-panel {
  max-width: 500px;
}

.checkout-form label,
.auth-panel label {
  display: block;
  font-weight: 700;
  margin-bottom: .35rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea,
.auth-panel input {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  padding: .72rem .85rem;
  width: 100%;
}

.checkout-form p,
.auth-panel p {
  margin-bottom: 1rem;
}

.helptext,
.auth-panel ul {
  color: var(--muted);
  display: block;
  font-size: .82rem;
  margin-top: .35rem;
}

.errorlist {
  color: #b42318;
  font-size: .9rem;
  list-style: none;
  margin: .25rem 0 .5rem;
  padding-left: 0;
}

.checkout-field,
.auth-field {
  display: grid;
  gap: .35rem;
}

.checkout-field.has-error label,
.auth-field.has-error label {
  color: #8f1d18;
}

.checkout-form .form-control.is-invalid,
.checkout-form .form-select.is-invalid,
.auth-panel .form-control.is-invalid,
.auth-panel .form-select.is-invalid {
  border-color: #b42318;
  box-shadow: 0 0 0 .2rem rgba(180, 35, 24, .12);
}

.checkout-error,
.auth-error {
  background: rgba(180, 35, 24, .08);
  border: 1px solid rgba(180, 35, 24, .18);
  border-radius: 8px;
  margin: 0;
  padding: .55rem .75rem;
}

/* Payment method selector cards */
.payment-method-selector {
  display: grid;
  gap: .75rem;
}

.payment-method-card {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  border: 2px solid #d8dee7;
  border-radius: 12px;
  padding: 1rem 1.15rem;
  transition: border-color .2s, background-color .2s;
  margin: 0;
}

.payment-method-card:hover {
  border-color: #a5b1c2;
  background-color: #f7f8fb;
}

.payment-method-card:has(input:checked),
.payment-method-card.active {
  border-color: #183972;
  background-color: #eef3f9;
}

.payment-method-card input[type="radio"] {
  margin-top: .15rem;
  accent-color: #183972;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.payment-method-content {
  display: grid;
  gap: .2rem;
}

.payment-method-label {
  font-weight: 600;
  color: #17254d;
  font-size: .95rem;
}

.payment-method-desc {
  font-size: .82rem;
  color: #667085;
  line-height: 1.5;
}

/* Payment redirect card */
.payment-redirect-card {
  border: 2px solid #d8dee7;
  border-radius: 16px;
  background: #fff;
}

/* Paid status badge */
.status-badge.status-paid {
  background: #d1f7e5;
  color: #0b6e4f;
  font-size: .82rem;
  font-weight: 600;
  padding: .25rem .65rem;
  border-radius: 6px;
}

.order-timeline {
  display: grid;
  gap: .5rem;
  grid-template-columns: repeat(3, 1fr);
}

.order-timeline span {
  background: var(--surface);
  border-radius: 8px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
  padding: .65rem;
  text-align: center;
}

.order-timeline .active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.empty-state {
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  padding: clamp(2rem, 5vw, 4rem);
  text-align: center;
}

/* Infinite scroll sentinel */
.product-scroll-sentinel {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 1rem 0;
  color: var(--muted);
  font-size: .9rem;
}

.site-footer {
  background: #fff;
}

.footer-heading {
  font-weight: 800;
  margin-bottom: .75rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.brand-carousel-section {
  position: relative;
}

.brand-carousel-header,
.brand-carousel {
  position: relative;
  z-index: 1;
}

.brand-carousel {
  padding-inline: .15rem;
}

.brand-carousel-header {
  margin-bottom: 1rem;
}

.brand-carousel-lead {
  color: var(--muted);
  line-height: 1.65;
  max-width: 720px;
}

.brand-carousel-meta {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.brand-carousel-meta-pill {
  align-items: center;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(36, 73, 143, .12);
  border-radius: 999px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .05);
  color: var(--accent-dark);
  display: inline-flex;
  font-size: .78rem;
  font-weight: 800;
  gap: .45rem;
  min-height: 36px;
  padding: .45rem .78rem;
}

.brand-carousel-slide-grid {
  display: grid;
  gap: .8rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: .1rem .05rem;
}

.brand-carousel-slide-grid-secondary {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.brand-carousel .carousel-inner {
  perspective: 1400px;
}

.brand-carousel .carousel-item {
  position: relative;
}

.brand-mini-card {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(36, 73, 143, .12);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  padding: .8rem .95rem;
  position: relative;
  text-align: center;
  transform-origin: center bottom;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.brand-mini-card::before {
  display: none;
}

.brand-mini-card::after {
  display: none;
}

.brand-mini-card-automotive::before {
  background: linear-gradient(135deg, var(--brand-tint), rgba(255, 255, 255, 0));
}

.brand-mini-card-home::before {
  background: linear-gradient(135deg, var(--brand-tint), rgba(255, 255, 255, 0));
}

.brand-mini-card:hover {
  border-color: rgba(36, 73, 143, .28);
  box-shadow: 0 18px 32px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}

.brand-mini-card:hover::before {
  display: none;
}

.brand-carousel .carousel-item.active .brand-mini-card {
  animation: palette-card-rise .72s cubic-bezier(.22, 1, .36, 1) both;
}

.brand-carousel .carousel-item.active .brand-mini-card:nth-child(2) {
  animation-delay: .08s;
}

.brand-carousel .carousel-item.active .brand-mini-card:nth-child(3) {
  animation-delay: .16s;
}

.brand-carousel .carousel-item.active .brand-mini-card:nth-child(4) {
  animation-delay: .24s;
}

.brand-carousel .carousel-item.active .brand-mini-card::after {
  animation: palette-strip-sweep 1.25s cubic-bezier(.16, 1, .3, 1) both;
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .86) 48%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(90deg, #82badf 0 18%, #9fd8b7 18% 36%, #f3dd77 36% 54%, #f1b26b 54% 72%, #e08b8a 72% 88%, #c97a96 88% 100%);
  background-size: 210% 100%, 100% 100%;
}

.brand-carousel .carousel-item.active .brand-mini-name {
  animation: palette-name-settle .68s cubic-bezier(.22, 1, .36, 1) both;
}

.brand-mini-card > * {
  position: relative;
  z-index: 1;
}

.brand-logo-tile {
  --brand-logo-scale: 1;
  background: #fff;
  border: 1px solid rgba(36, 73, 143, .12);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, .08);
  min-height: 92px;
  overflow: hidden;
  padding: .56rem .68rem;
}

.brand-logo-tile:hover {
  background: #fff;
  border-color: rgba(36, 73, 143, .24);
  box-shadow: 0 18px 32px rgba(15, 23, 42, .12);
  transform: translateY(-1px);
}

.brand-logo-image {
  display: block;
  height: auto;
  margin-inline: auto;
  max-height: 84px;
  max-width: 100%;
  object-fit: contain;
  transform: scale(var(--brand-logo-scale));
  transform-origin: center center;
  width: 100%;
}

.brand-logo-image-tall {
  max-height: 90px;
}

.brand-logo-image-axalta {
  --brand-logo-scale: 1.9;
}

.brand-logo-image-crc {
  --brand-logo-scale: 1.4;
}

.brand-logo-image-evacut {
  --brand-logo-scale: 1.1;
}

.brand-logo-image-resene {
  --brand-logo-scale: 1.15;
}

.brand-logo-image-saint-gobain {
  --brand-logo-scale: 1.1;
}

.brand-logo-image-ppg {
  --brand-logo-scale: 1.1;
}

.brand-logo-image-canda {
  --brand-logo-scale: 1.1;
}

.brand-mini-card-featured {
  background: linear-gradient(145deg, rgba(36, 73, 143, .95), rgba(24, 57, 114, .98));
  border-color: rgba(24, 57, 114, .55);
  color: #fff;
}

.brand-mini-card-featured::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));
}

.brand-mini-card-featured-soft {
  background: linear-gradient(145deg, #e9f3ff, #ffffff);
}

.brand-mini-name {
  font-size: clamp(.95rem, 1.3vw, 1.08rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.05;
  margin: 0;
  color: var(--brand-accent-color);
}

/* --------------------------------------------------------------------------
   About Page — Hero
   -------------------------------------------------------------------------- */
.about-hero {
  background-image: linear-gradient(100deg, rgba(7, 14, 28, .72) 0%, rgba(7, 14, 28, .48) 38%, rgba(7, 14, 28, .08) 70%, rgba(7, 14, 28, 0) 100%), var(--about-hero-image);
  background-position: center 40%;
  background-size: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  min-height: clamp(340px, 38vw, 460px);
  overflow: hidden;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  position: relative;
}

.about-hero--placeholder {
  background:
    linear-gradient(135deg, rgba(36, 73, 143, .18), rgba(255, 255, 255, .65)),
    repeating-linear-gradient(45deg, #f0f3f8 0 16px, #e8ecf4 16px 32px);
}

.about-hero-inner {
  align-items: center;
  display: flex;
  height: 100%;
  min-height: inherit;
  position: relative;
  z-index: 2;
}

.about-hero-content {
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-width: 640px;
  width: 100%;
}

.about-hero-headline {
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.08;
  margin: 0;
}

.about-hero-lead {
  color: rgba(255, 255, 255, .84);
  font-size: clamp(.95rem, 1.1vw, 1.05rem);
  line-height: 1.55;
  margin: 0;
  max-width: 480px;
}

.about-hero-badge {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .75rem;
  font-weight: 700;
  gap: .4rem;
  letter-spacing: .04em;
  margin-bottom: .25rem;
  padding: .38rem .78rem;
}

/* About-hero staggered entrance (mirrors brand-hero animation) */
.about-hero-content > .about-hero-badge,
.about-hero-content > .about-hero-headline,
.about-hero-content > .about-hero-lead {
  animation: tcs-hero-rise var(--motion-slow) var(--ease-out) both;
}

.about-hero-content > .about-hero-badge { animation-delay: 40ms; }
.about-hero-content > .about-hero-headline { animation-delay: 110ms; }
.about-hero-content > .about-hero-lead { animation-delay: 180ms; }
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Shop Gallery — Clean Grid
   -------------------------------------------------------------------------- */
.shop-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.shop-gallery-item {
  background: #fff;
  border: 1px solid rgba(23, 37, 77, .08);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
  cursor: pointer;
  display: grid;
  margin: 0;
  overflow: hidden;
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.shop-gallery-item:hover,
.shop-gallery-item:focus-visible {
  border-color: rgba(36, 73, 143, .24);
  box-shadow: 0 22px 44px rgba(15, 23, 42, .14);
  transform: translateY(-2px);
}

.shop-gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.shop-gallery-item img {
  display: block;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  transition: transform .35s ease;
  width: 100%;
}

.shop-gallery-item:hover img {
  transform: scale(1.04);
}

.shop-gallery-caption {
  background: linear-gradient(180deg, transparent 0%, rgba(7, 14, 28, .72) 100%);
  bottom: 0;
  color: #fff;
  font-size: .84rem;
  font-weight: 650;
  left: 0;
  opacity: 0;
  padding: 1.6rem .95rem .8rem;
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: opacity .22s ease;
}

.shop-gallery-item:hover .shop-gallery-caption,
.shop-gallery-item:focus-visible .shop-gallery-caption {
  opacity: 1;
}

.shop-gallery-empty {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(36, 73, 143, .06), rgba(255, 255, 255, .5)),
    repeating-linear-gradient(45deg, #f5f7fa 0 12px, #eef1f6 12px 24px);
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  display: grid;
  gap: .65rem;
  justify-items: center;
  min-height: 200px;
  padding: 2rem;
  text-align: center;
  width: 100%;
}

.shop-gallery-empty i {
  color: var(--accent-dark);
  font-size: 2.2rem;
  opacity: .5;
}

/* --------------------------------------------------------------------------
   Gallery Lightbox
   -------------------------------------------------------------------------- */
.gallery-lightbox {
  align-items: center;
  background: rgba(7, 14, 28, .94);
  backdrop-filter: blur(14px);
  border: 0;
  display: flex;
  height: 100%;
  inset: 0;
  justify-content: center;
  padding: 1.5rem;
  position: fixed;
  width: 100%;
  z-index: 1055;
}

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox:not([hidden]) {
  animation: lightbox-fade-in .22s ease both;
}

@keyframes lightbox-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.gallery-lightbox-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  max-height: 100%;
  max-width: 100%;
  position: relative;
}

.gallery-lightbox img {
  border-radius: 10px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  display: block;
  max-height: 78vh;
  max-width: min(92vw, 1200px);
  object-fit: contain;
}

.gallery-lightbox-caption {
  color: rgba(255, 255, 255, .82);
  font-size: .88rem;
  font-weight: 600;
  max-width: min(92vw, 600px);
  text-align: center;
}

.gallery-lightbox-close {
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: .82rem;
  font-weight: 700;
  gap: .35rem;
  justify-content: center;
  letter-spacing: .03em;
  padding: .5rem 1rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  transition: background .18s ease, border-color .18s ease;
  z-index: 10;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .35);
}

.gallery-lightbox-nav {
  align-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background .18s ease, border-color .18s ease;
  width: 44px;
  z-index: 5;
}

.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .28);
}

.gallery-lightbox-nav--prev {
  left: max(.75rem, calc((100vw - min(92vw, 1200px)) / 2 - 2.5rem));
}

.gallery-lightbox-nav--next {
  right: max(.75rem, calc((100vw - min(92vw, 1200px)) / 2 - 2.5rem));
}

@media (max-width: 767.98px) {
  .shop-gallery {
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-hero {
    min-height: clamp(260px, 42vw, 340px);
    border-radius: 12px;
  }

  .shop-gallery-caption {
    opacity: 1;
    padding: 1.15rem .8rem .65rem;
  }

  .shop-gallery-item {
    border-radius: 12px;
  }

  .about-hero-headline {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .gallery-lightbox {
    padding: .75rem;
  }

  .gallery-lightbox img {
    border-radius: 8px;
    max-height: 72vh;
    max-width: 96vw;
  }

  .gallery-lightbox-nav--prev {
    left: .45rem;
  }

  .gallery-lightbox-nav--next {
    right: .45rem;
  }

  .gallery-lightbox-close {
    right: .45rem;
    top: .45rem;
  }
}

.brand-mini-card-featured .brand-mini-name {
  color: #fff;
}

.brand-accent-sky {
  --brand-tint: rgba(112, 184, 222, .24);
  --brand-tint-strong: rgba(82, 158, 204, .7);
  --brand-accent-color: #245f8d;
}

.brand-accent-mint {
  --brand-tint: rgba(137, 201, 169, .24);
  --brand-tint-strong: rgba(89, 158, 124, .66);
  --brand-accent-color: #22644b;
}

.brand-accent-lemon {
  --brand-tint: rgba(241, 221, 111, .28);
  --brand-tint-strong: rgba(204, 176, 52, .72);
  --brand-accent-color: #8f7020;
}

.brand-accent-lilac {
  --brand-tint: rgba(191, 176, 223, .25);
  --brand-tint-strong: rgba(140, 118, 191, .7);
  --brand-accent-color: #695399;
}

.brand-accent-gold {
  --brand-tint: rgba(244, 187, 96, .25);
  --brand-tint-strong: rgba(214, 149, 48, .72);
  --brand-accent-color: #9b5e17;
}

.brand-accent-coral {
  --brand-tint: rgba(232, 140, 118, .24);
  --brand-tint-strong: rgba(203, 92, 69, .72);
  --brand-accent-color: #9b4939;
}

.brand-accent-berry {
  --brand-tint: rgba(194, 95, 120, .26);
  --brand-tint-strong: rgba(168, 69, 98, .72);
  --brand-accent-color: #8f3f57;
}

.brand-accent-sand {
  --brand-tint: rgba(232, 202, 135, .24);
  --brand-tint-strong: rgba(196, 154, 67, .66);
  --brand-accent-color: #876220;
}

.brand-accent-terracotta {
  --brand-tint: rgba(206, 131, 101, .25);
  --brand-tint-strong: rgba(171, 94, 64, .68);
  --brand-accent-color: #8d4330;
}

@keyframes palette-card-rise {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes palette-name-settle {
  from {
    letter-spacing: .02em;
    opacity: .55;
  }

  to {
    letter-spacing: -.015em;
    opacity: 1;
  }
}

@keyframes palette-slide-sweep-right {
  from {
    opacity: 0;
    transform: translateX(-22%) skewX(-16deg) scaleX(.76);
  }

  30% {
    opacity: .78;
  }

  to {
    opacity: 0;
    transform: translateX(132%) skewX(-16deg) scaleX(1.08);
  }
}

@keyframes palette-slide-sweep-left {
  from {
    opacity: 0;
    transform: translateX(22%) skewX(16deg) scaleX(.76);
  }

  30% {
    opacity: .78;
  }

  to {
    opacity: 0;
    transform: translateX(-132%) skewX(16deg) scaleX(1.08);
  }
}

@keyframes palette-strip-sweep {
  from {
    background-position: 180% 0, 0 0;
  }

  to {
    background-position: 0 0, 0 0;
  }
}

@keyframes palette-orbit {
  from {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(10deg) scale(1.06);
  }

  to {
    transform: rotate(0deg) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-carousel .carousel-item.active .brand-mini-card,
  .brand-carousel .carousel-item.active .brand-mini-card::after,
  .brand-swatch-indicator::before {
    animation: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .brand-carousel .carousel-item {
    clip-path: inset(0 round 14px);
    filter: saturate(1);
    opacity: 1;
    transition: clip-path .72s cubic-bezier(.22, 1, .36, 1), filter .72s ease, opacity .72s ease, transform .72s cubic-bezier(.22, 1, .36, 1);
    will-change: clip-path, transform, opacity;
  }

  .brand-carousel .carousel-item::before {
    background: linear-gradient(90deg, rgba(130, 186, 223, 0) 0%, rgba(130, 186, 223, .24) 15%, rgba(159, 216, 183, .28) 32%, rgba(243, 221, 119, .26) 50%, rgba(241, 178, 107, .24) 66%, rgba(224, 139, 138, .24) 82%, rgba(201, 122, 150, .20) 100%);
    border-radius: 20px;
    content: '';
    inset: -.2rem;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
  }

  .brand-carousel .carousel-item-next:not(.carousel-item-start),
  .brand-carousel .active.carousel-item-end {
    clip-path: inset(0 0 0 100% round 14px);
    filter: saturate(.94) brightness(.99);
    opacity: .7;
    transform: translateX(0) scale(.985);
  }

  .brand-carousel .carousel-item-prev:not(.carousel-item-end),
  .brand-carousel .active.carousel-item-start {
    clip-path: inset(0 100% 0 0 round 14px);
    filter: saturate(.94) brightness(.99);
    opacity: .7;
    transform: translateX(0) scale(.985);
  }

  .brand-carousel .carousel-item-next.carousel-item-start,
  .brand-carousel .carousel-item-prev.carousel-item-end {
    clip-path: inset(0 round 14px);
    filter: saturate(1);
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  .brand-carousel .carousel-item-next.carousel-item-start::before {
    animation: palette-slide-sweep-right .86s cubic-bezier(.16, 1, .3, 1) both;
  }

  .brand-carousel .carousel-item-prev.carousel-item-end::before {
    animation: palette-slide-sweep-left .86s cubic-bezier(.16, 1, .3, 1) both;
  }
}

.brand-carousel-controls {
  align-items: center;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(36, 73, 143, .10);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(36, 73, 143, .08);
  display: flex;
  gap: .4rem;
  justify-content: center;
  margin-top: .4rem;
  margin-inline: auto;
  padding: .22rem .38rem;
  width: fit-content;
}

.brand-carousel-control {
  align-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(228, 236, 251, .92));
  border: 1px solid rgba(36, 73, 143, .14);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .05);
  color: var(--accent-dark);
  display: inline-flex;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease;
  width: 30px;
}

.brand-carousel-control::before {
  background: linear-gradient(120deg, rgba(130, 186, 223, .72), rgba(159, 216, 183, .56), rgba(243, 221, 119, .56), rgba(224, 139, 138, .56));
  border-radius: inherit;
  content: '';
  inset: 4px;
  opacity: .62;
  pointer-events: none;
  position: absolute;
  transition: opacity .18s ease, transform .18s ease;
}

.brand-carousel-control i {
  position: relative;
  z-index: 1;
}

.brand-carousel-control:hover,
.brand-carousel-control:focus-visible {
  box-shadow: 0 12px 24px rgba(36, 73, 143, .14);
  color: var(--accent-dark);
  transform: translateY(-1px);
}

.brand-carousel-control:hover::before,
.brand-carousel-control:focus-visible::before {
  opacity: .92;
  transform: scale(1.06);
}

.brand-carousel-indicators {
  align-items: center;
  display: inline-flex;
  gap: .34rem;
}

.brand-carousel-indicators [data-bs-target] {
  background-color: transparent;
  border: 0;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(36, 73, 143, .08);
  height: 12px;
  margin: 0;
  opacity: 1;
  transition: transform .18s ease, box-shadow .18s ease, width .18s ease;
  width: 24px;
}

.brand-carousel-indicators .active {
  box-shadow: 0 6px 16px rgba(36, 73, 143, .16), inset 0 0 0 1px rgba(255, 255, 255, .5);
  transform: translateY(-1px) scale(1.03);
  width: 30px;
}

.brand-swatch-indicator {
  overflow: hidden;
  position: relative;
}

.brand-swatch-indicator::before {
  animation: palette-swatch-glide 3.8s linear infinite;
  background-size: 170% 100%;
  border-radius: inherit;
  content: '';
  inset: 0;
  position: absolute;
}

.brand-swatch-cool::before {
  background-image: linear-gradient(90deg, #82badf 0%, #9fd8b7 52%, #f3dd77 100%);
}

.brand-swatch-warm::before {
  background-image: linear-gradient(90deg, #bba8df 0%, #f1b26b 48%, #e08b8a 100%);
}

.brand-swatch-rose::before {
  background-image: linear-gradient(90deg, #c97a96 0%, #e8ca87 48%, #ce8365 100%);
}

@keyframes palette-swatch-glide {
  from {
    transform: translateX(-12%);
  }

  to {
    transform: translateX(12%);
  }
}

@media (min-width: 992px) {
  .site-navbar .container {
    column-gap: clamp(1rem, 2vw, 2.5rem);
  }

  .brand-logo {
    height: 84px;
    max-width: min(35vw, 500px);
  }

  .navbar-collapse {
    gap: 1rem;
    justify-content: space-between;
  }

  .nav-action-list {
    flex: 0 0 auto;
  }

  .hero-search.is-expanded ~ .hero-actions,
  .hero-search.is-expanded ~ .hero-meta {
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 1400px) {
  .brand-logo {
    height: 96px;
    max-width: min(38vw, 580px);
  }

  .hero-search {
    max-width: 840px;
  }
}

@media (min-width: 992px) and (max-width: 1149px) {
  .product-list-page .navbar-search-shell {
    flex: 1 1 auto;
    max-width: 620px;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-navbar .container {
    column-gap: .65rem;
    gap: .65rem;
  }

  .brand-logo {
    height: 49px;
    max-width: min(22vw, 220px);
  }

  .navbar-brand {
    margin-right: .2rem;
  }

  .navbar-collapse {
    gap: .55rem;
  }

  .nav-action-list {
    gap: .3rem;
  }

  .nav-link,
  .nav-utility-link,
  .nav-auth-link,
  .nav-primary-link,
  .nav-account-submit {
    font-size: .92rem;
    min-height: 38px;
    padding: .45rem .78rem;
  }

  .nav-icon-link .nav-action-label {
    border: 0;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
  }

  .nav-auth-link.nav-icon-link,
  .nav-account-submit.nav-icon-link {
    gap: 0;
    min-width: 38px;
    padding-inline: 0;
  }

  .nav-primary-link {
    padding-inline: .7rem;
  }

  .cart-pill {
    gap: 0;
    padding-inline: .72rem;
  }

  .cart-pill .nav-action-icon {
    font-size: 1.02rem;
  }

  .nav-count-badge {
    min-width: 1.35rem;
    padding: .3rem .38rem;
  }

  .product-list-page.nav-search-active .navbar-search-shell,
  .product-list-page .navbar-search-shell {
    max-width: 620px;
  }

  .navbar-product-search {
    gap: .35rem;
    padding: .24rem .28rem .24rem .62rem;
  }

  .navbar-product-search .form-control {
    font-size: .94rem;
  }

  .navbar-product-search .btn {
    min-width: 92px;
    padding-inline: .82rem;
  }
}

@media (min-width: 1300px) {
  .site-navbar .container {
    max-width: min(1320px, calc(100vw - 3.5rem));
  }

  .brand-logo {
    height: 64px;
  }

  .product-list-page.nav-search-active .navbar-search-shell {
    max-width: 720px;
  }

  .nav-action-list {
    gap: .7rem;
  }
}

@media (max-width: 991px) {
  .product-detail-layout {
    row-gap: 1.5rem;
  }

  .product-detail-layout > [class*='col-'] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .brand-hero {
    background-image: linear-gradient(180deg, rgba(7, 14, 28, .35) 0%, rgba(7, 14, 28, .55) 55%, rgba(7, 14, 28, .88) 100%), var(--hero-image);
    background-position: 60% 35%;
  }

  .brand-carousel-slide-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-carousel-slide-grid-secondary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .brand-hero-content {
    max-width: 100%;
  }

  .navbar-search-shell {
    display: none !important;
  }

  .site-header {
    backdrop-filter: none;
  }

  .section-header {
    align-items: stretch;
    flex-direction: column;
  }

  .summary-panel.sticky-summary {
    position: static !important;
  }

  .location-map-frame iframe {
    aspect-ratio: 4 / 3;
  }

  .navbar-collapse {
    background: rgba(255, 255, 255, .98);
    border: 1px solid rgba(23, 37, 77, .10);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    gap: 0;
    margin-top: 1rem;
    padding: 1rem;
  }

  .nav-action-list {
    gap: .55rem;
  }

  .nav-action-list .nav-item,
  .nav-link,
  .nav-utility-link,
  .nav-auth-link,
  .nav-primary-link,
  .nav-account-form,
  .nav-account-submit {
    width: 100%;
  }

  .nav-link,
  .nav-utility-link,
  .nav-auth-link,
  .nav-primary-link,
  .nav-account-submit {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .brand-logo {
    height: 48px;
    max-width: 70vw;
  }

  .brand-carousel-slide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem;
  }

  .brand-carousel-slide-grid-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .brand-mini-card {
    min-height: 78px;
    padding: .58rem .65rem;
  }

  .brand-logo-tile {
    min-height: 78px;
    padding: .5rem .58rem;
  }

  .brand-logo-image {
    max-height: 64px;
  }

  .brand-logo-image-tall {
    max-height: 70px;
  }

  .brand-logo-image-axalta {
    --brand-logo-scale: 1.6;
  }

  .brand-logo-image-crc {
    --brand-logo-scale: 1.2;
  }

  .brand-logo-image-evacut {
    --brand-logo-scale: 1.05;
  }

  .brand-logo-image-resene {
    --brand-logo-scale: 1.05;
  }

  .brand-logo-image-saint-gobain {
    --brand-logo-scale: 1.05;
  }

  .brand-logo-image-ppg {
    --brand-logo-scale: 1.05;
  }

  .brand-logo-image-canda {
    --brand-logo-scale: 1.05;
  }

  .brand-carousel-controls {
    gap: .32rem;
    padding: .18rem .28rem;
  }

  .brand-carousel-control {
    height: 28px;
    width: 28px;
  }

  .brand-carousel-indicators {
    gap: .24rem;
  }

  .brand-carousel-indicators [data-bs-target] {
    height: 10px;
    width: 18px;
  }

  .brand-carousel-indicators .active {
    width: 24px;
  }

  .brand-hero {
    min-height: clamp(340px, 56vw, 420px);
    padding: 0 1rem;
  }

  .brand-hero-inner {
    align-items: center;
    justify-content: center;
  }

  .brand-hero-content {
    align-items: center;
    gap: .75rem;
    text-align: center;
  }

  .hero-headline {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  /* Mobile: horizontal search bar, prominent and centered */
  .hero-search {
    align-items: center;
    border-radius: 28px;
    flex-direction: row;
    gap: .45rem;
    margin-top: 0;
    max-width: 100%;
    padding: .25rem .28rem .25rem .85rem;
  }

  .hero-search-icon {
    display: inline-flex;
  }

  .hero-search-input {
    flex: 1;
    min-height: 46px;
    padding: 0 .25rem;
    text-align: left;
  }

  .hero-search-input::placeholder {
    font-size: .8rem;
  }

  .hero-search-button {
    display: none;
  }

  .hero-search .search-suggestions {
    margin-top: .5rem;
    max-height: 260px;
    padding: .3rem;
    position: absolute;
    width: 100%;
  }

  .hero-search .search-suggestion {
    align-items: center;
    flex-direction: row;
    gap: .85rem;
  }

  .hero-search .search-suggestion-copy {
    min-width: 0;
    width: auto;
  }

  .hero-search .search-suggestion-type {
    align-self: center;
  }

  .hero-logo {
    max-height: 72px;
  }

  .page-shell {
    padding-top: 1.25rem;
  }

  .stepper,
  .order-timeline {
    grid-template-columns: 1fr;
  }

  .quantity-col {
    min-width: 190px;
  }
}

/* --------------------------------------------------------------------------
   Mobile UX: Skip-to-catalog, reduced hero, smooth scroll
   -------------------------------------------------------------------------- */
html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* --------------------------------------------------------------------------
   Mobile UX: Sticky search expansion
   -------------------------------------------------------------------------- */
.mobile-search-trigger {
  align-items: center;
  background: rgba(23, 37, 77, .045);
  border: 1px solid rgba(23, 37, 77, .12);
  border-radius: 999px;
  color: var(--ink);
  display: none;
  font-weight: 700;
  gap: .45rem;
  justify-content: center;
  min-height: 42px;
  min-width: 42px;
  padding: .55rem .75rem;
  transition: background-color .16s ease, color .16s ease;
}

.mobile-search-trigger:hover,
.mobile-search-trigger:focus-visible {
  background: #fff;
  color: var(--accent-dark);
}

.mobile-search-shell {
  display: none;
  position: relative;
  width: 100%;
}

.mobile-search-shell.is-open {
  display: block;
}

.mobile-search-form {
  align-items: center;
  background: rgba(255, 255, 255, .98);
  border: 1px solid rgba(23, 37, 77, .12);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: .4rem;
  padding: .3rem .35rem .3rem .75rem;
  position: relative;
  width: 100%;
}

.mobile-search-form .form-control {
  background: transparent;
  border: 0;
  color: var(--ink);
  flex: 1 1 auto;
  font-family: inherit;
  font-size: .96rem;
  min-height: 42px;
  min-width: 0;
  outline: none;
  padding: 0 .15rem;
}

.mobile-search-form .form-control::placeholder {
  color: rgba(102, 112, 133, .85);
}

.mobile-search-form:focus-within {
  border-color: rgba(36, 73, 143, .35);
  box-shadow: 0 0 0 4px rgba(36, 73, 143, .10), var(--shadow-sm);
}

.mobile-search-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: 0;
  transition: background .16s ease, color .16s ease;
}

.mobile-search-close:hover {
  background: var(--surface-strong);
  color: var(--ink);
}

.mobile-search-submit {
  align-items: center;
  background: var(--accent);
  border: 0;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-family: inherit;
  font-weight: 700;
  justify-content: center;
  min-height: 36px;
  min-width: 36px;
  padding: .35rem .65rem;
  transition: background .16s ease;
}

.mobile-search-submit:hover {
  background: var(--accent-dark);
}

.mobile-search-shell .search-suggestions-navbar {
  border-radius: 18px;
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + .5rem);
  width: 100%;
  z-index: 1050;
}

@media (max-width: 991px) {
  .mobile-search-trigger {
    display: inline-flex;
  }

  .mobile-search-shell {
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: calc(100% + .65rem);
    z-index: 1055;
  }

  .navbar-search-shell {
    display: none !important;
  }

  .navbar-header-row {
    align-items: center;
    display: flex;
    gap: .65rem;
    position: relative;
    width: 100%;
  }

  .navbar-header-row .navbar-brand {
    flex: 1 1 auto;
    margin-right: 0;
    min-width: 0;
  }

  .navbar-header-row .navbar-toggler {
    flex: 0 0 auto;
    order: 3;
  }

  .mobile-search-trigger {
    flex: 0 0 auto;
    order: 2;
  }
}

/* --------------------------------------------------------------------------
   Mobile UX: Category chip bar
   -------------------------------------------------------------------------- */
.category-chip-bar {
  display: flex;
  gap: .45rem;
  margin-bottom: 1.25rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .35rem;
  padding-right: 3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent 100%);
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent 100%);
}

.category-chip-bar::-webkit-scrollbar {
  display: none;
}

.category-chip {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .84rem;
  font-weight: 650;
  min-height: 38px;
  padding: .45rem .9rem;
  text-decoration: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
  white-space: nowrap;
}

.category-chip:hover {
  background: var(--accent-soft);
  border-color: rgba(36, 73, 143, .24);
  color: var(--accent-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.category-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.category-chip.is-active:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.category-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Bootstrap 5.3 link underline resets — removes default underline from
   utility navigation, restores it on hover for usability feedback.
   -------------------------------------------------------------------------- */
.breadcrumb-item a {
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.page-link {
  text-decoration: none;
}

.page-link:hover:not(.disabled) {
  text-decoration: underline;
}

.list-group-item-action {
  text-decoration: none;
}

.list-group-item-action:hover {
  text-decoration: none;
}

.auth-panel a {
  text-decoration: none;
  color: inherit;
}

.auth-panel a:hover {
  text-decoration: underline;
  color: var(--accent-dark);
}

.link-dark:focus-visible,
.link-secondary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: underline;
}

.mobile-bottom-nav-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   Mobile UX: Filter panel & catalog controls
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .filter-panel {
    padding: 1rem;
  }

  .filter-panel .form-select {
    font-size: .9rem;
    max-width: 100%;
    padding: .55rem .75rem;
  }

  .filter-panel .col-lg-5,
  .filter-panel .col-lg-4,
  .filter-panel .col-lg-3 {
    width: 100%;
  }

  .filter-panel .btn {
    font-size: .92rem;
    padding-block: .6rem;
  }

  .catalog-controls .catalog-controls-label {
    margin-bottom: .25rem;
  }

  .catalog-controls .text-secondary {
    font-size: .85rem;
  }
}

/* --------------------------------------------------------------------------
   Mobile UX: Back to Top button
   -------------------------------------------------------------------------- */
.back-to-top {
  align-items: center;
  background: rgba(36, 73, 143, .88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(36, 73, 143, .24);
  border-radius: 999px;
  bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  height: 44px;
  justify-content: center;
  opacity: 0;
  padding: 0;
  pointer-events: none;
  position: fixed;
  right: 1.25rem;
  transition: opacity .22s ease, transform .22s ease;
  transform: translateY(12px);
  width: 44px;
  z-index: 50;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: rgba(24, 57, 114, .94);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Mobile UX: Store hours badge in header
   -------------------------------------------------------------------------- */
.store-hours-badge {
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(36, 73, 143, .14);
  border-radius: 999px;
  color: var(--accent-dark);
  display: none;
  font-size: .72rem;
  font-weight: 700;
  gap: .35rem;
  padding: .32rem .65rem;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .store-hours-badge {
    display: inline-flex;
  }
}

/* --------------------------------------------------------------------------
   Mobile UX: Recently viewed strip
   -------------------------------------------------------------------------- */
.recently-viewed-section {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

.recently-viewed-strip {
  display: flex;
  gap: .65rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .3rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.recently-viewed-strip::-webkit-scrollbar {
  height: 4px;
}

.recently-viewed-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.recently-viewed-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  display: inline-flex;
  flex: 0 0 auto;
  gap: .65rem;
  min-width: 180px;
  max-width: 220px;
  padding: .55rem .75rem;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.recently-viewed-card:hover {
  border-color: rgba(36, 73, 143, .30);
  box-shadow: var(--shadow-md);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-2px);
}

.recently-viewed-thumb {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 7px;
  flex: 0 0 44px;
  height: 44px;
  overflow: hidden;
  width: 44px;
}

.recently-viewed-thumb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.recently-viewed-thumb i {
  align-items: center;
  color: var(--accent-dark);
  display: flex;
  font-size: 1.2rem;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.recently-viewed-name {
  font-size: .85rem;
  font-weight: 650;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Related Products Carousel — horizontal scroll with arrow navigation
   -------------------------------------------------------------------------- */
.related-products-strip {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: .5rem;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.related-products-strip::-webkit-scrollbar {
  display: none;
}

.related-products-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.related-product-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 260px;
}

.related-product-card .product-body {
  padding: .75rem 1rem 1rem;
}

.related-product-card .product-image {
  height: 170px;
}

.related-product-card .product-image img {
  height: 100%;
  object-fit: cover;
}

/* Navigation arrows */
.related-nav {
  display: flex;
  gap: .35rem;
}

.related-nav-btn {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 1.1rem;
  height: 36px;
  justify-content: center;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
  width: 36px;
}

.related-nav-btn:hover {
  background: var(--surface-strong);
  border-color: rgba(36, 73, 143, .30);
  box-shadow: var(--shadow-sm);
}

.related-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.related-nav-btn:disabled {
  color: var(--muted);
  cursor: default;
  opacity: .45;
}

.related-nav-btn:disabled:hover {
  background: #fff;
  border-color: var(--line);
  box-shadow: none;
}

/* Mobile: tighter card width, show ~2.2 cards */
@media (max-width: 575px) {
  .related-product-card {
    width: 210px;
  }

  .related-product-card .product-image {
    height: 145px;
  }
}
    font-size: .82rem;
  }

  .breadcrumb-item + .breadcrumb-item {
    padding-left: .55rem;
  }

  .breadcrumb-item + .breadcrumb-item::before {
    padding-right: .55rem;
  }
}

@media (max-width: 575.98px) {
  .qty-stepper-btn {
    min-width: 40px;
    padding: .55rem .85rem;
  }

  .qty-stepper-input {
    width: 60px;
  }
}

/* --------------------------------------------------------------------------
   Mobile UX: Bottom navigation bar
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  align-items: flex-start;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  bottom: 0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, .06);
  display: flex;
  justify-content: space-around;
  left: 0;
  padding: .4rem .25rem env(safe-area-inset-bottom, .4rem);
  position: fixed;
  right: 0;
  z-index: 50;
}

.mobile-bottom-nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  font-family: inherit;
  gap: .2rem;
  justify-content: center;
  min-height: 52px;
  padding: .3rem .25rem;
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.mobile-bottom-nav-item:hover,
.mobile-bottom-nav-item:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.mobile-bottom-nav-item i {
  font-size: 1.25rem;
  line-height: 1;
}

.mobile-bottom-nav-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .02em;
  line-height: 1;
}

.mobile-bottom-nav-icon-wrap {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  position: relative;
}

.mobile-bottom-nav-badge {
  align-items: center;
  background: var(--accent);
  border: 1.5px solid #fff;
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .58rem;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  line-height: 1;
  min-width: 16px;
  padding: 0 .25rem;
  position: absolute;
  right: -8px;
  top: -6px;
}

/* Adjust back-to-top button to sit above bottom nav */
@media (max-width: 991px) {
  .back-to-top {
    bottom: 4.5rem;
  }

  .page-shell {
    padding-bottom: 4.5rem;
  }

  .site-footer {
    padding-bottom: 4.5rem;
  }
}

/* ==========================================================================
   Motion & cosmetic enhancements (2026 refresh)
   Layered on top of the existing system. Every effect here is neutralised
   in the consolidated prefers-reduced-motion block at the end of this file.
   Animations use opacity/transform only (no layout shift).
   ========================================================================== */

/* --- Smooth page-load fade-in ------------------------------------------- */
body.page-fade {
  opacity: 0;
  transition: opacity var(--motion-slow) var(--ease-soft);
}

body.page-fade.is-ready {
  opacity: 1;
}

/* --- Scroll-reveal entrances -------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--motion-slow) var(--ease-out),
    transform var(--motion-slow) var(--ease-out);
  transition-delay: calc(var(--reveal-index, 0) * 60ms);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Cap the stagger so long grids never feel sluggish */
[data-reveal] {
  transition-delay: calc(min(var(--reveal-index, 0), 8) * 55ms);
}

/* --- Product card image zoom-on-hover ----------------------------------- */
.product-card .product-image img,
.product-card .product-media-frame img {
  transition: transform var(--motion-slow) var(--ease-out);
  will-change: transform;
}

.product-card:hover .product-image img,
.product-card:focus-within .product-image img {
  transform: scale(1.05);
}

/* Smoother stock badge appearance inside cards */
.product-card .stock-badge {
  transition: transform var(--motion-base) var(--ease-out), opacity var(--motion-base) var(--ease-out);
}

/* Prevent category badge overflow inside product-card header rows.
   Bootstrap badges default to inline-block + nowrap; text-wrap
   overrides nowrap but the badge still needs explicit width
   constraints so multi-word names break and stay inside the card. */
.product-body .badge.text-wrap {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* --- Skeleton shimmer for lazy / infinite-scroll images ----------------- */
.product-image.is-loading,
.product-media-stage.is-loading {
  position: relative;
  overflow: hidden;
}

.product-image.is-loading::after,
.product-media-stage.is-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0) 30%,
    rgba(255, 255, 255, .55) 50%,
    rgba(255, 255, 255, 0) 70%);
  transform: translateX(-100%);
  animation: tcs-shimmer 1.4s ease-in-out infinite;
}

@keyframes tcs-shimmer {
  to {
    transform: translateX(100%);
  }
}

/* --- Tactile button press ----------------------------------------------- */
.btn-accent,
.btn-dark,
.hero-search-button {
  transition:
    background-color var(--motion-base) var(--ease-soft),
    box-shadow var(--motion-base) var(--ease-soft),
    transform var(--motion-fast) var(--ease-soft);
}

.btn-accent:active,
.btn-dark:active,
.hero-search-button:active {
  transform: scale(.97);
}

/* --- Header elevation on scroll ----------------------------------------- */
.site-header {
  transition: box-shadow var(--motion-base) var(--ease-soft), background-color var(--motion-base) var(--ease-soft);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, .98);
}

/* --- Cart badge bump on update ------------------------------------------ */
.nav-count-badge {
  transition: transform var(--motion-base) var(--ease-out), background-color var(--motion-base) var(--ease-out);
}

.nav-count-badge.is-bumped {
  animation: tcs-badge-bump 480ms var(--ease-out);
}

@keyframes tcs-badge-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.45); }
  60% { transform: scale(.9); }
  100% { transform: scale(1); }
}

/* --- Dropdown menu fade/slide-in ---------------------------------------- */
.dropdown-menu.show {
  animation: tcs-dropdown-in var(--motion-base) var(--ease-out);
}

@keyframes tcs-dropdown-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Alerts / flash messages entrance ----------------------------------- */
.messages .alert {
  animation: tcs-alert-in var(--motion-slow) var(--ease-out);
}

@keyframes tcs-alert-in {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Hero staggered entrance -------------------------------------------- */
.brand-hero-content > .hero-eyebrow,
.brand-hero-content > .hero-headline,
.brand-hero-content > .hero-lead,
.brand-hero-content > .hero-search,
.brand-hero-content > .hero-actions,
.brand-hero-content > .hero-meta {
  animation: tcs-hero-rise var(--motion-slow) var(--ease-out) both;
}

.brand-hero-content > .hero-eyebrow { animation-delay: 40ms; }
.brand-hero-content > .hero-headline { animation-delay: 110ms; }
.brand-hero-content > .hero-lead { animation-delay: 180ms; }
.brand-hero-content > .hero-search { animation-delay: 250ms; }
.brand-hero-content > .hero-actions { animation-delay: 320ms; }
.brand-hero-content > .hero-meta { animation-delay: 390ms; }

@keyframes tcs-hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glow on the hero search field when focused */
.hero-search:focus-within {
  box-shadow: 0 0 0 4px rgba(36, 73, 143, .14);
}

.hero-search {
  transition: box-shadow var(--motion-base) var(--ease-soft);
}

/* --- Form field focus polish -------------------------------------------- */
.form-control,
.form-select {
  transition:
    border-color var(--motion-base) var(--ease-soft),
    box-shadow var(--motion-base) var(--ease-soft);
}

/* --- Empty-state gentle float ------------------------------------------- */
.empty-state .bi {
  animation: tcs-float 3.6s var(--ease-soft) infinite;
}

@keyframes tcs-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ==========================================================================
   Reduced motion — neutralise all the enhancements above.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  body.page-fade,
  body.page-fade.is-ready {
    opacity: 1;
    transition: none;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .product-card:hover .product-image img,
  .product-card:focus-within .product-image img {
    transform: none;
  }

  .product-image.is-loading::after,
  .product-media-stage.is-loading::after,
  .nav-count-badge.is-bumped,
  .dropdown-menu.show,
  .messages .alert,
  .brand-hero-content > .hero-eyebrow,
  .brand-hero-content > .hero-headline,
  .brand-hero-content > .hero-lead,
  .brand-hero-content > .hero-search,
  .brand-hero-content > .hero-actions,
  .brand-hero-content > .hero-meta,
  .about-hero-content > .about-hero-badge,
  .about-hero-content > .about-hero-headline,
  .about-hero-content > .about-hero-lead,
  .empty-state .bi {
    animation: none !important;
  }

  .btn-accent:active,
  .btn-dark:active,
  .hero-search-button:active {
    transform: none;
  }
}
