/* Tema · partea „produs”: pagina unui produs */

.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); padding-top: 12px; align-items: start; }
.product-main-img {
  position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1;
  background: var(--img-bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.product-main-img img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumb { width: 68px; height: 68px; padding: 4px; background: var(--img-bg); border: 1.5px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-store { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
.product-store a { color: var(--ink); font-weight: 600; }
.product-title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 750; }
.product .shelf-label { margin: 24px 0; }
.buy-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.product .muted.small { margin-top: 6px; }
.product-main-img a { display: block; width: 100%; height: 100%; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.product-actions .btn { width: 100%; padding-left: 10px; padding-right: 10px; font-size: 14.5px; }
.btn-fav svg { flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn-fav[aria-pressed="true"] svg { fill: var(--red); stroke: var(--red); }
.btn-fav[aria-pressed="true"]:hover svg { fill: var(--white); stroke: var(--white); }

.offers { margin-top: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 6px; }
.offers h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.offers-note { font-weight: 600; margin-bottom: 4px; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.offer:first-child { border-top: 0; }
.offer-store { font-weight: 650; }
.offer-best { display: inline-block; margin-left: 6px; padding: 1px 8px; background: var(--tag); border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.offer-price { font-weight: 800; font-stretch: var(--narrow); font-size: 20px; color: var(--red); white-space: nowrap; text-align: right; }
.offer-price s { font-weight: 400; font-stretch: 100%; font-size: 13px; color: var(--muted); }
.offer-disc { font-size: 14px; color: var(--ink); }
.offers .small { padding: 0 0 12px; }

.product-more { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); align-items: start; }
.pm-block h2 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.pm-block > p { margin-top: 14px; }
.spec-link { color: var(--ink-2); max-width: 68ch; }
.spec-link a { color: var(--ink); font-weight: 650; }

.chart-summary { color: var(--ink-2); margin: 0 0 12px !important; }
.chart-wrap { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 8px 4px; }
.price-chart { display: block; width: 100%; height: auto; touch-action: pan-y; }
.pc-grid { stroke: var(--line); stroke-width: 1; }
.pc-axis { font-size: 15px; fill: var(--muted); font-family: var(--font); }
.pc-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.pc-now { fill: var(--red); stroke: var(--white); stroke-width: 2; }
.pc-hover { fill: var(--ink); stroke: var(--white); stroke-width: 2; }
.pc-cross { stroke: var(--line-strong); stroke-width: 1; }
.chart-tip { position: absolute; top: 8px; pointer-events: none; transform: translateX(-50%); padding: 6px 10px; background: var(--ink); color: var(--white); border-radius: 4px; font-size: 13px; white-space: nowrap; }
.chart-tip strong { font-size: 15px; }
.chart-table { margin-top: 10px; font-size: 14px; }
.chart-table summary { cursor: pointer; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.chart-table table { margin-top: 8px; border-collapse: collapse; }
.chart-table th, .chart-table td { text-align: left; padding: 5px 24px 5px 0; border-bottom: 1px solid var(--line); }

.tag-lg { position: absolute; top: 18px; left: 18px; font-size: 26px; padding: 8px 13px 8px 22px; clip-path: polygon(13px 0, 100% 0, 100% 100%, 13px 100%, 0 50%); }
.tag-lg::before { left: 9px; width: 6px; height: 6px; margin-top: -3px; }

@media (max-width: 760px) {
  .product { grid-template-columns: 1fr; }
  .product-more { grid-template-columns: 1fr; }
  .offer { grid-template-columns: minmax(0, 1fr) auto; }
  .offer .btn { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .product-actions { grid-template-columns: 1fr; }
}

.list-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--ink-2); }
.list-pick select { height: 36px; padding: 0 8px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); background: var(--white); color: var(--ink); }
