:root {
  --ink: #151313;
  --muted: #656966;
  --paper: #f8f8f4;
  --card: #ffffff;
  --rose: #df5967;
  --rose-dark: #a72f45;
  --line: rgba(21, 19, 19, .12);
  --sage: #7b9477;
  --fresh: #caff5a;
  --chrome: #dfe5e2;
  --shadow-soft: 0 22px 70px rgba(21, 19, 19, .11);
  --shadow-strong: 0 34px 110px rgba(21, 19, 19, .26);
}

body,
body * {
  letter-spacing: 0;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(248, 248, 244, 0) 360px),
    var(--paper);
  color: var(--ink);
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

.site-header {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 82px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 248, 244, .82);
  box-shadow: 0 10px 34px rgba(21, 19, 19, .045);
}

.brand span {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.brand strong {
  font-size: 16px;
}

.site-header nav {
  gap: 22px;
}

.site-header nav a {
  color: rgba(21, 19, 19, .74);
}

.site-header nav a:hover {
  color: var(--rose-dark);
}

.cart-button {
  min-height: 40px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 12px 28px rgba(21, 19, 19, .16);
}

.cart-button b {
  background: var(--fresh);
  color: var(--ink);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: end;
  min-height: clamp(560px, calc(100svh - 124px), 760px);
  padding: 86px clamp(22px, 7vw, 118px) 68px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 9, 9, .9) 0%, rgba(10, 9, 9, .7) 38%, rgba(10, 9, 9, .22) 72%, rgba(10, 9, 9, .32) 100%),
    linear-gradient(180deg, rgba(10, 9, 9, .08), rgba(10, 9, 9, .54));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 790px;
}

.hero .eyebrow {
  margin: 0;
  color: var(--fresh);
  font-weight: 600;
  font-size: 13px;
}

.hero h1 {
  max-width: 880px;
  margin: 24px 0 22px;
  font-size: 82px;
  line-height: 1.04;
  font-weight: 700;
}

.hero h1 em {
  color: #fff;
  font-style: normal;
}

.hero h1 em::after {
  content: "";
  display: block;
  width: min(220px, 42vw);
  height: 6px;
  margin-top: 22px;
  background: var(--fresh);
}

.lead {
  max-width: 600px;
  color: rgba(255, 255, 255, .82);
  font-size: 17px;
}

.primary {
  min-height: 52px;
  align-items: center;
  gap: 38px;
  margin-top: 34px;
  padding: 0 22px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
  transition: transform .2s ease, background .2s ease;
}

.primary:hover {
  background: var(--fresh);
  transform: translateY(-2px);
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(202, 255, 90, .12)),
    var(--ink);
}

.hero-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.04) contrast(1.03);
}

.hero-gallery {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(8, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  opacity: .96;
}

.hero-gallery:empty {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(202, 255, 90, .12)),
    var(--ink);
}

.hero-shot {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #e9ece8;
  box-shadow: var(--shadow-strong);
}

.hero-shot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.04) contrast(1.02);
}

.hero-shot figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .84);
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-shot-1 {
  grid-column: 7 / 10;
  grid-row: 1 / 5;
}

.hero-shot-2 {
  grid-column: 10 / 13;
  grid-row: 2 / 7;
}

.hero-shot-3 {
  grid-column: 5 / 7;
  grid-row: 3 / 8;
}

.hero-shot-4 {
  grid-column: 7 / 10;
  grid-row: 5 / 9;
}

.hero-shot-5 {
  grid-column: 2 / 5;
  grid-row: 1 / 4;
}

.hero-shot-6 {
  grid-column: 1 / 4;
  grid-row: 5 / 9;
}

.hero-card {
  position: absolute;
  top: auto;
  right: clamp(22px, 6vw, 96px);
  bottom: 42px;
  z-index: 2;
  width: min(260px, 32vw);
  height: auto;
  min-height: 144px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  background: rgba(21, 19, 19, .48);
  color: #fff;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px);
}

.hero-card span,
.hero-card small {
  font-size: 12px;
  color: rgba(255, 255, 255, .76);
}

.hero-card strong {
  font: 700 58px/1 var(--serif);
  color: var(--fresh);
  margin: 0;
}

.trust-strip {
  position: relative;
  z-index: 3;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 0 clamp(22px, 7vw, 118px);
  border-block: 0;
  background: #fff;
  box-shadow: 0 18px 50px rgba(21, 19, 19, .06);
}

.trust-strip span {
  min-height: 72px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}

.trust-strip span:first-child {
  border-left: 1px solid var(--line);
}

.catalog {
  padding: 86px clamp(22px, 6vw, 96px) 104px;
}

