/* Active brand pack — swap file in css/themes/ (see css/themes/README.md) */
@import url("./themes/brand-grayscale.css");

:root {
  /* ---------------------------------------------------------------------------
   * Tailwind class bridge — maps utilities to semantic tokens from the theme.
   * Colors & fonts live in css/themes/*.css
   * --------------------------------------------------------------------------- */
  --white: var(--color-surface-paper);
  --black: var(--color-overlay-void);
  --neutral-950: var(--color-neutral-deepest);
  --slate-50: var(--color-bg-page);
  --slate-100: var(--color-bg-muted);
  --slate-200: var(--color-border-subtle);
  --slate-300: var(--color-border-default);
  --slate-400: var(--color-text-faint);
  --slate-500: var(--color-text-label);
  --slate-600: var(--color-text-secondary);
  --slate-700: var(--color-text-body);
  --slate-800: var(--color-text-strong);
  --slate-900: var(--color-text-primary);
  --slate-950: var(--color-bg-night);
}

/* Storefront: default text + headings + buttons inherit token families */
body {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
}

button {
  font-family: var(--font-cta);
}

/* Global sharp-corner rule */
* {
  border-radius: 0 !important;
}

/* Background scroll lock when sheets/modals open (see js/scroll-lock.js) */
html.no-scroll {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
}

body.no-scroll {
  overflow: hidden;
  overscroll-behavior: none;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: transform 220ms ease;
}

.site-header--hidden {
  transform: translateY(-100%);
}

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 75;
  pointer-events: none;
}

.menu-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgb(var(--color-overlay-void) / 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

.menu-sheet__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(22rem, 86vw);
  background: rgb(var(--color-surface-paper));
  transform: translateX(-100%);
  transition: transform 260ms ease;
}

.menu-sheet--open {
  pointer-events: auto;
}

.menu-sheet--open .menu-sheet__overlay {
  opacity: 1;
}

.menu-sheet--open .menu-sheet__panel {
  transform: translateX(0);
}

.cart-sheet {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
}

.cart-sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgb(var(--color-overlay-void) / 0.45);
  opacity: 0;
  transition: opacity 220ms ease;
}

.cart-sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(80vh, 42rem);
  background: rgb(var(--color-surface-paper));
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 260ms ease;
}

.cart-sheet--open {
  pointer-events: auto;
}

.cart-sheet--open .cart-sheet__overlay {
  opacity: 1;
}

.cart-sheet--open .cart-sheet__panel {
  transform: translateY(0);
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgb(var(--color-border-default));
}

.cart-qty__btn {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgb(var(--color-text-body));
}

.cart-qty__btn:hover {
  background: rgb(var(--color-bg-muted));
  color: rgb(var(--color-text-primary));
}

.cart-qty__btn svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.cart-qty__value {
  min-width: 1.8rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgb(var(--color-text-primary));
}

.gsap-panels {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.gsap-panels__track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  padding: 0 4vw;
  will-change: transform;
}

.gsap-panel {
  width: clamp(280px, 72vw, 560px);
  min-height: 62vh;
  display: grid;
  place-items: center;
  border-radius: 1rem;
  padding: 1.25rem;
}

a.gsap-panel--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

a.gsap-panel--link:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgb(var(--color-text-primary) / 0.12);
}

a.gsap-panel--link:focus-visible {
  outline: 2px solid rgb(var(--color-text-inverse) / 0.85);
  outline-offset: 4px;
}

.gsap-panel__content {
  width: 100%;
  max-width: 42rem;
  background: linear-gradient(to top, rgb(var(--color-overlay-void) / 0.72), rgb(var(--color-overlay-void) / 0.2));
  backdrop-filter: blur(6px);
  border: 1px solid rgb(var(--color-text-inverse) / 0.25);
  color: rgb(var(--color-text-inverse));
  padding: 1.5rem;
}

.gsap-panel__eyebrow {
  font-family: var(--font-label);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.85;
}

.gsap-panel__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  margin-top: 0.5rem;
}

.gsap-panel__text {
  font-family: var(--font-body);
  margin-top: 0.75rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgb(var(--color-text-inverse) / 0.95);
}

