/* Store home — storefront layout (header, hero, product rows, collections) */

:root {
  --store-bg: #fbf7f1;
  --store-surface: #f1ebe2;
  --store-rule: rgba(20, 21, 26, 0.55);
  --store-rule-soft: rgba(20, 21, 26, 0.14);
  --store-hover: rgba(20, 21, 26, 0.06);
  --store-accent: #89cff0;
}

html.site-night {
  --store-bg: #0f141b;
  --store-surface: rgba(255, 255, 255, 0.05);
  --store-rule: rgba(255, 255, 255, 0.28);
  --store-rule-soft: rgba(255, 255, 255, 0.1);
  --store-hover: rgba(255, 255, 255, 0.08);
}

html body.store-home,
html.site-night body.store-home {
  background: var(--store-bg);
}

html:has(body.store-home) {
  background-color: var(--store-bg);
}

/* ---------- Header ---------- */

.store-header {
  position: sticky;
  top: 0;
  z-index: 60;
  margin-bottom: var(--store-nav-h, 2.75rem);
  background: var(--store-bg);
}

.store-header-bar {
  position: relative;
  background: var(--store-bg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.55rem clamp(0.75rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--store-rule);
}

.store-header-side {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.store-header-side--right {
  justify-content: flex-end;
}

.store-logo {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--ink);
  white-space: nowrap;
  text-align: center;
}

.store-icon-btn,
.store-header .menu-toggle {
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}

.store-icon-btn:hover,
.store-header .menu-toggle:hover {
  background: var(--store-hover);
}

.store-icon-btn:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.store-header .hamburger span {
  background: var(--ink);
}

.store-site-toggle {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border: 1px solid var(--store-rule);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.store-site-toggle > * {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease;
}

.store-site-toggle a:hover {
  background: var(--store-hover);
}

.store-site-toggle a:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.store-site-toggle .is-current {
  background: var(--ink);
  color: var(--store-bg);
}

.store-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--store-accent);
  color: #0f1115;
  font-family: var(--font-ui);
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.1rem;
  text-align: center;
}

.store-cart-count[hidden] {
  display: none;
}

/* Overlays the content below the header so sliding it away never shifts the page */
.store-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: -1;
  background: var(--store-bg);
  border-bottom: 1px solid var(--store-rule);
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s;
  display: flex;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: 0.75rem clamp(1rem, 3vw, 1.75rem);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-nav::-webkit-scrollbar {
  display: none;
}

.store-header.is-nav-hidden .store-nav {
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s 0.32s;
}

@property --nav-fade-l {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

@property --nav-fade-r {
  syntax: "<length>";
  inherits: false;
  initial-value: 0px;
}

/* Mobile: edge fades mark hidden categories; a one-time wiggle hints the bar scrolls */
@media (max-width: 760px) {
  .store-nav.is-scrollable {
    -webkit-mask-image:
      linear-gradient(to right, transparent 0, #000 var(--nav-fade-l), #000 calc(100% - var(--nav-fade-r)), transparent 100%),
      linear-gradient(#000, #000);
    -webkit-mask-size: 100% 100%, 100% 1px;
    -webkit-mask-position: 0 0, 0 100%;
    -webkit-mask-repeat: no-repeat;
    mask-image:
      linear-gradient(to right, transparent 0, #000 var(--nav-fade-l), #000 calc(100% - var(--nav-fade-r)), transparent 100%),
      linear-gradient(#000, #000);
    mask-size: 100% 100%, 100% 1px;
    mask-position: 0 0, 0 100%;
    mask-repeat: no-repeat;
    transition:
      transform 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      visibility 0s,
      --nav-fade-l 0.3s ease,
      --nav-fade-r 0.3s ease;
  }

  .store-nav.can-scroll-left {
    --nav-fade-l: 2.25rem;
  }

  .store-nav.can-scroll-right {
    --nav-fade-r: 2.25rem;
  }

  .store-nav.is-hinting {
    animation: store-nav-fade 1.7s ease-in-out both;
  }

  .store-nav.is-hinting > a,
  .store-nav.is-hinting > .store-nav-caret {
    animation: store-nav-wiggle 1.7s cubic-bezier(0.45, 0, 0.25, 1) both;
  }
}

@keyframes store-nav-wiggle {
  0%,
  100% {
    transform: none;
  }
  24% {
    transform: translateX(-34px);
  }
  46% {
    transform: translateX(6px);
  }
  64% {
    transform: translateX(-14px);
  }
  82% {
    transform: translateX(2px);
  }
}

@keyframes store-nav-fade {
  0%,
  100% {
    --nav-fade-r: 2.25rem;
  }
  24% {
    --nav-fade-r: 4.5rem;
  }
  64% {
    --nav-fade-r: 3.25rem;
  }
}

.store-nav a:first-child {
  margin-left: auto;
}

.store-nav a:last-child {
  margin-right: auto;
}

.store-nav a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.2s ease;
}

.store-nav a:hover,
.store-nav a:focus-visible,
.store-nav a.is-current {
  text-decoration-color: var(--store-accent);
  outline: none;
}

.store-nav-caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  position: relative;
  top: -2.5px;
  width: 22px;
  height: 22px;
  margin-left: calc(-1 * clamp(1rem, 2.4vw, 2rem) + 0.15rem);
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex: none;
}

.store-nav-caret svg {
  transition: transform 0.2s ease;
}

.store-nav-caret[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.store-nav-caret:hover,
.store-nav-caret[aria-expanded="true"] {
  background: var(--store-hover);
}

.store-nav-caret:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 1px;
}

.store-nav-drop {
  position: absolute;
  z-index: 2;
  display: grid;
  min-width: 11rem;
  padding: 0.4rem;
  border: 1px solid var(--store-rule-soft);
  border-radius: 12px;
  background: var(--store-bg);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.store-nav-drop[hidden] {
  display: none;
}

.store-nav-drop a {
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-nav-drop a:hover,
.store-nav-drop a:focus-visible,
.store-nav-drop a.is-current {
  background: var(--store-hover);
  outline: none;
}

.store-search {
  position: relative;
  background: var(--store-bg);
  display: flex;
  justify-content: center;
  padding: 0.75rem clamp(1rem, 3vw, 1.75rem) 0.9rem;
  border-top: 1px solid var(--store-rule-soft);
}

.store-search[hidden] {
  display: none;
}

.store-search-field {
  width: min(34rem, 100%);
}

.store-search-field input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--store-rule);
  border-radius: 999px;
  background: var(--store-surface);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
}

.store-search-field input:focus {
  outline: 2px solid var(--store-accent);
  outline-offset: 1px;
}

/* ---------- Main ---------- */

.store-main {
  width: 100%;
  padding: 0 0 4rem;
}

.store-search-results,
.store-row,
.store-help {
  width: min(72rem, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

/* Padding, not margin: a top margin here merges into the header's bottom margin (the space it keeps
   for the categories bar) and disappears */
.store-search-results {
  padding-top: 1.75rem;
  margin-bottom: 1.5rem;
}

.store-search-results[hidden] {
  display: none;
}

.store-search-results .physical-product[data-href] {
  cursor: pointer;
}

.store-search-results .physical-product-link {
  color: inherit;
  text-decoration: none;
}

.store-search-results .physical-product[data-href]:hover .physical-product-link,
.store-search-results .physical-product-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.store-row,
.store-help {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  scroll-margin-top: 9rem;
}

/* Hero */
.store-hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(20rem, 52vh, 30rem);
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid var(--store-rule);
  background:
    radial-gradient(circle at 16% 28%, rgba(137, 207, 240, 0.6), transparent 42%),
    radial-gradient(circle at 84% 72%, rgba(255, 196, 120, 0.45), transparent 46%),
    #eaf4f9;
}

.store-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 21, 26, 0.16) 1.1px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
  mask-image: radial-gradient(ellipse at center, transparent 30%, #000 80%);
  pointer-events: none;
}

html.site-night .store-hero {
  background:
    radial-gradient(circle at 16% 28%, rgba(137, 207, 240, 0.28), transparent 44%),
    radial-gradient(circle at 84% 72%, rgba(80, 120, 180, 0.3), transparent 46%),
    #121b25;
}

html.site-night .store-hero::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.1px, transparent 1.6px);
}

.store-hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.store-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.4rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink);
}

