/*
 * Minimal Dark - design layer
 * Sits on top of built.css. Uses the theme colour variables defined in
 * layouts/master.njk (--cl-accent, --cl-card, --cl-background, --cl-t-primary)
 * so everything still follows the colour pickers in the theme editor.
*/

:root {
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.12);
  --radius: 14px;
  --radius-sm: 10px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------------------------------------
   Background
   Plain dark with a touch of film grain, so the black reads as a
   surface rather than a flat void. Nothing animates.
--------------------------------------------------------------- */

.bgfx {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

#app {
  position: relative;
  z-index: 1;
}

/* Static film grain */
.bgfx__grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.05;
}



body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.011em;
}

h1, h2, h3 {
  letter-spacing: -0.028em;
}

::selection {
  background: rgba(var(--cl-accent), 0.28);
}

:focus-visible {
  outline: 2px solid rgb(var(--cl-accent));
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------
   Hero - one line of identity, then straight into the products.
--------------------------------------------------------------- */

.hero {
  padding: 3.5rem 0 2.5rem;
  animation: hero-in 0.93s var(--ease) both;
}

/* Drifts in from the left while fading up, once, on load. */
@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(var(--cl-t-primary), 0.45);
  margin-bottom: 1.25rem;
}

.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgb(var(--cl-accent));
  box-shadow: 0 0 0 4px rgba(var(--cl-accent), 0.15);
}

/* Logo block on the left, name + description stacked beside it */
.hero__row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* The logo IS the rectangle - it fills the block edge to edge and the
   radius clips its corners. No frame, no padding around it. */
.hero__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 6rem;
  height: 6rem;
  border-radius: 20px;
  overflow: hidden;
}

.hero__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Keeps the downscale crisp rather than letting the compositor
     resample it during the entrance transform. */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Only the monogram fallback needs a surface behind it */
.hero__logo--empty {
  background: rgb(var(--cl-card));
  border: 1px solid var(--line);
}

.hero__monogram {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  color: rgb(var(--cl-accent));
}

.hero__text {
  min-width: 0;
}

.hero__title {
  font-size: clamp(1.75rem, 5.5vw, 3.5rem);
  line-height: 1.04;
  font-weight: 700;
  margin: 0;
}

.hero__subtitle {
  margin: 0.5rem 0 0;
  max-width: 34rem;
  font-size: clamp(0.9rem, 1.6vw, 1.0625rem);
  line-height: 1.55;
  color: rgba(var(--cl-t-primary), 0.5);
}

@media (max-width: 640px) {
  .hero__row {
    gap: 1rem;
  }

  .hero__logo {
    width: 4rem;
    height: 4rem;
    border-radius: 16px;
  }

  .hero__monogram {
    font-size: 1.5rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.18s var(--ease);
}

.hero__btn--solid {
  background: rgb(var(--cl-accent));
  color: rgb(var(--cl-t-accent));
}

.hero__btn--solid:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.hero__btn--ghost {
  border-color: var(--line-strong);
  color: rgba(var(--cl-t-primary), 0.8);
}

.hero__btn--ghost:hover {
  border-color: rgba(var(--cl-accent), 0.5);
  color: rgb(var(--cl-t-primary));
}

/* ---------------------------------------------------------------
   Section heading + filter toolbar
--------------------------------------------------------------- */

.sec {
  padding-bottom: 4rem;
}

.sec__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}

.sec__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin: 0;
}

.sec__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(var(--cl-t-primary), 0.8);
  border: 1px solid var(--line-strong);
  transition: all 0.16s var(--ease);
}

.sec__action:hover {
  color: rgb(var(--cl-t-primary));
  border-color: rgba(var(--cl-accent), 0.5);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.search {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 22rem;
  padding: 0.625rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease);
}

.search:focus-within {
  border-color: rgba(var(--cl-accent), 0.6);
  background: rgba(255, 255, 255, 0.05);
}

