/**
 * Siwiec Product Layouts — front-end styles.
 *
 * Scoping rules:
 *  - every selector starts at `.dsp` (the layout root), so nothing leaks into
 *    the theme's header, footer, widgets or other pages,
 *  - the box-sizing reset is local (`.dsp, .dsp *`) — no global `* { margin:0 }`,
 *  - colours, radius and container width come from CSS custom properties that
 *    the plugin prints inline from the settings.
 */

.spl-root {
	--spl-max: 1200px;
	--spl-radius: 14px;
	--spl-radius-sm: 10px;
	--spl-primary: #0255aa;
	--spl-dark: #002762;
	--spl-buy: #d62828;
	--spl-sale: #d62828;
	--spl-bg: #f7f8fa;
	--spl-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	--spl-text: #111827;
	--spl-muted: #6b7280;
	--spl-faint: #9ca3af;
	--spl-line: #e9edf2;
	--spl-card: #ffffff;
	--spl-shadow: 0 1px 3px rgba(16, 24, 40, .04), 0 4px 20px rgba(16, 24, 40, .05);
	--spl-shadow-lg: 0 10px 34px rgba(16, 24, 40, .09);
	--spl-ok: #15803d;
	--spl-ok-bg: #ecfdf5;
	--spl-ok-line: #a7f3d0;
}

/* ── Root ──────────────────────────────────────────────────────────────── */

.dsp {
	box-sizing: border-box;
	max-width: var(--spl-max);
	width: 100%;
	margin-inline: auto;
	padding-inline: clamp(12px, 3vw, 24px);
	font-family: var(--spl-font);
	color: var(--spl-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.dsp *,
.dsp *::before,
.dsp *::after {
	box-sizing: border-box;
}

.dsp img {
	max-width: 100%;
	height: auto;
	display: block;
}

.dsp a {
	color: inherit;
	text-decoration: none;
}

.dsp a:hover {
	color: var(--spl-primary);
}

.dsp :focus-visible {
	outline: 2px solid var(--spl-primary);
	outline-offset: 2px;
	border-radius: 4px;
}

.dsp h1,
.dsp h2,
.dsp h3,
.dsp h4,
.dsp p,
.dsp ul,
.dsp ol {
	margin-block: 0;
}

/* Block themes constrain content width; opt out inside the layout. */
.dsp > * {
	max-width: none;
}

/* ── Breadcrumb ────────────────────────────────────────────────────────── */

.dsp-bread {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	margin-bottom: 20px;
	padding-top: 8px;
	font-size: .78rem;
	color: var(--spl-faint);
}

.dsp-bread a {
	color: var(--spl-primary);
	font-weight: 500;
}

.dsp-bread .dsp-bread-sep {
	width: 10px;
	height: 10px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	opacity: .5;
	flex: none;
}

/* ── Top grid ──────────────────────────────────────────────────────────── */

.dsp-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 440px;
	gap: 44px;
	align-items: start;
	margin-bottom: 2.5rem;
}

.dsp-left {
	min-width: 0;
}

/* ── Gallery ───────────────────────────────────────────────────────────── */

.dsp-gallery {
	margin-bottom: 20px;
}

.dsp-hero {
	position: relative;
	background: #efefef;
	border-radius: var(--spl-radius);
	overflow: hidden;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}

.dsp-hero-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.dsp-hero img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: transform .4s ease;
}

@media (hover: hover) {
	.dsp-hero:hover img {
		transform: scale(1.05);
	}
}

.dsp-bdg {
	position: absolute;
	z-index: 2;
	pointer-events: none;
}

.dsp-bdg-sale {
	bottom: 14px;
	right: 14px;
	background: var(--spl-sale);
	color: #fff;
	font-size: .85rem;
	font-weight: 700;
	padding: 5px 13px;
	border-radius: var(--spl-radius-sm);
	box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}

.dsp-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.dsp-thumb {
	width: 72px;
	height: 72px;
	padding: 5px;
	background: #fff;
	border: 2px solid var(--spl-line);
	border-radius: var(--spl-radius-sm);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	overflow: hidden;
	transition: border-color .2s ease;
}