.section-title {
  align-items: end;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section-title p,
.catalog-title p,
.pricing-note .eyebrow,
.cart-head p,
.checkout-dialog header p {
  color: var(--rose-dark);
  font-size: 12px;
  font-weight: 700;
}

.section-title h2,
.pricing-note h2 {
  font-size: 56px;
  line-height: 1.1;
}

.catalog-title>span {
  color: var(--muted);
  font-size: 15px;
}

.catalog-meta {
  min-width: 286px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .74);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.catalog-meta strong {
  font-size: 20px;
}

.filters {
  position: sticky;
  top: 86px;
  z-index: 12;
  margin: 24px 0 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 40px rgba(21, 19, 19, .07);
  backdrop-filter: blur(16px);
}

.filter-primary {
  grid-template-columns: minmax(280px, 1fr) 240px;
}

.filter-primary .search input,
.sort-field select {
  min-height: 58px;
}

.search {
  background: transparent;
}

.filter-primary .search>span {
  color: var(--rose-dark);
}

.search input::placeholder {
  color: rgba(101, 105, 102, .72);
}

.sort-field select,
select {
  background: transparent;
}

.category-chips button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  max-width: 100%;
  border-radius: 8px;
  border-color: rgba(21, 19, 19, .13);
  background: #f6f8f2;
}

.category-chips button span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.category-chips button small {
  margin-left: 0;
  color: rgba(101, 105, 102, .86);
  font-size: 11px;
}

.category-chips button:hover {
  border-color: var(--rose-dark);
  color: var(--rose-dark);
}

.category-chips button.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.category-chips button.active small {
  color: rgba(255, 255, 255, .72);
}

.products {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 32px 18px;
}

.product-card {
  position: relative;
  cursor: pointer;
}

.product-card::after {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: -1;
  border-radius: 8px;
  background: #fff;
  opacity: 0;
  box-shadow: var(--shadow-soft);
  transition: opacity .2s ease;
}

.product-card:hover::after {
  opacity: 1;
}

.product-image {
  display: block;
  color: inherit;
  text-decoration: none;
  aspect-ratio: 1 / 1.08;
  border-radius: 8px;
  background:
    linear-gradient(135deg, #edf0ed, #f7f5ee);
  box-shadow: 0 10px 26px rgba(21, 19, 19, .075);
}

.product-image::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: inherit;
  pointer-events: none;
}

.product-card:hover img {
  transform: scale(1.045);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  left: 10px;
  top: 10px;
  max-width: calc(100% - 20px);
  padding: 6px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .9);
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.review-badge {
  background: var(--ink);
  color: #fff;
}

.product-copy {
  padding: 12px 2px 0;
}

.product-category {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 700;
}