.gsap-panel__link,
.gsap-panel__cta {
  font-family: var(--font-cta);
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgb(var(--color-text-inverse));
  border-bottom: 1px solid rgb(var(--color-text-inverse) / 0.7);
}

.gsap-panel--one {
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.26), rgb(var(--color-overlay-void) / 0.56)), url("https://images.unsplash.com/photo-1521223890158-f9f7c3d5d504?auto=format&fit=crop&w=1200&q=80");
}

.gsap-panel--two {
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.26), rgb(var(--color-overlay-void) / 0.56)), url("https://images.unsplash.com/photo-1483985988355-763728e1935b?auto=format&fit=crop&w=1200&q=80");
}

.gsap-panel--three {
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.26), rgb(var(--color-overlay-void) / 0.56)), url("https://images.unsplash.com/photo-1512436991641-6745cdb1723f?auto=format&fit=crop&w=1200&q=80");
}

.gsap-panel--four {
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.26), rgb(var(--color-overlay-void) / 0.56)), url("https://images.unsplash.com/photo-1464863979621-258859e62245?auto=format&fit=crop&w=1200&q=80");
}

.gsap-panel--five {
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.26), rgb(var(--color-overlay-void) / 0.56)), url("https://images.unsplash.com/photo-1495385794356-15371f348c31?auto=format&fit=crop&w=1200&q=80");
}

.gsap-panel--six {
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.26), rgb(var(--color-overlay-void) / 0.56)), url("https://images.unsplash.com/photo-1489987707025-afc232f7ea0f?auto=format&fit=crop&w=1200&q=80");
}

.gsap-panel--seven {
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.26), rgb(var(--color-overlay-void) / 0.56)), url("https://images.unsplash.com/photo-1475180098004-ca77a66827be?auto=format&fit=crop&w=1200&q=80");
}

.gsap-panel--one,
.gsap-panel--two,
.gsap-panel--three,
.gsap-panel--four,
.gsap-panel--five,
.gsap-panel--six,
.gsap-panel--seven,
.gsap-panel--dynamic {
  background-size: cover;
  background-position: center;
}

.product-card {
  position: relative;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.product-card__link {
  text-decoration: none;
}

.product-card__link:focus-visible {
  outline: 2px solid rgb(var(--color-text-primary));
  outline-offset: 2px;
}

.product-card__media {
  position: relative;
  height: 16rem;
  overflow: hidden;
}

.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 300ms ease, transform 300ms ease;
}

.product-card__img--primary {
  opacity: 1;
}

.product-card__img--secondary {
  opacity: 0;
}

.product-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgb(var(--color-text-primary) / 0.12);
}

.product-card:hover .product-card__img--primary {
  opacity: 0;
}

.product-card:hover .product-card__img--secondary {
  opacity: 1;
  transform: scale(1.04);
}

@keyframes shop-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.shop-skeleton-shimmer {
  background: linear-gradient(
    90deg,
    rgb(var(--color-border-subtle)) 0%,
    rgb(var(--color-bg-muted)) 45%,
    rgb(var(--color-border-subtle)) 90%
  );
  background-size: 200% 100%;
  animation: shop-skeleton-shimmer 1.35s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .shop-skeleton-shimmer {
    animation: none;
    background: rgb(var(--color-border-subtle));
  }
}

[data-pdp-skeleton] {
  pointer-events: none;
}

.collection-skeleton-card {
  pointer-events: none;
}

.shop-skeleton-card {
  pointer-events: none;
}

.shop-skeleton-card.product-card:hover {
  transform: none;
  box-shadow: none;
}

.shop-skeleton-card .product-card__media {
  background: rgb(var(--color-bg-muted));
}

.shop-skeleton__img {
  position: absolute;
  inset: 0;
}

.shop-skeleton__bar {
  height: 0.75rem;
  max-width: 100%;
}

.add-to-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  border: 1px solid rgb(var(--color-text-primary));
  background: transparent;
  color: rgb(var(--color-text-primary));
  min-width: 3.2rem;
  height: 2.25rem;
  padding: 0 0.45rem;
  transition: background 200ms ease, border-color 200ms ease;
}

