html {
  font-size: 16px;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #172923;
  background: #f8faf8;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  height: 72px;
  border-bottom: 1px solid #e3e9e4;
  background: rgba(255, 255, 255, .92);
}

.site-nav {
  width: min(1160px, calc(100% - 48px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #172923;
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: #fff;
  background: #147a5a;
  border-radius: 8px;
  font-size: 13px;
}

.nav-shop {
  color: #3d554b;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.storefront {
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100vh - 138px);
  margin: 0 auto;
  padding: 76px 0 84px;
}

.store-intro {
  max-width: 660px;
  margin-bottom: 48px;
}

.eyebrow {
  margin: 0 0 17px;
  color: #167856;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1px;
}

.store-intro h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
  font-weight: 720;
}

.intro-copy {
  max-width: 520px;
  margin: 17px 0 0;
  color: #65746c;
  font-size: 16px;
  line-height: 1.6;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e0e7e1;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #68766e;
  background: transparent;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.filter-button span {
  color: #809087;
  font-size: 11px;
}

.filter-button:hover { background: #eef3ef; }
.filter-button.is-active { color: #126a4e; border-color: #d7e9de; background: #edf6f0; font-weight: 650; }
.filter-button.is-active span { color: #126a4e; }

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 220px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid #dce4dd;
  border-radius: 6px;
  color: #728078;
  background: #fff;
}

.search-box > span { font-size: 22px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: #172923; background: transparent; font: inherit; font-size: 13px; }
.search-box input::placeholder { color: #8a968f; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 25px;
}

.product-item {
  overflow: hidden;
  border: 1px solid #e1e8e2;
  border-radius: 8px;
  background: #fff;
}

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

.product-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 208px;
  overflow: hidden;
  padding: 20px 22px;
}

.gumroad-art { color: #fff; background: #bc513d; }
.gumroad-art::before { position: absolute; top: -94px; right: 15%; width: 270px; height: 270px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; content: ""; }
.gumroad-art::after { position: absolute; top: -54px; right: 24%; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; content: ""; }
.art-orbit { position: absolute; right: 9%; bottom: -115px; width: 290px; height: 180px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transform: rotate(-24deg); }
.art-orbit-two { right: 15%; bottom: -93px; width: 240px; height: 150px; }
.shopify-art { color: #fff; background: #226951; }
.product-item:nth-child(2) .product-art { background: #2b6c6d; }
.product-item:nth-child(3) .product-art { background: #99732d; }
.product-item:nth-child(4) .product-art { background: #58506e; }
.product-item:nth-child(5) .product-art { background: #a94f3e; }
.product-item:nth-child(6) .product-art { background: #315d7b; }
.product-item:nth-child(7) .product-art { background: #226951; }
.shopify-art::before { position: absolute; top: -120px; left: 24%; width: 260px; height: 260px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; content: ""; }
.shopify-bag { position: absolute; top: 36px; left: 50%; display: grid; place-items: center; width: 84px; height: 94px; border: 1px solid rgba(255,255,255,.85); border-radius: 7px 7px 12px 12px; transform: translateX(-50%) rotate(5deg); }
.shopify-bag::before { position: absolute; top: -17px; width: 34px; height: 25px; border: 1px solid rgba(255,255,255,.85); border-bottom: 0; border-radius: 20px 20px 0 0; content: ""; }
.shopify-bag span { font-size: 35px; font-weight: 500; }
.art-label, .art-word { position: relative; z-index: 1; }
.art-label { align-self: flex-start; padding: 5px 8px; border: 1px solid rgba(255,255,255,.45); border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: .5px; }
.art-word { font-size: 13px; font-weight: 700; }

.product-info { padding: 20px 22px 21px; }
.product-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 13px; }
.store-name { display: inline-flex; align-items: center; gap: 7px; color: #596960; font-size: 12px; font-weight: 650; }
.store-dot { width: 7px; height: 7px; border-radius: 50%; }
.gumroad-dot { background: #bc513d; }
.shopify-dot { background: #226951; }
.product-index { color: #98a49d; font-size: 11px; }
.product-price { color: #172923; font-size: 13px; font-weight: 700; }
.product-info h2 { margin: 0 0 8px; color: #172923; font-size: 19px; line-height: 1.35; font-weight: 680; }
.product-info p { min-height: 42px; margin: 0 0 17px; color: #68766e; font-size: 13px; line-height: 1.6; }
.product-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border: 1px solid #dce5dd; border-radius: 5px; color: #176b50; font-size: 13px; font-weight: 650; text-decoration: none; }
.product-link:hover { border-color: #b5d5c2; background: #f0f7f2; }
.product-link span { font-size: 15px; }
.empty-state { grid-column: 1 / -1; margin: 25px 0; color: #68766e; font-size: 14px; text-align: center; }

.site-footer { border-top: 1px solid #e3e9e4; color: #738078; font-size: 12px; }
.site-footer > div { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 20px 0; }

@media (max-width: 640px) {
  .site-nav, .storefront, .site-footer > div { width: calc(100% - 36px); }
  .storefront { padding: 52px 0 62px; }
  .store-intro { margin-bottom: 34px; }
  .store-intro h1 { font-size: 36px; }
  .intro-copy { font-size: 14px; }
  .catalog-toolbar { align-items: stretch; flex-direction: column-reverse; gap: 12px; }
  .search-box { width: auto; }
  .filter-group { gap: 0; justify-content: space-between; }
  .filter-button { gap: 6px; padding: 0 8px; font-size: 12px; }
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .product-art { height: 185px; }
}
