/* Salmod product page. Mobile first. Tokens only (design-system/salmod/MASTER.md + pages/product.md). */

/* ---------- Base (theme CSS is not loaded on this page) ---------- */
body.salmod-product-page {
	margin: 0;
	background: var(--salmod-bg);
	color: var(--salmod-fg);
	font-family: "Vazirmatn", Tahoma, sans-serif;
	font-size: 15px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}
body.salmod-product-page *, body.salmod-product-page *::before, body.salmod-product-page *::after { box-sizing: border-box; }
body.salmod-product-page .wd-skip-links,
body.salmod-product-page .wd-toolbar { display: none !important; }
body.salmod-product-page :focus-visible { outline: 2px solid var(--salmod-ring); outline-offset: 2px; }
.pp img { max-width: 100%; height: auto; }
.pp a { color: inherit; }
.pp h1, .pp h2, .pp h3 { color: var(--salmod-primary); line-height: 1.5; margin: 0; text-wrap: balance; }
.pp .woocommerce-Price-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pp button, .pp-bar button, .pp-lb button { font: inherit; cursor: pointer; }
.pp-lock, .pp-lock body { overflow: hidden; }

.pp { max-width: 1240px; margin: 0 auto; padding: 0 0 32px; }

/* ---------- Notices / breadcrumb ---------- */
.pp-notices:empty { display: none; }
.pp-notices { padding: 12px 16px 0; }
.pp-notices :is(.woocommerce-message, .woocommerce-error, .woocommerce-info) {
	list-style: none; margin: 0 0 8px; padding: 12px 14px; border-radius: 14px;
	background: var(--salmod-surface); border: 1px solid var(--salmod-line-soft); font-size: 14px;
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
}
.pp-notices .woocommerce-error { border-color: var(--salmod-danger); color: var(--salmod-danger); }
.pp-notices .woocommerce-message { border-color: var(--salmod-success); }
.pp-notices .button { margin-inline-start: auto; font-weight: 700; color: var(--salmod-brand-ink); text-decoration: none; }

.pp-bc { padding: 10px 16px 6px; font-size: 12.5px; color: var(--salmod-muted-fg); }
.pp-bc ol { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0; padding: 0; list-style: none; white-space: nowrap; }
.pp-bc ol::-webkit-scrollbar { display: none; }
.pp-bc li { display: inline-flex; align-items: center; gap: 4px; }
.pp-bc li + li::before { content: "/"; color: var(--salmod-border); margin-inline-end: 2px; }
.pp-bc a { text-decoration: none; color: var(--salmod-muted-fg); }
.pp-bc a:hover { color: var(--salmod-brand-ink); }
.pp-bc li:last-child { color: var(--salmod-fg); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; }

/* ---------- Layout ---------- */
.pp-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 1025px) {
	.pp { padding: 0 24px 48px; }
	.pp-bc { padding: 16px 0 12px; }
	.pp-notices { padding: 16px 0 0; }
	.pp-top { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 40px; align-items: start; }
	.pp-sum { position: sticky; top: 88px; }
	.admin-bar .pp-sum { top: 120px; }
}