.dsp-thumb:hover,
.dsp-thumb.on {
	border-color: var(--spl-primary);
}

.dsp-thumb img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}

/* ── Short description ─────────────────────────────────────────────────── */

.dsp-short {
	margin: 24px 0 0;
	font-size: .95rem;
	color: #374151;
	line-height: 1.75;
}

.dsp-short > *:first-child {
	margin-top: 0;
}

.dsp-short p {
	margin: 0 0 10px;
}

.dsp-short ul {
	list-style: none;
	padding: 0;
	margin: 8px 0 14px;
}

.dsp-short ul li {
	position: relative;
	padding-left: 24px;
	margin-bottom: 7px;
}

.dsp-short ul li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--spl-primary);
	font-weight: 700;
}

.dsp-short ol {
	padding-left: 20px;
	margin: 8px 0 14px;
}

.dsp-short h2,
.dsp-short h3,
.dsp-short h4 {
	margin: 18px 0 8px;
	font-weight: 700;
	line-height: 1.3;
}

.dsp-short table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}

.dsp-short th,
.dsp-short td {
	border: 1px solid var(--spl-line);
	padding: 8px 10px;
	text-align: left;
}

.dsp-short a {
	color: var(--spl-primary);
	text-decoration: underline;
}

.dsp-short hr {
	border: 0;
	border-top: 1px solid var(--spl-line);
	margin: 18px 0;
}

/* ── Purchase panel ────────────────────────────────────────────────────── */

.dsp-side {
	background: var(--spl-card);
	border-radius: var(--spl-radius);
	padding: 1.6rem;
	box-shadow: var(--spl-shadow);
}

.dsp--sticky .dsp-side {
	position: sticky;
	top: 24px;
}

.dsp-cat {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--spl-primary);
	margin: 0 0 6px;
}

.dsp-h1 {
	font-size: clamp(1.35rem, 2.4vw, 1.7rem);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -.4px;
	margin: 0 0 10px;
}

.dsp-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.dsp-badge {
	font-size: .72rem;
	font-weight: 600;
	padding: 4px 11px;
	border-radius: 100px;
	white-space: nowrap;
}

.dsp-badge-pop {
	background: #fef3c7;
	color: #92400e;
}

.dsp-badge-top {
	background: var(--spl-ok-bg);
	color: #065f46;
}

