:root {
  --white: #ffffff;
  --cream: #f7f4ef;
  --beige: #ebe4d8;
  --ink: #0f0f0f;
  --muted: #5c5c5c;
  --shadow: 0 8px 32px rgba(15, 15, 15, 0.08);
  --shadow-sm: 0 4px 16px rgba(15, 15, 15, 0.06);
  --radius: 14px;
  --radius-sm: 10px;
  --font: "DM Sans", system-ui, sans-serif;
  --transition: 0.22s ease;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.45;
  min-height: 100dvh;
}

body.body-blur-active .main {
  filter: blur(6px);
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.1rem;
  background: var(--white);
  border-bottom: 1px solid rgba(15, 15, 15, 0.08);
  box-shadow: 0 1px 0 rgba(15, 15, 15, 0.04);
}

.logo {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo:not(.site-logo--has-img),
.order-slip-sheet__brand:not(.site-logo--has-img) {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28em;
}

.logo__suffix {
  font-weight: 600;
  color: #a3a3a3;
  letter-spacing: 0.02em;
}

a.logo:hover .logo__suffix {
  color: #8f8f8f;
}

.logo.site-logo--has-img,
.order-slip-sheet__brand.site-logo--has-img {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  font-size: 0;
}

.site-logo__img {
  display: block;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo__img--header {
  height: 1.45rem;
  width: auto;
  max-width: min(42vw, 9.5rem);
}

.site-logo__img--slip {
  height: 1.2rem;
  width: auto;
  max-width: 9rem;
}

@media (min-width: 480px) {
  .site-logo__img--header {
    height: 1.55rem;
    max-width: 10.5rem;
  }
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Admin entry: desktop only (matches admin dashboard breakpoint) */
.header__admin-desktop {
  display: none;
  align-items: center;
  padding: 0.45rem 0.65rem;
  margin-right: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

.header__admin-desktop:hover {
  color: var(--ink);
  background: rgba(15, 15, 15, 0.05);
}

@media (min-width: 1024px) {
  .header__admin-desktop {
    display: inline-flex;
  }
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.icon-btn:hover {
  background: rgba(15, 15, 15, 0.05);
}

.icon-btn:active {
  transform: scale(0.96);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 20px;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
}

.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.65rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  background: var(--ink);
  color: var(--white);
  border-radius: 999px;
}

/* Drawer */
.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(15, 15, 15, 0.25);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.menu-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(86vw, 300px);
  height: 100%;
  height: 100dvh;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex;
  flex-direction: column;
  padding: 1rem 1.1rem;
}

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

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--beige);
}

.drawer__title {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer__nav a {
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid rgba(235, 228, 216, 0.6);
  transition: padding-left var(--transition);
}

.drawer__nav a:hover {
  padding-left: 4px;
}

/* Main */
.main {
  padding: 1rem 1rem 5.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.main--page {
  padding-bottom: 2rem;
}

.page-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

/* Shop category nav (index only) */
.shop-cats {
  margin: 0 0 1rem;
}

.shop-cats[hidden] {
  display: none;
}

.shop-cats__scroll {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.15rem 0 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.shop-cats__scroll::-webkit-scrollbar {
  display: none;
}

.shop-cats__btn {
  flex: 0 0 auto;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(15, 15, 15, 0.09);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.shop-cats__btn:hover {
  border-color: rgba(15, 15, 15, 0.16);
  background: #fdfcfa;
}

.shop-cats__btn:focus-visible {
  outline: none;
  border-color: rgba(15, 15, 15, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.07);
}

.shop-cats__btn.is-active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 2px 8px rgba(15, 15, 15, 0.14);
}

.shop-cats__btn.is-active:hover {
  background: #1f1f1f;
  border-color: #1f1f1f;
}

@media (min-width: 768px) {
  .shop-cats__scroll {
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.5rem;
  }
}

/* Category tabs loading — horizontal pill placeholders (shimmer matches product skeletons) */
.shop-cats__pill-skeleton {
  flex: 0 0 auto;
  display: block;
  box-sizing: border-box;
  height: 2.08rem;
  border-radius: 999px;
  background: linear-gradient(
    100deg,
    rgba(180, 175, 168, 0.24) 0%,
    rgba(220, 215, 208, 0.55) 42%,
    rgba(220, 215, 208, 0.55) 58%,
    rgba(180, 175, 168, 0.24) 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: shop-skeleton-shimmer 1.35s ease-in-out infinite;
}

.shop-cats__scroll .shop-cats__pill-skeleton:nth-child(3n + 2) {
  animation-delay: -0.42s;
}

.shop-cats__pill-skeleton--w-sm {
  width: 3rem;
}

.shop-cats__pill-skeleton--w-md {
  width: 4.35rem;
}

.shop-cats__pill-skeleton--w-lg {
  width: 5.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .shop-cats__pill-skeleton {
    animation: none;
    background: rgba(210, 204, 196, 0.45);
  }
}

/* Toolbar */
.toolbar {
  margin-bottom: 1.25rem;
}

.toolbar__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
}

.toolbar__row .toolbar__search {
  flex: 1 1 8rem;
  min-width: 0;
  margin-bottom: 0;
}

/* Shop toolbar — sort (native select, pill + chevron) */
.toolbar-sort {
  flex: 0 0 auto;
  width: clamp(7.65rem, 19vw, 8.75rem);
}

@media (min-width: 768px) {
  .toolbar-sort {
    width: 8.75rem;
  }
}

.toolbar-sort__shell {
  position: relative;
  display: block;
}

.toolbar-sort__shell::after {
  content: "";
  position: absolute;
  right: 0.72rem;
  top: 50%;
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.18rem;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-50%) rotate(45deg);
  opacity: 0.45;
  pointer-events: none;
}

select.select.toolbar-sort__select {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0.55rem 1.85rem 0.55rem 0.62rem;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(15, 15, 15, 0.09);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

select.select.toolbar-sort__select:hover {
  border-color: rgba(15, 15, 15, 0.16);
  background: #fdfcfa;
}

select.select.toolbar-sort__select:focus {
  outline: none;
  border-color: rgba(15, 15, 15, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.07);
}

select.select.toolbar-sort__select:active {
  background: #faf8f5;
}

/* Shop search suggestions */
.toolbar-search__combo {
  position: relative;
}

.toolbar-search__suggestions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.28rem);
  z-index: 12;
  max-height: min(20dvh, 5.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.22rem;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(15, 15, 15, 0.06);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(15, 15, 15, 0.07);
}

.toolbar-search__suggestions[hidden] {
  display: none !important;
}

.toolbar-search__suggestion {
  display: block;
  width: 100%;
  padding: 0.32rem 0.5rem;
  margin: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: background 0.12s ease;
}

.toolbar-search__suggestion:hover,
.toolbar-search__suggestion:focus-visible {
  outline: none;
  background: rgba(15, 15, 15, 0.05);
}

.toolbar-search__suggestion.is-active {
  background: rgba(15, 15, 15, 0.07);
}

.toolbar-search__sug-word {
  display: block;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Shop toolbar — search (pill + icon, matches sort) */
.toolbar-search__shell {
  position: relative;
  display: block;
}

.toolbar-search__icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink);
  opacity: 0.42;
  pointer-events: none;
}

input.input.toolbar-search__input {
  display: block;
  width: 100%;
  max-width: none;
  padding: 0.62rem 1.05rem 0.62rem 2.45rem;
  font-size: 0.81rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(15, 15, 15, 0.09);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15, 15, 15, 0.04);
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

input.input.toolbar-search__input::placeholder {
  color: #8a8a8a;
  font-weight: 400;
}

input.input.toolbar-search__input:hover {
  border-color: rgba(15, 15, 15, 0.16);
  background: #fdfcfa;
}

input.input.toolbar-search__input:focus {
  outline: none;
  border-color: rgba(15, 15, 15, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.07);
}

input.input.toolbar-search__input:active {
  background: #faf8f5;
}

.input,
.select {
  width: 100%;
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(15, 15, 15, 0.1);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.input:focus,
.select:focus {
  outline: none;
  border-color: rgba(15, 15, 15, 0.35);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.06);
}

.input--area {
  resize: vertical;
  min-height: 80px;
}

.select {
  max-width: 200px;
  cursor: pointer;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.15rem;
  }
}

/* Product grid loading — card-shaped placeholders */
.grid--skeleton .card--skeleton {
  pointer-events: none;
  cursor: default;
}

.grid--skeleton .card--skeleton:hover,
.grid--skeleton .card--skeleton:active {
  transform: none;
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.04),
    0 12px 32px rgba(15, 15, 15, 0.07);
}

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

  100% {
    background-position: -20% 0;
  }
}

