.product-page {
  padding-top: 32px;
  padding-bottom: 6.5rem;
}

.product-top {
  padding-bottom: 2.5rem;
}

.product-band {
  width: 100%;
  padding: 2.5rem 0;
}

.product-band--white {
  background: #fff;
  border-top: 1px solid #ececec;
  border-bottom: 1px solid #ececec;
}

.product-band--muted {
  background: #f9fafb;
}

.product-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.product-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin: 0 0 1.75rem;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.product-breadcrumb a {
  color: #6b7280;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  color: var(--color-primary);
}

.product-breadcrumb span[aria-current] {
  color: #374151;
}

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 0;
}

.product-visual-frame {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 0.875rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ececec;
}

.product-thumb-rail {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.product-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  padding: 0;
  border: 1px solid transparent;
  background: #f9fafb;
  cursor: pointer;
  overflow: hidden;
}

.product-thumb.is-active {
  border-color: var(--color-primary);
  box-shadow: inset 0 0 0 1px var(--color-primary);
}

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

.product-main-image {
  aspect-ratio: 1 / 1;
  background: #f3f4f6;
  overflow: hidden;
}

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

.product-visual-caption {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9ca3af;
}

.product-kicker {
  display: inline-block;
  margin-bottom: 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.product-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  color: #111827;
}

.product-lead {
  margin: 0 0 1.125rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
}

.product-intro-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.125rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid #ececec;
}

.product-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.375rem;
}

.product-stars {
  display: inline-flex;
  gap: 0.125rem;
  color: #d1d5db;
  font-size: 0.75rem;
}

.product-stars .is-filled {
  color: #f59e0b;
}

.product-reviews,
.product-sku {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.product-stock {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #059669;
}

.product-files {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ececec;
}

.product-files-head {
  margin-bottom: 0.875rem;
}

.product-files-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
}

.product-files-desc {
  margin: 0;
  font-size: 0.8125rem;
  color: #6b7280;
}

.product-files-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0.75rem;
  border-bottom: 1px solid #ececec;
}

.product-files-tab {
  flex: 1;
  min-height: 2.5rem;
  padding: 0.625rem 0.75rem;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.product-files-tab:hover {
  color: #374151;
}

.product-files-tab.is-active {
  color: var(--color-primary-dark);
  border-bottom-color: var(--color-primary);
}

.product-files-panel {
  display: none;
}

.product-files-panel.is-active {
  display: block;
}

.product-intro-price {
  margin-bottom: 1rem;
}

.product-intro-price strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: #111827;
}

.product-intro-price span {
  font-size: 0.8125rem;
  color: #6b7280;
}

.product-notice-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: none;
  background: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.product-configurator {
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
}

.product-configurator-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ececec;
}

.product-configurator-head h2 {
  margin: 0 0 0.375rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.product-configurator-head p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.product-config-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-config-steps li {
  padding: 0.375rem 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
}

.product-config-steps li.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: #065f58;
}

.product-config-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.product-config-row {
  display: grid;
  grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: 1.125rem 0;
  border-top: 1px solid #f3f4f6;
}

.product-config-row:first-child {
  border-top: none;
  padding-top: 0;
}

.product-config-label span {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
}

.product-config-label small {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: #9ca3af;
}

.product-config-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.product-choice {
  min-height: 2.625rem;
  padding: 0.625rem 1rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.product-choice:hover {
  border-color: #cbd5e1;
}

.product-choice.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  color: #065f58;
}

.product-qty-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.625rem;
  width: 100%;
}

.product-qty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  min-height: 4.5rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.product-qty:hover {
  border-color: #cbd5e1;
}

.product-qty.is-active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.product-qty-value {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.product-qty-price {
  font-size: 0.8125rem;
  color: #6b7280;
}

.product-download-card {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  min-height: 6.5rem;
  padding: 1rem;
  border: 1px solid #ececec;
  background: #fff;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.product-download-card:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}

.product-download-type {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-primary-dark);
}

.product-download-name {
  flex: 1;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
}

.product-download-action {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #6b7280;
}

.product-process {
  margin-bottom: 0;
}

.product-process-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.product-process-box {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ececec;
}

.product-process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-process-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1rem;
}

.product-process-step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  top: 1.75rem;
  right: -0.375rem;
  font-size: 1rem;
  line-height: 1;
  color: #d1d5db;
}

.product-process-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 0.875rem;
  color: #9ca3af;
  font-size: 1.75rem;
}

.product-process-step-title {
  margin: 0 0 0.625rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
}

.product-process-step-text {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #6b7280;
}

.product-process-note {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: #9ca3af;
}