.dsp-badge-promo {
	background: color-mix(in srgb, var(--spl-sale) 12%, #fff);
	color: var(--spl-sale);
}

.dsp-stars {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
	font-size: .82rem;
}

.dsp-stars .woocommerce-product-rating,
.dsp-stars .star-rating {
	margin: 0;
	float: none;
}

.dsp-stars .woocommerce-review-link {
	display: none;
}

.dsp-stars-link {
	color: var(--spl-muted);
	text-decoration: underline;
	font-size: .8rem;
}

.dsp-stars--empty {
	color: var(--spl-faint);
	font-size: .8rem;
}

/* Price */

.dsp-pw {
	margin-bottom: 10px;
}

.dsp-pw .price,
.dsp-pw > .woocommerce-Price-amount {
	display: block;
	font-size: clamp(1.7rem, 4vw, 2.15rem);
	font-weight: 800;
	color: var(--spl-dark);
	line-height: 1.1;
}

.dsp-pw del,
.dsp-pw .price del {
	font-size: 1rem;
	font-weight: 400;
	color: var(--spl-faint);
	opacity: 1;
}

.dsp-pw ins,
.dsp-pw .price ins {
	text-decoration: none;
	background: none;
}

/* Omnibus / "lowest previous price" note, whichever plugin renders it. */
.dsp-pw .iworks-omnibus,
.dsp-pw p.iworks-omnibus,
.dsp-pw .wc-price-omnibus,
.dsp-pw small.woocommerce-price-suffix {
	display: block;
	font-size: .68rem;
	font-weight: 400;
	color: var(--spl-faint);
	margin: 6px 0 0;
	line-height: 1.35;
}

.dsp-pw .iworks-omnibus .woocommerce-Price-amount {
	font-size: .68rem;
	font-weight: 400;
	color: var(--spl-faint);
}

.dsp-promo {
	margin: 0 0 12px;
	padding: 11px 13px;
	border-radius: var(--spl-radius-sm);
	background: linear-gradient(135deg, #071733 0%, #0b2a59 58%, var(--spl-dark) 100%);
	color: #fff;
	font-size: .85rem;
	line-height: 1.5;
}

.dsp-promo p {
	margin: 0;
}

.dsp-promo strong {
	color: #f4c95d;
}

/* Dispatch notice */

.dsp-cd {
	display: flex;
	align-items: center;
	gap: 7px;
	background: var(--spl-ok-bg);
	border: 1px solid var(--spl-ok-line);
	border-radius: var(--spl-radius-sm);
	padding: 9px 13px;
	margin: 0 0 12px;
	font-size: .84rem;
	font-weight: 600;
	color: #065f46;
}

.dsp-cd .spl-i {
	width: 15px;
	height: 15px;
	stroke: #059669;
	fill: none;
	stroke-width: 2;
	flex: none;
}

/* Stock */

.dsp-stock {
	margin-bottom: 10px;
	font-size: .85rem;
}

.dsp-stock .stock {
	margin: 0;
	font-weight: 600;
}

.dsp-stock .in-stock {
	color: var(--spl-ok);
}

.dsp-stock .out-of-stock {
	color: var(--spl-sale);
}

/* Cart form */

.dsp-cart {
	margin-bottom: 12px;
}

.dsp-cart form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin: 0;
	padding: 0;
}

.dsp-cart form.cart.variations_form {
	display: block;
}

.dsp-cart .quantity {
	flex: none;
	margin: 0;
}

.dsp-cart .quantity input.qty,
.dsp-cart .quantity .wc-block-components-quantity-selector input {
	width: 74px;
	height: 52px;
	padding: 0;
	border: 2px solid var(--spl-line);
	border-radius: var(--spl-radius-sm);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 600;
	text-align: center;
	background: #fff;
	color: inherit;
}

.dsp .single_add_to_cart_button,
.dsp button.single_add_to_cart_button {
	flex: 1 1 180px;
	min-height: 52px;
	padding: 0 26px;
	background: var(--spl-buy);
	color: #fff;
	border: 0;
	border-radius: var(--spl-radius-sm);
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background .2s ease, box-shadow .2s ease;
}

.dsp .single_add_to_cart_button:hover,
.dsp .single_add_to_cart_button:focus {
	background: color-mix(in srgb, var(--spl-buy) 85%, #000);
	color: #fff;
	box-shadow: 0 6px 20px color-mix(in srgb, var(--spl-buy) 28%, transparent);
}

.dsp .single_add_to_cart_button.disabled,
.dsp .single_add_to_cart_button:disabled {
	opacity: .5;
	cursor: not-allowed;
}

/* Variations table */

.dsp-cart table.variations {
	width: 100%;
	margin: 0 0 12px;
	border: 0;
}

.dsp-cart table.variations th,
.dsp-cart table.variations td {
	border: 0;
	padding: 4px 0;
	text-align: left;
	vertical-align: middle;
}

.dsp-cart table.variations label {
	font-weight: 600;
	font-size: .85rem;
}

.dsp-cart table.variations select {
	width: 100%;
	min-height: 44px;
	padding: 0 10px;
	border: 2px solid var(--spl-line);
	border-radius: var(--spl-radius-sm);
	background: #fff;
	font-family: inherit;
	font-size: .9rem;
}

.dsp-cart .woocommerce-variation-price {
	margin-bottom: 10px;
}

.dsp-cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
}

.dsp-cart .reset_variations {
	font-size: .78rem;
	color: var(--spl-muted);
	text-decoration: underline;
}

/* Grouped products */

.dsp-cart table.woocommerce-grouped-product-list {
	width: 100%;
	margin-bottom: 12px;
}

.dsp-cart table.woocommerce-grouped-product-list td {
	padding: 8px 6px;
	border-bottom: 1px solid var(--spl-line);
	vertical-align: middle;
}

/* Free-shipping progress */

.dsp-ship {
	margin-bottom: 14px;
}

.dsp-ship-t {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 6px;
	font-size: .8rem;
	color: #4b5563;
}

.dsp-ship-t .spl-i {
	width: 14px;
	height: 14px;
	stroke: var(--spl-ok);
	fill: none;
	stroke-width: 2;
	flex: none;
}

.dsp-ship-t strong,
.dsp-ship-t .amount {
	color: var(--spl-ok);
	font-weight: 700;
}

.dsp-ship-bar {
	height: 5px;
	background: #e5e7eb;
	border-radius: 100px;
	overflow: hidden;
}

.dsp-ship-fill {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #22c55e, #16a34a);
	border-radius: 100px;
	transition: width .35s ease;
}

/* Guarantee / payments / trust */

.dsp-guar {
	display: flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 10px;
	font-size: .82rem;
	font-weight: 600;
	color: var(--spl-ok);
}

.dsp-guar .spl-i {
	width: 15px;
	height: 15px;
	stroke: currentColor;
	fill: none;
	stroke-width: 2;
	flex: none;
}

.dsp-pay {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 5px;
	margin: 0 0 14px;
}

.dsp-pay-l {
	font-size: .72rem;
	color: var(--spl-faint);
}

.dsp-pay-i {
	padding: 3px 8px;
	background: #fff;
	border: 1px solid var(--spl-line);
	border-radius: 5px;
	font-size: .7rem;
	font-weight: 600;
	color: #4b5563;
}

.dsp-trust {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin: 0;
	padding: 14px 0 0;
	border-top: 1px solid var(--spl-line);
}

.dsp-trust-i {
	display: flex;
	align-items: center;
	gap: 9px;
	font-size: .84rem;
	color: #4b5563;
}

.dsp-trust-i .spl-i {
	width: 17px;
	height: 17px;
	stroke: var(--spl-primary);
	fill: none;
	stroke-width: 1.6;
	flex: none;
}

.dsp-meta {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--spl-line);
	font-size: .74rem;
	color: var(--spl-faint);
}