.search svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: rgba(var(--cl-t-primary), 0.35);
}

.search input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 0.875rem;
  color: rgb(var(--cl-t-primary));
}

.search input::placeholder {
  color: rgba(var(--cl-t-primary), 0.32);
}

.pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 2px;
}

.pills::-webkit-scrollbar {
  display: none;
}

.pill {
  flex: none;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  white-space: nowrap;
  color: rgba(var(--cl-t-primary), 0.55);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.pill:hover {
  color: rgb(var(--cl-t-primary));
  border-color: var(--line-strong);
}

.pill.is-active {
  background: rgb(var(--cl-t-primary));
  border-color: rgb(var(--cl-t-primary));
  color: rgb(var(--cl-background));
}

/* ---------------------------------------------------------------
   Product grid
--------------------------------------------------------------- */

/* Capped at four across so the cards stay large on wide screens -
   auto-fill was squeezing in a fifth column. */
.pgrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
}

@media (min-width: 560px) {
  .pgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .pgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

.pgrid__empty {
  padding: 4rem 0;
  text-align: center;
  font-size: 0.9375rem;
  color: rgba(var(--cl-t-primary), 0.35);
}

/* ---------------------------------------------------------------
   Product card - quiet at rest, detail on hover
--------------------------------------------------------------- */

.pc {
  display: block;
  border-radius: var(--radius);
  transition: transform 0.22s var(--ease);
}

.pc:hover {
  transform: translateY(-3px);
}

.pc__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: rgb(var(--cl-card));
  border: 1px solid var(--line);
  transition: border-color 0.22s var(--ease);
}

.pc__img {
  display: block;
  width: 100%;
  aspect-ratio: var(--product-card-image-aspect-ratio, 4 / 3);
  object-fit: var(--product-image-fit, cover);
  transition: transform 0.4s var(--ease);
}

.pc:hover .pc__img {
  transform: scale(1.04);
}

.pc__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: var(--product-card-image-aspect-ratio, 4 / 3);
  color: rgba(var(--cl-accent), 0.35);
}

.pc__placeholder svg {
  width: 3.5rem;
  height: 3.5rem;
}

.pc__badges {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  z-index: 2;
}

.pc__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgb(var(--cl-t-accent));
  background: rgb(var(--cl-accent));
}

.pc__price-slash {
  margin-left: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  text-decoration: line-through;
  color: rgba(var(--cl-t-primary), 0.3);
}

/* Caption below the image: name on the left, price on the right,
   stock count underneath in a quieter grey. */
.pc__meta {
  padding: 0.875rem 0.25rem 0;
}

.pc__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.pc__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc__price-tag {
  flex: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: rgba(var(--cl-t-primary), 0.9);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pc__stock {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: rgba(var(--cl-t-primary), 0.35);
}

/* ---------------------------------------------------------------
   Navbar / footer trims
--------------------------------------------------------------- */

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}

.nav-brand img {
  max-height: 1.75rem;
  width: auto;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(var(--cl-t-primary), 0.55);
  transition: color 0.16s var(--ease);
}

.nav-link:hover {
  color: rgb(var(--cl-t-primary));
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: rgba(var(--cl-t-primary), 0.7);
  font-size: 0.875rem;
  transition: all 0.16s var(--ease);
}

.icon-btn:hover {
  border-color: rgba(var(--cl-accent), 0.5);
  color: rgb(var(--cl-t-primary));
}

.icon-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  background: rgb(var(--cl-accent));
  color: rgb(var(--cl-t-accent));
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0 1.25rem;
  border-top: 1px solid var(--line);
  margin-bottom: 1rem;
}

.nav-menu a {
  padding: 0.5rem 0;
  font-size: 0.9375rem;
  color: rgba(var(--cl-t-primary), 0.7);
}

.nav-menu a:hover {
  color: rgb(var(--cl-t-primary));
}