.add-to-cart-btn:hover {
  background: rgb(var(--color-text-primary));
  color: rgb(var(--color-surface-paper));
  border-color: rgb(var(--color-text-primary));
}

.add-to-cart-btn__icon {
  width: 1.2rem;
  height: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.add-to-cart-btn__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.add-to-cart-btn__icon--plus {
  width: 1.1rem;
  height: 1.1rem;
}

.blog-panels {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 1rem 0 3rem;
}

.blog-panels__track {
  display: flex;
  width: max-content;
  gap: 1.25rem;
  padding: 0 4vw;
  will-change: transform;
}

.blog-panel {
  width: clamp(300px, 72vw, 560px);
  min-height: 64vh;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  background-size: cover;
  background-position: center;
  /* Set via JS: style="--blog-panel-bg: url(...)" (see homepage-blog.js) */
  background-image: linear-gradient(rgb(var(--color-overlay-void) / 0.15), rgb(var(--color-overlay-void) / 0.52)), var(--blog-panel-bg, none);
}

a.blog-panel--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

a.blog-panel--link:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 24px rgb(var(--color-text-primary) / 0.12);
}

a.blog-panel--link:focus-visible {
  outline: 2px solid rgb(var(--color-text-inverse) / 0.85);
  outline-offset: 4px;
}

.blog-panel__content {
  width: 100%;
  border: 1px solid rgb(var(--color-text-inverse) / 0.3);
  background: linear-gradient(to top, rgb(var(--color-overlay-void) / 0.78), rgb(var(--color-overlay-void) / 0.2));
  color: rgb(var(--color-text-inverse));
  padding: 1.25rem;
}

.blog-panel__meta {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgb(var(--color-text-inverse) / 0.8);
}

.blog-panel__title {
  font-family: var(--font-heading);
  margin-top: 0.5rem;
  font-size: clamp(1.2rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
}

.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 220ms ease, opacity 220ms ease;
}

@media (min-width: 768px) {
  .cart-sheet__panel {
    top: 0;
    bottom: 0;
    left: auto;
    right: 0;
    width: min(28rem, 90vw);
    height: 100%;
    transform: translateX(100%);
  }

  .cart-sheet--open .cart-sheet__panel {
    transform: translateX(0);
  }

  .gsap-panels {
    padding: 3rem 0;
  }

  .gsap-panels__track {
    gap: 1.5rem;
    padding: 0 5vw;
  }

  .gsap-panel {
    min-height: 68vh;
    padding: 1.75rem;
  }

  .gsap-panel__content {
    padding: 2.5rem;
  }

  .blog-panels__track {
    gap: 1.5rem;
    padding: 0 5vw;
  }

  .blog-panel {
    min-height: 70vh;
    padding: 1.75rem;
  }

  .blog-panel__content {
    padding: 1.5rem;
  }
}

/* Shop — filter accordions (multiselect) */
.shop-filter-accordion__summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.625rem 0.75rem;
  user-select: none;
}

.shop-filter-accordion__summary::-webkit-details-marker {
  display: none;
}

.shop-filter-accordion__summary:focus-visible {
  outline: 2px solid rgb(var(--color-text-primary));
  outline-offset: 2px;
}

.shop-filter-accordion[open] .shop-filter-accordion__caret {
  transform: rotate(180deg);
}

.shop-filter-accordion__caret {
  transition: transform 0.2s ease;
}

.shop-filter-checkbox {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  border: 1px solid rgb(var(--color-text-faint));
  accent-color: rgb(var(--color-text-primary));
}

.shop-filter-checkbox:focus-visible {
  outline: 2px solid rgb(var(--color-text-primary));
  outline-offset: 2px;
}

/* Public collections page (/collection) — whole card is one link */
.collection-public-card__link:focus-visible {
  outline: 2px solid rgb(var(--color-text-primary));
  outline-offset: 2px;
}

/* Collection detail hero (/collection/:slug) */
.collection-detail-hero__overlay {
  background: linear-gradient(to top, rgb(var(--color-overlay-void) / 0.72), rgb(var(--color-overlay-void) / 0.35) 45%, rgb(var(--color-overlay-void) / 0.2));
}