.store-hero-sub {
  max-width: 30rem;
  font-size: 1rem;
  color: var(--ink-muted);
}

.store-hero-cta,
.store-card-add {
  font-family: var(--font-ui);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.store-hero-cta {
  padding: 0.95rem 1.6rem;
  background: var(--ink);
  color: var(--store-bg);
  font-size: 0.74rem;
}

.store-hero-cta:hover,
.store-hero-cta:focus-visible {
  background: var(--store-accent);
  color: #0f1115;
  outline: none;
}

/* Hero slideshow (New & Trending) */
.store-hero.is-pending .store-hero-inner {
  visibility: hidden;
  animation: store-hero-reveal 0s 3s forwards;
}

@keyframes store-hero-reveal {
  to { visibility: visible; }
}

.store-hero.has-slides {
  display: block;
  place-items: normal;
  padding: 0;
}

.store-hero.has-slides .store-hero-inner {
  display: none;
}

.store-slides {
  position: relative;
  width: 100%;
}

/* Slides share one grid cell, so the track grows to the tallest slide instead of clipping long titles */
.store-slides-track {
  position: relative;
  display: grid;
  min-height: clamp(20rem, 52vh, 30rem);
}

.store-slide {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem) clamp(4rem, 9vw, 7rem) clamp(3.25rem, 6vw, 4.25rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0s linear 0.7s;
}

.store-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0s;
}

.store-slide-bg {
  position: absolute;
  inset: -40px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(36px) saturate(1.2);
  opacity: 0.35;
  pointer-events: none;
}

.store-slide-copy,
.store-slide-media {
  position: relative;
  z-index: 1;
}

.store-slide-copy {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  text-align: left;
}

.store-slide-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.store-slide-new {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--store-accent);
  color: #0f1115;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.store-slide-eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}

.store-slide-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink);
}

.store-slide-text {
  max-width: 30rem;
  margin: 0;
  font-size: 1rem;
  color: var(--ink);
}

.store-slide-price {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.store-slide-media {
  --slide-media-h: clamp(14rem, 40vh, 22rem);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: var(--slide-media-h);
  overflow: hidden;
}

/* Safari can blow tall product photos up past a % max-height, so cap with the box's own size */
.store-slide-media img {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  min-height: 0;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--slide-media-h);
  object-fit: contain;
  border-radius: 12px;
  background: #eef0f3;
  box-shadow: 0 18px 40px rgba(15, 17, 21, 0.25);
}

.store-slides-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: -1.3rem;
  border: 1px solid var(--store-rule);
  border-radius: 50%;
  background: var(--store-bg);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}

.store-slides-arrow:hover,
.store-slides-arrow:focus-visible {
  background: var(--store-hover);
  outline: none;
}

.store-slides-arrow:focus-visible,
.store-slides-dots button:focus-visible {
  box-shadow: 0 0 0 2px var(--store-accent);
}

.store-slides-arrow--prev { left: clamp(0.75rem, 2.5vw, 1.75rem); }
.store-slides-arrow--next { right: clamp(0.75rem, 2.5vw, 1.75rem); }

