.store-shell {
  --page: #faf9f7;
  --paper: #fff;
  --ink: #211e26;
  --muted: #625d69;
  --line: #dfdbe2;
  --accent: #514277;
  --accent-hover: #3e325b;
  --soft: #efebf5;
  --media: #f1eef0;
  --green: var(--accent);
  --store-serif: Georgia, "Times New Roman", serif;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  color: var(--ink);
  background: var(--page);
}

.store-shell main { flex: 1; }
.store-shell a { color: var(--accent); }
.store-shell a:focus-visible, .store-shell button:focus-visible,
.store-shell input:focus-visible, .store-shell select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.store-wrap { width: min(74rem, calc(100% - 5rem)); margin-inline: auto; }
.store-main { padding-block: clamp(1.6rem, 4vw, 3.75rem) clamp(2.75rem, 6vw, 5rem); }
.store-main:has(.store-catalog) { padding-top: clamp(2.25rem, 5vw, 4rem); }

.store-header { position: relative; z-index: 2; background: var(--paper); border-bottom: 1px solid var(--line); }
.store-header-inner {
  min-height: 4.6rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.25rem;
}

.store-shell .store-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  width: fit-content;
  color: inherit;
  font-size: 1.8rem;
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.13rem;
  text-decoration: none;
}

.store-wordmark span { font-size: .65rem; font-weight: 700; letter-spacing: .12em; }
.store-nav { display: flex; gap: clamp(1.25rem, 3vw, 2.6rem); }
.store-shell .store-nav a, .store-shell .store-bag {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 620;
  text-decoration: none;
}

.store-shell .store-nav a[aria-current], .store-shell .store-bag[aria-current],
.store-shell .store-nav a:hover, .store-shell .store-bag:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: .35em;
}

.store-header-tools { display: flex; align-items: center; justify-self: end; gap: .5rem; }
.store-bag { gap: .55rem; }
.store-preference { position: relative; }
.store-preference summary {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: .4rem;
  padding-inline: .45rem;
  border-radius: .35rem;
  font-size: .83rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}
.store-preference summary::-webkit-details-marker { display: none; }
.store-preference summary::after {
  content: "";
  width: .35rem;
  height: .35rem;
  margin-top: -.18rem;
  border-inline-end: 1px solid currentColor;
  border-block-end: 1px solid currentColor;
  transform: rotate(45deg);
}
.store-preference summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.store-preference-panel {
  position: absolute;
  inset-block-start: calc(100% + .25rem);
  inset-inline-end: 0;
  min-width: 7.5rem;
  padding: .25rem;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--paper);
  box-shadow: 0 6px 18px #211e261a;
}
.store-preference-panel button {
  width: 100%;
  min-height: 2.75rem;
  padding: .25rem .6rem;
  border: 0;
  border-radius: .35rem;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.store-preference summary:hover, .store-preference[open] summary,
.store-preference-panel button:hover, .store-preference-panel button[aria-pressed="true"] {
  color: var(--accent);
  background: var(--soft);
}
.store-currency-status { width: 9rem; margin: .35rem; color: var(--muted); font-size: .8rem; }
.store-bag-icon {
  position: relative;
  display: inline-block;
  width: .98rem;
  height: .85rem;
  margin-top: .2rem;
  border: 1.5px solid currentColor;
  border-radius: .13rem;
}

.store-bag-icon::before {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  width: .44rem;
  height: .3rem;
  border: 1.5px solid currentColor;
  border-bottom: 0;
  border-radius: .4rem .4rem 0 0;
  transform: translateX(-50%);
}

.store-count {
  display: grid;
  place-items: center;
  min-width: 1.35rem;
  min-height: 1.35rem;
  padding-inline: .2rem;
  border-radius: 1rem;
  color: var(--paper);
  background: var(--accent);
  font-size: .75rem;
}

.store-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(26rem, 38vw, 35rem);
  background: #d9d3d6;
}

