/* =============================================================================
   Theme tokens
   Change these — or the matching settings in layout/theme.liquid — to retarget
   the storefront for a different brand. Components consume variables only.
   ============================================================================= */

:root {
  --color-bg: #f6f3ee;
  --color-bg-elevated: #fffdf9;
  --color-ink: #1c1917;
  --color-muted: #6f6a64;
  --color-line: #e4dfd7;
  --color-accent: #1c1917;
  --color-accent-text: #f6f3ee;
  --color-danger: #9f3a2f;
  --color-hero: #2a2521;
  --color-hero-text: #f7f4ef;

  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-heading: "Newsreader", "Iowan Old Style", Georgia, serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --leading: 1.55;
  --leading-tight: 1.2;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2.25rem;
  --space-7: 3.5rem;
  --space-8: 5.5rem;

  --page-width: 74rem;
  --prose-width: 40rem;
  --header-height: 4rem;
  --radius: 0.25rem;
  --ease: 180ms ease;
}

/* =============================================================================
   Reset
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  hanging-punctuation: first last;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--color-ink);
  background: var(--color-bg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

/* =============================================================================
   Typography
   ============================================================================= */

h1,
h2,
h3,
.section-title,
.site-logo,
.product-card__title,
.collection-card__name,
.article-card__title {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: var(--leading-tight);
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.25rem);
}

h2,
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

h3 {
  font-size: 1.35rem;
}

h4 {
  font-size: 1.05rem;
  font-family: var(--font-body);
  font-weight: 550;
  letter-spacing: -0.01em;
}

p + p,
.prose p + p {
  margin-top: 0.9em;
}

/* =============================================================================
   Layout primitives
   ============================================================================= */

.page-width {
  width: min(100% - 2rem, var(--page-width));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .page-width {
    width: min(100% - 3.5rem, var(--page-width));
  }
}

#main-content {
  min-height: 50vh;
}

.section {
  padding-block: var(--space-7);
}

.section--compact {
  padding-block: var(--space-6);
}

.section--contrast {
  background: color-mix(in srgb, var(--color-ink) 4%, var(--color-bg));
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.section-header p {
  color: var(--color-muted);
  max-width: 36rem;
  margin-top: 0.5rem;
}

.section-kicker {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--color-muted);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* =============================================================================
   Buttons, text links, forms
   ============================================================================= */

.button,
.button-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease), opacity var(--ease);
}

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

.button:hover {
  text-decoration: none;
  opacity: 0.88;
}

.button--light {
  color: var(--color-hero);
  background: var(--color-hero-text);
}

.button--ghost {
  color: var(--color-ink);
  background: transparent;
  border: 1px solid var(--color-line);
}

.button[disabled],
.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-quiet {
  min-height: 2.25rem;
  padding: 0.4rem 0;
  color: var(--color-ink);
  background: transparent;
  border-bottom: 1px solid var(--color-ink);
  border-radius: 0;
}

.button-quiet:hover {
  text-decoration: none;
  opacity: 0.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-ink);
  font-size: var(--text-sm);
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

.text-link .icon {
  flex: 0 0 auto;
}

.icon-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  color: inherit;
  border-radius: var(--radius);
}

.icon-button.is-loading svg,
.icon-button.is-loading .icon,
.icon-button.is-loading .cart-badge {
  visibility: hidden;
}

.icon-button.is-loading::after {
  content: "";
  position: absolute;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid color-mix(in srgb, currentColor 28%, transparent);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.icon-button:hover {
  background: color-mix(in srgb, currentColor 7%, transparent);
  text-decoration: none;
}

.field,
select,
textarea,
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.6rem 0.85rem;
  color: var(--color-ink);
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  outline: none;
}

select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--color-muted) 50%),
    linear-gradient(135deg, var(--color-muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 3px), calc(100% - 11px) calc(50% - 3px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

.field:focus,
select:focus,
textarea:focus,
input:focus {
  border-color: var(--color-ink);
}

.visually-hidden,
.skip-link:not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus-visible {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  width: auto;
  height: auto;
  padding: 0.55rem 0.8rem;
  margin: 0;
  overflow: visible;
  clip: auto;
  color: var(--color-accent-text);
  background: var(--color-accent);
  white-space: normal;
}

.form-error,
[data-product-error],
[data-newsletter-error] {
  color: var(--color-danger);
  font-size: var(--text-sm);
}

.form-error[hidden],
[data-product-error][hidden],
[data-newsletter-error][hidden] {
  display: none;
}

/* =============================================================================
   Media frames — images sit on a quiet ground, never in a card box
   ============================================================================= */

.media {
  display: block;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-ink) 6%, var(--color-bg));
}

