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

.product {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  padding: 56px 0 90px;
  align-items: start;
}

/* Gallery */
.gallery-main {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.thumb {
  padding: 0;
  border-radius: 14px;
  border: 2px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: border-color 0.2s;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  border-color: var(--primary-soft);
}

.thumb:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

.thumb.is-active {
  border-color: var(--primary);
}

/* Product info */
.product-info h1 {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.price {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 0 0 18px;
}

.description {
  font-size: 1.1rem;
  margin: 0 0 6px;
}

.demo-copy {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0 0 28px;
}

.size-picker {
  border: 0;
  padding: 0;
  margin: 0 0 28px;
}

.size-picker legend {
  font-weight: 700;
  margin-bottom: 10px;
  padding: 0;
}

.size-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-option {
  min-width: 52px;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.size-option:hover {
  border-color: var(--primary-soft);
}

.size-option:focus-visible {
  outline: 2px solid var(--primary-soft);
  outline-offset: 2px;
}

.size-option[aria-checked="true"] {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}

.size-error {
  color: var(--danger);
  font-size: 0.9rem;
  margin: 10px 0 0;
}

.pay-now {
  width: 100%;
  font-size: 1.05rem;
  padding: 16px 20px;
}

.demo-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 10px 0 28px;
}

.delivery-benefits {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 28px 0 60px;
  }

  .gallery-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
