/* =========================================================================
   Product page (README §4). Mobile first; desktop at 900px.
   ========================================================================= */

.ps-crumb {
	display: none;
	padding: 14px var(--pad-x);
	border-bottom: 1px solid var(--hairline);
	font-family: var(--font-label); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.ps-crumb a { color: var(--muted); }
.ps-crumb a:hover { color: var(--green); }

/* ---- Gallery ----------------------------------------------------------- */
.ps-gallery { padding: 16px 0 0; outline: none; }
.ps-gallery:focus-visible .ps-gallery__strip { outline: 3px solid var(--lime); outline-offset: 2px; }
.ps-gallery__strip {
	display: flex; gap: 12px; padding: 0 20px;
	overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.ps-gallery__strip::-webkit-scrollbar { display: none; }
.ps-gallery__slide {
	flex: 0 0 326px; width: 326px; height: 420px; scroll-snap-align: center;
	display: flex; align-items: center; justify-content: center; background: var(--white);
}
.ps-gallery__slide picture { display: contents; }
.ps-gallery__img { width: 100%; height: 100%; object-fit: cover; }
.ps-gallery__img--pinned { object-position: 50% 17%; }
/* Text-bearing label graphic: contained, never cropped */
.ps-gallery__slide--contain .ps-gallery__img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.ps-gallery__dots { display: flex; gap: 6px; justify-content: center; padding: 14px 0 0; }
.ps-gallery__dot {
	height: 8px; width: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--border-light);
	transition: width 0.25s var(--ease-slam), background 0.25s;
}
.ps-gallery__dot.is-active { width: 22px; background: var(--navy); }
.ps-gallery__dot:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.ps-gallery__thumbs { display: none; }

/* ---- Summary ----------------------------------------------------------- */
.ps-summary { padding: 20px var(--pad-x) 0; display: flex; flex-direction: column; gap: 12px; }
.ps-maker { display: none; }
.ps-summary__title { font-size: 48px; line-height: 0.88; }
.ps-summary__intro { font-size: 16px; line-height: 1.55; }

.ps-buy { display: flex; flex-direction: column; gap: 12px; }
.ps-buy__label { margin-top: 4px; font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* Ladder */
.ps-ladder { display: flex; flex-direction: column; gap: 8px; }
.ps-ladder__row {
	position: relative; display: flex; align-items: center; gap: 12px;
	min-height: 62px; padding: 14px 16px; border: 1px solid var(--border-light);
	font-size: 16px; color: var(--body); cursor: pointer;
}
.ps-ladder__row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-ladder__row:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.ps-ladder__radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-light); flex: 0 0 auto; }
.ps-ladder__name { flex: 1; }
.ps-ladder__per { display: block; font-size: 13px; color: var(--muted); }
.ps-ladder__right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.ps-ladder__price { font-family: var(--font-display); font-size: 20px; color: var(--green); }
.ps-ladder__save { font-family: var(--font-label); font-weight: 600; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lime); }
.ps-ladder__row.is-selected { border: 3px solid var(--green); padding: 12px 14px; }
.ps-ladder__row.is-selected .ps-ladder__radio { border: 3px solid var(--green); background: var(--lime); }
.ps-ladder__row.is-selected .ps-ladder__name { font-family: var(--font-label); font-weight: 700; text-transform: uppercase; color: var(--navy); }
.ps-ladder__row.is-selected .ps-ladder__per { font-family: var(--font-body); font-weight: 400; text-transform: none; color: var(--body); }
.ps-ladder__row.is-selected .ps-ladder__price { font-size: 22px; }
.ps-ladder__row.is-selected .ps-ladder__save { background: var(--lime); color: var(--navy); padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: 10px; letter-spacing: 0.12em; }
.ps-ladder__row.is-selected .ps-ladder__right { flex-direction: column-reverse; }
/* Monthly subscription row: pale ground with the lime rule (README §4 subscribe row) */
.ps-ladder__row--sub { background: var(--pale); border-left: 5px solid var(--lime); }
.ps-ladder__row--sub.is-selected { border-left-width: 5px; }
.ps-ladder__price small { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--body); }