@media (min-width: 900px) {
  .nav-burger {
    display: none !important;
  }
}

/* Footer */

.ft {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: rgba(var(--cl-t-primary), 0.4);
}

.ft__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.ft__links a:hover {
  color: rgb(var(--cl-t-primary));
}

.ft__socials {
  display: flex;
  gap: 0.75rem;
}

.ft__socials a {
  color: rgba(var(--cl-t-primary), 0.4);
  transition: color 0.16s var(--ease);
}

.ft__socials a:hover {
  color: rgb(var(--cl-t-primary));
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .pc:hover,
  .pc:hover .pc__img {
    transform: none;
  }
}

/* ---------------------------------------------------------------
   Back link - the top bar no longer carries the brand, so inner
   pages need an obvious route back to the grid.
--------------------------------------------------------------- */

.backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(var(--cl-t-primary), 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  transition: all 0.16s var(--ease);
}

.backlink svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  transition: transform 0.18s var(--ease);
}

.backlink:hover {
  color: rgb(var(--cl-t-primary));
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(var(--cl-accent), 0.5);
}

.backlink:hover svg {
  transform: translateX(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .backlink:hover svg {
    transform: none;
  }
}

/* ---------------------------------------------------------------
   Product page
--------------------------------------------------------------- */

.pp {
  padding-top: 1.5rem;
}

.pp-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pp-title {
  margin: 0;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
}

.pp-status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: none;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pp-status__dot {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.pp-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .pp-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 2rem;
  }

  /* Keeps price and buy button in view while reading a long description */
  .pp-side {
    position: sticky;
    top: 1.5rem;
  }
}

.pp-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 0;
}

.pp-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgb(var(--cl-card));
}

.pp-panel {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgb(var(--cl-card));
  padding: 1.25rem;
}

@media (min-width: 768px) {
  .pp-panel {
    padding: 1.5rem;
  }
}

.pp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.pp-tab {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(var(--cl-t-primary), 0.55);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  transition: all 0.16s var(--ease);
}

.pp-tab:hover {
  color: rgb(var(--cl-t-primary));
  border-color: var(--line-strong);
}

.pp-tab.is-active {
  background: rgb(var(--cl-t-primary));
  border-color: rgb(var(--cl-t-primary));
  color: rgb(var(--cl-background));
}

.pp-prose {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: rgba(var(--cl-t-primary), 0.72);
}

.pp-prose a {
  color: rgb(var(--cl-accent));
}

/* --- purchase panel --- */

.pp-pricerow {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.pp-price {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pp-each {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: rgba(var(--cl-t-primary), 0.4);
}

.pp-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(var(--cl-t-primary), 0.6);
}

.pp-stock__dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: none;
  background: currentColor;
  box-shadow: 0 0 0 3px currentColor;
  opacity: 0.9;
}

/* Plenty left */
.pp-stock.is-in {
  color: #4ade80;
}

/* 5 or fewer */
.pp-stock.is-low {
  color: #fbbf24;
}

/* None left */
.pp-stock.is-out {
  color: #f87171;
}

.pp-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.pp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgb(var(--cl-accent));
  color: rgb(var(--cl-t-accent));
}

.pp-badge--cat {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(var(--cl-t-primary), 0.8);
  border: 1px solid var(--line);
  transition: all 0.16s var(--ease);
}

.pp-badge--cat:hover {
  border-color: rgba(var(--cl-accent), 0.5);
  color: rgb(var(--cl-t-primary));
}

.pp-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: rgba(var(--cl-t-primary), 0.45);
}

.pp-stat {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pp-stat i {
  color: rgb(var(--cl-accent));
}

.pp-stat p {
  margin: 0;
}

.pp-stat__n {
  font-weight: 700;
  color: rgba(var(--cl-t-primary), 0.8);
}

.pp-upsells {
  padding-top: 3rem;
  padding-bottom: 0;
}

/* --- form controls inside the purchase panel --- */

.pp-buy label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(var(--cl-t-primary), 0.5);
}