/* ---------- Gallery ---------- */
.pp-gal { position: relative; min-width: 0; }
.pp-gal__stage { position: relative; background: var(--salmod-surface); }
.pp-gal__track {
	display: flex; overflow-x: auto; overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory; scrollbar-width: none;
	aspect-ratio: var(--pp-ratio, 3 / 4);
	max-height: 78vh; max-height: 78svh;
}
.pp-gal__track::-webkit-scrollbar { display: none; }
.pp-gal__track:focus-visible { outline-offset: -3px; }
.pp-gal__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; position: relative; }
.pp-gal__slide a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.pp-gal__slide img, .pp-gal__img { display: block; width: 100%; height: 100% !important; object-fit: contain; background: var(--salmod-surface); }
.pp-gal__count {
	position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 2px 10px; border-radius: 999px;
	background: color-mix(in srgb, var(--salmod-primary) 72%, transparent); color: var(--salmod-on-primary);
	font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; pointer-events: none;
}
.pp-gal__arrow, .pp-gal__expand {
	position: absolute; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--salmod-line-soft);
	background: color-mix(in srgb, var(--salmod-surface) 92%, transparent); color: var(--salmod-primary);
	box-shadow: 0 4px 14px rgba(28, 25, 23, .08); transition: opacity .2s ease, transform .2s ease;
}
.pp-gal__arrow { top: 50%; margin-top: -22px; display: none; }
.pp-gal__arrow--prev { inset-inline-start: 12px; }
.pp-gal__arrow--prev svg { transform: scaleX(-1); }
.pp-gal__arrow--next { inset-inline-end: 12px; }
.pp-gal__arrow[disabled] { opacity: 0; pointer-events: none; }
.pp-gal__expand { bottom: 8px; inset-inline-end: 12px; width: 40px; height: 40px; }
.pp-gal__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 16px 2px; }
.pp-gal__thumbs::-webkit-scrollbar { display: none; }
.pp-gal__thumb {
	flex: 0 0 auto; width: 56px; height: 70px; padding: 0; border-radius: 10px; overflow: hidden;
	border: 2px solid transparent; background: var(--salmod-surface); opacity: .72;
	transition: border-color .15s ease, opacity .15s ease;
}
.pp-gal__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-gal__thumb.is-on { border-color: var(--salmod-brand); opacity: 1; }
.pp-gal__thumb:hover { opacity: 1; }
@media (min-width: 1025px) {
	.pp-gal { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; position: sticky; top: 88px; }
	.pp-gal__stage { grid-column: 2; grid-row: 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--salmod-line-soft); }
	.pp-gal__track { max-height: calc(100vh - 120px); }
	.pp-gal__thumbs { grid-column: 1; grid-row: 1; flex-direction: column; padding: 0; overflow-y: auto; max-height: calc(100vh - 120px); }
	.pp-gal__thumb { width: 76px; height: 96px; }
	.pp-gal__arrow { display: inline-flex; opacity: 0; }
	.pp-gal__stage:hover .pp-gal__arrow:not([disabled]), .pp-gal__arrow:focus-visible { opacity: 1; }
	.pp-gal__count { display: none; }
}

/* Discount badge */
.pp-off {
	display: inline-flex; align-items: center; padding: 1px 8px; border-radius: 4px;
	background: var(--salmod-danger); color: var(--salmod-on-primary);
	font-size: 12px; font-weight: 800; line-height: 1.7; font-variant-numeric: tabular-nums;
}
.pp-off--lg { position: absolute; top: 12px; inset-inline-start: 12px; font-size: 13px; padding: 2px 10px; pointer-events: none; }

/* ---------- Summary ---------- */
.pp-sum { padding: 14px 16px 0; min-width: 0; }
@media (min-width: 1025px) { .pp-sum { padding: 4px 0 0; } }
.pp-sum__head { display: flex; align-items: flex-start; gap: 8px; }
.pp-title { flex: 1 1 auto; font-size: 19px; font-weight: 800; }
@media (min-width: 768px) { .pp-title { font-size: 24px; } }
.pp-icon-btn {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border-radius: 999px; border: 0; padding: 0;
	background: var(--salmod-field); color: var(--salmod-primary); transition: background-color .15s ease;
}
.pp-icon-btn:hover { background: var(--salmod-line-soft); }
.pp-share-msg { margin: 4px 0 0; font-size: 13px; color: var(--salmod-success); }

.pp-rating { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 13px; text-decoration: none; color: var(--salmod-fg); min-height: 32px; }
.pp-rating__n { color: var(--salmod-muted-fg); }

/* Stars (WooCommerce markup; its font is not loaded) */
.star-rating { position: relative; display: inline-block; width: 5.6em; height: 1.1em; font-size: 14px; line-height: 1.1; overflow: hidden; vertical-align: middle; }
.star-rating::before { content: "★★★★★"; position: absolute; inset: 0; color: var(--salmod-border); letter-spacing: .12em; }
.star-rating > span { position: absolute; top: 0; inset-inline-start: 0; height: 100%; overflow: hidden; font-size: 0; }
.star-rating > span::before { content: "★★★★★"; font-size: 14px; color: var(--salmod-gold); letter-spacing: .12em; }

