/* Second Set InkSoft Connector: product detail page.
   Inherits the theme's fonts and text color. Set the accent per site (e.g. in
   catalog.css): .ss-pd { --ss-accent: #3669b3; --ss-accent-ink: #fff; }     */

.ss-pd {
	--ss-line: rgba(0, 0, 0, 0.12);
	--ss-soft: rgba(0, 0, 0, 0.04);
	--ss-muted: rgba(0, 0, 0, 0.6);
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	gap: clamp(24px, 4vw, 56px);
	align-items: start;
	margin: 1.5rem 0 3rem;
}
@media (max-width: 820px) {
	.ss-pd { grid-template-columns: 1fr; }
}

.ss-pd-main {
	background: var(--ss-soft);
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border-radius: 8px;
}
.ss-pd-main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity 0.2s ease;
}
.ss-pd-main img.is-swap { opacity: 0.35; }

.ss-pd-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}
.ss-pd-thumbs button {
	width: 72px;
	height: 72px;
	padding: 4px;
	background: var(--ss-soft);
	border: 2px solid transparent;
	border-radius: 6px;
	cursor: pointer;
}
.ss-pd-thumbs button.is-on { border-color: var(--ss-accent, #117997); }
.ss-pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.ss-pd-brand {
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ss-muted);
	margin: 0 0 0.5rem;
}
.ss-pd-title {
	font-size: clamp(1.8rem, 3.4vw, 2.6rem);
	line-height: 1.1;
	margin: 0 0 0.75rem;
}
.ss-pd-price { font-size: 1.25rem; font-weight: 700; margin: 0 0 1.5rem; }
.ss-pd-price small { font-weight: 400; font-size: 0.8rem; color: var(--ss-muted); }

.ss-pd-label { font-size: 0.9rem; margin: 0 0 0.6rem; }
.ss-pd-count { color: var(--ss-muted); margin-left: 0.4rem; }

.ss-pd-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.5rem; }
.ss-sw {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--ss-line);
	background: #eee;
	cursor: pointer;
	font-size: 10px;
	padding: 0;
	box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.ss-sw:hover { transform: scale(1.08); }
.ss-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ss-accent, #117997); }
.ss-sw:focus-visible { outline: 2px solid var(--ss-accent, #117997); outline-offset: 4px; }

.ss-pd-sizes ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ss-pd-sizes li {
	border: 1px solid var(--ss-line);
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 0.85rem;
	min-width: 44px;
	text-align: center;
}

.ss-pd-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 0.5rem 0 1.75rem; }
.ss-pd-btn {
	display: inline-block;
	background: var(--ss-accent, #117997);
	color: var(--ss-accent-ink, #fff);
	text-decoration: none;
	font-weight: 700;
	padding: 14px 26px;
	border-radius: 6px;
	transition: transform 0.15s ease, filter 0.15s ease;
}
.ss-pd-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: var(--ss-accent-ink, #fff); }

.ss-pd-desc { border-top: 1px solid var(--ss-line); padding-top: 1.25rem; line-height: 1.6; }
.ss-pd-note { color: var(--ss-muted); font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
	.ss-pd-main img, .ss-sw, .ss-pd-btn { transition: none; }
}

/* Theme/Elementor kits often style every <button> (pill shape, big padding,
   brand background). Reset ours with higher specificity, including hover
   and focus states, so thumbnails and swatches keep their own look. */
.ss-pd .ss-pd-thumbs button,
.ss-pd .ss-pd-thumbs button:hover,
.ss-pd .ss-pd-thumbs button:focus {
	width: 72px;
	height: 72px;
	min-width: 0;
	padding: 4px;
	margin: 0;
	background: var(--ss-soft, #f4f4f5);
	border: 2px solid transparent;
	border-radius: 6px;
	box-shadow: none;
	color: inherit;
	line-height: 1;
	text-transform: none;
}
.ss-pd .ss-pd-thumbs button.is-on { border-color: var(--ss-accent, #117997); }
.ss-pd button.ss-sw,
.ss-pd button.ss-sw:hover,
.ss-pd button.ss-sw:focus {
	width: 34px;
	height: 34px;
	min-width: 0;
	padding: 0;
	margin: 0;
	border: 1px solid var(--ss-line, #d4d4d8);
	border-radius: 50%;
	color: inherit;
	line-height: 1;
	text-transform: none;
}
.ss-pd button.ss-sw:not([style*="background"]),
.ss-pd button.ss-sw:not([style*="background"]):hover { background: #eee; }
.ss-pd button.ss-sw { box-shadow: 0 0 0 2px #fff, 0 0 0 3px transparent; }
.ss-pd button.ss-sw.is-on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ss-accent, #117997); }

/* v0.9.0: merchant badge on the main photo, own description, quote price line */
.ss-pd-main { position: relative; }
.ss-pd-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: var(--ss-accent, #FFE400);
	color: var(--ss-ink, #0E0E0E);
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
	pointer-events: none;
}
.ss-pd-own { line-height: 1.6; margin: 0 0 1.25rem; }
.ss-pd-price--quote a { font-weight: 500; }
/* v0.9.4: live stock under each size */
.ss-pd-sizes li small{display:block;font-size:10.5px;line-height:1.2;opacity:.65;margin-top:2px;white-space:nowrap}
.ss-pd-sizes li.is-low small{opacity:1;color:#8a5a00}
.ss-pd-sizes li.is-out{opacity:.45;text-decoration:line-through}
.ss-pd-sizes li.is-out small{text-decoration:none}
.ss-stock-note{font-size:12px;opacity:.6;margin:6px 0 0!important}