.product-reviews-section {
  margin-bottom: 0;
  padding: 0;
  background: none;
  border: none;
}

.product-reviews-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ececec;
}

.product-reviews-intro h2 {
  margin: 0 0 0.375rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
}

.product-reviews-intro p {
  margin: 0;
  font-size: 0.875rem;
  color: #6b7280;
}

.product-reviews-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.product-reviews-score {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  color: #111827;
}

.product-reviews-count {
  width: 100%;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.product-review-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-review {
  padding: 1.25rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.product-review:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.product-review-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.product-review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-review-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--color-primary-light);
  border: 1px solid rgba(30, 201, 184, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #065f58;
}

.product-review-name {
  display: block;
  margin-bottom: 0.125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
}

.product-review-date {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

.product-review-stars {
  font-size: 0.6875rem;
}

.product-review-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.625rem;
  background: #f9fafb;
  border: 1px solid #ececec;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #374151;
}

.product-review-order-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
}

.product-review-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #4b5563;
}

.product-seo {
  width: 100%;
  padding: 0;
}

.product-seo-inner {
  max-width: 100%;
}

.product-seo-title {
  margin: 0 0 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
}

.product-seo-title:not(:first-child) {
  margin-top: 1.5rem;
}

.product-seo-inner p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: #6b7280;
}

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

.product-assurance-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem;
  background: #fff;
  border: 1px solid #ececec;
}

.product-assurance-item i {
  font-size: 1.125rem;
  color: var(--color-primary);
}

.product-assurance-item strong {
  font-size: 0.875rem;
  color: #1f2937;
}

.product-assurance-item span {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.product-checkout-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.product-checkout-progress {
  width: 100%;
  height: 3px;
  background: #ececec;
}

.product-checkout-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--color-primary);
  transition: width 0.12s ease-out;
}

.product-checkout-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem 1.5rem;
  align-items: center;
}

.product-checkout-recap {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.product-checkout-price-wrap {
  text-align: right;
}

.product-checkout-label {
  display: block;
  font-size: 0.75rem;
  color: #9ca3af;
}

.product-checkout-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.product-checkout-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
}

.product-btn {
  min-height: 2.75rem;
  padding: 0.6875rem 1.125rem;
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.product-btn--ghost {
  border-color: #d1d5db;
  background: #fff;
  color: #374151;
}

.product-btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary-dark);
}

.product-btn--primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: #fff;
}

.product-btn--primary:hover {
  border-color: var(--color-primary-dark);
  background: var(--color-primary-dark);
}

.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.product-modal.is-open {
  display: flex;
}

.product-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
}

.product-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 40rem;
  max-height: calc(100vh - 2rem);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #ececec;
}

.product-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid #ececec;
}

.product-modal-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #111827;
}

.product-modal-close {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
}

.product-modal-body {
  padding: 1rem 1.125rem;
  overflow-y: auto;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #4b5563;
}

.product-modal-body ol {
  margin: 0;
  padding-left: 1.25rem;
}

.product-modal-body li + li {
  margin-top: 0.625rem;
}

.product-modal-foot {
  padding: 1rem 1.125rem;
  border-top: 1px solid #ececec;
}

.product-modal-foot button {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-qty-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .product-process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .product-process-step:nth-child(2)::after {
    display: none;
  }

  .product-process-step:nth-child(odd):not(:last-child)::after {
    display: block;
  }
}

@media (max-width: 768px) {
  .product-page {
    padding-top: 24px;
    padding-bottom: 8.5rem;
  }

  .product-inner {
    padding: 0 1rem;
  }

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

  .product-thumb-rail {
    flex-direction: row;
    order: 2;
  }

  .product-main-image {
    order: 1;
  }

  .product-configurator {
    padding: 0;
  }

  .product-band {
    padding: 2rem 0;
  }

  .product-top {
    padding-bottom: 2rem;
  }

  .product-config-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .product-configurator-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-rating {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .product-reviews-section {
    padding: 0;
  }

  .product-reviews-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-review-top {
    flex-direction: column;
  }

  .product-process-box {
    padding: 1.125rem;
  }

  .product-process-steps {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .product-process-step {
    padding: 0;
  }

  .product-process-step:not(:last-child)::after {
    display: none;
  }

  .product-checkout-inner {
    grid-template-columns: 1fr;
    padding: 0.875rem 1rem;
  }

  .product-checkout-price-wrap {
    text-align: left;
  }

  .product-checkout-actions {
    width: 100%;
  }

  .product-btn {
    flex: 1 1 calc(50% - 0.3125rem);
  }
}