.dsp-meta a {
	color: var(--spl-primary);
}

.dsp-meta-sep {
	margin: 0 6px;
}

.dsp-hooks:empty {
	display: none;
}

.dsp-hooks {
	margin-top: 10px;
}

/* ── Bundle CTA ────────────────────────────────────────────────────────── */

.dsp-pak {
	position: relative;
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 24px;
	align-items: center;
	margin-bottom: 2.5rem;
	padding: 1.4rem 1.8rem;
	background: linear-gradient(135deg, #f5f8ff, #eef3fc);
	border: 2px solid #c4d7f2;
	border-radius: var(--spl-radius);
	overflow: hidden;
	transition: border-color .3s ease, box-shadow .3s ease;
}

.dsp-pak::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: linear-gradient(180deg, var(--spl-primary), #0470d6);
}

.dsp-pak:hover {
	border-color: var(--spl-primary);
	box-shadow: 0 8px 30px rgba(2, 85, 170, .12);
}

.dsp-pak-imgs {
	display: flex;
	flex: none;
}

.dsp-pak-img {
	width: 66px;
	height: 88px;
	background: #eae7e1;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.dsp-pak-img + .dsp-pak-img {
	margin-left: -12px;
}

.dsp-pak-img img {
	max-width: 92%;
	max-height: 92%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dsp-pak-t {
	font-size: 1.05rem;
	font-weight: 800;
	margin: 2px 0 3px;
	line-height: 1.25;
}

.dsp-pak-s {
	font-size: .84rem;
	color: #4b5563;
	margin: 0;
}

.dsp-pak-right {
	text-align: right;
	flex: none;
}

.dsp-pak-p {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--spl-primary);
	margin-bottom: 8px;
}

.dsp-pak-p del {
	display: block;
	font-size: .78rem;
	font-weight: 400;
	color: var(--spl-faint);
}

.dsp-pak-p ins {
	text-decoration: none;
	background: none;
}

.dsp-pak-p .iworks-omnibus,
.dsp-pak-p [class*="omnibus"] {
	display: none;
}

.dsp .dsp-pak-btn {
	display: inline-block;
	padding: 11px 26px;
	background: var(--spl-primary);
	color: #fff;
	border: 0;
	border-radius: var(--spl-radius-sm);
	font-family: inherit;
	font-size: .88rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, box-shadow .2s ease;
}

.dsp .dsp-pak-btn:hover,
.dsp .dsp-pak-btn:focus {
	background: var(--spl-dark);
	color: #fff;
	box-shadow: 0 6px 20px rgba(2, 85, 170, .2);
}

.dsp .dsp-pak-btn.loading,
.dsp .dsp-pak-btn.added {
	opacity: .75;
}

/* ── Features ──────────────────────────────────────────────────────────── */

.dsp-why {
	margin-bottom: 2.5rem;
}

.dsp-why-tag,
.dsp-rel-tag,
.dsp-auth-tag {
	font-size: .68rem;
	font-weight: 700;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--spl-primary);
	margin: 0 0 4px;
}