.pp-qty {
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.16s var(--ease);
}

.pp-qty:focus-within {
  border-color: rgba(var(--cl-accent), 0.6);
}

.pp-variant {
  border-radius: 10px !important;
}

.pp-cta {
  border-radius: 999px !important;
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
  transition: all 0.18s var(--ease) !important;
}

/* Buy Now is the only purchase action now that Add to Cart is off,
   so it gets the solid treatment rather than an outline. */
.pp-cta--primary {
  background: rgb(var(--cl-accent)) !important;
  border-color: rgb(var(--cl-accent)) !important;
  color: rgb(var(--cl-t-accent)) !important;
}

.pp-cta--primary:hover:enabled {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .pp-cta--primary:hover:enabled {
    transform: none;
  }
}

/* --- volume discount meter --------------------------------------- */

.vd {
  margin-top: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.vd__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.vd__now {
  color: rgba(var(--cl-t-primary), 0.45);
}

.vd__next {
  color: rgb(var(--cl-accent));
}

.vd__track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

/* One notch per discount tier, so the ladder is visible at a glance */
.vd__tick {
  position: absolute;
  top: 0;
  width: 2px;
  height: 100%;
  margin-left: -1px;
  background: rgb(var(--cl-background));
  opacity: 0.9;
}

.vd__tick.is-hit {
  opacity: 0.35;
}

.vd__fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: rgb(var(--cl-accent));
  transition: width 0.35s var(--ease);
}

.vd__msg {
  margin: 0.55rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(var(--cl-t-primary), 0.5);
}

.vd__msg strong {
  font-weight: 700;
  color: rgba(var(--cl-t-primary), 0.9);
}

@media (prefers-reduced-motion: reduce) {
  .vd__fill {
    transition: none;
  }
}

/* ---------------------------------------------------------------
   Reviews
--------------------------------------------------------------- */

.rv {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgb(var(--cl-card));
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.16s var(--ease);
}

.rv__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.rv__stars {
  display: flex;
  gap: 0.1rem;
  color: rgb(var(--cl-accent));
}

.rv__star {
  width: 0.9rem;
  height: 0.9rem;
}

.rv__star:not(.is-on) {
  color: rgba(var(--cl-t-primary), 0.2);
}

.rv__date {
  font-size: 0.6875rem;
  color: rgba(var(--cl-t-primary), 0.35);
  white-space: nowrap;
}

.rv__msg {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(var(--cl-t-primary), 0.8);
  overflow-wrap: anywhere;
}

.rv__reply {
  margin-top: 0.7rem;
  padding: 0.6rem 0.7rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid rgb(var(--cl-accent));
}

.rv__replytext {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(var(--cl-t-primary), 0.6);
  overflow-wrap: anywhere;
}

.rv__replymeta {
  margin: 0.4rem 0 0;
  font-size: 0.6875rem;
  color: rgba(var(--cl-t-primary), 0.35);
}

.rv__replymeta span {
  color: rgb(var(--cl-accent));
}

.rv__foot {
  margin-top: auto;
  padding-top: 0.7rem;
  font-size: 0.6875rem;
  color: rgba(var(--cl-t-primary), 0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Collapsed until the card is clicked */
.rv__msg.is-clamped,
.rv__replytext.is-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rvgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 1rem;
}

/* --- product page reviews --- */

.pp-reviews__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}

.pp-reviews__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .pp-reviews__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.pp-reviews__empty {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(var(--cl-t-primary), 0.35);
}

/* --- marquee --- */

