.product-open {
  display: block;
  text-align: center;
}

:root {
  --cyan: #006fa8;
}

.hero-dots {
  bottom: 5px;
  gap: 0;
}

.hero-dot,
.hero-dot.active {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
}

.hero-dot::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
  content: "";
  transform: translate(-50%, -50%);
  transition: 0.2s;
}

.hero-dot.active::after {
  width: 30px;
  background: #fff;
}

.hero-dot:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -6px;
}

.local-intro {
  padding: 14px 0 30px;
}

.local-intro-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 54px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(135deg, #f7fbff, #fff);
  padding: 34px 40px;
}

.local-intro h2 {
  margin: 9px 0 0;
  color: var(--navy);
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.local-intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.product-page {
  background: var(--soft);
}

.product-page .header {
  position: relative;
}

.product-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 24px 0 18px;
  color: var(--muted);
  font-size: 0.78rem;
}

.product-breadcrumbs a {
  color: var(--cyan);
  font-weight: 800;
}

.product-detail {
  padding: 0 0 76px;
}

.product-detail-card {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-detail-image {
  min-height: 610px;
  background: linear-gradient(145deg, #f7f9fc, #e9edf5);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-detail-content {
  padding: 58px 54px;
}

.product-detail-content > small {
  color: var(--cyan);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-detail-content h1 {
  margin: 11px 0 16px;
  color: var(--navy);
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.product-detail-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
}

.product-detail-price {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin: 26px 0;
  border-block: 1px solid var(--line);
  padding: 22px 0;
}

.product-detail-price span,
.product-detail-price small {
  color: var(--muted);
  font-size: 0.78rem;
}

.product-detail-price strong {
  color: var(--navy);
  font-size: 1.75rem;
}

.product-detail-price small {
  width: 100%;
}

.product-detail-features {
  display: grid;
  gap: 9px;
  margin: 0 0 25px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.product-detail-features li::before {
  margin-right: 9px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.product-options {
  margin: 0 0 26px;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px;
}

.product-options h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1rem;
}

.product-options-list {
  display: grid;
  gap: 8px;
  max-height: 230px;
  overflow: auto;
}

.product-options-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 9px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-options-list div:last-child {
  border-bottom: 0;
}

.product-options-list strong {
  color: var(--navy);
  white-space: nowrap;
}

.product-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.product-cta .button {
  flex: 1;
}

.product-cta-note {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.related-products {
  padding: 72px 0;
  background: #fff;
}

.related-products h2 {
  margin: 9px 0 28px;
  color: var(--navy);
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  letter-spacing: -0.04em;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.related-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  transition: 0.2s;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.related-card img {
  width: 100%;
  aspect-ratio: 1.25;
  object-fit: cover;
  background: var(--soft);
}

.related-card div {
  padding: 17px;
}

.related-card small {
  color: var(--cyan);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.related-card h3 {
  margin: 7px 0 0;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.35;
}

.not-found {
  min-height: 55vh;
  display: grid;
  place-items: center;
  padding: 70px 20px;
  text-align: center;
}

.not-found h1 {
  margin: 10px 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.8rem);
}

.not-found p {
  margin: 0 0 24px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .local-intro-card,
  .product-detail-card {
    grid-template-columns: 1fr;
  }

  .product-detail-image {
    min-height: auto;
  }

  .product-detail-image img {
    aspect-ratio: 1.35;
  }

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .local-intro-card {
    gap: 20px;
    padding: 26px 22px;
  }

  .product-detail-card {
    border-radius: 20px;
  }

  .product-detail-content {
    padding: 34px 22px;
  }

  .product-detail-content h1 {
    font-size: 2.15rem;
  }

  .product-cta {
    align-items: stretch;
    flex-direction: column;
  }

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