.product-page { min-height: 100vh; font-family: 'DM Sans', system-ui, sans-serif; }
.product-header { padding-inline: clamp(1rem, 4vw, 2rem); }
.product-header__back { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: 50%; color: var(--app-text); text-decoration: none; font-size: 1.4rem; }
.product-header__back:hover { background: var(--app-surface-2); }
.product-header__account { color: var(--app-accent); font-weight: 700; text-decoration: none; }
.product-main { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 1.5rem 0 3rem; }
.product-state { padding: 3rem 1rem; color: var(--app-muted); text-align: center; }
.product-state--error { margin-top: 1rem; border: 1px solid #fecaca; border-radius: var(--app-radius); background: #fff1f2; color: #9f1239; }
.product-hero { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(1.25rem, 4vw, 3rem); padding: clamp(1rem, 3vw, 2rem); }
.product-hero__media { display: grid; min-height: 320px; place-items: center; border-radius: var(--app-radius-sm); background: #fff; overflow: hidden; }
.product-hero__media img { width: 100%; height: 100%; max-height: 430px; object-fit: contain; }
.product-hero__placeholder { font-size: 4rem; opacity: .25; }
.product-eyebrow { margin: 0 0 .5rem; color: var(--app-accent); font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.product-title { margin: 0; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.08; letter-spacing: -.035em; }
.product-description { margin: .8rem 0 0; color: var(--app-muted); line-height: 1.55; }
.product-price { display: flex; align-items: baseline; gap: .7rem; margin-top: 1.4rem; }
.product-price__current { color: var(--app-accent); font-size: 2rem; font-weight: 800; }
.product-price__old { color: var(--app-muted); text-decoration: line-through; }
.product-price__type { padding: .25rem .5rem; border-radius: 999px; background: var(--app-accent-soft); color: var(--app-accent); font-size: .78rem; font-weight: 750; }
.product-meta { display: grid; gap: .55rem; margin: 1.3rem 0 0; padding: 0; list-style: none; color: var(--app-muted); font-size: .92rem; }
.product-actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.5rem; }
.product-section { margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.5rem); }
.product-section__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.product-section h2 { margin: 0; font-size: 1.15rem; }
.history-count { color: var(--app-muted); font-size: .85rem; }
.history-pending { display: grid; gap: .55rem; padding: 1.25rem; border-radius: var(--app-radius-sm); background: var(--app-surface-2); color: var(--app-muted); }
.history-pending strong { color: var(--app-text); }
.history-progress { height: .45rem; overflow: hidden; border-radius: 999px; background: #dfe4e8; }
.history-progress span { display: block; height: 100%; border-radius: inherit; background: var(--app-accent); }
.history-chart { width: 100%; height: auto; overflow: visible; }
.history-chart__line { fill: none; stroke: var(--app-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.history-chart__dot { fill: white; stroke: var(--app-accent); stroke-width: 2; }
.history-chart__grid { stroke: #dfe4e8; stroke-width: 1; }
.history-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1rem; }
.history-stat { padding: .8rem; border-radius: var(--app-radius-sm); background: var(--app-surface-2); }
.history-stat span { display: block; color: var(--app-muted); font-size: .75rem; }
.history-stat strong { display: block; margin-top: .2rem; font-size: 1rem; }
.alternative-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.alternative-card { display: grid; grid-template-columns: 58px 1fr; gap: .7rem; padding: .75rem; border: 1px solid var(--app-border); border-radius: var(--app-radius-sm); color: inherit; text-decoration: none; }
.alternative-card:hover { border-color: var(--app-accent); }
.alternative-card img { width: 58px; height: 58px; object-fit: contain; }
.alternative-card__store { color: var(--app-accent); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.alternative-card h3 { display: -webkit-box; margin: .15rem 0 0; overflow: hidden; font-size: .84rem; line-height: 1.3; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.alternative-card__price { display: block; margin-top: .25rem; font-weight: 800; }
.product-empty { margin: 0; color: var(--app-muted); }
.product-footer { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1rem; padding: 1.5rem; border-top: 1px solid var(--app-border); color: var(--app-muted); font-size: .78rem; }
.product-footer a { color: var(--app-accent); }
@media (max-width: 720px) {
  .product-main { width: min(100% - 1rem, 1100px); padding-top: .75rem; }
  .product-hero { grid-template-columns: 1fr; }
  .product-hero__media { min-height: 260px; }
  .history-stats { grid-template-columns: 1fr; }
  .product-header__account { font-size: .85rem; }
}