.store-hero picture, .store-hero::after { position: absolute; inset: 0; z-index: -1; }
.store-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.store-hero::after {
  content: "";
  background: linear-gradient(90deg, #eeeaed 0%, #eeeaede8 22%, #eeeaed55 49%, transparent 67%);
}

.store-hero-content { padding-block: 3rem; }
.store-shell .store-hero h1 {
  max-width: 12ch;
  font: 400 clamp(3rem, 6.15vw, 6rem)/.99 var(--store-serif);
  letter-spacing: -.065em;
  text-wrap: balance;
}

.store-hero p { margin-block: 1.25rem 1.6rem; color: #403748; font-size: clamp(.97rem, 1.5vw, 1.12rem); }

.store-shell .button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  padding: .6rem 1rem;
  border-radius: .28rem;
  color: var(--ink);
  font-weight: 650;
}

.store-shell .button:hover { background: var(--soft); border-color: var(--accent); }
.store-shell .button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.store-shell .button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.store-shell .store-hero .button { padding-inline: 1.25rem; }
.store-shell .store-quiet-button { border-color: transparent; }

.store-shell .page-heading h1, .store-catalog-heading h1, .store-catalog-heading h2,
.store-featured h2, .store-detail-body h1 {
  font: 400 clamp(2.1rem, 4vw, 3.7rem)/1.08 var(--store-serif);
  letter-spacing: -.05em;
  overflow-wrap: anywhere;
}

.store-featured { margin-bottom: clamp(2.8rem, 6vw, 5.6rem); }
.store-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.7rem, 2vw, 1.5rem);
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.store-category-grid a { position: relative; display: block; isolation: isolate; min-width: 0; background: var(--media); }
.store-category-grid img { display: block; width: 100%; height: auto; aspect-ratio: 8/5; object-fit: cover; object-position: center 35%; }
.store-category-label {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  position: absolute;
  inset: auto .6rem .6rem;
  padding: .6rem .75rem;
  background: var(--paper);
  color: var(--ink);
  overflow-wrap: anywhere;
  font-weight: 650;
}

.store-category-grid a:hover .store-category-label { color: var(--accent); background: var(--soft); }
.store-catalog { scroll-margin-top: 1.5rem; }
.store-catalog-heading, .store-catalog-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .9rem 1.4rem;
}

.store-catalog-heading { margin-bottom: 1.2rem; }
.store-catalog-controls { margin-bottom: 1.4rem; }
.store-search { display: flex; align-items: center; gap: .4rem; min-width: 0; }
.store-search input {
  width: min(20rem, 100%);
  min-width: 0;
  height: 2.75rem;
  padding: .55rem .75rem;
  border: 1px solid var(--line);
  border-radius: .28rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.store-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.store-filters { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.store-shell .store-filters a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .3rem .8rem;
  border: 1px solid transparent;
  border-radius: .25rem;
  color: var(--muted);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.store-shell .store-filters a[aria-current], .store-shell .store-filters a:hover {
  color: var(--accent);
  border-color: var(--line);
  background: var(--soft);
}

.store-shell .storefront-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.5rem) clamp(.7rem, 2vw, 1.5rem);
  margin: 0;
}

.store-product-media { position: relative; overflow: hidden; background: var(--media); }
.store-shell .store-product-media img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; object-fit: contain; border-radius: 0; background: var(--media); }
.store-product-media > span {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  background: var(--paper);
  color: var(--ink);
  border-radius: 50%;
}

.storefront-tile a:hover .store-product-media > span, .storefront-tile a:focus-visible .store-product-media > span {
  background: var(--accent);
  color: var(--paper);
}

.store-shell .storefront-tile a { color: var(--ink); }
.storefront-tile h3 { margin: .72rem 0 0; font-size: 1rem; line-height: 1.35; overflow-wrap: anywhere; }
.storefront-tile p { margin-top: .2rem; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.storefront-tile a:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.store-shell .store-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2em .48em; color: var(--ink); }
.store-price s { color: var(--muted); }
.store-detail-body .store-price { margin-top: .75rem; font-size: 1.18rem; }