.media--product {
  aspect-ratio: 4 / 5;
}

.media--collection {
  aspect-ratio: 3 / 4;
}

.media--wide {
  aspect-ratio: 16 / 10;
}

.media--hero-page {
  aspect-ratio: 16 / 7;
  min-height: 14rem;
}

.media__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

@media (hover: hover) {
  a:hover .media__img {
    transform: scale(1.035);
  }
}

/* =============================================================================
   Header
   ============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--header-height);
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  border-bottom: 1px solid var(--color-line);
  backdrop-filter: blur(16px);
  transition: box-shadow 200ms ease, background 200ms ease;
}

.site-header.is-sticky {
  background: color-mix(in srgb, var(--color-bg) 95%, transparent);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-height);
}

.site-logo {
  font-size: 1.45rem;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 18rem);
}

.site-logo:hover {
  text-decoration: none;
  opacity: 0.7;
}

.site-header__links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.site-header__links a {
  font-size: var(--text-sm);
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.1rem;
}

.cart-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.1rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  color: var(--color-accent-text);
  background: var(--color-accent);
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 1.05rem;
  text-align: center;
  transform: scale(0);
  transform-origin: center;
}

.cart-badge.is-visible {
  animation: cart-badge-in 280ms ease forwards;
}

.cart-badge.is-hiding {
  display: inline-flex;
  animation: cart-badge-out 220ms ease forwards;
}

.cart-badge[hidden]:not(.is-hiding) {
  display: none;
}

@keyframes cart-badge-in {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

@keyframes cart-badge-out {
  from { transform: scale(1); }
  to { transform: scale(0); }
}

.site-header__menu-button {
  display: none;
}

@media (max-width: 879px) {
  body {
    padding-top: var(--header-height);
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  .site-header__inner {
    grid-template-columns: 1fr auto;
  }

  .site-header__nav {
    display: none;
  }

  .site-header__menu-button {
    display: inline-flex;
  }
}

/* Full-height drawer: overlay fades, panel slides in from the right. */

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0s 380ms;
}

.nav-drawer.is-open,
.nav-drawer.is-closing {
  visibility: visible;
  transition: visibility 0s;
}

.nav-drawer.is-open {
  pointer-events: auto;
}

.nav-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.42);
  opacity: 0;
  transition: opacity 380ms ease;
}

.nav-drawer.is-open .nav-drawer__overlay {
  opacity: 1;
}

.nav-drawer.is-closing .nav-drawer__overlay {
  opacity: 0;
}

.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(22rem, 88vw);
  padding: 1.1rem 1.25rem 2rem;
  background: var(--color-bg);
  transform: translateX(100%);
  transition: transform 340ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: 40ms;
}

.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}

.nav-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.nav-drawer__links {
  display: grid;
  gap: 0.15rem;
  list-style: none;
}

.nav-drawer__links a {
  display: block;
  padding: 0.7rem 0;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  text-decoration: none;
}

/* =============================================================================
   Footer
   ============================================================================= */

.site-footer {
  margin-top: var(--space-6);
  margin-bottom: var(--space-6);
  padding-block: var(--space-8) var(--space-5);
  border-top: 1px solid var(--color-line);
  overflow: hidden;
}

.site-footer__mark {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 10vw, 7.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.045em;
  color: var(--color-ink);
}

.site-footer__lede {
  max-width: 28rem;
  margin-top: 1.25rem;
}

.site-footer__rule {
  height: 1px;
  margin-block: 2.25rem 1.75rem;
  background: var(--color-line);
}

.site-footer__row {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 800px) {
  .site-footer__row {
    grid-template-columns: 1.2fr 1.2fr 1fr;
    align-items: start;
  }
}

.site-footer h2 {
  margin-bottom: 0.85rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer p,
.site-footer__lede,
.site-footer li {
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-style: normal;
}

.site-footer ul {
  list-style: none;
}

.site-footer__inline,
.site-footer__social {
  display: grid;
  gap: 0.55rem;
  justify-items: start;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: var(--text-xs);
}

.site-footer__bottom > div {
  margin: 0;
  padding: 0;
}

.site-footer__bottom a {
  color: var(--color-ink);
}

.whatsapp-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 1rem;
  color: #f6f3ee;
  background: #1c1917;
  border: 1px solid #1c1917;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(28, 25, 23, 0.22);
  font-size: 0.875rem;
  font-weight: 550;
  line-height: 1;
  text-decoration: none;
}