.pp-price-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.pp-price { margin: 0; font-size: 20px; font-weight: 800; color: var(--salmod-primary); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pp-price del, .pp-bar__price del, .pp-card__price del, .single_variation .price del { order: 2; font-size: .7em; font-weight: 500; color: var(--salmod-muted-fg); }
.pp-price ins, .pp-bar__price ins, .pp-card__price ins, .single_variation .price ins { text-decoration: none; }
.pp-price .woocommerce-Price-currencySymbol, .pp-bar__price .woocommerce-Price-currencySymbol { font-size: .7em; font-weight: 600; }
.pp .screen-reader-text, .pp-bar .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pp-short { margin-top: 10px; font-size: 14px; color: var(--salmod-muted-fg); }
.pp-short p { margin: 0 0 6px; }

/* ---------- Buy box (WooCommerce form) ---------- */
.pp-buy { position: relative; margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--salmod-surface); border: 1px solid var(--salmod-line-soft); }
.pp-buy form.cart { margin: 0; }
.pp-buy table.variations { width: 100%; border-collapse: collapse; margin: 0; }
.pp-buy table.variations, .pp-buy table.variations tbody, .pp-buy table.variations tr, .pp-buy table.variations th, .pp-buy table.variations td { display: block; padding: 0; border: 0; text-align: start; }
.pp-buy table.variations tr + tr { margin-top: 14px; }
.pp-buy table.variations th.label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pp-buy table.variations label { font-size: 14px; font-weight: 800; color: var(--salmod-primary); }
.pp-buy .pp-picked { font-weight: 600; color: var(--salmod-muted-fg); }
.pp-buy table.variations select {
	width: 100%; min-height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--salmod-border);
	background: var(--salmod-field); font: inherit; font-size: 16px; color: var(--salmod-fg);
}
.pp-js .pp-buy table.variations select.pp-has-chips { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pp-buy .reset_variations { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--salmod-brand-ink); }
.pp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-chip {
	position: relative; min-width: 48px; min-height: 44px; padding: 0 14px; border-radius: 12px;
	border: 1.5px solid var(--salmod-border); background: var(--salmod-surface); color: var(--salmod-fg);
	font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums;
	transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.pp-chip:hover { border-color: var(--salmod-primary); }
.pp-chip[aria-checked="true"] { border-color: var(--salmod-brand); background: var(--salmod-brand-soft); color: var(--salmod-brand-ink); box-shadow: inset 0 0 0 1px var(--salmod-brand); }
.pp-chip[aria-disabled="true"] { color: var(--salmod-muted-fg); background: var(--salmod-field); border-style: dashed; cursor: not-allowed; text-decoration: line-through; }
.pp-buy .single_variation_wrap { margin-top: 12px; }
.pp-buy .woocommerce-variation:empty, .pp-buy .woocommerce-variation-description:empty { display: none; }
.pp-buy .woocommerce-variation { margin-bottom: 12px; font-size: 14px; }
.pp-buy .woocommerce-variation-price .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0; font-size: 18px; font-weight: 800; color: var(--salmod-primary); }
.pp-buy .stock { margin: 4px 0 0; font-size: 13px; font-weight: 700; color: var(--salmod-success); }
.pp-buy .stock.out-of-stock { color: var(--salmod-danger); }
.pp-buy .woocommerce-variation-availability p { margin: 0; }