.store-slides-dots {
  position: absolute;
  left: 50%;
  bottom: 1.1rem;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  transform: translateX(-50%);
}

.store-slides-dots button {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.store-slides-dots button[aria-current="true"] {
  width: 1.6rem;
  background: var(--ink);
}

.store-slides.is-single .store-slides-arrow,
.store-slides.is-single .store-slides-dots {
  display: none;
}

@media (max-width: 700px) {
  .store-slides-track {
    min-height: 34rem;
  }

  .store-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-content: center;
    gap: 1.25rem;
    padding: 1.75rem 1.25rem 3.25rem;
  }

  .store-slide-media {
    --slide-media-h: 16rem;
    order: -1;
  }

  .store-slide-copy {
    justify-items: center;
    text-align: center;
  }

  .store-slides-arrow {
    top: auto;
    bottom: 0.65rem;
    margin-top: 0;
    width: 2.2rem;
    height: 2.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-slide,
  .store-slide.is-active {
    transition: none;
  }
}

/* Row header */
.store-row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.store-row-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.store-row-arrows {
  display: flex;
  gap: 0.45rem;
}

.store-row:not(.has-overflow) .store-row-arrows {
  visibility: hidden;
}

.store-arrow {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--store-rule);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.store-arrow:hover:not(:disabled) {
  background: var(--store-hover);
}

.store-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* Product track */
.store-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(11rem, 22%, 16rem);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.25rem;
}

.store-track::-webkit-scrollbar {
  display: none;
}

.store-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  min-width: 0;
  scroll-snap-align: start;
}

.store-card-media {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 6px;
  background: var(--store-surface);
}

.store-card-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-card:hover .store-card-media img {
  transform: scale(1.04);
}

.store-card-media[data-tone="sky"],
.store-collection[data-tone="sky"] {
  background: linear-gradient(135deg, #d6eef9, #89cff0);
  color: #14151a;
}

.store-card-media[data-tone="night"],
.store-collection[data-tone="night"] {
  background: linear-gradient(135deg, #243245, #0f141b);
  color: #fff;
}

.store-card-media[data-tone="sand"],
.store-collection[data-tone="sand"] {
  background: linear-gradient(135deg, #f5e6cc, #e3c292);
  color: #14151a;
}

.store-card-media[data-tone="ink"],
.store-collection[data-tone="ink"] {
  background: linear-gradient(135deg, #34363e, #14151a);
  color: #fff;
}

.store-card-soon {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-card-badge {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--store-bg);
  font-family: var(--font-ui);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.store-card-name {
  margin-top: 0.35rem;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.35;
  color: var(--ink);
}

a.store-card-name:hover {
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.store-card-price {
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.store-card-add {
  margin-top: 0.25rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.64rem;
  cursor: pointer;
}

.store-card-add:hover,
.store-card-add:focus-visible {
  background: var(--ink);
  color: var(--store-bg);
  outline: none;
}

.store-card.is-skeleton .store-card-media,
.store-card.is-skeleton .store-card-name {
  background: linear-gradient(90deg, var(--store-surface), var(--store-hover), var(--store-surface));
  background-size: 200% 100%;
  animation: store-shimmer 1.4s ease-in-out infinite;
}

.store-card.is-skeleton .store-card-name {
  width: 65%;
  height: 0.9rem;
  border-radius: 4px;
}

@keyframes store-shimmer {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* Collections */
.store-collections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.store-collection {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 6px;
  background: var(--store-surface);
  isolation: isolate;
}

.store-collection img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.store-collection:has(img)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 45%, rgba(15, 17, 21, 0.7) 100%);
}

.store-collection:has(img) {
  color: #fff;
}

.store-collection:hover img {
  transform: scale(1.05);
}

.store-collection-name {
  padding: 1.1rem;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
}

.store-collection:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 3px;
}

/* Help */
.store-help {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: clamp(1.4rem, 4vw, 2rem);
  border: 1px solid var(--store-rule-soft);
  border-radius: 10px;
  text-align: center;
}

.store-help p {
  max-width: 40rem;
  color: var(--ink-muted);
}

.store-help a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Collection pages ---------- */

.coll-head {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  padding: clamp(2rem, 6vw, 3.5rem) 1rem clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

.coll-crumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.coll-crumbs a {
  color: var(--ink);
}

.coll-crumbs a:hover {
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.coll-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--ink);
}

.coll-desc {
  margin: 0;
  max-width: 34rem;
  color: var(--ink-muted);
}
.help-body {
  display: grid;
  gap: clamp(1.75rem, 4vw, 2.5rem);
  width: min(46rem, calc(100% - 2rem));
  margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.help-section h2 {
  margin: 0 0 0.8rem;
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}

.help-section p,
.help-section li {
  color: var(--ink-muted);
  line-height: 1.65;
}

.help-section p {
  margin: 0 0 0.75rem;
}

.help-section ul {
  margin: 0;
  padding-left: 1.2rem;
}

.help-section li + li {
  margin-top: 0.5rem;
}

.help-section strong {
  color: var(--ink);
}

.help-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: help-step;
}

.help-steps li {
  position: relative;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--store-rule-soft);
  border-radius: 14px;
  background: var(--store-surface);
  counter-increment: help-step;
}

.help-steps li + li {
  margin-top: 0;
}

.help-steps li::before {
  content: counter(help-step);
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--store-bg);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 800;
}

.help-steps h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.help-steps p {
  margin: 0;
  font-size: 0.94rem;
}

.help-contact {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  border: 1px solid var(--store-rule-soft);
  border-radius: 16px;
  text-align: center;
}

.help-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}

.help-links a:not(.store-hero-cta) {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.coll-layout {
  display: grid;
  grid-template-columns: 14.5rem minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.25rem);
  width: min(80rem, calc(100% - 2rem));
  margin: 0 auto;
}

.coll-filters {
  position: sticky;
  top: 8.5rem;
  align-self: start;
}

.coll-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.coll-filters-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--store-hover);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.coll-filters-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-ui);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--ink);
}