.dsp-why-t,
.dsp-rel-t {
	font-size: clamp(1.15rem, 2.5vw, 1.45rem);
	font-weight: 800;
	letter-spacing: -.3px;
	margin: 0 0 1rem;
}

.dsp-why-g {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}

.dsp-why-g--1 {
	grid-template-columns: minmax(0, 1fr);
}

.dsp-why-g--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dsp-wc {
	background: var(--spl-card);
	border-radius: var(--spl-radius-sm);
	padding: 1.2rem;
	box-shadow: var(--spl-shadow);
	transition: transform .25s ease, box-shadow .25s ease;
}

.dsp-wc:hover {
	transform: translateY(-3px);
	box-shadow: var(--spl-shadow-lg);
}

.dsp-wc-ic {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	margin-bottom: 10px;
	border-radius: var(--spl-radius-sm);
	background: #f0f4fa;
}

.dsp-wc-ic .spl-i {
	width: 19px;
	height: 19px;
	stroke: var(--spl-primary);
	fill: none;
	stroke-width: 1.6;
}

.dsp-wc-t {
	font-size: .95rem;
	font-weight: 700;
	margin: 0 0 4px;
}

.dsp-wc-d {
	font-size: .84rem;
	color: var(--spl-muted);
	line-height: 1.55;
	margin: 0;
}

/* ── Author ────────────────────────────────────────────────────────────── */

.dsp-auth {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 22px;
	align-items: center;
	margin-bottom: 2.5rem;
	padding: 1.3rem 1.8rem;
	background: var(--spl-card);
	border-radius: var(--spl-radius);
	box-shadow: var(--spl-shadow);
}

.dsp-auth-img {
	width: 76px;
	height: 76px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .12);
	flex: none;
}

.dsp-auth-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dsp-auth-n {
	font-size: 1.05rem;
	font-weight: 800;
	margin: 0 0 4px;
}

.dsp-auth-d {
	font-size: .88rem;
	color: var(--spl-muted);
	line-height: 1.6;
}

.dsp-auth-d p {
	margin: 0 0 6px;
}

.dsp-auth-d p:last-child {
	margin-bottom: 0;
}

/* ── Accordion ─────────────────────────────────────────────────────────── */

.dsp-tabs {
	margin-bottom: 2.5rem;
}

.dsp-tab {
	background: var(--spl-card);
	border-radius: var(--spl-radius-sm);
	overflow: hidden;
	margin-bottom: 8px;
	box-shadow: var(--spl-shadow);
}

.dsp-tab-hw {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
}

.dsp-tab-h {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 22px;
	background: none;
	border: 0;
	font-family: inherit;
	font-size: 1rem;
	font-weight: 700;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}

.dsp-tab-h:hover {
	background: #f8f9fb;
}

.dsp-tab-h.on {
	color: var(--spl-primary);
}

