:root {
  color-scheme: dark;
}

body.public-theme {
  display: flex;
  flex-direction: column;
  /* Suppress the browser's rectangular touch flash; custom :active states stay intact. */
  -webkit-tap-highlight-color: transparent;
  --color-background: #10171B;
  --color-foreground: #F1F5F3;
  --color-card: #273239;
  --color-card-foreground: #F5F7F6;
  --color-muted: #1B252B;
  --color-muted-foreground: #B1BCBA;
  --color-border: #3B484E;
  --color-border-strong: #738087;
  --color-primary: #091013;
  --color-on-primary: #FFFFFF;
  --color-secondary: #1C272D;
  --color-on-secondary: #FFFFFF;

  --color-accent: #A3FF00;
  --color-on-accent: #10150A;
  --color-accent-hover: #BEF264;
  --color-action: #A3E635;
  --color-action-hover: #BEF264;
  --color-accent-text: #A3FF00;

  --color-ring: #A3FF00;
  --color-ring-soft: rgba(163, 255, 0, .22);
  --color-scrim: rgba(0, 0, 0, .65);
  --color-compare-diff: #FBBF24;
  --color-destructive-surface: #3A1D20;

  --radius-md: 8px;

  --radius-card: 16px;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, .20);
  --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, .34);

  --font-heading: 'Barlow Condensed', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.public-theme > main {
  display: flex;
  flex: 1;
  flex-direction: column;
}

body.public-theme h1,
body.public-theme h2,
body.public-theme h3,
body.public-theme h4,
body.public-theme h5,
body.public-theme h6 {
  font-weight: 700;
  letter-spacing: .01em;
}

body.public-theme h1 {
  font-weight: 800;
  text-transform: uppercase;
}

.section__eyebrow {
  margin: 0 0 var(--space-1);
  color: var(--color-accent-text);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section__more {
  color: var(--color-accent-text);
}

.section__more:hover {
  color: #395800;
}

body.public-theme a:hover {
  color: var(--color-accent-text);
}

body.public-theme .on-dark a:hover {
  color: var(--color-accent);
}

body.public-theme .btn--primary,
body.public-theme .nav-search__submit {
  background: var(--color-action);
}

body.public-theme .btn--primary:hover:not(:disabled),
body.public-theme .nav-search__submit:hover {
  background: var(--color-action-hover);
}

body.public-theme .hero-carousel__copy .btn--primary,
body.public-theme .home-service-banner .btn--primary,
body.public-theme .nav-search__submit {
  background: var(--color-accent);
}

body.public-theme .hero-carousel__copy .btn--primary:hover:not(:disabled),
body.public-theme .home-service-banner .btn--primary:hover:not(:disabled),
body.public-theme .nav-search__submit:hover {
  background: var(--color-accent);
}

body.public-theme .hero-carousel__copy .btn--primary:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .07);
  color: var(--color-accent-text);
}

body.public-theme .card__buy-btn {
  border-color: rgba(116, 185, 0, .76);
  background: #f4ffe8;
  color: #365800;
}

body.public-theme .card__buy-btn:hover:not(:disabled) {
  border-color: var(--color-action);
  background: var(--color-action);
  color: #10150a;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body.public-theme .field--choice input,
body.public-theme .filter-panel__option input {
  accent-color: var(--color-accent);
}

.recently-viewed__item img {
  border-radius: 7px;
}

:root {
  color-scheme: dark;
}

body.public-theme {
  --color-background: #10171B;
  --color-foreground: #F1F5F3;
  --color-card: #273239;
  --color-card-foreground: #F5F7F6;
  --color-muted: #1B252B;
  --color-muted-foreground: #B1BCBA;
  --color-border: #3B484E;
  --color-border-strong: #738087;
  --color-primary: #091013;
  --color-on-primary: #FFFFFF;
  --color-secondary: #1C272D;
  --color-on-secondary: #FFFFFF;
  --color-accent-text: #A3FF00;
  --color-ring: #A3FF00;
  --color-ring-soft: rgba(163, 255, 0, .22);
  --color-destructive-surface: #3A1D20;
  --color-compare-diff: #FBBF24;
  --shadow-card: 0 8px 24px rgba(0, 0, 0, .20);
  --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, .34);
}

body.public-theme .section__more:hover,
body.public-theme a:hover {
  color: var(--color-accent);
}

body.public-theme .section__more,
body.public-theme .catalog-gateway__btn {
  border-color: rgba(163, 255, 0, .38);
  background: rgba(163, 255, 0, .025);
  color: #F1F5F3;
}