.coll-filter {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--store-rule-soft);
}

.coll-filter:last-child {
  border-bottom: 0;
}

.coll-filter h3 {
  margin: 0 0 0.7rem;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.coll-cats {
  margin: 0;
  padding: 0;
  list-style: none;
}

.coll-cats a {
  display: inline-block;
  padding: 0.28rem 0;
  color: var(--ink-muted);
  font-size: 0.94rem;
  transition: color 0.2s ease;
}

.coll-cats a:hover {
  color: var(--ink);
}

.coll-cats a.is-current {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.coll-cats .is-sub a {
  padding-left: 0.9rem;
}

.coll-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.28rem 0;
  font-size: 0.94rem;
  color: var(--ink);
  cursor: pointer;
}

.coll-check input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #89cff0;
  cursor: pointer;
}

.coll-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--store-rule-soft);
}

.coll-filter-toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--store-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.coll-sort select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.55rem 2.2rem 0.55rem 1rem;
  border: 1px solid var(--store-rule);
  border-radius: 999px;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    no-repeat right 0.85rem center / 12px;
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

html.site-night .coll-sort select option {
  background: #0f141b;
}

.coll-sort select:focus-visible,
.coll-filter-toggle:focus-visible,
.coll-cols button:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.coll-count {
  margin-right: auto;
  color: var(--ink-muted);
  font-size: 0.86rem;
}

.coll-cols {
  display: flex;
  gap: 0.35rem;
}

.coll-cols button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--store-rule-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.coll-cols button span {
  width: 2px;
  height: 12px;
  border-radius: 1px;
  background: currentColor;
}

.coll-cols button:hover {
  background: var(--store-hover);
}

.coll-cols button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--store-bg);
}

.coll-status {
  margin: 0 0 1.5rem;
  padding: 3rem 1rem;
  border: 1px dashed var(--store-rule-soft);
  border-radius: 10px;
  text-align: center;
}

.coll-status[hidden] {
  display: none;
}

.coll-grid {
  --cols: 4;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 2rem clamp(0.9rem, 2vw, 1.5rem);
}

.coll-grid[data-cols="2"] { --cols: 2; }
.coll-grid[data-cols="3"] { --cols: 3; }

.coll-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-width: 0;
}

.coll-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--store-surface);
}

.coll-card-img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.coll-card-name a:hover,
.coll-card-name a:focus-visible {
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  outline: none;
}

.coll-card-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.coll-card:hover .coll-card-img img {
  transform: scale(1.04);
}