.whatsapp-float:hover {
  text-decoration: none;
  background: #000;
  border-color: #000;
}

.whatsapp-float .icon {
  flex: 0 0 auto;
  color: currentColor;
}

.whatsapp-float span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .whatsapp-float {
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.7rem 0.9rem;
  }

  .whatsapp-float span {
    max-width: 11rem;
  }
}

/* =============================================================================
   Banner / hero
   ============================================================================= */

.banner--hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(88vh, 46rem);
  color: var(--color-hero-text);
  background: var(--color-hero);
}

.banner__media {
  position: absolute;
  inset: 0;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(22, 18, 14, 0.72) 0%,
    rgba(22, 18, 14, 0.18) 48%,
    rgba(22, 18, 14, 0.22) 100%
  );
}

.banner__content {
  position: relative;
  z-index: 1;
  max-width: 36rem;
  padding-block: var(--space-8);
}

.banner__content h1,
.banner__content h2 {
  color: inherit;
}

.banner__content p {
  margin-top: 0.9rem;
  max-width: 28rem;
  color: color-mix(in srgb, var(--color-hero-text) 82%, transparent);
  font-size: var(--text-lg);
}

.banner__content .button {
  margin-top: 1.5rem;
}

.banner--plain {
  padding-block: var(--space-8);
  text-align: center;
}

.banner--plain p {
  max-width: 34rem;
  margin: 0.9rem auto 0;
  color: var(--color-muted);
}

.banner--plain .button,
.banner--plain .text-link {
  margin-top: 1.25rem;
}

/* =============================================================================
   Product, collection, and article listings (no boxed cards)
   ============================================================================= */

.article-grid,
[data-blog-preview-list] {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 1.25rem;
  list-style: none;
}

.product-grid,
.collection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  list-style: none;
}

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

@media (min-width: 800px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.25rem 1.35rem;
  }

  .collection-grid,
  .article-grid,
  [data-blog-preview-list] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

@media (min-width: 1000px) {
  .article-grid,
  [data-blog-preview-list] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

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

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

.product-card__title {
  margin-top: 0.85rem;
  font-size: 1.05rem;
}

.product-card .rating {
  margin-top: 0.4rem;
}

.product-card__price,
.product-card__meta {
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.product-card__price s {
  margin-right: 0.4rem;
  color: color-mix(in srgb, var(--color-muted) 80%, transparent);
}

.product-card__action {
  margin-top: 0.65rem;
}

.product-card__action .button-quiet {
  padding-inline: 0;
}

.wishlist-heart {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  color: inherit;
  background: color-mix(in srgb, white 86%, transparent);
  border-radius: 999px;
}

.wishlist-heart:hover,
.wishlist-heart:focus-visible {
  background: white;
}

.wishlist-heart[aria-pressed="true"] svg {
  fill: currentColor;
}

.product__heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.wishlist-heart--product {
  position: relative;
  top: auto;
  right: auto;
  flex-shrink: 0;
}

.collection-card {
  position: relative;
  display: block;
  color: var(--color-hero-text);
  text-decoration: none;
}

.collection-card:hover {
  text-decoration: none;
}

.collection-card__label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.collection-card__name {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.collection-card__count {
  font-size: var(--text-sm);
  opacity: 0.84;
}

.collection-card .media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(22, 18, 14, 0.55), transparent 46%);
}

.collection-card .media {
  position: relative;
}

.article-card,
[data-blog-preview-list] article {
  min-width: 0;
}

.article-card a,
[data-blog-preview-list] article a {
  text-decoration: none;
}

.article-card h2,
.article-card h3,
[data-blog-preview-list] article h3 {
  margin-top: 0.9rem;
  font-size: 1.35rem;
}

.article-card p,
[data-blog-preview-list] article p {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.article-card time,
[data-blog-preview-list] article time {
  display: block;
  margin-top: 0.5rem;
  color: var(--color-muted);
  font-size: var(--text-xs);
  letter-spacing: 0.04em;
}

[data-blog-preview-list] img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: color-mix(in srgb, var(--color-ink) 6%, var(--color-bg));
}

/* =============================================================================
   Highlights — icon + copy, no containers
   ============================================================================= */

.highlights {
  display: grid;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-block: 1px solid var(--color-line);
  list-style: none;
}

@media (min-width: 800px) {
  .highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-6);
  }
}

.highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem 1rem;
  align-items: start;
}

