*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --prom-orange: #ff6a00;
  --prom-orange-hover: #e65f00;
  --prom-orange-soft: #fff3eb;
  --bg-page: #f5f5f5;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --text: #333333;
  --text-muted: #757575;
  --text-light: #9e9e9e;
  --link: #1976d2;
  --stock-green: #2e7d32;
  --star: #ffc107;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.04);
  --radius: 8px;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ——— шапка як у маркетплейсу ——— */
.prom-top {
  background: var(--prom-orange);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.prom-top__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.prom-logo {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff !important;
  text-decoration: none !important;
  text-transform: lowercase;
}

.prom-logo:hover {
  opacity: 0.95;
}

.prom-top__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem 1.25rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
}

.prom-top__nav a {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 500;
}

.prom-top__nav a:hover {
  text-decoration: underline !important;
}

.prom-search-mini input {
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  border: none;
  font: inherit;
  min-width: 140px;
  background: #fff;
  color: var(--text);
}

/* ——— контент ——— */
.prom-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1rem 2.5rem;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.breadcrumb ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 0.35rem;
  color: var(--text-light);
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb span {
  color: var(--text);
  font-weight: 500;
}

/* ——— сітка товару ——— */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(280px, 1fr) 380px;
    align-items: start;
    gap: 2rem;
  }
}

.gallery {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.gallery__main {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fafafa;
  aspect-ratio: 3 / 4;
  max-height: 560px;
}

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

.gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.thumb {
  padding: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  background: #eee;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

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

.thumb:hover,
.thumb:focus-visible {
  border-color: #bdbdbd;
  outline: none;
}

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

/* ——— колонка покупки ——— */
.buy-column {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
}

.product-title {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.product-code {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.product-code__sub {
  color: var(--text-light);
  font-weight: 400;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.rating__stars {
  color: var(--star);
  letter-spacing: 0.05em;
}

.rating__val {
  font-weight: 600;
}

.rating__count {
  color: var(--text-muted);
}

.product-meta__sep {
  color: var(--text-light);
}

.product-meta__bought {
  color: var(--text-muted);
}

.stock {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.stock--ok {
  color: var(--stock-green);
}

.stock__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stock-green);
}

.price-main {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.1rem;
  color: var(--text);
}

.price-group {
  margin-bottom: 0.4rem;
}

.price-old {
  margin: 0 0 0.15rem;
  color: var(--text-light);
  font-size: 0.9375rem;
  text-decoration: line-through;
}

.price-main__cur {
  font-size: 1.25rem;
  font-weight: 600;
}

.product__block {
  margin-bottom: 1rem;
}

.label {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swatches {
  display: flex;
  gap: 0.5rem;
}

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  padding: 0;
}

.swatch--black {
  background: #1a1a1a;
}
.swatch--choco {
  background: #4a3025;
}
.swatch--khaki {
  background: #6b7550;
}

.swatch.is-selected {
  border-color: var(--prom-orange);
  box-shadow: 0 0 0 2px var(--prom-orange-soft);
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.size {
  min-width: 4.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.size:hover:not(:disabled),
.size:focus-visible {
  border-color: var(--prom-orange);
  outline: none;
}

.size.is-active {
  border-color: var(--prom-orange);
  background: var(--prom-orange-soft);
  color: var(--prom-orange);
}

.buy-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

a.btn:hover {
  text-decoration: none;
}

.btn--lg {
  padding: 0.85rem 1.25rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--prom-orange);
  color: #fff;
}

.btn--primary:hover {
  background: var(--prom-orange-hover);
}

.btn--outline {
  background: var(--bg-white);
  color: var(--prom-orange);
  border: 2px solid var(--prom-orange);
}

.btn--outline:hover {
  background: var(--prom-orange-soft);
}

.btn-wish {
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: transparent;
  border: none;
  font: inherit;
  color: var(--link);
  cursor: pointer;
  font-size: 0.9375rem;
}

.btn-wish:hover {
  text-decoration: underline;
}

.btn-wish__heart {
  margin-right: 0.25rem;
}

.seller-card {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.seller-card__label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.seller-card__name {
  font-weight: 600;
  color: var(--text);
  display: inline-block;
  margin-bottom: 0.5rem;
}

.seller-card__rating {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.seller-card__bar {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--stock-green) var(--p), #e0e0e0 var(--p));
  max-width: 200px;
}

/* ——— блоки доставки ——— */
.prom-sections {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .prom-sections {
    grid-template-columns: 1fr 1fr;
  }
}

.prom-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-soft);
}

.prom-block__title {
  margin: 0 0 0.85rem;
  font-size: 1.125rem;
  font-weight: 700;
}

.prom-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prom-list li {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.prom-list li:last-child {
  margin-bottom: 0;
}

.prom-list__icon {
  font-size: 1.35rem;
  line-height: 1;
}

.prom-list__muted {
  margin: 0.2rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.link-prom {
  font-size: 0.875rem;
  font-weight: 500;
}

.link-prom--all {
  display: inline-block;
  margin-top: 0.75rem;
}

/* ——— характеристики ——— */
.specs-section,
.reviews-section,
.qa-section {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-soft);
}

.section-heading {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 4px;
  background: var(--prom-orange-soft);
  color: var(--prom-orange);
  font-size: 0.875rem;
  font-weight: 600;
}

.count-badge--muted {
  background: #f0f0f0;
  color: var(--text-muted);
}

.subsection-title {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 600;
}

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.25rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.spec-table th,
.spec-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.spec-table th {
  width: 42%;
  max-width: 220px;
  color: var(--text-muted);
  font-weight: 500;
}

.description-text {
  font-size: 0.9375rem;
  color: var(--text);
}

.description-text p {
  margin: 0 0 0.75rem;
}

.description-text ul {
  margin: 0;
  padding-left: 1.25rem;
}

.description-text li {
  margin-bottom: 0.35rem;
}

/* ——— відгуки ——— */
.review-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: #fafafa;
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.review-card__date {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-card__author {
  margin: 0;
  font-weight: 600;
}

.review-card__note {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.review-card__text {
  margin: 0;
}

/* ——— Q&A ——— */
.qa-hint {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ——— підвал ——— */
.prom-footer {
  text-align: center;
  padding: 1.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.prom-footer__demo {
  margin: 0 0 0.5rem;
}

.prom-footer__demo a {
  color: var(--link);
}

.prom-footer__copy {
  margin: 0;
  color: var(--text-light);
}
