:root {
  --store-bg: #f5f5f0;
  --store-surface: #ffffff;
  --store-ink: #18201f;
  --store-muted: #68706e;
  --store-line: #d9ddda;
  --store-accent: #b94734;
  --store-green: #235d4e;
  --store-dark: #202521;
  --store-lime: #dfe77b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.storefront {
  margin: 0;
  background: var(--store-bg);
  color: var(--store-ink);
  font-family: "Avenir Next", "Noto Sans", "PingFang SC", sans-serif;
  letter-spacing: 0;
}

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

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

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

.storefront-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--store-line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.storefront-header__inner {
  width: min(1200px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 24px;
}

.storefront-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.storefront-brand img,
.storefront-brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 4px;
  object-fit: contain;
}

.storefront-brand__mark {
  display: grid;
  place-items: center;
  background: var(--store-ink);
  color: #fff;
  font: 700 20px/1 Georgia, serif;
}

.storefront-brand strong {
  overflow: hidden;
  font: 700 17px/1.2 Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storefront-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 600;
}

.storefront-nav a {
  position: relative;
  white-space: nowrap;
}

.storefront-nav a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--store-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.storefront-nav a:hover::after,
.storefront-nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.storefront-search {
  justify-self: end;
}

.storefront-search input {
  width: 188px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--store-line);
  border-radius: 4px;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.storefront-search input:focus {
  border-color: var(--store-green);
  box-shadow: 0 0 0 3px rgba(35, 93, 78, 0.12);
}

.storefront-hero {
  width: min(1200px, calc(100% - 40px));
  min-height: 430px;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  border: 1px solid var(--store-line);
  background: var(--store-surface);
}

