/* Storefront and checkout share the typography and red accent of the site. */
.shop-v58 {
  --shop-ink: #191e1b;
  --shop-muted: #505d55;
  --shop-border: #d7dcd6;
  --shop-soft: #f1f3ef;
  --shop-red: #b52024;
  --shop-dark-red: #93171b;
  --shop-pad: clamp(16px, 1.5vw, 23px);
  color: var(--shop-ink);
  background: #fafbf8;
  padding: clamp(88px, 8vw, 120px) 0 clamp(54px, 7vw, 94px);
  font-family: var(--font-body, 'Barlow', sans-serif);
}
.shop-v58 * { box-sizing: border-box; }
.shop-v58 [hidden],
.shop-v58:not(.is-ready) [data-shop-enhanced],
.shop-v58.is-ready [data-shop-fallback] { display: none !important; }
.shop-shell {
  width: min(1320px, calc(100% - 2 * var(--gutter, 4vw)));
  margin: 0 auto;
}
.shop-v58 h1, .shop-v58 h2, .shop-v58 h3,
.shop-v58 .shop-dialog__title {
  font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif;
  font-weight: 600;
  color: var(--shop-ink);
}
.shop-v58 button, .shop-v58 input, .shop-v58 select, .shop-v58 textarea {
  font-family: inherit;
  touch-action: manipulation;
}
.shop-v58 :where(button, a, input, select, textarea):focus-visible {
  outline: 3px solid var(--shop-red);
  outline-offset: 3px;
}
.shop-v58 :where(button, a) { -webkit-tap-highlight-color: transparent; }
.shop-v58 :where(button) { cursor: pointer; }
.shop-v58 :where(button):disabled { opacity: .55; cursor: default; }

.shop-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  background-color: #eeede7;
  border: 1px solid #dfdfd7;
  border-radius: 18px;
}
.shop-hero__copy {
  z-index: 1;
  padding: clamp(22px, 2.25vw, 30px) clamp(24px, 3.5vw, 48px);
}
.shop-crumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #535b54;
  font-size: .875rem;
}
.shop-crumbs a:hover { text-decoration: underline; text-underline-offset: .18em; }
.shop-hero h1 {
  margin: 0 0 9px;
  font-size: clamp(2.5rem, 3.65vw, 3.75rem);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.shop-hero__copy > p {
  max-width: 43ch;
  margin: 0 0 7px;
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  line-height: 1.45;
}
.shop-hero__link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 36px;
  color: #8b191e;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .23em;
}
.shop-hero__image {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 51%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 52%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 16%);
  mask-image: linear-gradient(90deg, transparent, black 16%);
}