/* Subscribe row */
.ps-subscribe {
	position: relative; display: flex; align-items: center; gap: 14px;
	min-height: 62px; padding: 14px 16px; background: var(--pale); border-left: 5px solid var(--lime);
	font-size: 15px; line-height: 1.45; color: var(--navy); cursor: pointer;
}
.ps-subscribe__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ps-subscribe:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.ps-subscribe__text { flex: 1; }
.ps-subscribe__box { display: none; }
.ps-subscribe__toggle {
	width: 52px; height: 30px; padding: 3px; flex: 0 0 auto;
	border-radius: 999px; border: 2px solid var(--navy); background: var(--white);
	display: flex; align-items: center; transition: background 0.2s;
}
.ps-subscribe__toggle span { width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--navy); transition: transform 0.2s var(--ease-slam); }
.ps-subscribe__input:checked ~ .ps-subscribe__toggle { background: var(--lime); }
.ps-subscribe__input:checked ~ .ps-subscribe__toggle span { transform: translateX(20px); }

/* Stepper + submit */
.ps-buy__bar { display: flex; gap: 12px; align-items: stretch; }
.ps-buy__submit { flex: 1; position: relative; overflow: hidden; padding: 18px; font-size: 18px; }
.ps-buy__added {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: var(--lime); color: var(--navy); opacity: 0; transition: opacity 0.25s; pointer-events: none;
}
.is-added .ps-buy__added { opacity: 1; }
.is-busy { opacity: 0.7; }

.ps-meta { display: flex; gap: 14px; flex-wrap: wrap; padding: 4px 0 8px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* Accordions (real <details>) */
.ps-acc { margin: 0 calc(-1 * var(--pad-x)); border-top: 2px solid var(--navy); }
.ps-acc__item { border-bottom: 1px solid var(--hairline); }
.ps-acc__item:last-child { border-bottom: 0; }
.ps-acc__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
	min-height: 60px; padding: 18px var(--pad-x); cursor: pointer; list-style: none;
	font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy);
}
.ps-acc__item summary::-webkit-details-marker { display: none; }
.ps-acc__item summary:focus-visible { outline: 3px solid var(--lime); outline-offset: -3px; }
.ps-acc__value { display: none; }
.ps-acc__glyph::before { content: '+'; font-family: var(--font-display); font-size: 20px; }
.ps-acc__item[open] .ps-acc__glyph::before { content: '−'; }
.ps-acc__item[open] { background: var(--pale); border-bottom-color: var(--border-light); }
.ps-acc__body { padding: 0 var(--pad-x) 18px; font-size: 15px; line-height: 1.55; }
.ps-acc__steps { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }

.ps-product .ps-external { padding: 22px var(--pad-x); }

/* Desktop-only detail band (.ps-actives and .ps-steps live in main.css) */
.ps-product__detail { display: none; }