.collection-detail-hero--no-image {
  background: linear-gradient(135deg, rgb(var(--color-text-strong)), rgb(var(--color-bg-night)));
}

/* Blog article body (/blog/:slug) */
.blog-article {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgb(var(--color-text-body) / 1);
}

.blog-article p {
  margin-top: 1.125em;
}

.blog-article p:first-child {
  margin-top: 0;
}

.blog-article strong {
  font-weight: 600;
  color: rgb(var(--color-text-strong) / 1);
}

.blog-article em {
  font-style: italic;
}

.blog-article a {
  color: rgb(var(--color-text-primary) / 1);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article a:hover {
  color: rgb(var(--color-text-strong) / 1);
}

/* ---------------------------------------------------------------------------
 * Tailwind Play CDN bridge
 * The CDN often emits default slate/white/black hex utilities. These rules
 * force bg-slate-*, text-slate-*, etc. to use :root tokens so editing
 * --color-bg-page / --color-bg-night (and the rest) visibly updates the UI.
 * Loaded after Tailwind in the cascade; !important beats non-important hex.
 * --------------------------------------------------------------------------- */

/* Background — slate scale */
.bg-slate-50 {
  background-color: rgb(var(--color-bg-page) / 1) !important;
}
.bg-slate-100 {
  background-color: rgb(var(--color-bg-muted) / 1) !important;
}
.bg-slate-200 {
  background-color: rgb(var(--color-border-subtle) / 1) !important;
}
.bg-slate-300 {
  background-color: rgb(var(--color-border-default) / 1) !important;
}
.bg-slate-400 {
  background-color: rgb(var(--color-text-faint) / 1) !important;
}
.bg-slate-500 {
  background-color: rgb(var(--color-text-label) / 1) !important;
}
.bg-slate-600 {
  background-color: rgb(var(--color-text-secondary) / 1) !important;
}
.bg-slate-700 {
  background-color: rgb(var(--color-text-body) / 1) !important;
}
.bg-slate-800 {
  background-color: rgb(var(--color-text-strong) / 1) !important;
}
.bg-slate-900 {
  background-color: rgb(var(--color-text-primary) / 1) !important;
}
.bg-slate-950 {
  background-color: rgb(var(--color-bg-night) / 1) !important;
}

.bg-slate-100\/70 {
  background-color: rgb(var(--color-bg-muted) / 0.7) !important;
}

.bg-neutral-950 {
  background-color: rgb(var(--color-neutral-deepest) / 1) !important;
}

.bg-white {
  background-color: rgb(var(--color-surface-paper) / 1) !important;
}
.bg-white\/95 {
  background-color: rgb(var(--color-surface-paper) / 0.95) !important;
}
.bg-white\/10 {
  background-color: rgb(var(--color-text-inverse) / 0.1) !important;
}
.bg-white\/5 {
  background-color: rgb(var(--color-text-inverse) / 0.05) !important;
}
.bg-white\/15 {
  background-color: rgb(var(--color-text-inverse) / 0.15) !important;
}

.bg-black\/45 {
  background-color: rgb(var(--color-overlay-void) / 0.45) !important;
}

/* Text — slate + white */
.text-slate-200 {
  color: rgb(var(--color-border-subtle) / 1) !important;
}
.text-slate-300 {
  color: rgb(var(--color-border-default) / 1) !important;
}
.text-slate-400 {
  color: rgb(var(--color-text-faint) / 1) !important;
}
.text-slate-500 {
  color: rgb(var(--color-text-label) / 1) !important;
}
.text-slate-600 {
  color: rgb(var(--color-text-secondary) / 1) !important;
}
.text-slate-700 {
  color: rgb(var(--color-text-body) / 1) !important;
}
.text-slate-800 {
  color: rgb(var(--color-text-strong) / 1) !important;
}
.text-slate-900 {
  color: rgb(var(--color-text-primary) / 1) !important;
}

.text-white {
  color: rgb(var(--color-text-inverse) / 1) !important;
}
.text-white\/50 {
  color: rgb(var(--color-text-inverse) / 0.5) !important;
}
.text-white\/80 {
  color: rgb(var(--color-text-inverse) / 0.8) !important;
}
.text-white\/85 {
  color: rgb(var(--color-text-inverse) / 0.85) !important;
}
.text-white\/90 {
  color: rgb(var(--color-text-inverse) / 0.9) !important;
}
.text-white\/95 {
  color: rgb(var(--color-text-inverse) / 0.95) !important;
}

/* Border — slate + white */
.border-slate-100 {
  border-color: rgb(var(--color-bg-muted) / 1) !important;
}
.border-slate-200 {
  border-color: rgb(var(--color-border-subtle) / 1) !important;
}
.border-white {
  border-color: rgb(var(--color-text-inverse) / 1) !important;
}
.border-slate-300 {
  border-color: rgb(var(--color-border-default) / 1) !important;
}
.border-slate-700 {
  border-color: rgb(var(--color-text-body) / 1) !important;
}
.border-slate-800 {
  border-color: rgb(var(--color-text-strong) / 1) !important;
}
.border-slate-900 {
  border-color: rgb(var(--color-text-primary) / 1) !important;
}

.border-white\/20 {
  border-color: rgb(var(--color-text-inverse) / 0.2) !important;
}
.border-white\/15 {
  border-color: rgb(var(--color-text-inverse) / 0.15) !important;
}
.border-white\/30 {
  border-color: rgb(var(--color-text-inverse) / 0.3) !important;
}

/* Decoration */
.decoration-slate-300 {
  text-decoration-color: rgb(var(--color-border-default) / 1) !important;
}
.decoration-white\/40 {
  text-decoration-color: rgb(var(--color-text-inverse) / 0.4) !important;
}

/* Divide */
.divide-slate-300 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgb(var(--color-border-default) / 1) !important;
}

