:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f6f7;
  color: #1f2328;
  --ink: #16191d;
  --muted: #59636e;
  --line: #d7dce0;
  --paper: #ffffff;
  --header: #15191d;
  --accent: #f3a847;
  --accent-strong: #d98219;
  --success: #067d62;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  padding: 12px 22px;
  background: var(--header);
  color: #fff;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 1.45rem;
  font-weight: 800;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 2px solid var(--accent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 46%, var(--accent) 47% 54%, transparent 55%),
    linear-gradient(45deg, transparent 46%, #fff 47% 54%, transparent 55%);
}

.search {
  display: grid;
  grid-template-columns: minmax(94px, 135px) minmax(160px, 1fr) auto;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fff;
}

.search:focus-within {
  border-color: var(--accent);
}

.search select,
.search input,
.search button {
  min-width: 0;
  height: 42px;
  border: 0;
}

.search select {
  padding: 0 12px;
  background: #eceff1;
  color: #202428;
  border-right: 1px solid #cfd6dc;
}

.search input {
  padding: 0 14px;
  color: #1f2328;
}

.search button {
  padding: 0 18px;
  background: var(--accent);
  color: #20150a;
  font-weight: 700;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-weight: 700;
}

.cart-icon {
  position: relative;
  width: 20px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -9px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.intro-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68)),
    linear-gradient(135deg, #f3a847, #80a98d 50%, #7aa3bc);
  border-bottom: 1px solid #ccd3d8;
}

.intro-band h1 {
  margin: 2px 0 0;
  max-width: 820px;
  font-size: clamp(1.75rem, 2.4vw, 2.6rem);
  line-height: 1.08;
}

.eyebrow {
  margin: 0;
  color: var(--success);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.device-note {
  display: grid;
  gap: 7px;
  align-self: center;
  max-width: 330px;
  color: #2f3a42;
  font-size: 0.92rem;
  font-weight: 700;
}

.shop-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(330px, 410px);
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.filters,
.viewer-panel {
  position: sticky;
  top: 90px;
}

.filters {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.filters h2 {
  margin: 0 0 14px;
  font-size: 1rem;
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0 0 18px;
  border: 0;
  border-bottom: 1px solid #e5e8eb;
}

fieldset:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

legend {
  margin-bottom: 10px;
  color: #30363d;
  font-weight: 800;
}

label {
  color: var(--muted);
}

.results-area {
  min-width: 0;
}

.results-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.results-toolbar h2,
.results-toolbar p {
  margin: 0;
}

.results-toolbar h2 {
  font-size: 1.12rem;
}

.results-count {
  color: var(--muted);
  font-size: 0.86rem;
}

.sort-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.sort-control select {
  height: 36px;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  background: #f8fafb;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.product-card {
  display: grid;
  min-height: 478px;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  outline: 0;
}

.product-card:hover,
.product-card:focus-visible,
.product-card.is-selected {
  border-color: #d98219;
  box-shadow: 0 0 0 3px rgba(243, 168, 71, 0.22);
}

.product-media {
  position: relative;
  aspect-ratio: 1 / 0.86;
  min-height: 178px;
  background:
    radial-gradient(circle at 50% 48%, color-mix(in srgb, var(--accent), white 72%), transparent 47%),
    linear-gradient(180deg, #f8fafb 0%, #edf1f2 100%);
}

.product-media model-viewer {
  width: 100%;
  height: 100%;
  --poster-color: transparent;
}

.product-info {
  display: grid;
  grid-template-rows: auto auto auto auto auto auto 1fr;
  gap: 8px;
  padding: 14px;
}

.product-category,
.product-description,
.delivery {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.product-category {
  color: var(--success);
  font-weight: 800;
}

.product-info h3 {
  margin: 0;
  min-height: 44px;
  font-size: 1.02rem;
  line-height: 1.22;
}

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.rating-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff4df;
  color: #8a4a00;
  font-weight: 800;
}

.price {
  margin: 0;
  font-size: 1.42rem;
  font-weight: 800;
}

.delivery {
  color: #0f6b55;
  font-weight: 700;
}

.card-footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.badge {
  align-self: center;
  max-width: 120px;
  padding: 5px 8px;
  border-radius: 8px;
  background: #e7f1ee;
  color: #0b6b55;
  font-size: 0.76rem;
  font-weight: 800;
}

.preview-button {
  min-width: 82px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #ffd814;
  color: #2c2100;
  font-weight: 800;
}

.viewer-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(22, 25, 29, 0.08);
}

.viewer-copy h2 {
  margin: 3px 0 6px;
  font-size: 1.35rem;
  line-height: 1.15;
}

.viewer-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

#productViewer {
  width: 100%;
  height: min(52vh, 520px);
  min-height: 360px;
  border: 1px solid #dfe4e8;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #f8fafb 0%, #eef2f4 72%, #d9e1e4 100%);
  --poster-color: transparent;
}

.ar-button {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  background: #fff;
  color: #16202a;
  font-weight: 800;
  box-shadow: 0 7px 18px rgba(22, 25, 29, 0.14);
}

.ar-cube {
  width: 18px;
  height: 18px;
  border: 2px solid #0f6b55;
  transform: rotate(45deg) skew(-7deg, -7deg);
}

.ar-message {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 68px;
  display: none;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #24313a;
  font-weight: 700;
  box-shadow: 0 8px 22px rgba(22, 25, 29, 0.12);
}

.ar-message.is-visible {
  display: block;
}

.viewer-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.viewer-meta div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #e1e6ea;
  border-radius: 8px;
  background: #f8fafb;
}

.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .shop-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .viewer-panel {
    position: static;
    grid-column: 1 / -1;
    grid-row: 1;
  }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .intro-band,
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .shop-shell {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .filters {
    position: static;
  }

  .filters fieldset {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  }
}

@media (max-width: 560px) {
  .site-header {
    padding: 12px;
  }

  .brand {
    font-size: 1.2rem;
  }

  .search {
    grid-template-columns: 1fr;
  }

  .search select,
  .search input,
  .search button {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid #d8dde1;
  }

  .cart-button span:last-child {
    display: none;
  }

  .intro-band {
    padding: 22px 16px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  #productViewer {
    min-height: 310px;
    height: 420px;
  }

  .viewer-meta {
    grid-template-columns: 1fr;
  }
}