.card__skeleton-block {
  display: block;
  border-radius: 10px;
  background: linear-gradient(
    100deg,
    rgba(180, 175, 168, 0.24) 0%,
    rgba(220, 215, 208, 0.55) 42%,
    rgba(220, 215, 208, 0.55) 58%,
    rgba(180, 175, 168, 0.24) 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: shop-skeleton-shimmer 1.35s ease-in-out infinite;
}

.grid--skeleton .card--skeleton:nth-child(4n + 3) .card__skeleton-block,
.grid--skeleton .card--skeleton:nth-child(4n + 4) .card__skeleton-block {
  animation-delay: -0.4s;
}

.card__skeleton-block--img {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: 0;
}

.card__skeleton-block--line {
  height: 0.62rem;
}

.card__skeleton-block--short {
  width: 42%;
}

.card__skeleton-block--mid {
  width: 78%;
}

.card__skeleton-block--long {
  width: 92%;
}

.card__skeleton-block--price {
  width: 36%;
  height: 0.72rem;
}

@media (prefers-reduced-motion: reduce) {
  .card__skeleton-block {
    animation: none;
    background: rgba(210, 204, 196, 0.45);
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.04),
    0 12px 32px rgba(15, 15, 15, 0.07);
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
  isolation: isolate;
}

.card:focus-visible {
  outline: none;
  box-shadow:
    0 1px 2px rgba(15, 15, 15, 0.04),
    0 12px 32px rgba(15, 15, 15, 0.07),
    0 0 0 3px rgba(15, 15, 15, 0.12);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow:
    0 4px 8px rgba(15, 15, 15, 0.05),
    0 22px 48px rgba(15, 15, 15, 0.12);
}

.card:active {
  transform: translateY(-2px);
  transition-duration: 0.12s;
}

/* Shop grid promotional ad cards */
.card--ad {
  cursor: default;
}

.card--ad .card__ad-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.card--ad .card__ad-link--static {
  cursor: default;
}

.card--ad .card__ad-badge,
.card--sponsored .card__ad-badge {
  display: inline-block;
  padding: 0.2rem 0.45rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(15, 15, 15, 0.72);
  border-radius: 4px;
}

.card--ad .card__ad-sub {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card--ad .card__ad-sub--link {
  color: var(--ink);
  opacity: 0.65;
}

.card--ad .card__prices {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .card__img {
    transition: none !important;
  }

  .card:hover,
  .card:active {
    transform: none;
  }

  .card:hover .card__img {
    transform: none;
  }
}

.card__img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  background: linear-gradient(155deg, #f2efe8 0%, #e9e4da 55%, #e3ddd2 100%);
  overflow: hidden;
}

.card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.38s ease;
}

.card__img-wrap--pending::after {
  opacity: 1;
  background: linear-gradient(
    100deg,
    rgba(180, 175, 168, 0.22) 0%,
    rgba(235, 230, 222, 0.65) 42%,
    rgba(235, 230, 222, 0.65) 58%,
    rgba(180, 175, 168, 0.22) 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  animation: shop-skeleton-shimmer 1.25s ease-in-out infinite;
}

.card__img-wrap--revealed::after {
  opacity: 0;
  animation: none;
}

.card__img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition:
    opacity 0.42s ease,
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.card__img--revealed {
  opacity: 1;
}

.card:hover .card__img {
  transform: scale(1.05);
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.82rem 0.95rem 1rem;
  min-height: 0;
}

.card__type {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.08rem;
}

.card__name {
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.4rem;
  line-height: 1.28;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__prices {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.15rem;
}

.card__price {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.card__old {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  font-variant-numeric: tabular-nums;
}

.badge-sale {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--ink);
  color: var(--white);
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(15, 15, 15, 0.2);
}

.card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem 0.38rem;
  margin-bottom: 0.1rem;
  min-height: 0;
}

.card__meta .card__type {
  margin-bottom: 0;
}

.card__cat-badge {
  display: inline-block;
  flex-shrink: 0;
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6f6f6f;
  background: rgba(15, 15, 15, 0.05);
  border-radius: 3px;
  padding: 0.14rem 0.38rem;
  line-height: 1.35;
}

/* Above .card__img (z-index 2) + shimmer ::after (1) so badges stay visible after image reveals */
.card__badge-wrap {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.badge-sale--new {
  background: #1e4d40;
  color: var(--white);
}

.loading,
.empty {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

.loading--spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  min-height: min(42vh, 280px);
  padding: 2.5rem 1rem;
}

.loading__ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(22, 20, 18, 0.1);
  border-top-color: var(--ink);
  animation: loading-spin 0.65s linear infinite;
  flex-shrink: 0;
}

.loading--spinner .loading__error {
  margin: 0;
  max-width: 20rem;
  color: var(--muted);
  font-size: 0.9rem;
}

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

.loading--spinner.loading--panel {
  min-height: 140px;
  padding: 1.75rem 1rem;
}

/* `hidden` must beat `.loading--spinner { display: flex }` or the loader never disappears */
.loading[hidden],
.empty[hidden] {
  display: none !important;
}

/* Scroll to top (shop) */
.scroll-top {
  position: fixed;
  right: calc(1rem + (56px - 2rem) / 2);
  bottom: calc(1rem + 56px + 0.5rem);
  z-index: 34;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(15, 15, 15, 0.07);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(15, 15, 15, 0.48);
  font-size: 0.62rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(15, 15, 15, 0.06);
  opacity: 0;
  transform: translateY(0.35rem) scale(0.92);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.scroll-top[hidden] {
  display: flex !important;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top:hover {
  background: rgba(255, 255, 255, 0.82);
  color: rgba(15, 15, 15, 0.72);
  border-color: rgba(15, 15, 15, 0.12);
}

.scroll-top:focus-visible {
  outline: 2px solid rgba(15, 15, 15, 0.35);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: none;
  }
}

/* FAB */
.fab-cart {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 35;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.fab-cart:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 36px rgba(15, 15, 15, 0.2);
}

.fab-cart__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  min-width: 18px;
  height: 18px;
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
  border-radius: 999px;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(15, 15, 15, 0.35);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop--product {
  background: rgba(18, 16, 14, 0.26);
  backdrop-filter: blur(14px);
}

.modal {
  position: fixed;
  z-index: 95;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(92vw, 440px);
  max-height: min(88vh, 640px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.modal--wide {
  width: min(94vw, 720px);
  max-height: min(90vh, 800px);
}

.modal__close {
  position: absolute;
  top: 0.5rem;
  right: 0.55rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition);
}

.modal__close:hover {
  background: var(--white);
}

.modal__inner {
  overflow-y: auto;
  padding: 1.1rem 1rem 1.25rem;
  padding-top: 2.75rem;
}

/* Shop product sheet — clean floating panel */
.modal--product {
  width: min(94vw, 402px);
  max-height: min(92vh, 720px);
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.07);
  box-shadow:
    0 28px 80px rgba(15, 15, 15, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}

.modal--product .modal__inner {
  padding: 0;
  padding-top: 0;
}

.modal--product .modal__close {
  top: 0.55rem;
  right: 0.55rem;
  z-index: 5;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 15, 15, 0.08);
  box-shadow: 0 4px 24px rgba(15, 15, 15, 0.1);
  font-size: 1.4rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
}

.pv__media {
  background: var(--white);
  padding: 0.75rem 0 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
}

.pv-gallery-shell {
  position: relative;
}

.pv-gallery-shell--empty {
  padding: 0 0.75rem 0.75rem;
}

.modal--product .pv-gallery__track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.75rem;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 0 0.75rem 0.35rem;
  scrollbar-width: none;
}

.modal--product .pv-gallery__track::-webkit-scrollbar {
  display: none;
}

.modal--product .pv-gallery__track:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(15, 15, 15, 0.12);
  border-radius: 14px;
}

.modal--product .pv-gallery__track .pv-gallery__slide {
  flex: 0 0 calc(100% - 2.5rem);
  max-width: min(300px, 100%);
  scroll-snap-align: center;
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(15, 15, 15, 0.07);
  box-shadow: 0 10px 36px rgba(15, 15, 15, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.modal--product .pv-gallery__track .pv-gallery__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  user-select: none;
}

.pv-gallery__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0 0.75rem 0.85rem;
}

.pv-gallery__dot {
  flex: 0 0 auto;
  position: relative;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: transparent;
  cursor: pointer;
}

.pv-gallery__dot::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(15, 15, 15, 0.2);
  transition: width 0.28s ease, background 0.2s ease;
}

