/* Shop shell — header, breadcrumb, product block, photo reviews, tabs.
   Split out of sections.css to keep files under ~200 LOC (plan 260923-2230). */

/* header */
.site-header {
  background: var(--header-bg);
  height: 64px;
  display: flex;
  align-items: center;
}
.site-header__inner { display: flex; align-items: center; width: 100%; }
.site-header__logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo-white { display: block; height: 20px; width: auto; }
.logo-dark { display: none; height: 18px; width: auto; }
@media (max-width: 768px) {
  .site-header { background: #fff; height: 50px; border-bottom: 1px solid var(--border); }
  .site-header__inner { justify-content: center; }
  .logo-white { display: none; }
  .logo-dark { display: block; }
}

/* breadcrumb — desktop only */
.breadcrumb { padding: 16px 0; }
.breadcrumb .container-wide { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
@media (max-width: 768px) {
  .breadcrumb { display: none; }
}

/* product block (hero rework) */
.product { padding: 24px 0 40px; }
.product__inner { display: flex; flex-direction: column; gap: 28px; }
@media (min-width: 769px) {
  .product__inner { flex-direction: row; align-items: flex-start; gap: 48px; }
  .product__gallery { flex: 0 0 48%; max-width: 48%; }
  .product__info { flex: 1; min-width: 0; }
  .product__strip { flex-wrap: wrap; }
}

.product__gallery { position: relative; }
.product__main { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 4px; background: #f5f5f5; }
.product__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__strip { display: flex; gap: 8px; margin-top: 12px; }
.product__thumb {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 4px;
  overflow: hidden;
  background: none;
  cursor: pointer;
}
.product__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product__thumb.is-active { border-color: var(--text); }
.product__counter { display: none; }

@media (max-width: 768px) {
  .product__gallery { margin: 0 -20px; }
  .product__main { display: none; }
  .product__strip {
    margin-top: 0;
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .product__strip::-webkit-scrollbar { display: none; }
  .product__thumb {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border: none;
    border-radius: 0;
    scroll-snap-align: start;
  }
  .product__counter {
    display: block;
    position: absolute;
    left: 32px;
    bottom: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
  }
}

.product__title { font-size: 22px; font-weight: 700; color: var(--text); line-height: 1.4; }
.badge-pill {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  background: var(--badge-purple);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
}
.product__stars { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 12px 0 24px; }
.stars { color: var(--star); letter-spacing: 1px; }
.product__stars a { color: var(--text-muted); text-decoration: underline; }
.product__sub { margin: -12px 0 20px; font-size: 14px; line-height: 1.5; color: #333; }
.product__hook { margin: 10px 0 0; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--text); }

.product__bullets { margin-bottom: 20px; }
.product__bullets-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.product__bullets ul { display: flex; flex-direction: column; gap: 4px; }
.product__bullets li { font-size: 13px; color: #555; padding-left: 14px; position: relative; }
.product__bullets li::before { content: "·"; position: absolute; left: 0; }

.product__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 16px 0;
  margin-top: 12px;
  border-top: 1px solid var(--border);
}
.product__price-label { font-size: 20px; font-weight: 800; color: var(--text); }
.product__price-sub { font-size: 13px; color: var(--text-muted); }
.product__price-was { font-size: 15px; color: var(--text-muted); text-decoration: line-through; }
.product__why { margin: -4px 0 18px; font-size: 13px; line-height: 1.6; color: #333; }

.product__actions { display: flex; gap: 8px; }
.product__actions .btn-download { flex: 1; }
.product__actions .btn-download__size { display: none; } /* already shown in .product__price */
.product__hint { max-width: 480px; margin-top: 16px; font-size: 13px; color: var(--text-muted); }
@media (max-width: 768px) {
  .product__actions { display: none; } /* sticky bar covers the CTA on mobile */
}

/* photo reviews */
.photo-reviews { padding: 32px 0; border-bottom: 1px solid var(--border); }
.photo-reviews__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.photo-reviews__head h2 { font-size: 17px; font-weight: 700; color: var(--text); }
.photo-reviews__more { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.photo-reviews__more:hover { color: var(--purple); }
.photo-reviews-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.photo-review-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
}
.photo-review-card__body { flex: 1; min-width: 0; }
.photo-review-card__text {
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.photo-review-card__thumb { flex: 0 0 96px; width: 96px; height: 96px; border-radius: 6px; overflow: hidden; }
.photo-review-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 768px) {
  .photo-reviews-list {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 85%;
    overflow-x: auto;
  }
}

/* tabs */
.tabs { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.tabs__inner { display: flex; }
.tabs__link {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-right: 1px solid var(--border);
}
.tabs__link:last-child { border-right: none; }
.tabs__link:hover { color: var(--purple); }