.highlight .icon {
  margin-top: 0.15rem;
}

.highlight h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0;
}

.highlight p {
  margin-top: 0.25rem;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* =============================================================================
   Newsletter + dialog
   ============================================================================= */

.newsletter-block {
  max-width: 36rem;
}

.newsletter-copy {
  margin: 0.75rem 0 1.25rem;
  color: var(--color-muted);
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.newsletter-form .field,
.newsletter-form input[type="email"] {
  flex: 1 1 12rem;
}

.newsletter-form [data-newsletter-error] {
  flex-basis: 100%;
}

dialog {
  width: min(28rem, calc(100% - 2rem));
  padding: 1.75rem;
  border: 1px solid var(--color-line);
  border-radius: 0.4rem;
  color: var(--color-ink);
  background: var(--color-bg-elevated);
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.12);
}

dialog::backdrop {
  background: rgba(28, 25, 23, 0.42);
}

dialog h3 {
  margin-bottom: 0.5rem;
}

dialog p {
  color: var(--color-muted);
}

dialog .button {
  margin-top: 1.25rem;
}

/* =============================================================================
   Page chrome: breadcrumbs, sort, pagination, empty, 404
   ============================================================================= */

.breadcrumbs {
  margin-bottom: var(--space-4);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.15rem;
  list-style: none;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 0.45rem;
  opacity: 0.55;
}

.page-header {
  display: grid;
  gap: 0.75rem;
  margin-bottom: var(--space-5);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.collection-sort-form {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.collection-sort-form select {
  width: auto;
  min-width: 12rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-top: var(--space-6);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 0.55rem;
  text-decoration: none;
}

.pagination span[aria-current="page"] {
  border-bottom: 1px solid var(--color-ink);
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 0.85rem;
  padding-block: var(--space-7);
}

.empty-state p {
  color: var(--color-muted);
}

.page-404 {
  display: grid;
  justify-items: start;
  gap: 1rem;
  padding-block: var(--space-8);
}

.page-404 h1 {
  font-size: clamp(3rem, 10vw, 6rem);
}

.search-panel {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
  margin-bottom: var(--space-6);
}

.search-panel form {
  display: flex;
  gap: 0.5rem;
}

.search-panel .field,
.search-panel input[type="search"] {
  flex: 1 1 auto;
}

.search-count {
  margin-bottom: var(--space-5);
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* =============================================================================
   Long-form pages and articles
   ============================================================================= */

.prose-page {
  padding-block: var(--space-6) var(--space-8);
}

.prose {
  max-width: var(--prose-width);
}

.prose-page > .media {
  margin-bottom: var(--space-5);
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.6em 0 0.55em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 1.5rem;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.prose-page .text-link {
  margin-top: 2rem;
}

.prose--breaks,
.review-content {
  white-space: pre-wrap;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  line-height: 1;
}

.rating__stars {
  --rating-icon: 0.875rem;
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: calc(var(--rating-icon) * 5 + 0.5rem);
  min-width: calc(var(--rating-icon) * 5 + 0.5rem);
  height: var(--rating-icon);
  color: var(--color-ink);
}

.rating--lg .rating__stars {
  --rating-icon: 1.375rem;
}

.rating__background,
.rating__fill {
  display: inline-flex;
  align-items: center;
  gap: 0.125rem;
}

.rating__background {
  color: #d1d5db;
}

.rating__fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  width: var(--rating-fill, 0%);
  height: 100%;
  color: inherit;
  white-space: nowrap;
}

.rating__icon {
  display: block !important;
  flex: 0 0 auto;
  width: var(--rating-icon) !important;
  height: var(--rating-icon) !important;
  max-width: none !important;
  min-width: var(--rating-icon);
  fill: currentColor;
  stroke: currentColor;
}

.rating__count {
  color: var(--color-muted);
  font-size: var(--text-sm);
  white-space: nowrap;
}

.split {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 4rem;
  }
}

.split__copy p {
  max-width: 32rem;
  margin: 0.9rem 0 1.4rem;
  color: var(--color-muted);
}

.split__media {
  overflow: hidden;
  background: color-mix(in srgb, var(--color-ink) 6%, var(--color-bg));
}

.split__media img {
  width: 100%;
  height: 100%;
  min-height: 22rem;
  object-fit: cover;
  aspect-ratio: 4 / 5;
}

.prose table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.prose th,
.prose td {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  width: 34%;
  color: var(--color-muted);
  font-weight: 500;
}

/* =============================================================================
   Reviews (shared listing treatment)
   ============================================================================= */

.review-list {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
  list-style: none;
}

.review-list article h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
}

.review-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.review-heading h3 {
  margin: 0;
}

.review-list p {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.review-meta {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.75rem;
}

.review-list .review-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  color: #2f7d4a;
  font-size: var(--text-sm);
  font-weight: 700;
}

.review-list .review-verified .icon {
  flex: 0 0 auto;
  color: #2f7d4a;
  stroke: currentColor;
}

.review-list .review-time {
  margin: 0;
  color: var(--color-muted);
  font-size: var(--text-sm);
}

.review-list .review-content {
  margin-top: 0.55rem;
  color: var(--color-ink);
  white-space: pre-wrap;
}

.review-list img {
  width: 5rem;
  height: 5rem;
  margin-top: 0.6rem;
  object-fit: cover;
}

/* =============================================================================
   Focus and motion
   ============================================================================= */

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  .media__img {
    transition: none;
  }
}

/* =============================================================================
   Product variant selectors — overrides (product.css cache workaround)
   ============================================================================= */

[data-attribute-option] {
  min-height: 3rem;
  min-width: 3rem;
  padding: 0.4rem 0.8rem;
  border: 2px solid var(--color-line);
  border-radius: 0.35rem;
  cursor: pointer;
  transition: all 150ms ease;
  background: var(--color-bg-elevated);
  font-size: var(--text-sm);
  white-space: nowrap;
}

[data-attribute-option]:hover {
  border-color: var(--color-muted);
  background: color-mix(in srgb, var(--color-ink) 3%, var(--color-bg-elevated));
}

[data-attribute-option]:has(input:checked) {
  border-color: var(--color-ink);
  background: color-mix(in srgb, var(--color-ink) 8%, var(--color-bg-elevated));
  font-weight: 600;
}

[data-option-swatch],
[data-attribute-preview-swatch] {
  width: 1.5rem;
  height: 1.5rem;
  min-width: 1.5rem;
  border: 2px solid color-mix(in srgb, var(--color-ink) 25%, transparent);
  border-radius: 999px;
  background: var(--option-color);
}

[data-attribute-option]:has(input:checked) [data-option-swatch] {
  border-color: var(--color-ink);
  box-shadow: 0 0 0 2px var(--color-bg-elevated), 0 0 0 4px var(--color-ink);
}

/* =============================================================================
   Color thumbnail swatches — variant product images with color badge
   ============================================================================= */

.color-thumb {
  position: relative;
  display: block;
  width: 3.5rem;
  height: 4.25rem;
  border-radius: 0.2rem;
  overflow: visible;
  flex-shrink: 0;
}

.color-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.2rem;
}