.pv-gallery__dot:hover::after {
  background: rgba(15, 15, 15, 0.36);
}

.pv-gallery__dot.is-active::after {
  width: 22px;
  background: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .modal--product .pv-gallery__track {
    scroll-behavior: auto;
  }

  .pv-gallery__dot::after {
    transition: none;
  }
}

.pv-gallery.pv-gallery--empty {
  min-height: 180px;
  margin: 0 0.75rem 0.75rem;
  border-radius: 12px;
  border: 1px dashed rgba(15, 15, 15, 0.12);
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pv-gallery__empty {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.pv__sheet {
  padding: 1.2rem 1.2rem 1.45rem;
  background: var(--white);
}

.pv__head {
  margin-bottom: 0.55rem;
}

.pv__head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.pv__head-main {
  min-width: 0;
  flex: 1;
}

.pv__share {
  flex-shrink: 0;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.2rem 0.25rem;
  border: none;
  border-radius: 0;
  background: transparent;
  font: inherit;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color var(--transition), transform 0.15s ease;
}

.pv__share i {
  font-size: 1.05rem;
  line-height: 1;
  display: block;
}

.pv__share:hover {
  color: var(--ink);
  opacity: 1;
}

.pv__share:active {
  transform: scale(0.94);
  color: var(--ink);
}

.pv__share:focus-visible {
  outline: 2px solid rgba(15, 15, 15, 0.35);
  outline-offset: 3px;
  border-radius: 4px;
}

.pv__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.pv__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
}

.pv__title {
  margin: 0;
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.18;
  color: var(--ink);
}

.pv__pill--sold-out {
  flex-shrink: 0;
  background: #c62828;
  color: #fff;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pv__badges {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.pv__pill {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.pv__pill--sale {
  background: #efe6d8;
  color: #5a4a3a;
}

.pv__pill--new {
  background: #1e4d40;
  color: var(--white);
}

.pv__badges--cats {
  margin-top: 0.35rem;
}

.pv__pill--cat {
  background: rgba(15, 15, 15, 0.06);
  color: #5a5a5a;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.58rem;
}

.pv__lede {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.58;
  color: #636363;
}

.pv__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem 0.65rem;
  margin: 0 0 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(15, 15, 15, 0.06);
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
}