.pp-buy .woocommerce-variation-add-to-cart, .pp-buy form.cart:not(.variations_form) { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; }
.pp-buy .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button { opacity: .55; }
.pp-buy .quantity { display: inline-flex; align-items: center; height: 52px; border: 1px solid var(--salmod-border); border-radius: 14px; background: var(--salmod-surface); overflow: hidden; }
.pp-buy .quantity input.qty {
	width: 44px; height: 100%; border: 0; padding: 0; text-align: center; background: transparent;
	font: inherit; font-size: 16px; font-weight: 800; color: var(--salmod-fg); -moz-appearance: textfield; appearance: textfield;
}
.pp-buy .quantity input.qty::-webkit-outer-spin-button, .pp-buy .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pp-buy .quantity input[type="hidden"] + * { display: none; }
.pp-qbtn { width: 40px; height: 100%; border: 0; background: none; color: var(--salmod-primary); font-size: 20px; font-weight: 700; }
.pp-qbtn:hover { background: var(--salmod-field); }
.pp-buy .single_add_to_cart_button, .pp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 22px; border: 0; border-radius: 14px;
	font: inherit; font-size: 15.5px; font-weight: 800; text-decoration: none;
	transition: background-color .15s ease, transform .1s ease;
}
.pp-buy .single_add_to_cart_button { flex: 1 1 180px; background: var(--salmod-brand); color: var(--salmod-on-brand); }
.pp-buy .single_add_to_cart_button:hover, .pp-btn--brand:hover { background: var(--salmod-brand-ink); }
.pp-buy .single_add_to_cart_button:active, .pp-btn:active { transform: scale(.98); }
.pp-buy .single_add_to_cart_button.is-busy { opacity: .7; pointer-events: none; }
.pp-btn--brand { background: var(--salmod-brand); color: var(--salmod-on-brand); }
.pp-buy digify-clickable-box-modal, .pp-buy digify-clickable-box { display: block; flex: 1 1 100%; }
.pp-buy #torobpay-variation-widget-container { margin-top: 12px; }
.pp-buy .out-of-stock { font-weight: 700; }
.pp-msg { margin: 10px 0 0; font-size: 14px; font-weight: 700; color: var(--salmod-danger); }
.pp-msg.is-ok { color: var(--salmod-success); }
.pp-flash { animation: pp-flash .9s ease 1; }
@keyframes pp-flash { 0%, 100% { box-shadow: none; } 30% { box-shadow: 0 0 0 3px var(--salmod-brand-soft), 0 0 0 5px var(--salmod-brand); } }

/* Perks + meta */
.pp-perks { list-style: none; margin: 14px 0 0; padding: 4px 16px; border-radius: 16px; background: var(--salmod-ivory); }
.pp-perks li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 13.5px; font-weight: 600; color: var(--salmod-fg); }
.pp-perks li + li { border-top: 1px solid var(--salmod-line-soft); }
.pp-perks svg { flex: 0 0 auto; color: var(--salmod-brand); }
.pp-meta { margin: 14px 0 0; font-size: 13px; }
.pp-meta > div { display: flex; gap: 8px; padding: 4px 0; }
.pp-meta dt { color: var(--salmod-muted-fg); }
.pp-meta dd { margin: 0; font-weight: 600; }
.pp-meta a { text-decoration: none; color: var(--salmod-brand-ink); }

/* ---------- Section links + details ---------- */
.pp-tabs {
	position: sticky; top: 0; z-index: 30; display: flex; gap: 4px; margin-top: 24px; padding: 0 16px;
	background: color-mix(in srgb, var(--salmod-bg) 94%, transparent); border-bottom: 1px solid var(--salmod-line-soft);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow-x: auto; scrollbar-width: none;
}
.admin-bar .pp-tabs { top: var(--wp-admin--admin-bar--height, 0px); }
.pp-tabs a {
	display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; white-space: nowrap;
	font-size: 14px; font-weight: 700; color: var(--salmod-muted-fg); text-decoration: none; border-bottom: 2px solid transparent;
}
.pp-tabs a.is-on, .pp-tabs a:hover { color: var(--salmod-primary); border-bottom-color: var(--salmod-brand); }
.pp-tabs a span { padding: 0 6px; border-radius: 999px; background: var(--salmod-field); font-size: 11.5px; }
@media (min-width: 1025px) { .pp-tabs { padding: 0; margin-top: 40px; } }

.pp-details { padding: 0 16px; }
@media (min-width: 1025px) { .pp-details { padding: 0; max-width: 880px; } }
.pp-sec { padding: 24px 0; border-bottom: 1px solid var(--salmod-line-soft); scroll-margin-top: 64px; }
.pp-sec__title { font-size: 18px; font-weight: 800; margin-bottom: 12px !important; }
.pp-desc { font-size: 15px; color: var(--salmod-fg); overflow-wrap: anywhere; }
.pp-desc :is(h2, h3, h4) { font-size: 16px; margin: 18px 0 8px; }
.pp-desc p { margin: 0 0 10px; }
.pp-desc img { border-radius: 12px; }
.pp-desc table, .woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 14px; }
.pp-desc :is(.salmod-size-guide, table) { max-width: 100% !important; overflow-x: auto; }
.pp-desc .salmod-size-guide > div { overflow-x: auto; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--salmod-line-soft); vertical-align: top; }
.woocommerce-product-attributes th { width: 34%; color: var(--salmod-muted-fg); font-weight: 600; background: var(--salmod-field); }
.woocommerce-product-attributes p { margin: 0; }