.rvm__rows {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rvm__row {
  overflow: hidden;
  /* Fades the cards out at both edges instead of cutting them dead */
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.rvm__track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.rvm__track--left {
  animation: rvm-left 60s linear infinite;
}

.rvm__track--right {
  animation: rvm-right 60s linear infinite;
}

.rvm__row:hover .rvm__track {
  animation-play-state: paused;
}

.rvm__item {
  flex: none;
  width: 20rem;
  max-width: 80vw;
}

@keyframes rvm-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes rvm-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Motion-sensitive visitors get a normal scrollable row instead */
@media (prefers-reduced-motion: reduce) {
  .rvm__row {
    overflow-x: auto;
  }

  .rvm__track--left,
  .rvm__track--right {
    animation: none;
    transform: none;
  }
}

/* ---------------------------------------------------------------
   Spotlight surfaces
   Any .spot element gets --sx/--sy from script.js (pointer position
   relative to the element). The border is painted as a gradient in
   the border-box layer, so it survives overflow: hidden, and a soft
   glow sits over the surface. Far from the cursor it collapses to a
   plain hairline.
--------------------------------------------------------------- */

.spot {
  --sx: -9999px;
  --sy: -9999px;
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(var(--cl-card), 0.9), rgba(var(--cl-card), 0.9)) padding-box,
    radial-gradient(260px circle at var(--sx) var(--sy), rgba(var(--cl-accent), 0.65), rgba(255, 255, 255, 0.07) 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.spot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(440px circle at var(--sx) var(--sy), rgba(var(--cl-accent), 0.11), transparent 45%);
  pointer-events: none;
  z-index: 5;
}

@media (hover: none) {
  .spot::after {
    display: none;
  }
}

/* --- hero stats --------------------------------------------------- */

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2rem;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.hero__statval {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: rgb(var(--cl-t-primary));
}

.hero__statlabel {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(var(--cl-t-primary), 0.4);
}

.hero__ratingrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

/* Filled stars sit over hollow ones and are revealed by width, which
   gives a partial star for free. */
.hero__stars {
  position: relative;
  display: inline-block;
  font-size: 1.25rem;
  line-height: 1;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.hero__stars-off {
  color: rgba(var(--cl-t-primary), 0.16);
}

.hero__stars-on {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  overflow: hidden;
  color: #fbbf24;
  white-space: nowrap;
}

.hero__stars-on > span {
  display: block;
}

@media (max-width: 640px) {
  .hero__stats {
    gap: 1.75rem;
  }

  .hero__statval {
    font-size: 1.375rem;
  }

  .hero__stars {
    font-size: 1.0625rem;
  }
}

.pp-reviews__more {
  margin-top: 1.25rem;
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------
   Payment methods strip
--------------------------------------------------------------- */

.pay {
  padding-bottom: 3.5rem;
}

.pay__title {
  margin: 0 0 1.25rem;
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(var(--cl-t-primary), 0.3);
}

.pay__row {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.pay__track {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  animation: pay-scroll 42s linear infinite;
}

.pay__row:hover .pay__track {
  animation-play-state: paused;
}

/* Starts shifted back and moves right, so the logos travel left to right */
@keyframes pay-scroll {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

/* Boxed like the review cards - .spot supplies the surface, the hairline
   border and the pointer glow, so these match the rest of the page. */
.pay__item {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9rem;
  height: 4.5rem;
  padding: 1rem 1.35rem;
  border-radius: var(--radius);
  color: rgba(var(--cl-t-primary), 0.5);
  transition: color 0.2s var(--ease);
}

.pay__item:hover {
  color: rgba(var(--cl-t-primary), 0.95);
}

.pay__item svg {
  height: 1.6rem;
  width: auto;
  max-width: 100%;
  display: block;
}

@media (max-width: 640px) {
  .pay__track {
    gap: 0.75rem;
  }

  .pay__item {
    width: 7rem;
    height: 3.75rem;
    padding: 0.85rem 1rem;
  }

  .pay__item svg {
    height: 1.3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pay__track {
    animation: none;
  }

  .pay__row {
    overflow-x: auto;
  }
}