@media (max-width: 380px) {
  .pv__specs {
    grid-template-columns: 1fr;
  }
}

.pv__spec {
  margin: 0;
  min-width: 0;
}

.pv__spec dt {
  margin: 0 0 0.18rem;
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.pv__spec dd {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.pv__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0 0 1.05rem;
}

.pv__price-now {
  font-size: 1.48rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.pv__price-was {
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.pv__group {
  margin-bottom: 0.95rem;
}

.pv__label {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.modal--product .pv__chips {
  margin: 0;
  gap: 0.38rem;
}

.modal--product .pv__chips .chip {
  padding: 0.4rem 0.82rem;
  font-size: 0.77rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.11);
  background: var(--white);
  box-shadow: 0 1px 3px rgba(15, 15, 15, 0.05);
}

.modal--product .pv__chips .chip.is-selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  box-shadow: none;
}

.modal--product .pv__chips .chip.chip--hint {
  border-style: dashed;
  background: rgba(247, 244, 239, 0.8);
  box-shadow: none;
  font-size: 0.74rem;
}

.modal--product .pv__chips .chip.chip--oos,
.modal--product .pv__chips .chip:disabled {
  opacity: 0.36;
  background: var(--cream);
  box-shadow: none;
}

.pv__status {
  min-height: 1.3em;
  margin: -0.15rem 0 0.75rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: #525252;
}

.pv__footer {
  padding-top: 0.15rem;
}

.pv__qty-block {
  margin-bottom: 0.8rem;
}

.modal--product .pv__qty {
  margin: 0.4rem 0 0;
}

.modal--product .pv__qty button {
  border-radius: 999px;
  width: 38px;
  height: 38px;
  border-color: rgba(15, 15, 15, 0.1);
}

.modal--product .pv__qty input {
  border-radius: 10px;
  border-color: rgba(15, 15, 15, 0.1);
}

.modal--product .pv__cta {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.045em;
}

.pv__notice {
  margin: 0 0 1.2rem;
  font-size: 0.86rem;
  line-height: 1.5;
}

.pv__notice--warn {
  color: #7a3838;
  font-weight: 500;
}

.gallery {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--beige);
  margin-bottom: 1rem;
  touch-action: pan-y;
}

.gallery-scroll {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.35rem 0.65rem;
  margin: 0 0 1rem;
  touch-action: pan-x;
  border-radius: var(--radius-sm);
  background: var(--beige);
}

.gallery-scroll .gallery__slide {
  flex: 0 0 min(88%, 380px);
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 1px 4px rgba(15, 15, 15, 0.06);
}

.gallery-scroll .gallery__slide img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  user-select: none;
}

.gallery--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
}

.gallery-empty__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.gallery__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  user-select: none;
}

.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0.5rem;
}

.gallery__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(15, 15, 15, 0.2);
  border: none;
  padding: 0;
  cursor: pointer;
}

.gallery__dot.is-active {
  background: var(--ink);
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: var(--shadow-sm);
}

.gallery__nav--prev {
  left: 8px;
}

.gallery__nav--next {
  right: 8px;
}

.modal-product__type {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.modal-product__name {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.modal-product__desc {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.modal-product__row {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.modal-product__row strong {
  font-weight: 600;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.75rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.12);
  background: var(--cream);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.chip.is-selected {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.chip.chip--oos,
.chip:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  text-decoration: line-through;
}

.chip.chip--hint {
  border-style: dashed;
  cursor: default;
  font-weight: 400;
  font-size: 0.72rem;
  text-decoration: none;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
}

.qty-row button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 15, 15, 0.12);
  background: var(--white);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background var(--transition);
}

.qty-row button:hover {
  background: var(--cream);
}

.qty-row input {
  width: 48px;
  text-align: center;
  font: inherit;
  border: 1px solid rgba(15, 15, 15, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.4rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 600;
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--ink);
  color: var(--white);
  width: 100%;
}

.btn--primary:hover:not(:disabled) {
  background: #2a2a2a;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(15, 15, 15, 0.15);
}

.btn--ghost:hover:not(:disabled) {
  background: rgba(15, 15, 15, 0.04);
}

.btn--sm {
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
}

.btn--danger {
  background: #8b2e2e;
  color: var(--white);
}

/* Cart page — match shop product sheet aesthetic */
.cart-page {
  background: linear-gradient(180deg, #f9f7f3 0%, var(--cream) 38%, var(--cream) 100%);
  min-height: 100dvh;
}

.cart-page__main {
  max-width: 1120px;
}

.cart-page__hero {
  margin-bottom: 1.5rem;
}

.cart-page__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.cart-page__title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--ink);
}

.cart-layout {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* About page — editorial hero, pillars, story + contact bento */

.about-page.cart-page,
.legal-page.cart-page {
  background: linear-gradient(
    160deg,
    #faf9f7 0%,
    var(--cream) 18%,
    #f3efe8 52%,
    var(--cream) 100%
  );
}

.about-page__main.cart-page__main {
  max-width: 1080px;
  padding-left: clamp(1rem, 4vw, 1.65rem);
  padding-right: clamp(1rem, 4vw, 1.65rem);
  padding-bottom: 2.5rem;
}

.about-hero {
  position: relative;
  isolation: isolate;
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  padding: clamp(1.75rem, 5vw, 2.85rem) clamp(1.25rem, 4vw, 2.25rem);
  border-radius: calc(var(--radius) + 12px);
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 115% 80% at 12% -12%,
      rgba(231, 220, 200, 0.55),
      transparent 58%
    ),
    radial-gradient(ellipse 90% 70% at 100% 102%, rgba(220, 210, 195, 0.45), transparent 62%),
    linear-gradient(
      148deg,
      rgba(255, 255, 255, 0.97),
      rgba(252, 250, 247, 0.98) 45%,
      rgba(246, 242, 234, 0.99)
    );
  border: 1px solid rgba(15, 15, 15, 0.07);
  box-shadow:
    0 26px 64px rgba(15, 15, 15, 0.09),
    0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

.about-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(circle at 22% 28%, rgba(15, 15, 15, 0.04) 0, transparent 40%),
    radial-gradient(circle at 76% 18%, rgba(15, 15, 15, 0.035) 0, transparent 38%),
    radial-gradient(circle at 92% 88%, rgba(15, 15, 15, 0.03) 0, transparent 35%);
}

.about-hero__grain {
  position: absolute;
  inset: -12%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  animation: about-grain-shift 12s linear infinite;
}

@keyframes about-grain-shift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-4%, -3%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-hero__grain {
    animation: none;
  }
}