/* Reviews (WooCommerce template) */
.pp-reviews .woocommerce-Reviews-title { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: var(--salmod-muted-fg); }
.pp-reviews .commentlist { list-style: none; margin: 0; padding: 0; }
.pp-reviews .commentlist li { margin: 0 0 12px; padding: 14px; border-radius: 16px; background: var(--salmod-surface); border: 1px solid var(--salmod-line-soft); }
.pp-reviews .commentlist .avatar { display: none; }
.pp-reviews .comment-text .star-rating { float: inline-end; }
.pp-reviews .meta { margin: 0 0 6px; font-size: 13px; color: var(--salmod-muted-fg); }
.pp-reviews .woocommerce-review__author { color: var(--salmod-fg); font-weight: 800; }
.pp-reviews .description p { margin: 0; font-size: 14px; }
.pp-reviews .children { list-style: none; margin: 10px 0 0; padding-inline-start: 14px; border-inline-start: 2px solid var(--salmod-brand-soft); }
.pp-reviews .woocommerce-noreviews { color: var(--salmod-muted-fg); font-size: 14px; }
.pp-reviews #review_form_wrapper { margin-top: 16px; padding: 16px; border-radius: 20px; background: var(--salmod-surface); border: 1px solid var(--salmod-line-soft); }
.pp-reviews .comment-reply-title { display: block; font-size: 16px; font-weight: 800; margin-bottom: 8px; color: var(--salmod-primary); }
.pp-reviews .comment-form p { margin: 0 0 12px; }
.pp-reviews .comment-form label { display: block; margin-bottom: 4px; font-size: 13.5px; font-weight: 700; }
.pp-reviews .comment-form :is(input[type="text"], input[type="email"], textarea) {
	width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--salmod-border);
	background: var(--salmod-field); font: inherit; font-size: 16px; color: var(--salmod-fg);
}
.pp-reviews .comment-form textarea { min-height: 110px; }
.pp-reviews .comment-form .submit {
	min-height: 48px; padding: 0 24px; border: 0; border-radius: 14px; background: var(--salmod-primary);
	color: var(--salmod-on-primary); font: inherit; font-weight: 800; cursor: pointer;
}
.pp-reviews .comment-form-cookies-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.pp-reviews .comment-form-cookies-consent label { display: inline; font-weight: 500; }
.pp-reviews p.stars { margin: 0; }
.pp-reviews p.stars > span { display: inline-flex; gap: 4px; }
.pp-reviews p.stars a {
	position: relative; display: inline-block; width: 40px; height: 40px; font-size: 0; text-decoration: none; border-radius: 10px;
}
.pp-reviews p.stars a::before { content: "★"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; color: var(--salmod-border); }
.pp-reviews p.stars:is(.selected, :hover) a::before { color: var(--salmod-gold); }
.pp-reviews p.stars.selected a.active ~ a::before, .pp-reviews p.stars a:hover ~ a::before { color: var(--salmod-border); }
.pp-reviews .comment-form-rating select { min-height: 44px; }