body.public-theme .section__more:hover,
body.public-theme .catalog-gateway__btn:hover {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .07);
  color: var(--color-accent);
}

body.public-theme .nav-mobile__list a[aria-current="page"] {
  color: var(--color-accent);
}

body.public-theme .catalog-page-backdrop {
  background-image:
    linear-gradient(rgba(6, 12, 15, .72), rgba(6, 12, 15, .86)),
    var(--catalog-page-backdrop);
}

@media (max-width: 767px) {
  body.public-theme .catalog-page-backdrop {
    /* Mobile Chromium repaints background-attachment:fixed underneath every translucent card and
       repositions it when the browser chrome changes the visual viewport. A dedicated fixed layer
       is composited once, so the page keeps the same visual treatment without scroll-time paint. */
    background-image: none;
    background-attachment: scroll;
  }

  body.public-theme .catalog-page-backdrop::before {
    content: "";
    position: fixed;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    height: 100vh;
    height: 100lvh;
    background-image:
      linear-gradient(rgba(6, 12, 15, .72), rgba(6, 12, 15, .86)),
      var(--catalog-page-backdrop);
    background-position: 80% center;
    background-size: cover;
    background-repeat: no-repeat;
    pointer-events: none;
    transform: translateZ(0);
    backface-visibility: hidden;
  }

  body.public-theme .catalog__results .card__action-btn {
    /* The public-theme button is already 88% opaque; blurring the moving image under every
       favourite/compare button only adds per-card compositing work during touch scrolling. */
    backdrop-filter: none;
  }

  body.public-theme .catalog__results .card,
  body.public-theme .catalog__results .card:hover {
    /* Card outlines still separate products; removing the large blurred shadow avoids a paint
       pass for every visible card during a touch scroll. */
    box-shadow: none;
  }

  body.public-theme:has(#main > .catalog-page-backdrop) .site-footer {
    /* The fixed catalogue backdrop is isolated inside the preceding page section. Keep the
       footer in the next stacking layer so that background can never paint over it. */
    position: relative;
    z-index: 1;
  }
}

body.public-theme .catalog-page-surface {
  background:
    linear-gradient(180deg,
      rgb(29 42 49 / 0) 0,
      rgb(20 30 35 / 0) 420px,
      rgb(18 27 32 / 0) 100%);
  box-shadow:
    0 0 52px rgba(0, 0, 0, .48),
    0 0 110px 20px rgba(13, 23, 27, .32);
}

body.public-theme .home-page-surface {
  background: transparent;
}

body.public-theme .home-content-surface {
  --home-content-alpha: .70;
  background: rgb(25 37 42 / var(--home-content-alpha));
}

body.public-theme .home-content-surface .section--muted {
  background: transparent;
}

body.public-theme .home-content-surface .category-tile,
body.public-theme .home-content-surface .rail .card {
  background: transparent;
}

body.public-theme .home-content-surface .home-seo-summary__panel {
  background:
    linear-gradient(135deg, rgba(163, 255, 0, .08), transparent 34%),
    rgba(10, 17, 20, .76);
}

body.public-theme .info-page-content {
  background: linear-gradient(180deg,
    rgb(36 49 55 / var(--info-page-content-alpha)) 0,
    rgb(25 37 42 / var(--info-page-content-alpha)) 420px,
    rgb(16 23 27 / var(--info-page-content-alpha)) 100%);
}

body.public-theme .page-prose a {
  color: var(--color-accent);
}

body.public-theme .catalog-category-intro {
  border-bottom-color: rgba(255, 255, 255, .08);
}

body.public-theme .catalog__filters,
body.public-theme .catalog__sort,
body.public-theme .catalog-view__button,
body.public-theme .recently-viewed__item {
  background: rgb(38 50 57 / 0);
  border-color: #3A474E;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .16);
}

body.public-theme .catalog__results .card {
  background: rgb(43 55 62 / 0);
  border-color: #3B494F;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .18);
}

body.public-theme .catalog__results .card:hover {
  border-color: rgba(163, 255, 0, .72);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .32);
}

body.public-theme .catalog-categories a:hover {
  background: rgba(163, 255, 0, .09);
}

body.public-theme .catalog-categories a.is-current {
  background: linear-gradient(90deg, rgba(163, 255, 0, .24), rgba(163, 255, 0, .05));
  color: #F7FFF0;
}

body.public-theme .catalog-help {
  background: rgb(27 38 44 / 0);
  border: 1px solid #35434A;
}