.about-hero__inner {
  position: relative;
  max-width: 34rem;
}

.about-hero__inner--wide {
  max-width: 42rem;
}

.about-hero__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.about-hero__title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.042em;
  line-height: 1.08;
  color: var(--ink);
}

.about-hero__tagline {
  margin: 0;
  font-size: clamp(0.9rem, 2.1vw, 1.02rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
  max-width: 28rem;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin-bottom: clamp(1.5rem, 3.5vw, 2.25rem);
}

@media (min-width: 640px) {
  .about-pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.about-pillar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.1rem 1.15rem 1.2rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 15, 15, 0.07);
  box-shadow: 0 10px 28px rgba(15, 15, 15, 0.05);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    transform var(--transition);
}

@media (hover: hover) {
  .about-pillar:hover {
    border-color: rgba(15, 15, 15, 0.11);
    box-shadow: 0 16px 40px rgba(15, 15, 15, 0.07);
    transform: translateY(-2px);
  }
}

@media (hover: hover) and (prefers-reduced-motion: reduce) {
  .about-pillar:hover {
    transform: none;
  }
}

.about-pillar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--ink) 0%, #2c2c2c 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(15, 15, 15, 0.18);
}

.about-pillar__icon svg {
  flex-shrink: 0;
}

.about-pillar__title {
  margin: 0.15rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.about-pillar__text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.about-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .about-bento {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.78fr);
    gap: 1.5rem;
    align-items: start;
  }
}

.about-story-card {
  position: relative;
  overflow: hidden;
}

.about-story-card__ribbon {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--ink) 0%, #4a4540 72%, rgba(74, 69, 64, 0.35) 100%);
  border-radius: 4px 0 0 4px;
}

.about-story-card__body {
  position: relative;
  padding: 1.35rem 1.25rem 1.45rem 1.65rem !important;
}

.about-story-card__section-label {
  margin: 0 0 0.75rem;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.about-story-card__lede {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.about-story-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--muted);
}

.about-contact-card {
  display: flex;
  flex-direction: column;
}

.about-contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about-contact-tile {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 0.85rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: linear-gradient(
    155deg,
    rgba(251, 250, 248, 0.95),
    rgba(255, 255, 255, 1) 40%,
    rgba(246, 244, 240, 0.55)
  );
  transition:
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
}

@media (hover: hover) {
  .about-contact-tile:hover {
    border-color: rgba(15, 15, 15, 0.14);
    box-shadow: 0 12px 32px rgba(15, 15, 15, 0.07);
  }
}

.about-contact-tile__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid rgba(15, 15, 15, 0.07);
}

.about-contact-tile__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.about-contact-tile__label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.about-contact-tile__value {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
  transition:
    color var(--transition),
    text-decoration-thickness var(--transition);
}

.about-contact-tile__value:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
}

.about-contact-tile__value:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.about-contact-tile__chevron {
  flex-shrink: 0;
  color: rgba(15, 15, 15, 0.22);
}

.about-contact-card__cta {
  margin-top: 0.35rem;
  width: 100%;
}

@media (min-width: 480px) {
  .about-contact-card__cta {
    align-self: flex-start;
    width: auto;
    min-width: 11.5rem;
  }
}

/* Legal pages (privacy policy, etc.) — editorial cards + TOC */
.legal-page__main.cart-page__main {
  max-width: 920px;
  padding-left: clamp(1rem, 4vw, 1.65rem);
  padding-right: clamp(1rem, 4vw, 1.65rem);
  padding-bottom: 2.75rem;
}

.legal-meta {
  margin-bottom: 1.15rem;
  border-radius: calc(var(--radius) + 6px);
}

.legal-meta__body {
  padding: 1.1rem 1.2rem 1.2rem !important;
}

.legal-meta__row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1rem;
  margin-bottom: 0.65rem;
}

.legal-meta__row:last-of-type {
  margin-bottom: 0.85rem;
}