/* Related products */
.pp-rel { padding: 28px 0 0; }
.pp-rel .pp-sec__title { padding: 0 16px; }
.pp-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0; padding: 0 16px 6px; list-style: none; }
.pp-rail::-webkit-scrollbar { display: none; }
.pp-card { flex: 0 0 44%; scroll-snap-align: start; }
.pp-card__in { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--salmod-fg); }
.pp-card__media { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--salmod-surface); }
.pp-card__img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform .3s ease; }
.pp-card__in:hover .pp-card__img { transform: scale(1.03); }
.pp-card__media .pp-off { position: absolute; top: 8px; inset-inline-start: 8px; }
.pp-card__name { font-size: 13px; font-weight: 600; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pp-card__price { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 14px; font-weight: 800; color: var(--salmod-primary); }
@media (min-width: 768px) { .pp-card { flex-basis: 30%; } }
@media (min-width: 1025px) {
	.pp-rel { padding-top: 40px; }
	.pp-rel .pp-sec__title, .pp-rail { padding-inline: 0; }
	.pp-card { flex-basis: calc((100% - 48px) / 5); }
}

/* ---------- Mobile bar: cart · price · add to cart, in place of the bottom navigation ---------- */
.pp-bar { display: none; }
@media (max-width: 1024px) {
	body.salmod-product-page { --sb-h: calc(76px + env(safe-area-inset-bottom)); }
	body.salmod-product-page .sb { display: none !important; }
	.pp-bar {
		position: fixed; inset-inline: 0; bottom: 0; z-index: 100002;
		display: flex; align-items: center; gap: 10px;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
		background: color-mix(in srgb, var(--salmod-surface) 96%, transparent);
		-webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
		border-top: 1px solid var(--salmod-line-soft);
		box-shadow: 0 -10px 30px color-mix(in srgb, var(--salmod-primary) 8%, transparent);
	}
	body:has(.sh.is-search-open) .pp-bar { visibility: hidden; }
}
.pp-bar__cart {
	position: relative; flex: 0 0 auto; width: 52px; height: 52px; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 16px; background: var(--salmod-brand-soft); color: var(--salmod-brand-ink);
}
.pp-bar__cart .sh__count { position: absolute; top: 4px; inset-inline-end: 4px; }
.pp-bar__price { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 0; font-size: 17px; font-weight: 900; color: var(--salmod-brand-ink); line-height: 1.35; }
.pp-bar__price del { order: -1; font-size: 12px !important; }
.pp-bar__price .price { margin: 0; display: contents; }
.pp-bar .pp-btn { flex: 0 0 auto; min-height: 52px; padding: 0 18px; }
.pp-bar__out { padding: 0 16px; font-weight: 800; color: var(--salmod-danger); }

/* ---------- Full-screen gallery ---------- */
.pp-lb { position: fixed; inset: 0; z-index: 100001; background: var(--salmod-surface); }
.pp-lb[hidden] { display: none; }
.pp-lb__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.pp-lb__track::-webkit-scrollbar { display: none; }
.pp-lb__slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; overflow: auto; }
.pp-lb__slide img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pp-lb__x {
	position: absolute; top: calc(12px + env(safe-area-inset-top)); inset-inline-end: 12px; width: 48px; height: 48px;
	display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px;
	background: var(--salmod-field); color: var(--salmod-primary);
}
.pp-lb__count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--salmod-muted-fg); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
	.pp-bar, .pp-card__img, .pp-chip, .pp-btn { transition: none; }
	.pp-gal__track, .pp-lb__track, .pp-rail { scroll-behavior: auto; }
	.pp-flash { animation: none; }
}

/* =====================================================================================================
   Tables: another plugin's stylesheet turns every table cell into a rounded box; tables here are ours.
   ===================================================================================================== */
.pp table { border-collapse: collapse !important; border-spacing: 0 !important; }
.pp table th, .pp table td { border-radius: 0 !important; box-shadow: none !important; }
.pp-buy table.variations, .pp-buy table.variations :is(tbody, tr, th, td) {
	display: block !important; width: auto !important; height: auto !important; min-height: 0 !important;
	margin: 0; padding: 0 !important; border: 0 !important; background: none !important; text-align: start;
}
.pp-buy table.variations tr + tr { margin-top: 14px !important; }
.pp-buy table.variations th.label { display: flex !important; margin-bottom: 10px !important; }