/* Reviews */
.ps-reviews { padding: 26px var(--pad-x); }
.ps-reviews__head h2 { font-size: 32px; line-height: 0.95; margin-bottom: 4px; }
.ps-hist { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.ps-hist__row { display: flex; align-items: center; gap: 10px; font-family: var(--font-label); font-size: 12px; letter-spacing: 0.08em; color: var(--body); }
.ps-hist__stars { width: 28px; }
.ps-hist__bar { flex: 1; height: 8px; background: var(--pale); }
.ps-hist__bar div { height: 100%; background: var(--green); }
.ps-hist__n { width: 18px; text-align: right; }
.ps-hist__note { margin-top: 8px; font-family: var(--font-label); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ps-quote { margin: 20px 0 0; border-left: 5px solid var(--lime); padding-left: 16px; }
.ps-quote p { font-size: 16px; line-height: 1.55; color: var(--navy); }
.ps-quote cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lime); }
.ps-reviews__cta { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.ps-reviews__cta span { display: none; }
.ps-reviews__write { height: 52px; background: transparent; color: var(--navy); border: 2px solid var(--navy); font-size: 15px; }
.ps-reviews__write:hover { background: var(--pale); color: var(--navy); }
/* WooCommerce review list + form (single-product-reviews.php markup) */
.ps-reviews__list { margin-top: 18px; }
.ps-reviews__list #reviews > h2, .ps-reviews__list .woocommerce-Reviews-title { display: none; }
.ps-reviews__list .commentlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ps-reviews__list .commentlist > li { border-top: 1px solid var(--hairline); padding-top: 14px; }
.ps-reviews__list .comment_container { display: flex; gap: 12px; }
.ps-reviews__list img.avatar { display: none; }
.ps-reviews__list .comment-text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ps-reviews__list .star-rating { position: relative; height: 1em; width: 5.4em; overflow: hidden; font-size: 14px; line-height: 1; letter-spacing: 0.1em; color: var(--lime); }
.ps-reviews__list .star-rating::before { content: '\2605\2605\2605\2605\2605'; color: var(--border-light); position: absolute; left: 0; top: 0; }
.ps-reviews__list .star-rating span { position: absolute; left: 0; top: 0; overflow: hidden; padding-top: 1.5em; }
.ps-reviews__list .star-rating span::before { content: '\2605\2605\2605\2605\2605'; position: absolute; left: 0; top: 0; color: var(--lime); }
.ps-reviews__list .meta { font-family: var(--font-label); font-weight: 700; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); }
.ps-reviews__list .meta time { font-weight: 400; color: var(--muted); }
.ps-reviews__list .woocommerce-review__verified, .ps-reviews__list .woocommerce-review__dash { display: none; }
.ps-reviews__list .description { font-size: 15px; line-height: 1.55; color: var(--body); }
.ps-reviews__list .description p { margin: 0 0 6px; }
.ps-reviews__list .description p:first-child { font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); }
.ps-reviews__list #review_form_wrapper { display: none; margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--navy); }
.ps-reviews__list #review_form_wrapper.is-open { display: block; }
.ps-reviews__list .comment-reply-title { display: block; margin-bottom: 12px; font-family: var(--font-label); font-weight: 700; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.ps-reviews__list .comment-form { display: flex; flex-direction: column; gap: 12px; }
.ps-reviews__list .comment-form p { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.ps-reviews__list .comment-form label { font-family: var(--font-label); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.ps-reviews__list .comment-form input[type="text"], .ps-reviews__list .comment-form input[type="email"], .ps-reviews__list .comment-form textarea { border: 1px solid var(--border-light); padding: 14px; font: inherit; font-size: 16px; min-height: 54px; }
.ps-reviews__list .comment-form .stars { display: flex; gap: 4px; }
.ps-reviews__list .comment-form .stars a { color: var(--border-light); font-size: 22px; line-height: 1; text-indent: 0; }
.ps-reviews__list .comment-form .stars a::before { content: '\2605'; }
.ps-reviews__list .comment-form .stars:hover a, .ps-reviews__list .comment-form .stars.selected a { color: var(--lime); }
.ps-reviews__list .comment-form .stars a:hover ~ a, .ps-reviews__list .comment-form .stars.selected a.active ~ a { color: var(--border-light); }
.ps-reviews__list .comment-form select#rating { display: none; }
.ps-reviews__list .comment-form .submit { align-self: flex-start; background: var(--green); color: var(--white); border: 0; padding: 14px 24px; font-family: var(--font-display); font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; }
.ps-reviews__list .comment-form-cookies-consent { flex-direction: row; align-items: center; gap: 8px; font-size: 13px; }
.ps-reviews__list .comment-form-cookies-consent label { text-transform: none; letter-spacing: 0; font-family: var(--font-body); font-weight: 400; color: var(--body); }

/* Quick answers */
.ps-quick { padding: 0 var(--pad-x) 26px; }
.ps-quick h2 { font-size: 28px; margin-bottom: 14px; }
.ps-quick__grid { display: flex; flex-direction: column; gap: 10px; }
.ps-quick__card { border: 1px solid var(--border-light); padding: 18px; }
.ps-quick__card h4 { font-family: var(--font-label); font-weight: 700; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 6px; }
.ps-quick__card p { font-size: 15px; line-height: 1.55; }

/* ---- Sticky bar (below 900px) ------------------------------------------ */
.ps-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	background: var(--white); border-top: 2px solid var(--navy);
	padding: 12px 16px 20px; padding-bottom: max(20px, env(safe-area-inset-bottom));
	display: flex; align-items: center; gap: 10px;
	box-shadow: 0 -8px 22px rgba(27, 42, 91, 0.14);
	transform: translateY(110%); transition: transform 0.3s var(--ease-slam);
}
.ps-sticky.is-visible { transform: none; }
.ps-stepper--sticky { height: 54px; flex: 0 0 auto; font-size: 18px; }
.ps-stepper--sticky .ps-stepper__qty { width: 26px; font-size: 16px; }
.ps-sticky__cta { flex: 1; height: 54px; position: relative; overflow: hidden; font-size: 16px; letter-spacing: 0.04em; }
.ps-sticky__cta .ps-buy__added { border-radius: 999px; }
body.single-product .ps-footer { padding-bottom: 110px; }

/* ---- Desktop ----------------------------------------------------------- */
@media (min-width: 900px) {
	.ps-crumb { display: block; padding-inline: var(--pad-wide); }
	.ps-product__top, .ps-product__detail, .ps-reviews, .ps-quick { padding-inline: max(0px, calc((100% - var(--content-max)) / 2)); }
	.ps-product__top { display: grid; grid-template-columns: 1fr 1fr; }

	.ps-gallery { padding: 34px 30px 34px var(--pad-x); display: flex; flex-direction: column; gap: 14px; }
	.ps-gallery__strip { display: block; padding: 0; overflow: hidden; height: 540px; border: 2px solid var(--navy); }
	.ps-gallery__slide { display: none; width: 100%; height: 100%; }
	.ps-gallery__slide.is-active { display: flex; }
	.ps-gallery__img--pinned { object-position: 50% 50%; }
	.ps-gallery__dots { display: none; }
	.ps-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
	.ps-gallery__thumb { height: 92px; padding: 0; border: 1px solid var(--hairline); background: var(--white); overflow: hidden; }
	.ps-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
	.ps-gallery__thumb--contain { padding: 6px; }
	.ps-gallery__thumb--contain img { object-fit: contain; }
	.ps-gallery__thumb.is-active { border: 2px solid var(--green); }
	.ps-gallery__thumb:focus-visible { outline: 3px solid var(--lime); }

	.ps-summary { padding: 34px var(--pad-x) 34px 30px; gap: 18px; }
	.ps-maker { display: flex; align-self: flex-start; align-items: center; gap: 12px; background: var(--pale); padding: 8px 14px; font-family: var(--font-label); font-weight: 700; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--navy); }
	.ps-maker img { height: 24px; width: auto; }
	.ps-summary__title { font-size: 62px; line-height: 0.92; }
	.ps-rating { font-size: 14px; letter-spacing: 0.14em; gap: 12px; }
	.ps-stars { font-size: 18px; }
	.ps-summary__intro { font-size: 17px; line-height: 1.6; }
	.ps-buy { gap: 18px; }
	.ps-buy__label { font-size: 12px; margin: 0; }
	.ps-ladder { gap: 9px; }
	.ps-ladder__row { min-height: 0; padding: 15px 18px; font-size: 15px; }
	.ps-ladder__row.is-selected { padding: 13px 16px; }
	.ps-ladder__radio { display: none; }
	.ps-ladder__per { display: inline; }
	.ps-ladder__right { flex-direction: row; align-items: center; gap: 12px; }
	.ps-ladder__row.is-selected .ps-ladder__right { flex-direction: row; }
	.ps-ladder__row.is-selected .ps-ladder__name { font-size: 15px; letter-spacing: 0.06em; }
	.ps-ladder__row.is-selected .ps-ladder__save { padding: 4px 10px; font-size: 10px; letter-spacing: 0.14em; }
	.ps-subscribe { min-height: 0; padding: 15px 18px; }
	.ps-subscribe__toggle { display: none; }
	.ps-subscribe__box { display: block; width: 18px; height: 18px; border: 2px solid var(--navy); background: var(--white); flex: 0 0 auto; }
	.ps-subscribe__input:checked ~ .ps-subscribe__box { background: var(--lime); }
	.ps-meta { font-size: 12px; letter-spacing: 0.14em; gap: 22px; padding: 0; }
	.ps-acc { margin: 0; }
	.ps-acc__item summary { min-height: 0; padding: 15px 0; }
	.ps-acc__item[open] { background: none; }
	.ps-acc__value { display: block; flex: 1; text-align: right; font-family: var(--font-body); font-weight: 400; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--body); }
	.ps-acc__body { padding: 0 0 18px; }
	.ps-acc__item[open] .ps-acc__value { display: none; }
	.ps-product .ps-external { padding: 0; }

	.ps-product__detail { display: grid; grid-template-columns: 1fr 1fr; }
	.ps-product__whatsin { padding: var(--pad-x); border-right: 1px solid var(--hairline); }
	.ps-product__howto { padding: var(--pad-x); background: var(--pale); }
	.ps-product__detail h2 { font-size: 38px; margin-bottom: 18px; }
	.ps-product__detail .ps-actives { gap: 12px; }
	.ps-product__detail .ps-actives__row { gap: 16px; padding-bottom: 9px; }
	.ps-product__detail .ps-actives__num { font-size: 46px; }
	.ps-product__detail .ps-actives__name { font-size: 13px; letter-spacing: 0.2em; }
	.ps-product__carrier { margin-top: 18px; font-size: 15px; line-height: 1.6; }

	.ps-reviews { padding: var(--pad-x); }
	.ps-reviews__head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 22px; }
	.ps-reviews__head h2 { font-size: 40px; margin: 0; }
	.ps-reviews__head .ps-stars { font-size: 19px; }
	.ps-reviews__grid { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; }
	.ps-hist { margin-top: 0; gap: 7px; }
	.ps-hist__stars { width: 34px; }
	.ps-hist__row { letter-spacing: 0.1em; text-transform: uppercase; }
	.ps-quote { margin: 0; padding-left: 24px; }
	.ps-quote p { font-size: 19px; line-height: 1.6; }
	.ps-quote cite { margin-top: 14px; font-size: 13px; letter-spacing: 0.18em; }
	.ps-reviews__cta { margin-top: 26px; padding: 20px; background: var(--pale); flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; }
	.ps-reviews__cta span { display: block; max-width: 52ch; }
	.ps-reviews__write { height: auto; padding: 13px 24px; background: var(--green); color: var(--white); border: 0; white-space: nowrap; }
	.ps-reviews__write:hover { background: #174a29; color: var(--white); }

	.ps-quick { padding: 0 var(--pad-x) var(--pad-x); }
	.ps-quick h2 { font-size: 32px; margin-bottom: 18px; }
	.ps-quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
	.ps-link { min-height: 0; line-height: 1.4; }

	.ps-sticky { display: none; }
	body.single-product .ps-footer { padding-bottom: var(--pad-x); }
}