.legal-meta__label {
  flex: 0 0 auto;
  min-width: 6rem;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.legal-meta__value {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.legal-meta__note {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 15, 15, 0.07);
  font-size: 0.8rem;
  line-height: 1.55;
  color: var(--muted);
}

.legal-toc {
  position: sticky;
  top: 3.75rem;
  z-index: 8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.35rem;
  padding: 0.65rem 0.45rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(15, 15, 15, 0.07);
  box-shadow: 0 8px 28px rgba(15, 15, 15, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not (backdrop-filter: blur(1px)) {
  .legal-toc {
    background: rgba(255, 255, 255, 0.92);
  }
}

.legal-toc__link {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.65rem;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background: rgba(255, 255, 255, 0.78);
  transition:
    color var(--transition),
    border-color var(--transition),
    background var(--transition),
    box-shadow var(--transition);
  scroll-margin-top: 5.5rem;
}

.legal-toc__link:hover {
  color: var(--ink);
  border-color: rgba(15, 15, 15, 0.16);
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15, 15, 15, 0.06);
}

.legal-toc__link:focus-visible {
  outline: none;
  border-color: rgba(15, 15, 15, 0.28);
  box-shadow: 0 0 0 3px rgba(15, 15, 15, 0.08);
}

.legal-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.legal-card {
  border-radius: calc(var(--radius) + 6px);
  scroll-margin-top: 5.25rem;
}

.legal-card__body {
  padding: 1.15rem 1.2rem 1.3rem !important;
}

.legal-card__title {
  margin: 0 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
}

.legal-prose {
  font-size: 0.88rem;
  line-height: 1.62;
  color: var(--ink);
}

.legal-prose p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.legal-prose p:last-child {
  margin-bottom: 0;
}

.legal-prose strong {
  font-weight: 600;
  color: var(--ink);
}

.legal-prose ul {
  margin: 0 0 0.85rem;
  padding: 0 0 0 1.05rem;
  color: var(--muted);
}

.legal-prose ul:last-child {
  margin-bottom: 0;
}

.legal-prose li {
  margin-bottom: 0.55rem;
}

.legal-prose li:last-child {
  margin-bottom: 0;
}

.legal-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.84em;
  padding: 0.12rem 0.35rem;
  border-radius: 6px;
  background: rgba(15, 15, 15, 0.06);
  color: var(--ink);
}

.legal-prose__contact-list {
  list-style: none;
  padding-left: 0;
}

.legal-prose__contact-list li {
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.legal-prose__contact-list li:last-child {
  margin-bottom: 0;
}

.legal-prose__link {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}

.legal-prose__link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-prose__muted {
  font-size: 0.82rem !important;
  padding-top: 0.85rem !important;
  margin-top: 0.85rem !important;
  margin-bottom: 0 !important;
  border-top: 1px solid rgba(15, 15, 15, 0.07);
}

.legal-back {
  margin: 1.75rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}

.legal-back--about {
  margin-top: 1.5rem;
}

.legal-back__top,
.legal-back__shop {
  color: var(--muted);
  text-decoration: none;
  transition: color var(--transition);
}

.legal-back__top:hover,
.legal-back__shop:hover {
  color: var(--ink);
}

.legal-back__sep {
  display: inline-block;
  padding: 0 0.4rem;
  color: rgba(92, 92, 92, 0.45);
  font-weight: 400;
}

@media (max-width: 639px) {
  .legal-toc {
    top: 3.55rem;
    padding: 0.55rem 0.38rem;
  }

  .legal-toc__link {
    font-size: 0.62rem;
    padding: 0.34rem 0.55rem;
  }
}

@media (min-width: 880px) {
  .cart-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .cart-card {
    flex: 1.15;
    min-width: 0;
  }

  .checkout-card {
    flex: 1;
    max-width: 432px;
  }
}

.cart-card,
.checkout-card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.07);
  box-shadow:
    0 20px 56px rgba(15, 15, 15, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
}

.cart-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 248, 244, 0.85) 100%);
}