body.public-theme .filter-panel__range input[type="range"]::-webkit-slider-thumb,
body.public-theme .filter-panel__range input[type="range"]::-moz-range-thumb {
  background: #1B252B;
}

body.public-theme .catalog-view__button.is-active {
  border-color: var(--color-accent);
  background: #0D1316;
  color: var(--color-accent);
}

body.public-theme .catalog__filter-toggle {
  border-color: #3A474E;
  background: rgb(38 50 57 / 0);
  color: var(--color-foreground);
}

body.public-theme .catalog__filter-toggle:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .10);
  color: var(--color-accent);
}

body.public-theme .recently-viewed {
  border-color: rgba(255, 255, 255, .08);
  background: rgb(25 36 42 / 0);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  backdrop-filter: blur(5px);
}

body.public-theme .card__specs li {
  background: rgba(13, 20, 24, .34);
}

body.public-theme .filter-panel__actions {
  border-color: #35434A;
  background: rgb(27 38 44 / 0);
}

@media (max-width: 767px) {
  html.js-catalog-enhanced body.public-theme .catalog__filters {
    background: rgb(27 37 43 / .92);
  }

  html.js-catalog-enhanced body.public-theme .catalog__filters .filter-panel__actions,
  html.js-catalog-enhanced body.public-theme .catalog__filters .catalog-filters__header {
    background: rgb(27 37 43 / .96);
  }
}

body.public-theme .card__manufacturer {
  border-color: rgba(163, 255, 0, .34);
  background: rgba(163, 255, 0, .10);
  color: #dfffb1;
}

body.public-theme .card__buy-btn {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #10150a;
}

body.public-theme .card__buy-btn:hover:not(:disabled) {
  border-color: #75bd00;
  background: #8ee000;
  color: #10150a;
}

body.public-theme .card__buy-btn,
body.public-theme .filter-panel__actions .btn--primary,
body.public-theme .catalog-action.btn--primary,
body.public-theme .catalog__results .empty-state .btn--primary {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #10150a;
  font-family: 'TT Lakes Neue Condensed', var(--font-heading);
  font-weight: 800;
  font-style: italic;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body.public-theme .card__buy-btn:hover:not(:disabled),
body.public-theme .filter-panel__actions .btn--primary:hover:not(:disabled),
body.public-theme .catalog-action.btn--primary:hover:not(:disabled),
body.public-theme .catalog__results .empty-state .btn--primary:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .07);
  color: var(--color-accent-text);
}

body.public-theme .card__buy-btn::before,
body.public-theme .filter-panel__actions .btn--primary::before,
body.public-theme .catalog-action.btn--primary::before,
body.public-theme .catalog__results .empty-state .btn--primary::before {
  width: 24%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .46), transparent);
}

body.public-theme .card__buy-btn:hover::before,
body.public-theme .card__buy-btn:focus-visible::before,
body.public-theme .filter-panel__actions .btn--primary:hover::before,
body.public-theme .filter-panel__actions .btn--primary:focus-visible::before,
body.public-theme .catalog-action.btn--primary:hover::before,
body.public-theme .catalog-action.btn--primary:focus-visible::before,
body.public-theme .catalog__results .empty-state .btn--primary:hover::before,
body.public-theme .catalog__results .empty-state .btn--primary:focus-visible::before {
  transform: translateX(690%) skewX(-18deg);
}

body.public-theme .product-buybox {
  border-color: rgba(163, 255, 0, .22);
  background:
    linear-gradient(135deg, rgba(163, 255, 0, .08), transparent 34%),
    rgba(10, 17, 20, .76);
}

body.public-theme .product-buybox__cta[aria-expanded="true"],
body.public-theme .product-buybox__cta[aria-expanded="true"]:hover {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #10150a;
}

body.public-theme .product-page-backdrop {
  background-image:
    linear-gradient(rgb(6 12 15 / .74), rgb(6 12 15 / .88)),
    var(--product-page-backdrop);
}

body.public-theme .product-page-surface {
  background: linear-gradient(135deg, rgb(36 49 55 / .70), rgb(25 37 42 / .70) 46%, rgb(16 23 27 / .70));
  box-shadow: 0 0 52px rgba(0, 0, 0, .48), 0 0 110px 20px rgba(13, 23, 27, .32);
}

body.public-theme .spec-groups {
  border-color: rgba(255, 255, 255, .20);
  background: rgba(20, 30, 35, .48);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .22);
}

body.public-theme .spec-group__item:nth-child(even) {
  background: rgba(255, 255, 255, .05);
}