.dsp-tab-h .spl-i {
	width: 19px;
	height: 19px;
	stroke: var(--spl-faint);
	fill: none;
	stroke-width: 2;
	flex: none;
	transition: transform .3s ease, stroke .2s ease;
}

.dsp-tab-h.on .spl-i {
	transform: rotate(180deg);
	stroke: var(--spl-primary);
}

.dsp-tab-b {
	padding: 0 22px 20px;
	font-size: .92rem;
	color: #4b5563;
	line-height: 1.75;
}

.dsp-tab-b.hid,
.dsp-tab-b[hidden] {
	display: none;
}

.dsp-tab-b > *:first-child {
	margin-top: 0;
}

.dsp-tab-b p {
	margin: 0 0 10px;
}

.dsp-tab-b h2,
.dsp-tab-b h3,
.dsp-tab-b h4 {
	margin: 16px 0 8px;
	font-weight: 700;
	color: var(--spl-primary);
	line-height: 1.3;
}

.dsp-tab-b ul,
.dsp-tab-b ol {
	margin: 8px 0 12px 20px;
	padding: 0;
}

.dsp-tab-b li {
	margin-bottom: 4px;
}

.dsp-tab-b a {
	color: var(--spl-primary);
	text-decoration: underline;
}

.dsp-tab-b table {
	width: 100%;
	border-collapse: collapse;
	margin: 10px 0;
}

.dsp-tab-b th,
.dsp-tab-b td {
	border: 1px solid var(--spl-line);
	padding: 9px 11px;
	text-align: left;
}

/* Wide content must scroll inside its own box, never the page. */
.dsp-tab-b .woocommerce-product-attributes,
.dsp-tab-b table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
}

.dsp-tab-b #reviews,
.dsp-tab-b .woocommerce-Reviews {
	margin: 0;
}

.dsp-tab-b .comment-form {
	margin-top: 16px;
}

.dsp-tab-b .comment-form input[type="text"],
.dsp-tab-b .comment-form input[type="email"],
.dsp-tab-b .comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 2px solid var(--spl-line);
	border-radius: var(--spl-radius-sm);
	font-family: inherit;
}

/* ── Related ───────────────────────────────────────────────────────────── */

.dsp-rel {
	margin-bottom: 3rem;
}

.dsp-rel-g {
	display: grid;
	grid-template-columns: repeat(var(--spl-rel-cols, 4), minmax(0, 1fr));
	gap: 16px;
}

.dsp-rc {
	display: flex;
	flex-direction: column;
	background: var(--spl-card);
	border: 1px solid #f0f0f0;
	border-radius: var(--spl-radius-sm);
	overflow: hidden;
	box-shadow: var(--spl-shadow);
	transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.dsp-rc:hover {
	transform: translateY(-4px);
	box-shadow: var(--spl-shadow-lg);
	border-color: #e0e8f4;
}

.dsp-rc-img {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	padding: 12px;
	background: #efefef;
}

.dsp-rc-img img {
	max-width: 88%;
	max-height: 88%;
	width: auto;
	height: auto;
	object-fit: contain;
}

.dsp-rc-sale {
	position: absolute;
	top: 10px;
	right: 10px;
	background: var(--spl-sale);
	color: #fff;
	font-size: .66rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 100px;
}

.dsp-rc-b {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: .85rem 1rem 1rem;
}

.dsp-rc-cat {
	font-size: .62rem;
	font-weight: 600;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--spl-primary);
	margin: 0 0 4px;
}

.dsp-rc-n {
	font-size: .92rem;
	font-weight: 700;
	line-height: 1.3;
	margin: 0 0 auto;
}

.dsp-rc-f {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f0f0f0;
}

.dsp-rc-p {
	font-size: 1rem;
	font-weight: 700;
	color: var(--spl-dark);
	min-width: 0;
}

.dsp-rc-p .price {
	font-size: .98rem;
	font-weight: 700;
	color: var(--spl-dark);
}

.dsp-rc-p del {
	display: block;
	font-size: .7rem;
	font-weight: 400;
	color: var(--spl-faint);
}

.dsp-rc-p ins {
	text-decoration: none;
	background: none;
}