.storefront-hero__content {
  min-width: 0;
  padding: 70px 8%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.storefront-kicker {
  margin: 0 0 18px;
  color: var(--store-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.storefront-hero h1 {
  max-width: 620px;
  margin: 0;
  overflow-wrap: anywhere;
  font: 700 52px/1.04 Georgia, serif;
}

.storefront-hero__content > p:not(.storefront-kicker) {
  max-width: 520px;
  margin: 24px 0 0;
  color: var(--store-muted);
  font-size: 16px;
  line-height: 1.7;
}

.storefront-command {
  min-height: 44px;
  margin-top: 32px;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--store-ink);
  border-radius: 4px;
  background: var(--store-ink);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease;
}

.storefront-command:hover,
.storefront-command:focus-visible {
  background: transparent;
  color: var(--store-ink) !important;
}

.storefront-hero__media {
  min-height: 430px;
  overflow: hidden;
  background: #e9ece9;
}

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

.storefront-hero__media--empty {
  display: grid;
  place-items: center;
  background: #e7ebe6;
}

.storefront-hero__media--empty span {
  color: var(--store-green);
  font: 700 150px/1 Georgia, serif;
}

.storefront-catalog {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 100px;
}

.storefront-section-heading {
  margin-bottom: 28px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--store-line);
  padding-bottom: 20px;
}

.storefront-section-heading h2 {
  margin: 0;
  font: 700 34px/1.1 Georgia, serif;
}

.storefront-section-heading .storefront-kicker {
  margin-bottom: 10px;
}

.storefront-section-heading > span {
  color: var(--store-muted);
  font-size: 13px;
}

.storefront-products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.storefront-product {
  min-width: 0;
  border-bottom: 1px solid var(--store-line);
  background: var(--store-surface);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.storefront-product:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(24, 32, 31, 0.09);
}

.storefront-product[hidden] {
  display: none;
}

.storefront-product__media {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #e9ece9;
}

.storefront-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.storefront-product:hover .storefront-product__media img {
  transform: scale(1.025);
}

.storefront-product__media span {
  color: var(--store-green);
  font: 700 64px/1 Georgia, serif;
}

.storefront-product__body {
  min-height: 150px;
  padding: 18px;
}

.storefront-product__body > p {
  margin: 0 0 8px;
  color: var(--store-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.storefront-product h3 {
  min-height: 42px;
  margin: 0;
  overflow-wrap: anywhere;
  font: 700 17px/1.25 Georgia, serif;
}

.storefront-price {
  margin-top: 18px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.storefront-price strong {
  color: var(--store-green);
  font-size: 15px;
}

.storefront-price del {
  color: #939996;
  font-size: 12px;
}

.storefront-empty {
  min-height: 300px;
  display: grid;
  place-items: center;
  align-content: center;
  border-top: 1px solid var(--store-line);
  border-bottom: 1px solid var(--store-line);
  text-align: center;
}

.storefront-empty > span {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--store-line);
  color: var(--store-green);
  font: 700 32px/1 Georgia, serif;
}

.storefront-empty h3 {
  margin: 22px 0 8px;
  font: 700 24px/1.2 Georgia, serif;
}

.storefront-empty p,
.storefront-no-results {
  margin: 0;
  color: var(--store-muted);
}

.storefront-no-results {
  padding: 48px 0;
  border-top: 1px solid var(--store-line);
  border-bottom: 1px solid var(--store-line);
  text-align: center;
}

.storefront-footer {
  min-height: 110px;
  padding: 24px max(20px, calc((100% - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--store-dark);
  color: #fff;
}

.storefront-footer strong {
  font: 700 19px/1.2 Georgia, serif;
}

.storefront-footer span {
  color: #c7cdca;
  font-size: 13px;
}

.storefront-home {
  --store-bg: #eff0e8;
  --store-accent: #a93f2e;
  --store-green: #315648;
}

.storefront-header--home {
  background: rgba(32, 37, 33, 0.97);
  color: #fff;
}

.storefront-header--home .storefront-brand__mark {
  background: var(--store-lime);
  color: var(--store-dark);
}

.storefront-header--home .storefront-search input {
  border-color: #5a625d;
  color: #fff;
}

.storefront-header--home .storefront-search input::placeholder {
  color: #b9bfbb;
}

.storefront-hero--home {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.78fr);
  border: 0;
  background: var(--store-dark);
  color: #fff;
}

.storefront-hero--home .storefront-kicker {
  color: var(--store-lime);
}

.storefront-hero--home .storefront-hero__content > p:not(.storefront-kicker) {
  color: #c5cbc7;
}

.storefront-hero--home .storefront-command {
  border-color: var(--store-lime);
  background: var(--store-lime);
  color: var(--store-dark) !important;
}

.storefront-hero--home .storefront-command:hover,
.storefront-hero--home .storefront-command:focus-visible {
  background: transparent;
  color: var(--store-lime) !important;
}

.storefront-hero__note {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 122px;
  min-height: 118px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(32, 37, 33, 0.78);
  color: #fff;
}

.storefront-hero__note span,
.storefront-hero__note small {
  color: #c5cbc7;
  font-size: 11px;
}

.storefront-hero__note strong {
  margin: 7px 0 2px;
  font: 700 30px/1 Georgia, serif;
}

.storefront-products--home {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.storefront-products--home .storefront-product__media {
  aspect-ratio: 16 / 13;
}

.storefront-footer--home {
  background: #151815;
}

.storefront-status-page {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  background: #f3f4f1;
  color: #202521;
  font-family: "Avenir Next", "Noto Sans", sans-serif;
  letter-spacing: 0;
}

.storefront-status-page main {
  width: min(520px, calc(100% - 40px));
  padding: 56px 24px;
  border-top: 1px solid #cfd4d0;
  border-bottom: 1px solid #cfd4d0;
  text-align: center;
}

.storefront-status-page img {
  width: 54px;
  height: 54px;
  margin: 0 auto 30px;
}

.storefront-status-page p {
  margin: 0 0 12px;
  color: #a93f2e;
  font-weight: 800;
}

.storefront-status-page h1 {
  margin: 0 0 16px;
  font: 700 34px/1.15 Georgia, serif;
}

.storefront-status-page span {
  color: #68706e;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .storefront-header__inner {
    grid-template-columns: 1fr auto;
  }

  .storefront-nav {
    display: none;
  }

  .storefront-hero,
  .storefront-hero--home {
    grid-template-columns: 1fr;
  }

  .storefront-hero__media {
    min-height: 360px;
  }

  .storefront-products,
  .storefront-products--home {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .storefront-header__inner,
  .storefront-hero,
  .storefront-catalog {
    width: min(100% - 24px, 1200px);
  }

  .storefront-header__inner {
    min-height: 66px;
    gap: 12px;
  }

  .storefront-brand strong {
    overflow: visible;
    font-size: 15px;
    line-height: 1.1;
    text-overflow: clip;
    white-space: normal;
  }

  .storefront-search input {
    width: 132px;
  }

  .storefront-hero {
    min-height: 0;
    margin-top: 12px;
  }

  .storefront-hero__content {
    padding: 46px 28px;
  }

  .storefront-hero h1 {
    font-size: 38px;
  }

  .storefront-hero__media {
    min-height: 290px;
  }

  .storefront-hero__media--empty span {
    font-size: 96px;
  }

  .storefront-catalog {
    padding: 60px 0 72px;
  }

  .storefront-section-heading {
    align-items: flex-start;
  }

  .storefront-section-heading h2 {
    font-size: 27px;
  }

  .storefront-products,
  .storefront-products--home {
    grid-template-columns: 1fr;
  }

  .storefront-product__media,
  .storefront-products--home .storefront-product__media {
    aspect-ratio: 4 / 3;
  }

  .storefront-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
