/* ── Breadcrumbs bar ── */
.breadcrumbs-bar { background: #E4E3DB; }
.breadcrumbs-bar .breadcrumbs { padding: 14px 0; display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); flex-wrap: wrap; }
.breadcrumbs-bar .breadcrumbs a { color: var(--text-light); transition: color .15s; }
.breadcrumbs-bar .breadcrumbs a:hover { color: var(--green-dark); }
.breadcrumbs-bar .breadcrumbs__sep { color: var(--border); }
.breadcrumbs-bar .breadcrumbs__current { color: var(--text); }

/* ── Page ── */
.product-page { padding: 0 0 64px; }

/* ── Two-column layout ── */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 664px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
  padding: 32px 0;
}

/* ── Gallery ── */
.product-gallery {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: flex-start;
  position: sticky;
  top: 80px;
  min-width: 0;
}

.product-gallery__thumbs-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 97px;
  flex-shrink: 0;
}

.product-gallery__thumb {
  width: 97px;
  height: 97px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  background: #fff;
  padding: 0;
  transition: border-color .15s;
  flex-shrink: 0;
}
.product-gallery__thumb:hover { border-color: var(--green); }
.product-gallery__thumb.active { border: 2px solid var(--green-dark); }
.product-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }

.product-gallery__main {
  position: relative;
  flex: 1;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  cursor: zoom-in;
}
.product-gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: transform .3s; }
.product-gallery__main:hover img { transform: scale(1.04); }
.product-gallery__arrow {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--text); box-shadow: 0 2px 12px rgba(0,0,0,.14);
  font-size: 30px; line-height: 1;
}
.product-gallery__arrow--prev { left: 12px; }
.product-gallery__arrow--next { right: 12px; }
.product-gallery__counter { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 12px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; }

.product-lightbox[hidden] { display: none; }
.product-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 64px 24px 40px;
  background: rgba(15, 15, 15, .96);
}
.product-lightbox__image { width: 100%; height: 100%; max-height: calc(100vh - 104px); object-fit: contain; }
.product-lightbox__close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; color: #fff; font-size: 36px; line-height: 1; }
.product-lightbox__arrow { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; }
.product-lightbox__arrow:hover, .product-lightbox__arrow:focus-visible, .product-lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.product-lightbox__counter { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); color: #fff; }
body.product-lightbox-open { overflow: hidden; }

/* ── Info column ── */
.product-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-width: 0;
}

.product-info__top { display: flex; flex-direction: column; gap: 16px; }
.product-info__bottom { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }

.product-info__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-light);
}
.product-info__meta a { color: var(--green-dark); }
.product-info__meta a:hover { color: var(--green); }
.product-info__meta .sep { color: var(--border); }

.product-info__title {
  font-family: var(--font);
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.energy-info { display: inline-flex; align-items: center; gap: 9px; }
.energy-info__arrow { display: block; width: auto; height: 36px; object-fit: contain; }
.energy-info__sheet { font-size: 12px; font-weight: 650; color: var(--green-dark); text-decoration: underline; text-underline-offset: 2px; }
.energy-info--card { margin-top: 8px; flex-wrap: wrap; }
.energy-info--card .energy-info__arrow { height: 30px; }

.product-info__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.product-info__price { font-size: 32px; font-weight: 700; color: var(--text); }
.product-info__price-old { font-size: 16px; color: var(--text-light); text-decoration: line-through; }
.product-info__price-save {
  font-size: 13px;
  background: #fff0f0;
  color: var(--red);
  border: 1px solid #ffcccc;
  border-radius: 3px;
  padding: 2px 7px;
  font-weight: 600;
}

.product-info__vat { font-size: 12px; color: var(--text-light); }

.product-info__badges { display: flex; flex-wrap: wrap; gap: 8px; }

.product-info__short-desc { font-size: 15px; line-height: 1.7; color: var(--text); }
.product-info__short-desc p { margin: 0; }

/* ── Actions row ── */
.product-info__actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.qty-wrap {
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  padding: 0 4px;
  flex-shrink: 0;
  background: #fff;
}
.qty-btn {
  width: 36px;
  height: 40px;
  font-size: 18px;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  background: none;
  border: none;
  cursor: pointer;
}
.qty-btn:hover { background: var(--green-light); border-radius: 2px; }
.qty-input {
  width: 44px;
  height: 40px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  font-family: var(--font);
}

.btn-add-to-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex: 1;
  height: 48px;
  padding: 0 24px;
  background: var(--green);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: .3px;
  transition: background .15s, transform .1s;
  border: none;
  cursor: pointer;
  font-family: var(--font);
}
.btn-add-to-cart:hover { background: var(--green-dark); }
.btn-add-to-cart:active { transform: scale(.99); }
.btn-add-to-cart svg { stroke: #fff; flex-shrink: 0; }

/* ── Trust items ── */
.product-info__trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-light);
}
.trust-item svg { stroke: var(--text-light); flex-shrink: 0; }

/* ── Tabs ── */
.product-tabs { margin-top: 48px; }
.tabs__nav {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border);
}
.tab-btn {
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-light);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--green-dark); border-bottom-color: var(--green-dark); font-weight: 700; }
.tab-panel { display: none; padding: 32px 0; max-width: 800px; }
.tab-panel.active { display: block; }
.tab-panel h3 { font-size: 15px; margin-bottom: 8px; }
.tab-panel p, .tab-panel li { color: var(--text-light); line-height: 1.7; }
.tab-panel ul { padding-left: 20px; list-style: disc; }
.tab-panel table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tab-panel table tr { border-bottom: 1px solid var(--border-light); }
.tab-panel table td { padding: 12px 0; }
.tab-panel table td:first-child { color: var(--text-light); width: 200px; }
.tab-panel table tr:hover td { background: var(--bg-gray); }
.tab-empty { color: var(--text-light); font-size: 14px; }

/* ── Related products ── */
.related-products { padding: 48px 0 64px; border-top: 1px solid var(--border-light); }
.related-products__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.related-products__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font);
}
.related-products__nav { display: flex; gap: 8px; }
.related-products__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding: 4px 2px 18px;
}
.related-products__track .product-card { flex: 0 0 clamp(260px, 23vw, 330px); scroll-snap-align: start; }
.icon-btn-dark {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
  transition: all .15s;
  color: var(--text);
}
.icon-btn-dark:hover { border-color: var(--green); color: var(--green); }
.icon-btn-dark svg { stroke: currentColor; }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .product-layout { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
}

@media (max-width: 768px) {
  .product-gallery { flex-direction: column-reverse; }
  .product-gallery__thumbs-col {
    flex-direction: row;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .product-gallery__thumb { width: 72px; height: 72px; }
  .product-info__title { font-size: 24px; }
  .energy-info__arrow { height: 32px; }
  .product-info__price { font-size: 26px; }
  .product-info__actions { flex-wrap: wrap; }
  .qty-wrap { width: 100%; justify-content: center; }
  .btn-add-to-cart { width: 100%; flex: unset; }
  .tabs__nav { overflow-x: auto; }
  .tab-btn { flex: 0 0 auto; padding-inline: 16px; }
  .tab-panel { overflow-wrap: anywhere; }
  .related-products__track .product-card { flex-basis: min(78vw, 320px); }
  .product-lightbox { grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px; padding-inline: 8px; }
  .product-lightbox__arrow { width: 40px; height: 40px; }
}