/* Omnibus notes are legally required on the product page, not in a card grid. */
.dsp-rc-p .iworks-omnibus,
.dsp-rc-p [class*="omnibus"],
.dsp-rc-p small.woocommerce-price-suffix {
	display: none;
}

.dsp .dsp-rc-btn {
	flex: none;
	display: inline-block;
	padding: 8px 16px;
	background: var(--spl-primary);
	color: #fff;
	border: 0;
	border-radius: 9px;
	font-family: inherit;
	font-size: .76rem;
	font-weight: 600;
	white-space: nowrap;
	cursor: pointer;
	transition: background .2s ease, box-shadow .2s ease;
}

.dsp .dsp-rc-btn:hover,
.dsp .dsp-rc-btn:focus {
	background: var(--spl-dark);
	color: #fff;
	box-shadow: 0 4px 12px rgba(2, 85, 170, .2);
}

.dsp .dsp-rc-btn.added {
	display: inline-block;
}

.dsp .added_to_cart {
	display: block;
	margin-top: 6px;
	font-size: .72rem;
	color: var(--spl-primary);
	text-decoration: underline;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
	.dsp-top {
		grid-template-columns: minmax(0, 1fr) 380px;
		gap: 32px;
	}
}

@media (max-width: 960px) {
	.dsp-top {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.dsp-left {
		display: contents;
	}

	.dsp-gallery {
		order: 1;
		margin-bottom: 16px;
	}

	.dsp-side {
		order: 2;
		margin-bottom: 20px;
		padding: 1.25rem;
	}

	.dsp--sticky .dsp-side {
		position: static;
	}

	.dsp-short {
		order: 3;
		margin-top: 0;
	}

	.dsp-pak {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
		gap: 14px;
		padding: 1.25rem 1.4rem;
	}

	.dsp-pak-imgs {
		justify-content: center;
	}

	.dsp-pak-right {
		text-align: center;
	}

	.dsp-why-g,
	.dsp-why-g--2,
	.dsp-why-g--3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dsp-rel-g {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.dsp-auth {
		grid-template-columns: minmax(0, 1fr);
		text-align: center;
		padding: 1.25rem;
	}

	.dsp-auth-img {
		margin: 0 auto;
	}
}

@media (max-width: 560px) {
	.dsp {
		padding-inline: 12px;
	}

	.dsp-side {
		padding: 1.1rem;
	}

	.dsp-thumb {
		width: 60px;
		height: 60px;
	}

	.dsp-why-g,
	.dsp-why-g--2,
	.dsp-why-g--3 {
		grid-template-columns: minmax(0, 1fr);
	}

	.dsp-rel-g {
		gap: 10px;
	}

	.dsp-rc-b {
		padding: .7rem .8rem .8rem;
	}

	.dsp-rc-n {
		font-size: .84rem;
	}

	.dsp-rc-f {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.dsp .dsp-rc-btn {
		text-align: center;
	}

	.dsp-pak-img {
		width: 52px;
		height: 70px;
	}

	.dsp-tab-h {
		padding: 14px 16px;
		font-size: .94rem;
	}

	.dsp-tab-b {
		padding: 0 16px 16px;
	}

	.dsp-cart form.cart {
		gap: 8px;
	}

	.dsp-cart .quantity input.qty {
		width: 64px;
		height: 48px;
	}

	.dsp .single_add_to_cart_button {
		min-height: 48px;
		flex: 1 1 140px;
		padding: 0 16px;
		font-size: .92rem;
	}
}

@media (max-width: 360px) {
	.dsp-rel-g {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ── Motion / contrast preferences ─────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	.dsp *,
	.dsp *::before,
	.dsp *::after {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}

	.dsp-hero:hover img,
	.dsp-wc:hover,
	.dsp-rc:hover {
		transform: none;
	}
}

@supports not (color: color-mix(in srgb, red 50%, blue)) {
	.dsp .single_add_to_cart_button:hover,
	.dsp .single_add_to_cart_button:focus {
		filter: brightness(.88);
	}

	.dsp-badge-promo {
		background: #fdeaea;
	}
}