.coll-card-img.is-empty {
  background: linear-gradient(160deg, #e3f3fb, #cfe9f7);
}

.coll-card-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--store-bg);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coll-card-quick {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  padding: 0.8rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--store-bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.coll-card:hover .coll-card-quick,
.coll-card:focus-within .coll-card-quick {
  opacity: 1;
  transform: translateY(0);
}

.coll-card-quick:hover,
.coll-card-quick:focus-visible {
  background: var(--ink);
  color: var(--store-bg);
  outline: none;
}

.coll-card.is-sold-out .coll-card-img img {
  opacity: 0.55;
}

.coll-card-body {
  display: grid;
  gap: 0.2rem;
}

.coll-card-name {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.coll-card-price {
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.coll-card-variant select {
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--store-rule-soft);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.86rem;
}

.coll-perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.75rem;
  width: min(80rem, calc(100% - 2rem));
  margin: clamp(3rem, 8vw, 5rem) auto 0;
  padding-top: 2.5rem;
  border-top: 1px solid var(--store-rule-soft);
  scroll-margin-top: 9rem;
}

.coll-perk {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  text-align: center;
  color: var(--ink);
}

.coll-perk svg {
  margin-bottom: 0.3rem;
  color: var(--ink);
}

.coll-perk h3 {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.coll-perk p {
  margin: 0;
  max-width: 17rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.coll-perk a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

@media (max-width: 1100px) {
  .coll-grid[data-cols="4"] { --cols: 3; }
}

@media (max-width: 900px) {
  .coll-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  body.coll-filters-open {
    overflow: hidden;
  }

  body.coll-filters-open .coll-main {
    z-index: 1100;
  }

  .coll-filters {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    align-self: stretch;
    z-index: 1100;
    width: min(20rem, 86vw);
    overflow-y: auto;
    padding: 1.25rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    background: var(--store-bg);
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.18);
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), visibility 0s linear 0.3s;
  }

  .coll-layout.is-filters-open .coll-filters {
    transform: none;
    visibility: visible;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .coll-layout.is-filters-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1099;
    background: rgba(8, 12, 18, 0.45);
  }

  .coll-filters-close {
    display: inline-flex;
  }

  .coll-filter-toggle {
    display: inline-flex;
  }

  .coll-perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .coll-grid,
  .coll-grid[data-cols] {
    --cols: 2;
  }

  .coll-cols {
    display: none;
  }
}

@media (hover: none) {
  .coll-card-quick {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Product page ---------- */

.prod-page {
  width: min(72rem, calc(100% - 2rem));
  margin: 0 auto;
}

.prod-crumbs {
  padding: clamp(1.25rem, 3vw, 1.75rem) 0 clamp(1.25rem, 3vw, 1.75rem);
}

.prod-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4.5vw, 3.5rem);
  align-items: start;
}

.prod-gallery {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.prod-thumbs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.prod-thumbs[hidden] {
  display: none;
}

.prod-thumbs[hidden] + .prod-main-img {
  grid-column: 1 / -1;
}

.prod-thumb {
  display: block;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--store-rule-soft);
  border-radius: 6px;
  background: var(--store-surface);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.prod-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prod-thumb:hover,
.prod-thumb[aria-current="true"] {
  opacity: 1;
}

.prod-thumb[aria-current="true"] {
  border-color: var(--ink);
}

.prod-thumb:focus-visible,
.prod-main-img:focus-visible,
.prod-pill:focus-visible,
.prod-tab:focus-visible {
  outline: 2px solid var(--store-accent);
  outline-offset: 2px;
}

.prod-main-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: var(--store-surface);
  cursor: zoom-in;
}

.prod-main-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prod-main-img.is-loading,
.prod-skel {
  background: linear-gradient(100deg, var(--store-surface) 30%, var(--store-hover) 50%, var(--store-surface) 70%);
  background-size: 200% 100%;
  animation: store-shimmer 1.4s linear infinite;
}

.prod-main-img.is-empty {
  cursor: default;
  background: linear-gradient(160deg, #e3f3fb, #cfe9f7);
}

html.site-night .store-card-media:has(> img),
html.site-night .coll-card-media:has(img),
html.site-night .prod-main-img:not(.is-loading):not(.is-empty):has(img),
html.site-night .prod-thumb:has(img),
html.site-night .quick-view-main:has(img),
html.site-night .quick-view-thumbs button:has(img) {
  background: #eef0f3;
}

.prod-info {
  display: grid;
  gap: 0.9rem;
  position: sticky;
  top: 8.5rem;
}

.prod-skel {
  display: block;
  border-radius: 6px;
}

.prod-skel--kicker { width: 30%; height: 0.8rem; }
.prod-skel--title { width: 80%; height: 2.4rem; }
.prod-skel--price { width: 22%; height: 1.4rem; }
.prod-skel--button { width: 100%; height: 3rem; border-radius: 999px; }

.prod-kicker {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.prod-title {
  margin: -0.35rem 0 0;
  font-family: var(--font-body);
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.prod-price {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--ink);
}

.prod-badge {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--store-bg);
  font-family: var(--font-ui);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.prod-option {
  display: grid;
  gap: 0.55rem;
}

.prod-option-label {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.prod-option-label strong {
  color: var(--ink);
  font-weight: 600;
}

.prod-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prod-pill {
  min-width: 3rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--store-rule-soft);
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.prod-pill:hover {
  border-color: var(--ink);
}

.prod-pill[aria-checked="true"] {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.prod-pill:disabled {
  opacity: 0.4;
  text-decoration: line-through;
  cursor: not-allowed;
}

.prod-pill.is-swatch {
  width: 2.2rem;
  min-width: 0;
  height: 2.2rem;
  padding: 0;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.prod-pill.is-swatch[aria-checked="true"] {
  box-shadow: 0 0 0 2px var(--store-bg), 0 0 0 3.5px var(--ink);
}

.prod-buy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: -0.35rem;
}

.prod-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--store-surface);
}

.prod-qty button {
  width: 2.6rem;
  height: 3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.prod-qty input {
  width: 2.2rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  text-align: center;
  -moz-appearance: textfield;
}

.prod-qty input::-webkit-outer-spin-button,
.prod-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.prod-add,
.prod-buy-now {
  min-height: 3rem;
  padding: 0.8rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.prod-add {
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.prod-add:hover:not(:disabled) {
  background: var(--ink);
  color: var(--store-bg);
}

.prod-buy-now {
  border: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--store-bg);
}

.prod-buy-now:hover:not(:disabled) {
  background: #89cff0;
  border-color: #89cff0;
  color: #0f1115;
}

.prod-add:disabled,
.prod-buy-now:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.prod-msg {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.prod-msg.is-error {
  color: #b3452f;
}

.prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0.35rem 0 1rem;
  border-bottom: 1px solid var(--store-rule-soft);
}

.prod-actions button,
.prod-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.9rem;
  cursor: pointer;
}

.prod-share-link {
  flex: 1 0 100%;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--store-rule);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
}

.prod-actions button:hover span,
.prod-actions a:hover span {
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.prod-meta {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prod-meta li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.prod-meta svg {
  flex-shrink: 0;
  color: var(--ink);
}

.prod-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.prod-tabs {
  margin-top: clamp(2.75rem, 7vw, 4.5rem);
}

.prod-tablist {
  display: flex;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 2.75rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--store-rule-soft);
  scrollbar-width: none;
}

.prod-tablist::-webkit-scrollbar {
  display: none;
}

.prod-tab {
  flex-shrink: 0;
  margin-bottom: -1px;
  padding: 0.85rem 0.1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.prod-tab:hover {
  color: var(--ink);
}

.prod-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

.prod-panel {
  max-width: 48rem;
  margin: 0 auto;
  padding: 1.75rem 0 0;
  color: var(--ink-muted);
  line-height: 1.7;
}

.prod-panel p,
.prod-panel ul,
.prod-panel ol {
  margin: 0 0 0.9rem;
}

.prod-panel ul,
.prod-panel ol {
  padding-left: 1.2rem;
}

.prod-panel a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--store-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.prod-related {
  width: min(72rem, calc(100% - 2rem));
  margin: clamp(3rem, 8vw, 5rem) auto 0;
}

/* Read by the Custom CSS pasted into the Elfsight Comments widget (custom properties cross its shadow root). */
.prod-comments {
  --cpjr-c-surface: var(--store-surface);
  --cpjr-c-text: var(--ink);
  --cpjr-c-muted: var(--ink-muted);
  --cpjr-c-field: rgba(20, 21, 26, 0.04);
  --cpjr-c-border: var(--store-rule-soft);
  --cpjr-c-accent: var(--store-accent);
  --cpjr-c-on-accent: #14151a;
  --cpjr-c-font: "DM Sans", system-ui, sans-serif;
}

html.site-night .prod-comments {
  --cpjr-c-field: rgba(255, 255, 255, 0.06);
}

.prod-comments-note {
  margin: 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--store-rule);
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-muted);
}

.prod-comments-note a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prod-related .store-row-title {
  margin: 0 0 1.25rem;
  text-align: center;
}

.prod-missing {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: clamp(3rem, 10vw, 6rem) 1rem;
  text-align: center;
  color: var(--ink-muted);
}

@media (max-width: 900px) {
  .prod-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .prod-info {
    position: static;
  }

  .prod-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .prod-thumbs {
    grid-row: 2;
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .prod-thumbs::-webkit-scrollbar {
    display: none;
  }

  .prod-thumb {
    flex: 0 0 4.25rem;
  }

  .prod-tablist {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prod-main-img.is-loading,
  .prod-skel {
    animation: none;
  }
}

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .store-track {
    grid-auto-columns: 44%;
    gap: 0.9rem;
  }

  .store-collections {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
  }

  .store-collection {
    aspect-ratio: 1;
  }
}

@media (max-width: 640px) {
  .store-header-bar {
    grid-template-columns: 38px 38px 1fr 38px 38px;
    grid-template-areas:
      "menu search logo . cart"
      "toggle toggle toggle toggle toggle";
    min-height: 0;
    row-gap: 0;
    column-gap: 0.15rem;
    padding: 0.5rem 0.6rem 0.65rem;
  }

  .store-header-side {
    display: contents;
  }

  .store-header .menu-toggle {
    grid-area: menu;
  }

  #storeSearchToggle {
    grid-area: search;
  }

  .store-logo {
    grid-area: logo;
    font-size: 1.15rem;
    letter-spacing: 0.05em;
  }

  .store-cart-btn {
    grid-area: cart;
  }

  /* The toggle row folds away with the categories. The header's bottom margin grows by exactly what the
     row loses (same timing), so the page below never moves */
  .store-header {
    transition: margin-bottom 0.32s cubic-bezier(0.2, 0.7, 0.2, 1);
  }

  .store-header.is-toggle-hidden {
    margin-bottom: calc(var(--store-nav-h, 2.75rem) + var(--store-toggle-h, 3rem) + 0.45rem);
  }

  .store-site-toggle {
    grid-area: toggle;
    justify-self: center;
    /* Must match the 0.45rem added to the header's margin in .is-toggle-hidden */
    margin-top: 0.45rem;
    max-height: var(--store-toggle-h, 3rem);
    transition:
      max-height 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      margin-top 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      padding 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      border-width 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 0.2s ease,
      visibility 0s;
  }

  .store-header.is-toggle-hidden .store-site-toggle,
  .store-header.is-search-open .store-site-toggle {
    max-height: 0;
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-width: 0;
    border-bottom-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition:
      max-height 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      margin-top 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      padding 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      border-width 0.32s cubic-bezier(0.2, 0.7, 0.2, 1),
      opacity 0.2s ease,
      visibility 0s 0.32s;
  }

  .store-icon-btn,
  .store-header .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .store-row,
  .store-help {
    scroll-margin-top: 11rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-card-media img,
  .store-collection img,
  .store-nav,
  .store-header.is-nav-hidden .store-nav,
  .store-header,
  .store-site-toggle,
  .store-header.is-toggle-hidden .store-site-toggle,
  .store-header.is-search-open .store-site-toggle {
    transition: none;
  }

  .store-card.is-skeleton .store-card-media,
  .store-card.is-skeleton .store-card-name {
    animation: none;
  }

  .store-nav.is-hinting,
  .store-nav.is-hinting > a,
  .store-nav.is-hinting > .store-nav-caret {
    animation: none;
  }
}

/* Quick view (eye button on product cards) */
.store-card {
  position: relative;
}

.quick-view-btn {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--store-bg);
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.2s ease, color 0.2s ease;
}

.coll-card:hover .quick-view-btn,
.coll-card:focus-within .quick-view-btn,
.store-card:hover .quick-view-btn,
.store-card:focus-within .quick-view-btn {
  opacity: 1;
  transform: none;
}

.quick-view-btn:hover,
.quick-view-btn:focus-visible {
  background: var(--ink);
  color: var(--store-bg);
  outline: none;
}

@media (hover: none) {
  .quick-view-btn {
    width: 2.1rem;
    height: 2.1rem;
    opacity: 1;
    transform: none;
  }
}

html.quick-view-open,
html.quick-view-open body {
  overflow: hidden;
}

.quick-view {
  position: fixed;
  inset: 0;
  z-index: 115;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.quick-view[hidden] {
  display: none;
}

.quick-view-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.5);
  animation: quick-view-fade 0.25s ease;
}

.quick-view-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(58rem, 100%);
  max-height: min(40rem, calc(100vh - 3rem));
  overflow: hidden;
  border-radius: 10px;
  background: var(--store-bg);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
  animation: quick-view-in 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes quick-view-fade {
  from {
    opacity: 0;
  }
}

@keyframes quick-view-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
}

.quick-view-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 3;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--store-bg);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.quick-view-close:hover,
.quick-view-close:focus-visible {
  background: var(--store-hover);
  outline: none;
}

