:root {
  color-scheme: light;
  --background: #f6f8fb;
  --surface: #ffffff;
  --text: #101827;
  --muted: #586273;
  --line: #dfe4eb;
  --line-soft: #eef1f5;
  --shadow: 0 12px 28px rgba(16, 24, 39, 0.12);
  --pill: #101827;
  --success: #16834a;
  --danger: #b42318;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.page-shell {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 42px 36px 56px;
}

.page-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin-bottom: 42px;
}

h1 {
  grid-column: 2;
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  text-align: center;
}

.price-pill svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.message {
  max-width: 860px;
  margin: -18px auto 28px;
  border: 1px solid #ffd0cb;
  border-radius: 8px;
  background: #fff4f2;
  padding: 14px 16px;
  color: var(--danger);
  font-weight: 650;
  text-align: center;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 30px 32px 24px;
}

.cell-name {
  display: flex;
  min-width: 0;
  align-items: center;
  font-size: clamp(18px, 1.45vw, 24px);
  line-height: 1.1;
  font-weight: 800;
}

.cell-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  max-width: 45%;
  border-radius: 999px;
  background: var(--pill);
  padding: 10px 17px;
  color: #fff;
  font-size: clamp(18px, 1.5vw, 24px);
  line-height: 1;
  font-weight: 750;
}

.price-pill span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.image-frame {
  position: relative;
  display: grid;
  place-items: center;
  height: clamp(320px, 32vw, 445px);
  margin: 0 32px 34px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff8f8 0%, #fffdf4 45%, #f8fbff 100%);
}

.image-frame img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.image-frame img[src=""] {
  display: none;
}

.no-image {
  display: none;
  color: var(--muted);
  font-weight: 700;
}

.image-frame.empty .no-image {
  display: block;
}

.product-copy {
  padding: 0 28px 34px;
  color: var(--muted);
  text-align: center;
}

.product-copy h2 {
  margin: 0 0 32px;
  color: var(--text);
  font-size: clamp(28px, 2.6vw, 38px);
  line-height: 1.1;
  font-weight: 850;
}

.product-copy p {
  margin: 13px 0 0;
  font-size: clamp(18px, 1.55vw, 25px);
  line-height: 1.28;
}

.product-copy strong {
  color: inherit;
}

.product-copy strong.yes {
  color: var(--success);
}

.product-copy strong.no {
  color: var(--danger);
}

.skeleton {
  min-height: 660px;
}

.skeleton .cell-name,
.skeleton .price-pill,
.skeleton .image-frame,
.skeleton .product-copy h2,
.skeleton .product-copy p {
  color: transparent;
  background: linear-gradient(90deg, #eef2f6, #f8fafc, #eef2f6);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton .image-frame {
  border-color: transparent;
}

.skeleton .price-pill {
  width: 150px;
}

.skeleton .product-copy h2 {
  width: 58%;
  height: 40px;
  margin-inline: auto;
  border-radius: 8px;
}

.skeleton .product-copy p {
  width: 74%;
  height: 26px;
  margin-inline: auto;
  border-radius: 8px;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 28px 16px 40px;
  }

  .page-header {
    grid-template-columns: 1fr;
    margin-bottom: 26px;
  }

  h1 {
    grid-column: 1;
  }

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

  .card-topline {
    padding: 22px 20px 18px;
  }

  .cell-name {
    font-size: 20px;
  }

  .image-frame {
    height: 445px;
    margin: 0 20px 26px;
  }

  .product-copy {
    padding: 0 20px 28px;
  }

  .product-copy h2 {
    margin-bottom: 24px;
  }
}