.cart-card__heading {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.cart-card__badge {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: #efe8dc;
  color: #4a4036;
}

.cart-card__body {
  padding: 1rem 1.1rem 1.15rem;
}

.cart-empty {
  text-align: center;
  padding: 2rem 1rem 1.5rem;
}

.cart-empty__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.cart-empty__text {
  margin: 0 0 1.25rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 18rem;
  margin-left: auto;
  margin-right: auto;
}

.cart-empty__cta {
  width: auto;
  display: inline-flex;
  padding: 0.72rem 1.35rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.cart-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.cart-line {
  display: flex;
  gap: 0.85rem;
  padding: 0.75rem 0.8rem;
  border-radius: 14px;
  border: 1px solid rgba(15, 15, 15, 0.06);
  background: rgba(247, 244, 239, 0.45);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.cart-line:hover {
  border-color: rgba(15, 15, 15, 0.1);
  box-shadow: 0 4px 16px rgba(15, 15, 15, 0.05);
}

.cart-line__thumb {
  flex-shrink: 0;
}

.cart-line__img {
  width: 80px;
  height: 100px;
  object-fit: cover;
  border-radius: 11px;
  background: var(--beige);
  box-shadow: 0 2px 8px rgba(15, 15, 15, 0.06);
}

.cart-line__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cart-line__title {
  margin: 0;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
}

.cart-line__meta {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.cart-line__pricing {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.2rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 15, 15, 0.06);
}

.cart-line__unit {
  font-size: 0.74rem;
  color: var(--muted);
}

.cart-line__total {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.cart-line__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.cart-line__stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: 999px;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 15, 15, 0.04);
}

.cart-line__step {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
  transition: background var(--transition);
}

.cart-line__step:hover {
  background: var(--cream);
}

.cart-line__qty {
  min-width: 2rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}

.cart-line__remove {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #8b3a3a;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.cart-line__remove:hover {
  color: #6b2020;
}

.checkout-card__mast,
.payment-sheet__mast {
  padding: 1.05rem 1.15rem 0.85rem;
  border-bottom: 1px solid rgba(15, 15, 15, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(250, 248, 244, 0.75) 100%);
}

.checkout-card__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.checkout-card__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.checkout-form {
  padding: 1.05rem 1.15rem 1.2rem;
  gap: 1rem;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin: 0;
}

.checkout-field__label {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.checkout-field__hint {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.85;
}

.checkout-field__control {
  border-radius: 11px;
  border-color: rgba(15, 15, 15, 0.1);
}

/* iOS Safari: font-size under 16px on focused fields triggers zoom */
#checkout-panel .checkout-field__control,
#checkout-panel .checkout-promo__input,
#checkout-panel textarea.input {
  font-size: max(16px, 1rem);
}

.checkout-delivery-extra {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  padding: 0.15rem 0 0;
}

.checkout-delivery-extra[hidden] {
  display: none !important;
}

.checkout-delivery-extra__title {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.checkout-summary {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.05rem 0 0.35rem;
  margin-top: 0.35rem;
  border-top: 1px solid rgba(15, 15, 15, 0.07);
}

.checkout-promo__label {
  display: block;
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.checkout-promo__row {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
}

.checkout-promo__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.52rem 0.75rem;
  text-transform: uppercase;
  border-radius: 11px;
}

.checkout-promo__input::placeholder {
  text-transform: none;
  letter-spacing: normal;
  opacity: 0.55;
}

.checkout-promo__apply {
  flex-shrink: 0;
  align-self: center;
  padding: 0.48rem 0.95rem;
  font-size: 0.76rem;
  border-radius: 999px;
}

.checkout-promo__msg {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

.checkout-promo__msg:not([hidden]) {
  display: block;
}

.checkout-promo__msg[data-tone="error"] {
  color: #9b1c1c;
}

.checkout-lines {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  padding: 0.15rem 0 0.05rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.checkout-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.checkout-line__k {
  font-weight: 500;
}

.checkout-line__v {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.checkout-line--savings {
  color: #1f5d2e;
}

.checkout-line--savings .checkout-line__v {
  font-weight: 700;
}

.checkout-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-top: 0.15rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(15, 15, 15, 0.1);
}

.checkout-total-line__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.checkout-total-line__amount {
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.checkout-form__submit {
  margin-top: 0.55rem;
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.045em;
}

.payment-sheet {
  padding: 1rem 1.15rem 1.25rem;
  margin-top: 0;
  background: rgba(247, 244, 239, 0.35);
}

.payment-sheet__toolbar {
  display: flex;
  align-items: center;
  margin: -0.2rem 0 0.15rem -0.35rem;
}

.checkout-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition:
    background-color var(--transition),
    color var(--transition);
}

.checkout-back-btn:hover {
  background: rgba(15, 15, 15, 0.06);
}

.checkout-back-btn:focus-visible {
  outline: 2px solid rgba(15, 15, 15, 0.25);
  outline-offset: 2px;
}

.payment-sheet__mast {
  border-bottom: none;
  padding-left: 0;
  padding-right: 0;
  background: transparent;
}

.payment-sheet__title {
  font-size: 1.05rem;
}

.payment-sheet__lede {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #5a5a5a;
}

.bank-panel {
  border-radius: 12px;
  border: 1px solid rgba(15, 15, 15, 0.08);
  background: var(--white);
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.82rem;
}

.bank-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.05);
}

.bank-panel__row:last-child {
  border-bottom: none;
}

.bank-panel__k {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.bank-panel__v {
  text-align: right;
  font-weight: 500;
  word-break: break-word;
}

.checkout-disclosure {
  margin: 0;
  line-height: 1.5;
  font-size: 0.78rem;
}

.payment-sheet__note {
  margin: 0 0 0.9rem;
  line-height: 1.5;
  font-size: 0.78rem;
}

.payment-sheet__amount {
  margin: 0 0 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.payment-sheet__amount strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.checkout-field--file {
  margin-bottom: 0.85rem;
}

.file-drop {
  position: relative;
  display: block;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border: 1px dashed rgba(15, 15, 15, 0.18);
  border-radius: 12px;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.file-drop:hover {
  border-color: rgba(15, 15, 15, 0.28);
  background: rgba(255, 255, 255, 0.95);
}

.file-drop__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  font-size: 0;
}

.file-drop__text {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  pointer-events: none;
}

.payment-sheet__submit {
  width: 100%;
  padding: 0.88rem 1rem;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.045em;
}

.payment-sheet__slip-success {
  margin: 0 0 0.35rem;
  padding: 0.55rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f4d32;
  text-align: center;
  background: rgba(31, 77, 50, 0.1);
  border-radius: 10px;
  border: 1px solid rgba(31, 77, 50, 0.18);
}

.payment-sheet__slip-success[hidden] {
  display: none !important;
}

.payment-sheet__pending {
  margin: 0.65rem 0 0;
  text-align: center;
}

/* Cart — order summary sheet (on-screen + PNG via off-screen clone) */
.order-thanks-modal.modal--wide {
  width: min(92vw, 352px);
}

.order-thanks-modal .modal__inner {
  padding-bottom: 0.85rem;
  max-height: min(88vh, 640px);
  overflow-y: auto;
}

.order-slip--sheet {
  margin: 0 auto 0.75rem;
  padding: 1rem 1.05rem 0.85rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 328px;
  margin-left: auto;
  margin-right: auto;
  background: #fafafa;
  border: 1px solid rgba(15, 15, 15, 0.07);
  border-radius: 18px;
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.36;
  box-shadow: 0 1px 0 rgba(15, 15, 15, 0.04);
}

.order-slip-sheet__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(15, 15, 15, 0.07);
}

.order-slip-sheet__notice--top {
  margin: 0 0 0.45rem;
  padding: 0.38rem 0.45rem;
  font-size: 0.64rem;
  line-height: 1.38;
  text-align: center;
  color: #5a5a5a;
  background: rgba(15, 15, 15, 0.04);
  border-radius: 10px;
}

.order-slip-sheet__brand {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.order-slip-sheet__title {
  font-size: 0.64rem;
  font-weight: 600;
  color: var(--muted);
}

.order-slip-sheet__ids {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0 0 0.45rem;
  text-align: center;
  line-height: 1.35;
}

.order-slip-sheet__meta-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.order-slip-sheet__id-value {
  display: block;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 0.66rem;
  font-weight: 600;
  color: #5a5a5a;
  word-break: break-all;
}

.order-slip-sheet__issued {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  margin: 0.4rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(15, 15, 15, 0.07);
  text-align: center;
  line-height: 1.35;
}

.order-slip-sheet__datetime {
  font-size: 0.66rem;
  font-weight: 500;
  color: #5a5a5a;
}

.order-sheet-dl {
  margin: 0;
}

.order-sheet-section {
  margin: 0 0 0.28rem;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a8a8a;
}

.order-sheet-section + .order-sheet-dl {
  margin-bottom: 0.15rem;
}

.order-sheet-row {
  display: grid;
  grid-template-columns: 5.1rem 1fr;
  gap: 0.15rem 0.45rem;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.045);
}

.order-sheet-row:last-of-type {
  border-bottom: none;
}

.order-sheet-dt,
.order-sheet-dd {
  display: block;
}

.order-sheet-dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 600;
  color: #888;
}

.order-sheet-dd {
  margin: 0;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}

.order-sheet-lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.order-sheet-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.1rem 0.45rem;
  align-items: start;
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(15, 15, 15, 0.04);
  font-size: 0.72rem;
}

.order-sheet-item:last-child {
  border-bottom: none;
}

.order-sheet-item--empty {
  grid-template-columns: 1fr;
  justify-items: center;
  color: var(--muted);
}

.order-sheet-item__main {
  min-width: 0;
}

.order-sheet-item__name {
  display: block;
  font-weight: 600;
}

.order-sheet-item__meta {
  display: block;
  font-size: 0.64rem;
  font-weight: 500;
  color: #888;
  margin-top: 0.04rem;
}

.order-sheet-item__qty {
  font-variant-numeric: tabular-nums;
  color: #888;
  font-size: 0.68rem;
  padding-top: 0.02rem;
}

.order-sheet-item__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  text-align: right;
}

.order-sheet-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(15, 15, 15, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
}

.order-sheet-total--sub {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(15, 15, 15, 0.06);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}

.order-sheet-total--discount {
  margin-top: 0.15rem;
  padding-top: 0;
  border-top: none;
  font-size: 0.76rem;
  font-weight: 600;
  color: #1f5d2e;
}

.order-thanks-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0 auto;
}