.quick-view-media {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--store-surface);
}

/* Product photos are shot on white, so the whole photo column (thumbs included) matches them */
.quick-view-media:has(img),
html.site-night .quick-view-media:has(img),
html.site-night .quick-view-main:has(img),
html.site-night .quick-view-thumbs button:has(img) {
  background: #fff;
}

.quick-view-main {
  --qv-pad: 0.75rem;
  position: relative;
  flex: 1;
  min-height: 22rem;
}

.quick-view-main img {
  position: absolute;
  top: var(--qv-pad);
  left: var(--qv-pad);
  width: calc(100% - 2 * var(--qv-pad));
  height: calc(100% - 2 * var(--qv-pad));
  object-fit: contain;
}

.quick-view-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.25rem 1rem 1rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.quick-view-thumbs[hidden] {
  display: none;
}

.quick-view-thumbs button {
  flex: 0 0 auto;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 2px solid rgba(20, 21, 26, 0.12);
  border-radius: 6px;
  overflow: hidden;
  background: var(--store-bg);
  cursor: pointer;
}

.quick-view-thumbs button.is-active {
  border-color: #14151a;
}

.quick-view-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quick-view-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 2rem 1.75rem 1.75rem;
}

.quick-view-title {
  margin: 0;
  padding-right: 2rem;
  font-family: var(--font-body);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.quick-view-price {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
}

.quick-view-desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.quick-view-desc[hidden] {
  display: none;
}

.quick-view-details {
  color: var(--ink);
  font-size: 0.92rem;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quick-view-stock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.quick-view-stock::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #4caf7a;
}

.quick-view-stock.is-out::before {
  background: #c45a5a;
}

.quick-view-options,
.quick-view-buy {
  width: 100%;
}

.quick-view-options[hidden],
.quick-view-buy[hidden] {
  display: none;
}

.quick-view-label {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.quick-view-label span {
  font-weight: 400;
  color: var(--ink-muted);
}

.quick-view-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-view-pills button {
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--store-rule);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.quick-view-pills button:hover {
  border-color: var(--ink);
}

.quick-view-pills button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--store-bg);
}