.store-empty { display: grid; justify-items: start; gap: .5rem; padding: 1.35rem; border: 1px dashed var(--line); color: var(--muted); }
.store-breadcrumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.35rem; color: var(--muted); font-size: .92rem; }
.store-shell .storefront-detail { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); align-items: start; gap: clamp(1.25rem, 6vw, 5.5rem); }
.store-detail-body { padding-block: .55rem; }
.store-detail-body .catalog-description { max-width: 50ch; color: var(--muted); }
.store-detail-body .storefront-select-form { max-width: 26rem; padding-top: 1.3rem; border-top: 1px solid var(--line); }
.storefront-select-form > p { margin-top: .85rem; }
.store-shell .surface { border-radius: .38rem; }
.store-shell .notice:not(.error) { background: var(--soft); }
.store-shell .storefront-checkout { gap: clamp(1rem, 3vw, 3rem); }
.store-shell .storefront-selection-row {
  display: grid;
  grid-template-columns: clamp(3rem, 10vw, 6rem) minmax(0, 1fr);
  align-items: start;
  gap: clamp(.65rem, 2vw, 1.25rem);
}

.store-selection-photo { display: block; aspect-ratio: 4/5; background: var(--media); }
.store-selection-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.store-selection-unavailable { display: grid; place-items: center; color: var(--muted); }
.store-shell .form-panel input:not([type='hidden'], [type='checkbox']), .store-shell .form-panel select { border-radius: .28rem; }
.store-shell .storefront-quantity input[type='number'] { width: 3.9rem; }
.store-shell .storefront-request-form button { width: 100%; }

.store-footer { color: #f9f7fb; background: #28232e; }
.store-footer-inner {
  display: grid;
  grid-template-columns: 1fr minmax(0, 25rem) auto;
  align-items: start;
  gap: 1.25rem 3rem;
  padding-block: clamp(1.75rem, 5vw, 3.4rem);
}

.store-footer h2 { margin-bottom: .35rem; font-size: 1.05rem; }
.store-footer p { color: #e0d9e8; max-width: 48ch; }
.store-shell .store-footer-link { color: #f9f7fb; text-underline-offset: .2em; }
.store-footer a:focus-visible { outline-color: #e0d9e8; }
.store-account-access { display: grid; justify-items: start; gap: .65rem; }
.store-account-tabs { margin-block: 1rem; }
.store-account-actions { margin-block: .75rem; }
.store-shell .store-account-order-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 54rem) {
  .store-wrap { width: calc(100% - 3rem); }
  .store-shell .storefront-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 40rem) {
  .store-wrap { width: calc(100% - 2rem); }
  .store-header-inner { min-height: 3.75rem; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .65rem; }
  .store-header-inner .store-wordmark, .store-header-tools { grid-row: 1; }
  .store-header-tools { grid-column: 2; gap: .2rem; }
  .store-shell .store-bag { min-width: 2.75rem; justify-content: center; }
  .store-bag-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .store-nav { grid-row: 2; grid-column: 1 / -1; gap: 1.25rem; }
  .store-shell .store-wordmark { font-size: 1.55rem; }
  .store-nav a[href="#how-to-order"] { display: none; }
  .store-shell .store-nav a, .store-shell .store-bag { font-size: .8rem; }
  .store-hero { min-height: clamp(25rem, 108vw, 30rem); align-items: end; }
  .store-hero img { object-position: center 8%; }
  .store-hero::after { background: linear-gradient(0deg, #eeeaed 2%, #eeeaedf0 32%, #eeeaed00 73%); }
  .store-hero-content { padding-block: 1.45rem; }
  .store-shell .store-hero h1 { font-size: clamp(2.7rem, 11vw, 4rem); }
  .store-hero p { margin-block: .6rem .8rem; }
  .store-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-category-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .store-category-grid li:last-child:nth-child(odd) img { aspect-ratio: 16/5; }
  .store-catalog-heading { display: grid; grid-template-columns: minmax(0, 1fr); }
  .store-search input { width: auto; flex: 1; }
  .store-shell .storefront-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .store-shell .storefront-detail { grid-template-columns: minmax(0, 1fr); }
  .store-footer-inner { grid-template-columns: 1fr auto; }
  .store-footer-inner section { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 23rem) {
  .store-shell .store-wordmark { gap: .22rem; font-size: 1.4rem; }
  .store-wordmark span { font-size: .57rem; }
  .store-bag { gap: .27rem; }
  .store-category-label { inset-inline: .35rem; padding-inline: .45rem; }
}