/* Placeholder */
.placeholder\:text-slate-400::placeholder {
  color: rgb(var(--color-text-faint) / 1) !important;
}
.placeholder\:text-slate-500::placeholder {
  color: rgb(var(--color-text-label) / 1) !important;
}

/* Hover — backgrounds */
.hover\:bg-slate-100:hover {
  background-color: rgb(var(--color-bg-muted) / 1) !important;
}
.hover\:bg-slate-200:hover {
  background-color: rgb(var(--color-border-subtle) / 1) !important;
}
.hover\:bg-slate-700:hover {
  background-color: rgb(var(--color-text-body) / 1) !important;
}
.hover\:bg-slate-800:hover {
  background-color: rgb(var(--color-text-strong) / 1) !important;
}
.hover\:bg-white\/10:hover {
  background-color: rgb(var(--color-text-inverse) / 0.1) !important;
}

/* Hover — text */
.hover\:text-slate-900:hover {
  color: rgb(var(--color-text-primary) / 1) !important;
}
.hover\:text-slate-300:hover {
  color: rgb(var(--color-border-default) / 1) !important;
}
.hover\:text-white:hover {
  color: rgb(var(--color-text-inverse) / 1) !important;
}

/* Hover — border (collection cards) */
.hover\:border-slate-300:hover {
  border-color: rgb(var(--color-border-default) / 1) !important;
}

/* Hover — decoration */
.hover\:decoration-slate-900:hover {
  text-decoration-color: rgb(var(--color-text-primary) / 1) !important;
}

/* Focus */
.focus\:border-slate-900:focus {
  border-color: rgb(var(--color-text-primary) / 1) !important;
}

.focus-visible\:border-slate-900:focus-visible {
  border-color: rgb(var(--color-text-primary) / 1) !important;
}

.focus-visible\:ring-slate-900:focus-visible {
  --tw-ring-color: rgb(var(--color-text-primary) / 1) !important;
}

.focus\:border-slate-400:focus {
  border-color: rgb(var(--color-text-faint) / 1) !important;
}

/* Group hover (collection cards CTA) */
.group:hover .group-hover\:bg-slate-800 {
  background-color: rgb(var(--color-text-strong) / 1) !important;
}