.quick-view-row {
  display: flex;
  gap: 0.6rem;
  width: 100%;
}

.quick-view-qty {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--store-rule);
  border-radius: 999px;
}

.quick-view-qty button {
  width: 2.6rem;
  height: 2.9rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}

.quick-view-qty span {
  min-width: 1.6rem;
  text-align: center;
  font-weight: 600;
}

.quick-view-add,
.quick-view-now {
  flex: 1;
  min-height: 2.9rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.quick-view-add {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
}

.quick-view-add:hover:not(:disabled),
.quick-view-add:focus-visible {
  background: var(--ink);
  color: var(--store-bg);
  outline: none;
}

.quick-view-now {
  width: 100%;
  margin-top: 0.6rem;
  border: 0;
  background: var(--store-accent);
  color: #0f141b;
}

.quick-view-now:hover:not(:disabled),
.quick-view-now:focus-visible {
  opacity: 0.88;
  outline: none;
}

.quick-view-add:disabled,
.quick-view-now:disabled {
  opacity: 0.55;
  cursor: default;
}

#quickViewSoldOut {
  width: 100%;
  flex: none;
}

#quickViewSoldOut[hidden] {
  display: none;
}

/* Phones: a sheet that slides up from the bottom */
@media (max-width: 640px) {
  .quick-view {
    place-items: end stretch;
    padding: 0;
  }

  .quick-view-panel {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 14px 14px 0 0;
    animation-name: quick-view-up;
  }

  @keyframes quick-view-up {
    from {
      transform: translateY(100%);
    }
  }

  .quick-view-main {
    --qv-pad: 0.85rem;
    flex: none;
    min-height: 0;
    height: min(28vh, 12.5rem);
  }

  .quick-view-thumbs {
    padding: 0 0.85rem 0.75rem;
  }

  .quick-view-thumbs button {
    width: 2.8rem;
    height: 2.8rem;
  }

  .quick-view-info {
    gap: 0.75rem;
    padding: 1.25rem 1.1rem max(1.25rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .quick-view-btn,
  .quick-view-backdrop,
  .quick-view-panel {
    transition: none;
    animation: none;
  }
}

/* ---------- BLOOP cart (every page with the store header loads this file) ---------- */

.cpjr-bot-cart {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(122, 215, 255, 0.22);
  background: linear-gradient(180deg, rgba(122, 215, 255, 0.1), transparent 88%);
  padding: 0.65rem 0.75rem 0.75rem;
}

.cpjr-bot-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.cpjr-bot-cart-head strong {
  font-family: var(--font-ui, "Raleway", sans-serif);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e8f8ff;
}

.cpjr-bot-cart-count {
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(137, 207, 240, 0.92);
  color: #101822;
  font-family: var(--font-ui, "Raleway", sans-serif);
  font-size: 0.7rem;
  font-weight: 800;
}

.cpjr-bot-cart-msg {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  color: rgba(232, 248, 255, 0.78);
}

.cpjr-bot-cart-msg.is-error {
  color: #ffb4a4;
}

.cpjr-bot-cart-items {
  max-height: min(11rem, 32vh);
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding-right: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.cpjr-bot-cart-empty {
  margin: 0;
  color: rgba(232, 248, 255, 0.62);
  font-size: 0.78rem;
  line-height: 1.4;
}

.cpjr-bot-cart-line {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: start;
  padding: 0.45rem;
  border: 1px solid rgba(122, 215, 255, 0.2);
  background: rgba(8, 22, 36, 0.42);
}

.cpjr-bot-cart-thumb {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: cover;
  display: block;
  background: rgba(255, 255, 255, 0.08);
}

.cpjr-bot-cart-thumb.is-empty {
  background: linear-gradient(135deg, #1d3a5c 0%, #89cff0 55%, #f7f1e8 100%);
}

.cpjr-bot-cart-line-copy h3 {
  margin: 0 0 0.15rem;
  font-family: var(--font-ui, "Raleway", sans-serif);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e8f8ff;
}

.cpjr-bot-cart-line-copy p {
  margin: 0;
  color: rgba(232, 248, 255, 0.62);
  font-size: 0.7rem;
  line-height: 1.3;
}

.cpjr-bot-cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.35rem;
  border: 1px solid rgba(122, 215, 255, 0.28);
  background: rgba(8, 22, 36, 0.55);
}

.cpjr-bot-cart-qty button {
  appearance: none;
  border: 0;
  background: transparent;
  color: #e8f8ff;
  width: 1.45rem;
  height: 1.45rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.cpjr-bot-cart-qty span {
  min-width: 1rem;
  text-align: center;
  font-family: var(--font-ui, "Raleway", sans-serif);
  font-weight: 700;
  font-size: 0.72rem;
  color: #e8f8ff;
}

.cpjr-bot-cart-remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(232, 248, 255, 0.62);
  font: inherit;
  font-size: 0.68rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.1rem 0;
  justify-self: end;
}

.cpjr-bot-cart-foot {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(122, 215, 255, 0.18);
}

.cpjr-bot-cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: rgba(232, 248, 255, 0.78);
}

.cpjr-bot-cart-subtotal strong {
  font-family: var(--font-ui, "Raleway", sans-serif);
  font-weight: 800;
  color: #e8f8ff;
}

.cpjr-bot-cart-checkout {
  appearance: none;
  width: 100%;
  border: 0;
  background: rgba(137, 207, 240, 0.95);
  color: #101822;
  font: inherit;
  font-family: var(--font-ui, "Raleway", sans-serif);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
}

.cpjr-bot-cart-checkout:hover:not(:disabled) {
  background: #a9dbf4;
}

.cpjr-bot-cart-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cpjr-bot-cart-note {
  margin: 0.4rem 0 0;
  color: rgba(232, 248, 255, 0.55);
  font-size: 0.68rem;
  line-height: 1.35;
}

.cpjr-bot-cart[hidden] {
  display: none !important;
}

/* Protruding chat-bubble cart count (left of the orb) */
.cpjr-bot-cart-badge {
  position: absolute;
  top: auto;
  right: calc(100% + 0.4rem);
  bottom: 0.4rem;
  z-index: 4;
  min-width: 1.75rem;
  height: 1.75rem;
  padding: 0 0.52rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.15rem 1.15rem 0.22rem 1.15rem;
  background: #89cff0;
  color: #101822;
  font-family: var(--font-ui, "Raleway", sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  pointer-events: none;
  box-shadow:
    0 4px 14px rgba(8, 18, 30, 0.28),
    0 0 0 1px rgba(137, 207, 240, 0.35);
  animation: cpjr-bot-cart-badge-in 0.28s var(--bot-ease, ease) both;
}

.cpjr-bot-cart-badge::after {
  content: "";
  position: absolute;
  right: -5px;
  bottom: 0.38rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 6px;
  border-color: transparent transparent transparent #89cff0;
}

.cpjr-bot-cart-badge[hidden] {
  display: none !important;
  animation: none;
}

/* Hide while BLOOP panel / checkout UI is open (incl. right after add) */
.cpjr-bot.is-open .cpjr-bot-cart-badge {
  display: none !important;
  animation: none;
}

@keyframes cpjr-bot-cart-badge-in {
  from {
    opacity: 0;
    transform: translateX(8px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Store checkout active → cart/checkout-only BLOOP (no chat chrome) */
.cpjr-bot.is-cart-only .cpjr-bot-log,
.cpjr-bot.is-cart-only .cpjr-bot-suggestions,
.cpjr-bot.is-cart-only .cpjr-bot-form,
.cpjr-bot.is-cart-only .cpjr-bot-mode {
  display: none !important;
}

.cpjr-bot.is-cart-only .cpjr-bot-panel-head span {
  display: none;
}

.cpjr-bot.is-cart-only .cpjr-bot-panel-head strong::after {
  content: " · Cart";
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.cpjr-bot.has-digital-cart.is-cart-only .cpjr-bot-panel-head strong::after {
  content: " · Checkout";
}

.cpjr-bot-cart-line--digital {
  grid-template-columns: 2.5rem minmax(0, 1fr);
}

.cpjr-bot-cart-thumb.tone-steel {
  background: linear-gradient(135deg, #1d3a5c 0%, #89cff0 55%, #f7f1e8 100%);
}

.cpjr-bot-cart-thumb.tone-ink {
  background: linear-gradient(135deg, #14151a, #3a4250 60%, #89cff0);
}

.cpjr-bot-cart-thumb.tone-sand {
  background: linear-gradient(135deg, #c48a4a, #f0d7b0 55%, #fffdf8);
}

.cpjr-bot-cart-thumb.tone-night {
  background: linear-gradient(135deg, #0b1220, #264a78 50%, #89cff0);
}

a.cpjr-bot-cart-checkout {
  display: block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.cpjr-bot.is-cart-only .cpjr-bot-cart {
  border-bottom: 0;
  background: transparent;
  padding-bottom: 0.85rem;
}

.cpjr-bot.is-cart-only .cpjr-bot-cart-items {
  max-height: min(18rem, 52vh);
}

.cpjr-bot.has-physical-cart:not(.is-cart-only) .cpjr-bot-log {
  max-height: min(12rem, 32vh);
}

html.site-night .cpjr-bot-cart-msg,
html.site-night .cpjr-bot-cart-empty,
html.site-night .cpjr-bot-cart-line-copy p,
html.site-night .cpjr-bot-cart-remove,
html.site-night .cpjr-bot-cart-subtotal,
html.site-night .cpjr-bot-cart-note {
  color: #fff;
}