/* Size table in the description: one clean, readable look (wins over its inline styles). */
.pp-desc .salmod-size-guide { max-width: none !important; color: inherit !important; }
.pp-desc .salmod-size-guide > div:first-child { font-size: 16px !important; color: var(--salmod-primary); }
.pp-desc .salmod-size-guide > div:not(:first-child), .pp-desc .pp-tablewrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--salmod-line-soft); background: var(--salmod-surface); }
.pp-desc table { width: 100%; min-width: 420px; margin: 0 !important; font-size: 13.5px; }
.pp-desc table :is(th, td) {
	padding: 9px 10px !important; border: 0 !important; border-bottom: 1px solid var(--salmod-line-soft) !important;
	background: var(--salmod-surface) !important; color: var(--salmod-fg) !important;
	text-align: center !important; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.pp-desc table thead :is(th, td), .pp-desc table tr > :is(th, td):first-child {
	background: var(--salmod-brand-soft) !important; color: var(--salmod-brand-ink) !important; font-weight: 800;
}
.pp-desc table tr:last-child > * { border-bottom: 0 !important; }
.pp-desc table tbody tr:nth-child(even) > :is(td):not(:first-child) { background: var(--salmod-bg) !important; }

/* =====================================================================================================
   Colour layer (theme tokens): soft brand backgrounds, filled choices, gradient buttons.
   ===================================================================================================== */
body.salmod-product-page { background: linear-gradient(180deg, var(--salmod-brand-soft) 0, var(--salmod-bg) 520px) no-repeat, var(--salmod-bg); }

.pp-gal__stage { background: radial-gradient(120% 90% at 50% 0%, var(--salmod-surface) 0, var(--salmod-brand-soft) 100%); }
.pp-gal__slide img, .pp-gal__img { background: transparent; }
.pp-off { background: linear-gradient(135deg, var(--salmod-danger), color-mix(in srgb, var(--salmod-danger) 70%, var(--salmod-brand))); box-shadow: 0 4px 12px color-mix(in srgb, var(--salmod-danger) 30%, transparent); border-radius: 8px; }
.pp-gal__thumb.is-on { box-shadow: 0 6px 16px color-mix(in srgb, var(--salmod-brand) 25%, transparent); }

@media (max-width: 1024px) {
	.pp-gal__stage { border-radius: 0 0 28px 28px; overflow: hidden; }
	.pp-sum { margin: 12px 12px 0; padding: 16px; border-radius: 24px; background: var(--salmod-surface); box-shadow: 0 8px 28px color-mix(in srgb, var(--salmod-primary) 6%, transparent); }
	.pp-perks, .pp-meta { margin-inline: 0; }
}
@media (min-width: 1025px) {
	.pp-sum { padding: 24px; border-radius: 28px; background: var(--salmod-surface); border: 1px solid var(--salmod-line-soft); box-shadow: 0 18px 50px color-mix(in srgb, var(--salmod-primary) 7%, transparent); }
	.pp-title { font-size: 22px; }
}

.pp-rating { padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--salmod-gold) 12%, var(--salmod-surface)); }

.pp-price-row { margin-top: 12px; padding: 12px 14px; border-radius: 18px; background: var(--salmod-brand-soft); justify-content: space-between; }
.pp-price { color: var(--salmod-brand-ink); font-size: 22px; font-weight: 900; }

.pp-buy { padding: 16px 0 0; border: 0; border-radius: 0; background: none; }
.pp-buy table.variations label { font-size: 15px; }
.pp-buy .pp-picked { color: var(--salmod-brand-ink); font-weight: 800; }
.pp-chip { min-width: 52px; min-height: 46px; border-radius: 14px; border-color: var(--salmod-line-soft); background: var(--salmod-field); }
.pp-chip:hover { border-color: var(--salmod-brand); color: var(--salmod-brand-ink); }
.pp-chip[aria-checked="true"] {
	border-color: transparent; color: var(--salmod-on-brand);
	background: linear-gradient(135deg, var(--salmod-brand), var(--salmod-brand-ink));
	box-shadow: 0 8px 18px color-mix(in srgb, var(--salmod-brand) 32%, transparent);
}
.pp-chip[aria-disabled="true"] { background: transparent; border-color: var(--salmod-line-soft); }

.pp-buy .quantity { border-color: var(--salmod-line-soft); background: var(--salmod-field); border-radius: 16px; }
.pp-qbtn { color: var(--salmod-brand-ink); }
.pp-buy .single_add_to_cart_button, .pp-btn--brand {
	border-radius: 16px; color: var(--salmod-on-brand);
	background: linear-gradient(135deg, var(--salmod-brand), var(--salmod-brand-ink));
	box-shadow: 0 10px 24px color-mix(in srgb, var(--salmod-brand) 30%, transparent);
}
.pp-buy .single_add_to_cart_button:hover, .pp-btn--brand:hover { background: var(--salmod-brand-ink); }
.pp-buy .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button { opacity: .8; box-shadow: none; }