.color-thumb__badge {
  display: none;
}

[data-attribute-option]:has([data-option-thumb]) {
  flex-direction: column;
  padding: 0.2rem;
  gap: 0.15rem;
  min-height: auto;
  min-width: auto;
  align-items: center;
  white-space: normal;
  overflow: visible;
  position: relative;
}

[data-attribute-option]:has([data-option-thumb]) > span:last-child {
  font-size: 0.68rem;
  text-align: center;
  line-height: 1.2;
  max-width: 4rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

[data-attribute-option]:has([data-option-thumb]) > span:last-child {
  display: none;
}


[data-attribute-option]:has(input:checked) .color-thumb {
  box-shadow: none;
}

/* =============================================================================
   Card color swatches — product listing thumbnails
   ============================================================================= */

.card-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}

.card-swatch {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  overflow: hidden;
  border: 1.5px solid var(--color-line);
  flex-shrink: 0;
  transition: border-color 150ms ease;
}

.card-swatch:hover {
  border-color: var(--color-ink);
  text-decoration: none;
}

.card-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-swatch--more {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--color-muted);
  background: color-mix(in srgb, var(--color-ink) 5%, var(--color-bg));
  text-decoration: none;
}

/* =============================================================================
   Floating cart button — visible when header scrolled away & cart has items
   ============================================================================= */

.cart-float {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 39;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: var(--color-accent);
  color: var(--color-accent-text);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(28, 25, 23, 0.18);
  cursor: pointer;
  border: 0;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 200ms ease, transform 200ms ease, background 150ms ease;
  pointer-events: none;
}

.cart-float.is-visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.cart-float:hover {
  background: var(--color-ink);
}

.cart-float__badge {
  position: absolute;
  top: -0.1rem;
  right: -0.1rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  color: var(--color-accent);
  background: var(--color-accent-text);
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.05rem;
  text-align: center;
}
