/* Карточка товара */
.product-page { padding-top: 40px; }
.pp-top { display: flex; max-width: var(--page-max); margin: 0 auto; padding: 0 var(--gutter); }
.pp-gallery { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.pp-gallery__main { height: 800px; background: var(--c-warm-50); overflow: hidden; }
.pp-gallery__main img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.pp-gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pp-gallery__thumb { height: 360px; overflow: hidden; cursor: zoom-in; }
.pp-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.pp-gallery__thumb:hover img { transform: scale(1.03); }
.pp-gallery__dots { display: none; }

.pp-info { flex: 0 0 700px; }
.pp-form { position: sticky; top: calc(var(--header-vis, var(--header-h)) + 20px); min-height: 800px; display: flex; flex-direction: column; gap: 30px; padding: 40px; }
.pp-head { display: flex; flex-direction: column; gap: 20px; }
.pp-title-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pp-title { font-family: var(--f-head); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; color: var(--c-charcoal-800); }
.pp-rating { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
.pp-sku { font-size: 14px; }
.pp-prices { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.pp-price { font-weight: 500; font-size: 22px; line-height: 24px; letter-spacing: -.03em; }
.pp-old { font-size: 14px; opacity: .4; }
.pp-attrs { display: flex; flex-direction: column; gap: 30px; }
.pp-attr { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pp-attr__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pp-attr__label { padding: 0; font-weight: 500; font-size: 16px; line-height: 1.2; }
.pp-attr__label span { font-weight: 300; font-size: 14px; }
.pp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-pill input { position: absolute; opacity: 0; pointer-events: none; }
.pp-pill span { display: inline-flex; padding: 6px 20px; border: 1px solid var(--c-line); border-radius: 52px; font-size: 14px; line-height: 1.4; letter-spacing: -.02em; cursor: pointer; transition: background var(--t), color var(--t); }
.pp-pill:hover span { border-color: var(--c-charcoal-500); }
.pp-pill input:checked + span { background: var(--c-black); color: var(--c-white); }
.pp-pill input:focus-visible + span { outline: 1px solid var(--c-accent); outline-offset: 2px; }
.pp-buy { display: flex; gap: 16px; }
.pp-buy__btn { padding: 20px 80px; }
.pp-buy__btn.is-out { padding-inline: 40px; opacity: .6; }
.pp-buy__btn[disabled] { opacity: .4; }
.pp-buy__fav { width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--c-line); border-radius: 2px; color: var(--c-charcoal-500); }
.pp-buy__fav .fav-ico svg { width: 27px; height: auto; }
.pp-opts { margin-top: auto; display: flex; flex-direction: column; gap: 20px; }
.pp-opt { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; }
.pp-opt__price { font-weight: 500; font-size: 14px; letter-spacing: -.01em; }
.pp-engraving .field__input { background: var(--c-white); }
.pp-links { display: flex; gap: 40px; flex-wrap: wrap; }

.stars { position: relative; display: inline-block; width: 77px; height: 13px; background: linear-gradient(90deg, rgba(85, 84, 80, .2) 0 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 77 13'%3E%3Cg%3E%3Cpath id='s' d='M6.5 0l1.9 4.3 4.6.4-3.5 3 1.1 4.5-4.1-2.4-4.1 2.4 1.1-4.5-3.5-3 4.6-.4z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100%; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 77 13'%3E%3Cg%3E%3Cpath id='s' d='M6.5 0l1.9 4.3 4.6.4-3.5 3 1.1 4.5-4.1-2.4-4.1 2.4 1.1-4.5-3.5-3 4.6-.4z'/%3E%3Cuse href='%23s' x='16'/%3E%3Cuse href='%23s' x='32'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='64'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100%; }
.stars__fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c-charcoal-500); }
.stars--gold .stars__fill { background: #f5a623; }

.pp-specs { padding-block: 120px 80px; display: flex; flex-direction: column; gap: 40px; }
.pp-specs__head { display: flex; flex-direction: column; gap: 16px; }
.pp-specs__desc { max-width: 600px; margin-top: 8px; }
.pp-specs__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; margin: 0; }
.pp-specs__row { display: flex; justify-content: space-between; gap: 12px; padding-block: 20px; border-bottom: 1px solid var(--c-line); font-size: 14px; }
.pp-specs__row dt { font-weight: 300; }
.pp-specs__row dd { margin: 0; font-weight: 400; text-align: right; }

.pp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-bottom: 120px; }
.pp-card { display: flex; flex-direction: column; gap: 16px; padding: 16px 16px 24px; border-radius: 12px; background: var(--c-white); }
.pp-card__icon { position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; margin-bottom: 40px; color: var(--c-accent); }
.pp-card__icon svg { width: 20px; height: 20px; }
.pp-card__title { font-family: var(--f-head); font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.pp-card__text { font-size: 14px; line-height: 1.4; max-width: 380px; }

.pp-story { display: flex; align-items: center; gap: 40px; padding-bottom: 120px; }
.pp-story__img { flex: 0 0 50%; aspect-ratio: 1; overflow: hidden; }
.pp-story__img img { width: 100%; height: 100%; object-fit: cover; }
.pp-story__text { flex: 1; display: flex; flex-direction: column; gap: 16px; max-width: 460px; }
.pp-story__label { font-size: 14px; opacity: .8; }
.pp-story__title { font-family: var(--f-head); font-weight: 500; font-size: 24px; line-height: 1.2; letter-spacing: -.03em; }
.pp-story .pp-link { align-self: flex-start; margin-top: 8px; }

.product-page .s-coll { background: transparent; }
.pp-reviews { padding-block: 80px; display: flex; flex-direction: column; gap: 40px; }
.pp-reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.pp-reviews__titles { display: flex; flex-direction: column; gap: 16px; }
.pp-reviews__meta { font-family: var(--f-sans); font-size: 14px; font-weight: 300; margin-left: 12px; vertical-align: middle; }
.pp-reviews__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pp-review { display: flex; flex-direction: column; gap: 40px; padding: 20px; border: 1px solid var(--c-line); background: var(--c-white); }
.pp-review__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.pp-review__sep { width: 1px; height: 14px; background: var(--c-line); }
.pp-review__text { font-size: 14px; line-height: 1.4; }
.pp-reviews__all { align-self: center; }
.pp-related { padding-top: 40px; }
.pp-related__title { color: var(--c-charcoal-500); }

.rate { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rate__stars { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate__stars input { position: absolute; opacity: 0; }
.rate__stars label { width: 24px; height: 24px; cursor: pointer; background: rgba(85, 84, 80, .25); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M6.5 0l1.9 4.3 4.6.4-3.5 3 1.1 4.5-4.1-2.4-4.1 2.4 1.1-4.5-3.5-3 4.6-.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 13'%3E%3Cpath d='M6.5 0l1.9 4.3 4.6.4-3.5 3 1.1 4.5-4.1-2.4-4.1 2.4 1.1-4.5-3.5-3 4.6-.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.rate__stars label:hover, .rate__stars label:hover ~ label, .rate__stars input:checked ~ label { background: #f5a623; }

@media (max-width: 1023px) {
	.product-page { padding-top: 24px; }
	.pp-top { flex-direction: column; }
	.pp-gallery__main { height: 400px; }
	.pp-gallery__grid { display: none; }
	.pp-gallery__dots { display: flex; gap: 8px; overflow-x: auto; }
	.pp-gallery__dot { flex: 0 0 56px; height: 48px; overflow: hidden; opacity: .6; }
	.pp-gallery__dot.is-active { opacity: 1; outline: 1px solid var(--c-charcoal-500); }
	.pp-gallery__dot img { width: 100%; height: 100%; object-fit: cover; }
	.pp-info { flex: none; }
	.pp-form { position: static; min-height: 0; padding: 24px 0 0; gap: 24px; }
	.pp-title-row { flex-direction: column; align-items: flex-start; gap: 12px; }
	.pp-buy__btn { flex: 1; padding: 18px 20px; }
	.pp-links { gap: 20px; justify-content: space-between; }
	.pp-specs { padding-block: 60px 40px; }
	.pp-specs__grid { grid-template-columns: 1fr; }
	.pp-cards { grid-template-columns: 1fr; padding-bottom: 60px; }
	.pp-story { flex-direction: column; align-items: stretch; gap: 16px; padding-bottom: 60px; }
	.pp-reviews { padding-block: 40px; }
	.pp-reviews__head { flex-direction: column; align-items: stretch; }
	.pp-reviews__grid { grid-template-columns: 1fr; }
	.pp-related__title { font-family: var(--f-head); font-size: 24px; text-transform: uppercase; text-align: center; }
}