.product-category span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.product-copy h3 {
  display: -webkit-box;
  min-height: 0;
  margin: 5px 0 7px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-copy h3 a {
  color: inherit;
  text-decoration: none;
}

.product-copy h3 a:hover {
  color: var(--rose-dark);
}

.product-copy>p {
  display: -webkit-box;
  height: 38px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.price-row {
  min-height: 34px;
  margin-top: 12px;
}

.price {
  color: var(--ink);
  font-size: 20px;
}

.price small {
  color: var(--muted);
  font-size: 11px;
}

.open-detail {
  border-bottom: 0;
}

.icon-action {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border-color: var(--line);
  background: #fff;
}

.icon-action svg {
  width: 16px;
  height: 16px;
}

.icon-action:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.load-more {
  min-height: 48px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.load-more:hover {
  background: var(--ink);
  color: #fff;
}

.pricing-note {
  background:
    linear-gradient(120deg, rgba(202, 255, 90, .14), rgba(255, 255, 255, 0) 38%),
    #171514;
  color: #fff;
}

.pricing-grid {
  gap: 26px;
}

.pricing-grid article {
  min-height: 220px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
}

.pricing-grid b {
  color: var(--fresh);
}

footer {
  background: #fff;
}

dialog {
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow-strong);
}

.dialog-close,
.cart-head button,
.checkout-close {
  border-radius: 8px;
}

.detail {
  min-height: 660px;
}

.gallery {
  background: #eef1ec;
}

.thumbs button.active {
  border-color: var(--rose-dark);
}

.detail-copy h2 {
  font-size: 34px;
  line-height: 1.42;
}

.detail-price,
.checkout-total strong,
.cart-item strong {
  color: var(--rose-dark);
}

.buy-button,
.copy-button,
.cart-foot button,
.checkout-actions button {
  min-height: 48px;
  border-radius: 8px;
}

.copy-button {
  background: #fff;
}

.business-panel,
.owner-data,
.checkout-summary,
.order-number {
  border-radius: 8px;
  background: #f1f4ef;
}

.cart-drawer,
.checkout-dialog,
.success-dialog {
  background: #fff;
}

.cart-item img,
.checkout-line img,
.success-mark {
  border-radius: 8px;
}

.payment-option span,
.checkout-fields input,
.checkout-fields textarea,
.success-actions button,
.payment-card {
  border-radius: 8px;
}

#toast {
  border-radius: 8px;
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 1180px) {
  .products {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }

  .hero-shot-5,
  .hero-shot-6 {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero {
    min-height: 620px;
    padding-top: 74px;
  }

  .hero h1 {
    font-size: 60px;
  }

  .hero-card {
    width: 220px;
  }

  .section-title h2,
  .pricing-note h2 {
    font-size: 44px;
  }

  .filters {
    position: static;
  }
}

@media (max-width: 680px) {
  html {
    overflow-x: hidden;
    scroll-padding-bottom: 92px;
  }

  body {
    width: 100%;
    overflow-x: hidden;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .site-header {
    height: 68px;
    padding: 0 16px;
  }

  .brand span {
    width: 34px;
    height: 34px;
  }

  .brand strong {
    max-width: 112px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .cart-button {
    display: none !important;
  }

  .hero {
    min-height: min(600px, calc(100svh - 96px));
    padding: 56px 18px 142px;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(10, 9, 9, .7), rgba(10, 9, 9, .78)),
      linear-gradient(90deg, rgba(10, 9, 9, .5), rgba(10, 9, 9, .22));
  }

  .hero-photo {
    object-position: center top;
  }

  .hero .eyebrow {
    font-size: 12px;
  }

  .hero h1 {
    margin-top: 18px;
    font-size: 44px;
    line-height: 1.14;
  }

  .lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .primary {
    min-height: 48px;
    gap: 22px;
  }

  .hero-card {
    left: 18px;
    right: 18px;
    bottom: 24px;
    width: auto;
    min-height: 118px;
    padding: 18px;
  }

  .hero-card strong {
    font-size: 46px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
    padding: 0 18px;
  }

  .trust-strip span {
    min-height: 58px;
    border-left: 0;
    font-size: 13px;
  }

  .catalog {
    padding: 62px 16px 96px;
  }

  .section-title {
    display: block;
  }

  .section-title h2,
  .pricing-note h2 {
    font-size: 38px;
  }

  .catalog-meta {
    width: 100%;
    min-width: 0;
    box-shadow: none;
  }

  .filters {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
  }

  .filter-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .filter-primary .search {
    min-width: 0;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 12px;
  }

  .filter-primary .search input {
    min-width: 0;
    padding: 16px 8px;
    font-size: 14px;
  }

  .sort-field {
    min-width: 0;
    min-height: 52px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 0 12px;
  }

  .sort-field select {
    min-width: 0;
    width: 100%;
    padding-right: 22px;
    text-align: right;
  }

  .filter-categories {
    display: block;
    padding: 14px 12px 16px;
  }

  .filter-label {
    display: block;
    padding: 0 0 10px;
  }

  .category-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .category-chips button {
    width: 100%;
    min-width: 0;
    justify-content: center;
    padding: 9px 8px;
  }

  .category-chips button span {
    flex: 0 1 auto;
  }

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

  .product-card::after {
    display: none;
  }

  .product-image {
    aspect-ratio: 1 / 1.12;
    border-radius: 8px;
  }

  .product-copy h3 {
    min-height: 0;
    font-size: 14px;
    line-height: 1.42;
  }

  .product-copy>p {
    height: 34px;
    font-size: 11px;
    line-height: 1.55;
  }

  .price {
    font-size: 17px;
  }

  .price-row {
    gap: 6px;
  }

  .product-actions {
    gap: 5px;
  }

  .icon-action {
    width: 30px;
    height: 30px;
  }

  .icon-action svg {
    width: 15px;
    height: 15px;
  }

  .pricing-grid article {
    min-height: 0;
  }

  footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .cart-drawer {
    padding-bottom: env(safe-area-inset-bottom);
  }

  dialog {
    max-height: calc(100dvh - 20px);
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    width: auto;
    max-width: calc(100vw - 20px);
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 38;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    min-height: 66px;
    padding: 7px;
    border: 1px solid rgba(21, 19, 19, .1);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 18px 52px rgba(21, 19, 19, .18);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    min-height: 50px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-tabbar a.active {
    background: var(--ink);
    color: #fff;
  }

  .mobile-tabbar button {
    font: inherit;
  }

  .mobile-tabbar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tabbar span {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tabbar b {
    position: absolute;
    top: 5px;
    right: 10px;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--rose-dark);
    color: #fff;
    font-size: 10px;
    line-height: 1;
  }
}

@media (max-width: 390px) {
  .catalog {
    padding-left: 12px;
    padding-right: 12px;
  }

  .category-chips {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .product-copy h3 {
    font-size: 16px;
  }
}