.order-thanks-actions__btn {
  width: 100%;
  border-radius: 999px;
  font-size: 0.76rem;
}

.order-thanks-actions__btn--wide {
  margin-top: 0.08rem;
}

@media print {
  @page {
    margin: 12mm;
  }

  .no-print,
  .modal-backdrop,
  .toast {
    display: none !important;
  }

  .header,
  .main {
    display: none !important;
  }

  body.body-blur-active .main {
    display: none !important;
  }

  .order-thanks-modal {
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 392px !important;
    margin: 0 auto !important;
    box-shadow: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    overflow: visible !important;
  }

  .order-thanks-modal .modal__inner {
    padding: 0.4rem 0 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .order-slip--sheet {
    box-shadow: none !important;
    page-break-inside: avoid;
  }
}

.form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.hint {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.78rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%) translateY(12px);
  z-index: 200;
  max-width: min(90vw, 360px);
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast[data-type="error"] {
  background: #7a1e1e;
}

.toast[data-type="success"] {
  background: #1f4d32;
  color: var(--white);
}

/* Welcome promo popup (shop) */
.promo-popup-backdrop {
  z-index: 96;
  transition: opacity 0.38s ease;
}

.modal--promo {
  z-index: 97;
  width: min(88vw, 340px);
  max-height: none;
  border-radius: 18px;
  border: 1px solid rgba(15, 15, 15, 0.06);
  box-shadow:
    0 24px 64px rgba(15, 15, 15, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  overflow: visible;
  transform: translate(-50%, -44%) scale(0.92);
  transition:
    opacity 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal--promo.is-open {
  transform: translate(-50%, -50%) scale(1);
}

@keyframes promo-popup-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal--promo.is-open .promo-popup__inner > * {
  animation: promo-popup-rise 0.48s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.modal--promo.is-open .promo-popup__icon {
  animation-delay: 0.05s;
}

.modal--promo.is-open .promo-popup__eyebrow {
  animation-delay: 0.1s;
}

.modal--promo.is-open .promo-popup__title {
  animation-delay: 0.14s;
}

.modal--promo.is-open .promo-popup__message {
  animation-delay: 0.18s;
}

.modal--promo.is-open .promo-popup__code-block {
  animation-delay: 0.22s;
}

.modal--promo.is-open .promo-popup__cta {
  animation-delay: 0.28s;
}

@media (prefers-reduced-motion: reduce) {
  .promo-popup-backdrop,
  .modal--promo {
    transition-duration: 0.01ms !important;
  }

  .modal--promo.is-open .promo-popup__inner > * {
    animation: none !important;
  }
}

.modal--promo .modal__close {
  top: 0.65rem;
  right: 0.65rem;
  width: 36px;
  height: 36px;
  padding: 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(15, 15, 15, 0.08);
  box-shadow: 0 2px 12px rgba(15, 15, 15, 0.08);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: var(--ink);
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.modal--promo .modal__close:hover {
  background: var(--white);
}

.modal--promo .modal__close:focus {
  outline: none;
  box-shadow: 0 2px 12px rgba(15, 15, 15, 0.08);
}

.modal--promo .modal__close:focus-visible {
  outline: 2px solid rgba(15, 15, 15, 0.18);
  outline-offset: 2px;
}

.modal--promo .modal__close:active {
  transform: scale(0.96);
}

.promo-popup__inner {
  padding: 1.35rem 1.2rem 1.2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.promo-popup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 0 0.85rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--white) 0%, var(--beige) 100%);
  border: 1px solid rgba(15, 15, 15, 0.06);
  box-shadow: 0 4px 16px rgba(15, 15, 15, 0.06);
  color: var(--ink);
  font-size: 1.15rem;
}

.promo-popup__eyebrow {
  margin: 0 0 0.4rem;
  padding: 0.2rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(15, 15, 15, 0.04);
  border-radius: 999px;
}

.promo-popup__eyebrow[hidden] {
  display: none;
}

.promo-popup__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.12rem, 4vw, 1.28rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.promo-popup__message {
  margin: 0 0 0.9rem;
  max-width: 26ch;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.promo-popup__message[hidden] {
  display: none;
}

.promo-popup__code-block {
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0.85rem 0.75rem 0.75rem;
  text-align: center;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-radius: 14px;
  border: 1px dashed rgba(15, 15, 15, 0.14);
}

.promo-popup__code-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--muted);
}

.promo-popup__code-label i {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.55;
}

.promo-popup__code-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  gap: 0.5rem;
}

.promo-popup__code {
  flex: 0 1 auto;
  min-width: 0;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-align: center;
  user-select: all;
  -webkit-user-select: all;
}

.promo-popup__copy {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(15, 15, 15, 0.08);
  transition: background var(--transition), transform var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.promo-popup__copy:hover {
  background: var(--beige);
}

.promo-popup__copy:active {
  transform: scale(0.94);
}

.promo-popup__copy:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.promo-popup__cta {
  width: 100%;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
}