.pp-perks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0; background: none; }
.pp-perks li { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px; border-radius: 16px; background: var(--salmod-field); font-size: 12.5px; line-height: 1.6; }
.pp-perks li + li { border-top: 0; }
.pp-perks li:first-child:nth-last-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
.pp-perks svg { box-sizing: content-box; padding: 8px; border-radius: 12px; background: var(--salmod-brand-soft); color: var(--salmod-brand); }

.pp-tabs { gap: 6px; padding: 8px 16px; border-bottom: 0; }
.pp-tabs a { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--salmod-surface); color: var(--salmod-fg); box-shadow: inset 0 0 0 1px var(--salmod-line-soft); }
.pp-tabs a.is-on, .pp-tabs a:hover { background: var(--salmod-primary); color: var(--salmod-on-primary); box-shadow: none; }
.pp-tabs a.is-on span, .pp-tabs a:hover span { background: color-mix(in srgb, var(--salmod-on-primary) 20%, transparent); }
@media (min-width: 1025px) { .pp-tabs { padding: 10px 0; } }

.pp-details { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 4px 12px 0; }
.pp-sec { min-width: 0; }
@media (min-width: 1025px) { .pp-details { padding: 4px 0 0; } }
.pp-sec { padding: 18px 16px; border: 0; border-radius: 24px; background: var(--salmod-surface); box-shadow: 0 6px 22px color-mix(in srgb, var(--salmod-primary) 5%, transparent); }
.pp-sec__title { display: flex; align-items: center; gap: 10px; }
.pp-sec__title::before { content: ""; width: 6px; height: 22px; border-radius: 6px; background: linear-gradient(180deg, var(--salmod-brand), var(--salmod-brand-ink)); }
.woocommerce-product-attributes { border-radius: 14px; overflow: hidden; }
.woocommerce-product-attributes th { background: var(--salmod-brand-soft) !important; color: var(--salmod-brand-ink) !important; font-weight: 700 !important; }
.woocommerce-product-attributes :is(th, td) { border: 0 !important; border-bottom: 1px solid var(--salmod-line-soft) !important; background-color: var(--salmod-surface); }
.pp-reviews .commentlist li { background: var(--salmod-bg); border: 0; }
.pp-reviews #review_form_wrapper { background: var(--salmod-brand-soft); border: 0; }
.pp-reviews .comment-form :is(input[type="text"], input[type="email"], textarea) { background: var(--salmod-surface); border-color: var(--salmod-line-soft); }
.pp-reviews .comment-form .submit { background: linear-gradient(135deg, var(--salmod-brand), var(--salmod-brand-ink)); }

.pp-rel .pp-sec__title { padding: 0 16px; }
.pp-card__in { padding: 8px; border-radius: 20px; background: var(--salmod-surface); box-shadow: 0 6px 20px color-mix(in srgb, var(--salmod-primary) 5%, transparent); transition: transform .2s ease, box-shadow .2s ease; }
.pp-card__in:hover { transform: translateY(-3px); box-shadow: 0 14px 30px color-mix(in srgb, var(--salmod-brand) 14%, transparent); }
.pp-card__media { border-radius: 14px; background: var(--salmod-brand-soft); }
.pp-card__price { color: var(--salmod-brand-ink); }
.pp-rail { padding-top: 4px; padding-bottom: 16px; }
@media (min-width: 1025px) { .pp-rel .pp-sec__title { padding: 0; } }
.pp-js .pp-buy table.variations select.pp-has-chips { min-height: 0 !important; height: 1px !important; padding: 0 !important; border: 0 !important; }
.pp-buy .reset_variations[style*="hidden"] { display: none !important; }
/* Keep real table layout (the same foreign CSS also changes cell display / width / float). */
.pp-desc table { display: table !important; table-layout: auto !important; }
.pp-desc table thead { display: table-header-group !important; }
.pp-desc table tbody { display: table-row-group !important; }
.pp-desc table tr { display: table-row !important; }
.pp-desc table :is(th, td) { display: table-cell !important; float: none !important; width: auto !important; min-width: 0 !important; height: auto !important; margin: 0 !important; vertical-align: middle !important; position: static !important; }