body.public-theme .filter-panel__actions .btn--ghost,
body.public-theme .catalog-action.btn--ghost {
  color: var(--color-foreground);
}

body.public-theme .catalog__results .empty-state .btn--secondary {
  border-color: rgba(163, 255, 0, .38);
  background: rgba(163, 255, 0, .025);
  color: #F1F5F3;
}

body.public-theme .filter-panel__actions .btn--ghost:hover:not(:disabled),
body.public-theme .catalog-action.btn--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, .08);
  color: var(--color-accent);
}

body.public-theme .catalog__results .empty-state .btn--secondary:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .07);
  color: var(--color-accent);
}

body.public-theme .filter-panel__actions .btn--ghost,
body.public-theme .catalog-action.btn--ghost {
  border-color: rgba(163, 255, 0, .38);
  background: rgba(163, 255, 0, .025);
  color: #F1F5F3;
}

body.public-theme .filter-panel__actions .btn--ghost:hover:not(:disabled),
body.public-theme .catalog-action.btn--ghost:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .07);
  color: var(--color-accent);
}

body.public-theme .filter-panel__actions .btn--ghost::before,
body.public-theme .catalog-action.btn--ghost::before,
body.public-theme .catalog__results .empty-state .btn--secondary::before {
  width: 25%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .34), transparent);
}

body.public-theme .filter-panel__actions .btn--ghost:hover::before,
body.public-theme .filter-panel__actions .btn--ghost:focus-visible::before,
body.public-theme .catalog-action.btn--ghost:hover::before,
body.public-theme .catalog-action.btn--ghost:focus-visible::before,
body.public-theme .catalog__results .empty-state .btn--secondary:hover::before,
body.public-theme .catalog__results .empty-state .btn--secondary:focus-visible::before {
  transform: translateX(690%) skewX(-18deg);
}

body.public-theme .card__media {
  background: #202B31;
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
}

body.public-theme .card__media img {
  mix-blend-mode: normal;
  filter: none;
}

body.public-theme .recently-viewed__item img {
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: #202B31;
  mix-blend-mode: normal;
  filter: none;
}

@media (min-width: 768px) {
  body.public-theme .catalog__results.is-list-view .card__media {
    margin-bottom: 8px;
    border-right: 0;
  }
}

body.public-theme .card__action-btn {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(17, 25, 29, .88);
  color: #F1F5F3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}

body.public-theme .product-buybox__collections .btn--secondary {
  border-color: rgba(255, 255, 255, .28);
  background: rgba(17, 25, 29, .88);
  color: #F1F5F3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .24);
}

body.public-theme .product-buybox__collections .btn--secondary:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .12);
  color: var(--color-accent);
}

body.public-theme .card__action-btn[data-fav-toggle][aria-pressed="true"],
body.public-theme .card__action-btn[data-compare-toggle][aria-pressed="true"],
body.public-theme .product-buybox__collections [data-fav-toggle][aria-pressed="true"],
body.public-theme .product-buybox__collections [data-compare-toggle][aria-pressed="true"] {
  border-color: var(--color-accent);
  background: rgba(163, 255, 0, .16);
  color: var(--color-accent);
}

body.public-theme .card__action-btn:hover {
  color: var(--color-accent);
}

body.public-theme .pagination__item[aria-current="page"] a,
body.public-theme .pagination__item[aria-current="page"] span {
  border-color: #080D0F;
  background: #080D0F;
  color: #FFFFFF;
}

body.public-theme .category-tile:not(.category-tile--all):not(.category-tile--plain),
body.public-theme .category-tile__media,
body.public-theme .compare-table__product-media {
  background: transparent;
  color: var(--color-card-foreground);
}

body.public-theme .category-tile__media {
  border-color: rgba(255, 255, 255, .12);
}

body.public-theme .category-tile__name {
  color: var(--color-card-foreground);
}

body.public-theme .gallery__thumb-nav:hover,
body.public-theme .gallery__nav,
body.public-theme .gallery__nav:hover {
  background: var(--color-card);
  color: var(--color-card-foreground);
}

body.public-theme .gallery__thumb-nav:hover,
body.public-theme .gallery__nav:hover {
  background: var(--color-action);
  color: var(--color-on-accent);
}

/* Product-gallery arrows use the same flat lime treatment as the related-products rail. */
body.public-theme .gallery__nav:hover:not(:disabled) {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

@media (min-width: 1440px) {
  body.public-theme .catalog__results:not(.is-list-view) .grid-catalogue {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