.shop-catalog { padding-top: clamp(22px, 3vw, 40px); }
.shop-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
}
.shop-toolbar h2 {
  margin: 0 auto 0 0;
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -.025em;
}
.shop-search {
  display: flex;
  align-items: center;
  width: min(100%, 295px);
  min-height: 46px;
  gap: 10px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #b6c0b7;
  border-radius: 9px;
  color: var(--shop-muted);
}
.shop-search:focus-within { outline: 2px solid var(--shop-red); outline-offset: 2px; }
.shop-search svg, .shop-bag svg { flex: none; display: block; }
.shop-search input {
  display: block;
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  color: var(--shop-ink);
  background: transparent;
  border: 0;
  outline: none !important;
  font-size: 1rem;
}
.shop-search input::placeholder { color: var(--shop-muted); opacity: 1; }
.shop-bag, .shop-btn, .shop-pick {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .55em;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.shop-bag { min-height: 46px; color: #fff; background: var(--shop-ink); }
.shop-bag:hover { background: #313c34; }
.shop-bag__short-label { display: none; }
.shop-bag__count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: var(--shop-ink);
  font-size: .8rem;
  font-variant-numeric: tabular-nums;
}
.shop-browse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 18px 0 20px;
}
.shop-categories { display: flex; flex-wrap: wrap; gap: 7px; }
.shop-filter {
  min-height: 40px;
  padding: 7px 14px;
  background: transparent;
  color: var(--shop-muted);
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 600;
}
.shop-filter:hover { background: var(--shop-soft); color: var(--shop-ink); }
.shop-filter[aria-pressed="true"] { background: var(--shop-ink); color: #fff; border-color: var(--shop-ink); }
.shop-result-count {
  margin: 0;
  color: var(--shop-muted);
  font-size: .95rem;
  font-variant-numeric: tabular-nums;
}
.shop-empty, .shop-contact-fallback {
  margin: 14px 0;
  padding: 16px 20px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  background: var(--shop-soft);
}
.shop-empty p { margin: 0 0 12px; }
.shop-contact-fallback a, .shop-dialog__body p a { text-decoration: underline; text-underline-offset: .17em; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(14px, 1.65vw, 24px);
}
.shop-product {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--shop-border);
  border-radius: 13px;
}
.shop-product:focus-within { border-color: #8c9a8e; }
.shop-product__detail { display: block; color: inherit; text-decoration: none; border-radius: 12px 12px 0 0; }
.shop-product__image {
  overflow: hidden;
  aspect-ratio: 1200 / 630;
  background: var(--shop-soft);
  border-radius: 12px 12px 0 0;
}
.shop-product__image img { width: 100%; height: 100%; object-fit: cover; }
.shop-product__heading { padding: var(--shop-pad) var(--shop-pad) 0; }
.shop-product__category {
  display: block;
  margin-bottom: 4px;
  color: #64504b;
  font-size: .81rem;
  font-weight: 600;
}
.shop-product h3 {
  margin: 0;
  font-size: clamp(1.29rem, 1.6vw, 1.68rem);
  line-height: 1.16;
  letter-spacing: -.016em;
  overflow-wrap: anywhere;
}
.shop-product__detail:hover h3 { color: var(--shop-dark-red); }
.shop-product__summary {
  margin: 8px var(--shop-pad) 16px;
  color: var(--shop-muted);
  font-size: 1rem;
  line-height: 1.46;
}
.shop-product__purchase {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 9px 12px;
  padding: 13px 0 15px;
  margin: auto var(--shop-pad) 0;
  border-top: 1px solid #e3e6e1;
}
.shop-product__price { font-size: 1rem; font-weight: 700; line-height: 1.3; }
.shop-pick {
  padding: 8px 12px;
  min-height: 42px;
  color: var(--shop-dark-red);
  background: #fff;
  border-color: #d9b9b6;
  font-size: .94rem;
}
.shop-pick:hover { background: #fcf0ee; border-color: var(--shop-red); }
.shop-pick span { font-size: 1.1em; line-height: 1; }

/* Native dialog provides focus containment and Escape handling. */
.shop-dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  width: min(540px, 100%);
  max-width: 100%;
  height: 100%;
  height: 100dvh;
  max-height: 100%;
  max-height: 100dvh;
  padding: 0;
  overscroll-behavior: contain;
  color: var(--shop-ink);
  background: #fff;
  border: 0;
  border-left: 1px solid var(--shop-border);
  box-shadow: -12px 0 42px rgb(23 31 25 / 12%);
  font-family: 'Barlow', sans-serif;
}
.shop-dialog:not([open]) { display: none !important; }
.shop-dialog::backdrop { background: rgb(22 28 24 / 42%); }
.shop-dialog[open] { overflow: auto; }
.shop-dialog__header {
  display: flex;
  position: sticky;
  top: 0;
  z-index: 3;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 30px);
  border-bottom: 1px solid var(--shop-border);
  background: #fff;
}
.shop-dialog .shop-dialog__title {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.22rem);
  line-height: 1.12;
  letter-spacing: -.023em;
  overflow-wrap: anywhere;
}
.shop-icon-button {
  display: inline-grid;
  flex: none;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 3px;
  color: var(--shop-ink);
  background: var(--shop-soft);
  border: 1px solid var(--shop-border);
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}
.shop-icon-button:hover { border-color: #88968c; }
.shop-dialog__body {
  padding: clamp(18px, 3vw, 30px);
  overflow-wrap: anywhere;
}
.shop-dialog__body p { max-width: 64ch; margin: 0 0 14px; }
.shop-dialog__body > :last-child { margin-bottom: 0; }
.shop-dialog img { max-width: 100%; height: auto; border-radius: 10px; }
.shop-dialog__body h3 {
  margin: 16px 0 8px;
  font-size: 1.35rem;
  line-height: 1.18;
}
.shop-dialog__headings { min-width: 0; }
.shop-dialog__body > .shop-summary, .shop-dialog__body > .shop-payment { margin-block: 14px; }
.shop-dialog__body :is(.shop-summary, .shop-payment) > :first-child { margin-top: 0; }
.shop-dialog__body :is(.shop-summary, .shop-payment) > :last-child { margin-bottom: 0; }
.shop-dialog__body .shop-config-price {
  margin: 0;
  color: var(--shop-ink);
  font-size: 1.15rem;
  font-weight: 700;
}
.shop-dialog__body .shop-cart-row__note {
  margin: 8px 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
.shop-order-tools { margin: 14px 0; }
.shop-order-tools summary { cursor: pointer; font-weight: 600; }
.shop-order-tools[open] summary { margin-bottom: 10px; }
.shop-dialog__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px clamp(18px, 3vw, 30px) max(20px, env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--shop-border);
  background: #fff;
}
.shop-dialog__body .shop-dialog__actions { padding-inline: 0; }
.shop-btn {
  min-height: 46px;
  max-width: 100%;
  color: var(--shop-ink);
  background: #fff;
  border-color: #aeb8ae;
}
.shop-btn:hover { background: var(--shop-soft); }
.shop-btn--primary { background: var(--shop-red); border-color: var(--shop-red); color: #fff; }
.shop-btn--primary:hover { background: var(--shop-dark-red); border-color: var(--shop-dark-red); }
.shop-step, .shop-help, .shop-cart-row__meta { color: var(--shop-muted); font-size: .92rem; line-height: 1.45; }
.shop-step { margin: 0 0 10px; font-weight: 600; }
.shop-form { display: grid; align-content: start; gap: 15px; min-width: 0; }
.shop-field { display: grid; gap: 6px; min-width: 0; margin: 0; }
.shop-field__label, .shop-form legend { font-weight: 600; color: var(--shop-ink); }
.shop-form fieldset {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
}
.shop-form legend { padding-inline: 5px; }
.shop-dialog :is(input:not([type="radio"]):not([type="checkbox"]), textarea, select) {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--shop-ink);
  border: 1px solid #aab5ab;
  border-radius: 8px;
  background: #fff;
  font-size: 1rem;
  line-height: 1.35;
}
.shop-dialog textarea { resize: vertical; }
.shop-dialog :is(input[type="checkbox"], input[type="radio"]) { accent-color: var(--shop-red); width: 19px; height: 19px; vertical-align: middle; }
.shop-dialog :is(input, textarea, select)[aria-invalid="true"] { border-color: var(--shop-red); }
.shop-error, .shop-success {
  margin: 10px 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fbefed;
  color: #8b2027;
}
.shop-success { color: #284d32; background: #edf4eb; }
.shop-cart-items { display: grid; gap: 10px; margin: 0 0 18px; padding: 0; list-style: none; }
.shop-cart-row, .shop-summary, .shop-payment {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
}
.shop-cart-row { background: #fff; }
.shop-dialog .shop-cart-row__title { margin: 0 0 7px; line-height: 1.25; }
.shop-cart-row__actions { display: flex; gap: 7px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.shop-cart-row__actions .shop-btn { min-height: 40px; padding: 6px 11px; font-size: .9rem; }
.shop-summary, .shop-payment { background: var(--shop-soft); }
.shop-summary__line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 4px 0;
}
.shop-summary__line strong { font-variant-numeric: tabular-nums; }
.shop-payment { display: block; }
.shop-payment label { font-weight: 600; }
.shop-form > a.shop-help { text-decoration: underline; text-underline-offset: .18em; }
.shop-order-text {
  padding: 14px 16px;
  border: 1px solid var(--shop-border);
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--shop-ink);
  background: #fff;
  font: inherit;
}

@media (min-width: 1060px) {
  .shop-toolbar {
    position: sticky;
    z-index: 5;
    top: 92px;
    padding: 10px 0;
    background: #fafbf8;
  }
}
@media (max-width: 1059px) {
  .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shop-browse { align-items: flex-start; flex-direction: column; gap: 9px; }
}
@media (max-width: 700px) {
  .shop-v58 { padding-top: 83px; }
  .shop-hero { display: block; border-radius: 13px; }
  .shop-hero__copy { position: relative; max-width: 76%; padding: 20px; }
  .shop-hero h1 { font-size: clamp(2.05rem, 6.4vw, 2.8rem); }
  .shop-hero__copy > p { font-size: 1rem; }
  .shop-hero__image { width: 39%; object-position: 66% center; -webkit-mask-image: linear-gradient(90deg, transparent, black 80%); mask-image: linear-gradient(90deg, transparent, black 80%); }
  .shop-v58.is-ready .shop-toolbar {
    position: sticky;
    top: 72px;
    z-index: 5;
    flex-wrap: nowrap;
    padding-block: 8px;
    background: #fafbf8;
  }
  .shop-v58.is-ready .shop-toolbar h2 {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .shop-search { flex: 1; width: auto; min-width: 0; }
  .shop-bag { min-height: 44px; }
  .shop-bag__short-label { display: inline; }
  .shop-bag__full-label { display: none; }
  .shop-crumbs { margin-bottom: 8px; }
  .shop-categories {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 3px 2px;
    scrollbar-width: thin;
  }
  .shop-filter { flex: 0 0 auto; min-height: 44px; padding: 7px 12px; }
  .shop-pick { min-height: 44px; }
}
@media (max-width: 629px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .shop-product__purchase { padding-block: 12px; }
}
@media (max-width: 400px) {
  .shop-shell { width: calc(100% - 26px); }
  .shop-hero__copy { max-width: 82%; padding: 17px; }
  .shop-dialog__actions > .shop-btn { flex: 1 1 auto; }
}

/* Actions below the populated cart total. */
.shop-summary + .shop-dialog__actions {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(4px, 1.5vw, 8px);
  align-items: stretch;
}

.shop-summary + .shop-dialog__actions > .shop-btn {
  min-width: 0;
  padding: 8px 4px;
  font-size: clamp(.875rem, .75rem + .6vw, 1rem);
  line-height: 1.22;
  white-space: normal;
  text-wrap: balance;
}
