/* ======================================================================
   Single Product Page Styles
   ====================================================================== */

.page-template-single-product {
	--sp-font-breadcrumb: 17px;
	--sp-font-eyebrow: 14px;
	--sp-font-meta: 16px;
	--sp-font-body: 18px;
	--sp-font-label: 17px;
	--sp-font-control: 18px;
	--sp-font-action: 16px;
	--sp-font-price: 40px;
	--sp-font-old-price: 24px;
	--sp-font-small-heading: 20px;
	--sp-font-tab: 17px;
	--sp-font-content: 18px;
	--sp-font-table: 17px;
	--sp-font-trust-title: 16px;
	--sp-font-trust-text: 15px;
	--sp-font-card-title: 18px;
	--sp-font-card-price: 20px;
}

/* --- Breadcrumb --- */
.sp-breadcrumb {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 24px 24px 0;
	font-size: var(--sp-font-breadcrumb);
}

.sp-breadcrumb a {
	color: var(--potf-text-soft, #5F6F89);
	text-decoration: none;
	transition: color 200ms ease;
}

.sp-breadcrumb a:hover {
	color: var(--potf-primary, #0057D9);
}

.sp-breadcrumb__sep {
	color: var(--potf-muted, #8A9AB3);
	font-size: var(--sp-font-eyebrow);
}

.sp-breadcrumb [aria-current] {
	color: var(--potf-secondary, #0B1F3A);
	font-weight: 600;
}

/* --- Detail Layout --- */
.sp-detail {
	padding: 40px 24px 64px;
}

.sp-detail__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 56px;
	align-items: start;
}

/* --- Gallery --- */
.sp-gallery__main {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
	background: #ECEAED;
	border-radius: 20px;
	overflow: hidden;
}

.sp-gallery__image {
	--sp-zoom-x: 50%;
	--sp-zoom-y: 50%;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 480px;
	object-fit: contain;
	transform: scale(1);
	transform-origin: var(--sp-zoom-x) var(--sp-zoom-y);
	transition: opacity 300ms ease, transform 180ms ease-out;
	will-change: transform;
}

.sp-gallery__main--hover-zoom {
	cursor: zoom-in;
}

.sp-gallery__main--hover-zoom.is-zooming .sp-gallery__image {
	transform: scale(2.25);
}

.sp-gallery__main--hover-zoom .sp-gallery__zoom {
	z-index: 3;
	cursor: pointer;
}

.sp-gallery__badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 2;
	padding: 6px 14px;
	border-radius: 8px;
	font-size: var(--sp-font-eyebrow);
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.sp-gallery__badge--sale {
	background: #e8f8ee;
	color: #1a8a4a;
}

.sp-gallery__thumbs {
	display: flex;
	gap: 10px;
	margin-top: 16px;
}

.sp-gallery__thumb {
	width: 72px;
	height: 72px;
	padding: 4px;
	border: 2px solid transparent;
	border-radius: 12px;
	background: #f6f9ff;
	cursor: pointer;
	overflow: hidden;
	transition: border-color 200ms ease, transform 200ms ease;
}

.sp-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 8px;
}

.sp-gallery__thumb:hover {
	border-color: rgba(0, 87, 217, 0.3);
}

.sp-gallery__thumb.is-active {
	border-color: var(--potf-primary, #0057D9);
	transform: scale(1.04);
}

/* --- Product Info --- */
.sp-info__category {
	margin-bottom: 12px;
	font-size: var(--sp-font-meta);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.sp-info__category a {
	color: var(--potf-primary, #0057D9);
	text-decoration: none;
}

.sp-info__category a:hover {
	text-decoration: underline;
}

.sp-info__title {
	margin: 0;
	font-family: var(--potf-font-heading, "Inter", sans-serif);
	font-size: var(--potf-type-content-title);
	font-weight: 800;
	color: var(--potf-secondary, #0B1F3A);
	line-height: 1.2;
}

.sp-info__sku {
	margin: 8px 0 0;
	font-size: var(--sp-font-meta);
	color: var(--potf-muted, #8A9AB3);
}

.sp-info__sku strong {
	color: var(--potf-text-soft, #5F6F89);
}

/* Rating */
.sp-info__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
}

.sp-info__stars {
	display: flex;
	gap: 2px;
	color: #fbbf24;
}

.sp-info__star:not(.is-filled) {
	color: #d1d5db;
}

.sp-info__review-count {
	font-size: var(--sp-font-meta);
	color: var(--potf-text-soft, #5F6F89);
}

/* Price */
.sp-info__price {
	margin-top: 20px;
	font-family: var(--potf-font-heading, "Inter", sans-serif);
	font-size: var(--sp-font-price);
	font-weight: 800;
	color: var(--potf-secondary, #0B1F3A);
}

.sp-info__price del {
	font-size: var(--sp-font-old-price);
	font-weight: 500;
	color: var(--potf-muted, #8A9AB3);
	margin-right: 8px;
}

.sp-info__price ins {
	text-decoration: none;
	color: var(--potf-primary, #0057D9);
}

/* Description */
.sp-info__description {
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid rgba(0, 87, 217, 0.08);
	font-size: var(--sp-font-body);
	line-height: 1.75;
	color: var(--potf-text-soft, #5F6F89);
}

/* Stock */
.sp-info__stock {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: var(--sp-font-meta);
	font-weight: 600;
}

.sp-info__stock--in {
	background: #eaf4ff;
	color: #0758d1;
}

.sp-info__stock--out {
	background: #fef2f2;
	color: #dc2626;
}

.sp-info__stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	animation: stock-pulse 2s ease infinite;
}

@keyframes stock-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.sp-info__stock--out .sp-info__stock-dot {
	animation: none;
}

/* --- Add to Cart Form --- */
.sp-cart-form {
	display: flex;
	align-items: flex-end;
	gap: 16px;
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 87, 217, 0.08);
}

.sp-cart-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: var(--sp-font-label);
	font-weight: 600;
	color: var(--potf-text-soft, #5F6F89);
}

.sp-cart-form__qty-wrap {
	display: flex;
	align-items: stretch;
	border: 1px solid rgba(0, 87, 217, 0.15);
	border-radius: 12px;
	overflow: hidden;
}

.sp-cart-form__qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	border: 0;
	background: #f8faff;
	color: var(--potf-secondary, #0B1F3A);
	font-size: 20px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 200ms ease;
}

.sp-cart-form__qty-btn:hover {
	background: var(--potf-primary-light, #EAF4FF);
}

.sp-cart-form__qty-input {
	width: 56px;
	padding: 10px 4px;
	border: 0;
	border-left: 1px solid rgba(0, 87, 217, 0.1);
	border-right: 1px solid rgba(0, 87, 217, 0.1);
	background: #fff;
	text-align: center;
	font-family: inherit;
	font-size: var(--sp-font-control);
	font-weight: 600;
	color: var(--potf-secondary, #0B1F3A);
	-moz-appearance: textfield;
}

.sp-cart-form__qty-input::-webkit-inner-spin-button,
.sp-cart-form__qty-input::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.sp-cart-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	flex: 1;
	min-height: 50px;
	padding: 0 32px;
	border: 0;
	border-radius: 12px;
	background: var(--potf-primary, #0057D9);
	color: #ffffff;
	font-family: var(--potf-font-body, "Inter", sans-serif);
	font-size: var(--sp-font-action);
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 87, 217, 0.3);
	transition: background-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.sp-cart-form__submit:hover {
	background: #003f9f;
	transform: translateY(-2px);
	box-shadow: 0 6px 24px rgba(0, 87, 217, 0.4);
}

/* --- Attributes / Specs --- */
.sp-attributes {
	margin-top: 28px;
	padding-top: 24px;
	border-top: 1px solid rgba(0, 87, 217, 0.08);
}

.sp-attributes__title {
	margin: 0 0 14px;
	font-family: var(--potf-font-heading, "Inter", sans-serif);
	font-size: var(--sp-font-small-heading);
	font-weight: 700;
	color: var(--potf-secondary, #0B1F3A);
}

.sp-attributes__list {
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sp-attributes__row {
	display: flex;
	padding: 10px 0;
	border-bottom: 1px solid rgba(0, 87, 217, 0.05);
}

.sp-attributes__row dt {
	flex: 0 0 140px;
	font-size: var(--sp-font-meta);
	font-weight: 600;
	color: var(--potf-text-soft, #5F6F89);
}

.sp-attributes__row dd {
	margin: 0;
	font-size: var(--sp-font-meta);
	font-weight: 500;
	color: var(--potf-secondary, #0B1F3A);
}

/* ======================================================================
   Redesigned Product Purchase Area
   ====================================================================== */
.sp-detail__layout {
	grid-template-columns: minmax(0, 1.08fr) minmax(380px, .92fr);
	gap: clamp(36px, 5vw, 72px);
	align-items: stretch;
}

.sp-gallery {
	height: 100%;
}

.sp-gallery--with-thumbs {
	display: grid;
	grid-template-columns: 76px minmax(0, 1fr);
	align-items: stretch;
	gap: 16px;
}

.sp-gallery__main {
	height: 100%;
	min-height: 500px;
	box-sizing: border-box;
	padding: 34px;
	border-radius: 18px;
}

.sp-gallery__image {
	max-height: 430px;
}

.sp-gallery__thumbs {
	display: flex;
	margin: 0;
	flex-direction: column;
	gap: 12px;
}

.sp-gallery__thumb,
.sp-gallery__more {
	width: 72px;
	height: 72px;
	box-sizing: border-box;
	flex: 0 0 72px;
}

.sp-gallery__more {
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #dbe5f2;
	border-radius: 12px;
	background: #fff;
	color: #31415b;
	font-size: var(--sp-font-meta);
	font-weight: 700;
}

.sp-gallery__zoom {
	position: absolute;
	top: 18px;
	right: 18px;
	width: 42px;
	height: 42px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #29405e;
	box-shadow: 0 6px 18px rgba(31, 55, 87, .12);
	cursor: pointer;
}

.sp-gallery__zoom svg {
	width: 20px;
	height: 20px;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sp-info--redesigned .sp-info__stock {
	margin: 0 0 12px;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: var(--sp-font-eyebrow);
	letter-spacing: .04em;
	text-transform: uppercase;
}

.sp-info--redesigned .sp-info__title {
	font-size: var(--potf-type-page-title);
}

.sp-info--redesigned .sp-info__category {
	margin: 14px 0 0;
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	color: #708096;
	font-size: var(--sp-font-meta);
	font-weight: 500;
	letter-spacing: 0;
	text-transform: none;
}

.sp-info--redesigned .sp-info__category-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #31415b;
	font-weight: 700;
}

.sp-info__category-label svg {
	width: 17px;
	height: 17px;
	color: #0758d1;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sp-info__category-list {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	list-style: none;
}

.sp-info__category-list li {
	margin: 0;
	padding: 0;
}

.sp-info--redesigned .sp-info__category-list a {
	padding: 6px 11px;
	display: inline-flex;
	align-items: center;
	border: 1px solid #d6e6fb;
	border-radius: 999px;
	background: #eef5ff;
	color: #0758d1;
	font-size: var(--sp-font-meta);
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	text-decoration: none;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.sp-info--redesigned .sp-info__category-list a:hover {
	border-color: #0758d1;
	background: #0758d1;
	color: #ffffff;
	text-decoration: none;
}

.sp-info--redesigned .sp-info__rating strong {
	color: #0758d1;
	font-size: var(--sp-font-meta);
}

.sp-info--redesigned .sp-info__star {
	width: 17px;
	height: 17px;
}

.sp-info--redesigned .sp-info__description {
	margin-top: 14px;
	padding: 0;
	border: 0;
}

.sp-info__benefits {
	margin: 22px 0 0;
	padding: 20px 0 0;
	display: grid;
	gap: 14px;
	border-top: 1px solid #e6edf6;
	list-style: none;
}

.sp-info__benefits li {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	color: #172033;
	font-size: var(--sp-font-body);
	line-height: 1.5;
}

.sp-info__benefits strong {
	color: #0b1f3a;
	font-weight: 750;
}

.sp-info__benefit-check {
	width: 19px;
	height: 19px;
	margin-top: 2px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 19px;
	border-radius: 50%;
	background: #20bf63;
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.sp-cart-form.sp-cart-form--redesigned {
	display: block;
	margin-top: 24px;
	padding: 0;
	border: 0;
}

.sp-cart-form--redesigned .sp-cart-form__quantity {
	width: fit-content;
	margin-top: 18px;
}

.sp-cart-form input.sp-cart-form__qty-input[type="number"] {
	width: 56px;
	min-height: 42px;
	padding: 0 4px;
	border: 0;
	border-right: 1px solid rgba(0, 87, 217, .1);
	border-left: 1px solid rgba(0, 87, 217, .1);
	border-radius: 0;
}

.sp-info--redesigned .sp-info__price {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: var(--sp-font-price);
}

.sp-info__price [data-sp-price-value] {
	transition: opacity .2s ease;
}

.sp-info__price-loader {
	width: 18px;
	height: 18px;
	display: none;
	box-sizing: border-box;
	border: 2px solid #cfe0f8;
	border-top-color: #0758d1;
	border-radius: 50%;
	animation: sp-price-spin .7s linear infinite;
}

.sp-info__price.is-updating [data-sp-price-value] {
	opacity: .45;
}

.sp-info__price.is-updating .sp-info__price-loader {
	display: inline-block;
}

@keyframes sp-price-spin {
	to { transform: rotate(360deg); }
}

.sp-cart-form__actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-top: 20px;
	gap: 12px;
}

.sp-cart-form--redesigned .sp-cart-form__submit,
.sp-cart-form__buy-now {
	width: 100%;
	min-height: 50px;
	box-sizing: border-box;
	padding: 0 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	border-radius: 9px;
	font-size: var(--sp-font-action);
	font-weight: 800;
	letter-spacing: .03em;
	text-transform: uppercase;
	white-space: nowrap;
	cursor: pointer;
}

.sp-cart-form--redesigned .sp-cart-form__submit svg {
	width: 18px;
	height: 18px;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sp-cart-form__buy-now {
	border: 2px solid #0758d1;
	background: #fff;
	color: #0758d1;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.sp-cart-form__buy-now:hover,
.sp-cart-form__buy-now:focus-visible {
	border-color: #0758d1;
	background: #0758d1;
	color: #ffffff;
}

.sp-info__promises {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: 24px;
	gap: 14px;
}

.sp-info__promise {
	display: flex;
	align-items: center;
	gap: 11px;
}

.sp-info__promise svg {
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	color: #6d8fd8;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sp-info__promise span {
	color: #526077;
	font-size: var(--sp-font-trust-text);
	line-height: 1.4;
}

.sp-info__promise strong {
	display: block;
	color: #31415b;
	font-size: var(--sp-font-trust-title);
	font-weight: 600;
}

.sp-trust {
	padding: 0 24px 64px;
}

.sp-trust__inner {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding: 24px 30px;
	border: 1px solid #e1e8f2;
	border-radius: 14px;
	box-shadow: 0 10px 28px rgba(32, 71, 121, .08);
}

.sp-trust__item {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	padding: 0 26px;
	align-items: center;
	gap: 12px;
	border-right: 1px solid #e1e8f2;
}

.sp-trust__item:first-child { padding-left: 0; }
.sp-trust__item:last-child { padding-right: 0; border-right: 0; }

.sp-trust__item svg {
	width: 34px;
	height: 34px;
	color: #0758d1;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sp-trust__item span {
	color: #708096;
	font-size: var(--sp-font-trust-text);
	line-height: 1.4;
}

.sp-trust__item strong {
	display: block;
	color: #25334a;
	font-size: var(--sp-font-trust-title);
}

.sp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	padding: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(6, 18, 38, .82);
	backdrop-filter: blur(4px);
}

.sp-lightbox[hidden] { display: none; }

.sp-lightbox img {
	max-width: min(100%, 1100px);
	max-height: calc(100vh - 80px);
	object-fit: contain;
	border-radius: 12px;
}

.sp-lightbox__close {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 38px;
	cursor: pointer;
}

/* ======================================================================
   Tabs Section
   ====================================================================== */
.sp-tabs-section {
	padding: 0 24px 72px;
	background: #fff;
}

.sp-tabs {
	overflow: hidden;
	border: 1px solid #e1eaf6;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 38px rgba(32, 71, 121, .08);
}

.sp-description__header {
	padding: 28px 42px 24px;
	border-bottom: 1px solid #e1eaf6;
	background: linear-gradient(135deg, #f3f8ff 0%, #fff 72%);
}

.sp-description__header span {
	display: inline-block;
	margin-bottom: 8px;
	color: #0758d1;
	font-size: var(--sp-font-eyebrow);
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sp-description__header h2 {
	margin: 0;
	color: #0b1f3a;
	font-family: var(--potf-font-heading, "Inter", sans-serif);
	font-size: var(--potf-type-content-title);
	font-weight: 800;
	line-height: 1.2;
}

.sp-tabs__nav {
	display: flex;
	gap: 8px;
	margin: 0;
	padding: 12px;
	border-bottom: 1px solid #e1eaf6;
	background: #f3f7fd;
}

.woocommerce .sp-tabs .sp-tabs__tab {
	min-height: 44px;
	box-sizing: border-box;
	margin: 0;
	padding: 0 22px;
	border: 1px solid transparent;
	border-radius: 10px;
	appearance: none;
	background: transparent;
	color: var(--potf-text-soft, #5F6F89);
	font-family: var(--potf-font-body, "Inter", sans-serif);
	font-size: var(--sp-font-tab);
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.woocommerce .sp-tabs .sp-tabs__tab:hover {
	border-color: #c9dcf6;
	background: #e9f2ff;
	color: var(--potf-primary, #0057D9);
}

.woocommerce .sp-tabs .sp-tabs__tab.is-active,
.woocommerce .sp-tabs .sp-tabs__tab.is-active:hover {
	border-color: #0758d1;
	background: #0758d1;
	color: #fff;
	box-shadow: 0 7px 18px rgba(7, 88, 209, .2);
}

.woocommerce .sp-tabs .sp-tabs__tab:focus-visible {
	outline: 3px solid rgba(7, 88, 209, .2);
	outline-offset: 2px;
}

.sp-tabs__panel {
	display: none;
}

.sp-tabs__panel.is-active {
	display: block;
	animation: sp-tab-panel-in .24s ease;
}

@keyframes sp-tab-panel-in {
	from { opacity: 0; transform: translateY(5px); }
	to { opacity: 1; transform: translateY(0); }
}

.sp-tabs__content {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
	padding: 38px 42px 44px;
	font-size: var(--sp-font-content);
	line-height: 1.85;
	color: var(--potf-text, #172033);
}

.sp-tabs__content p {
	margin: 0 0 18px;
}

.sp-tabs__content > :first-child {
	margin-top: 0;
}

.sp-tabs__content > :last-child {
	margin-bottom: 0;
}

.sp-tabs__content h2,
.sp-tabs__content h3,
.sp-tabs__content h4 {
	color: #0b1f3a;
	font-family: var(--potf-font-heading, "Inter", sans-serif);
	font-weight: 700;
	line-height: 1.25;
}

.sp-tabs__content h2 {
	margin: 34px 0 18px;
	padding-bottom: 13px;
	border-bottom: 1px solid #dce6f3;
	font-size: clamp(25px, 2.1vw, 31px);
}

.sp-tabs__content h3 {
	margin: 28px 0 14px;
	font-size: clamp(21px, 1.8vw, 25px);
}

.sp-tabs__content h4 {
	margin: 24px 0 12px;
	font-size: var(--sp-font-small-heading);
}

.sp-tabs__content ul,
.sp-tabs__content ol {
	margin: 0 0 22px;
	padding-left: 24px;
}

.sp-tabs__content li {
	margin-bottom: 8px;
	padding-left: 4px;
}

.sp-tabs__content li::marker {
	color: #0758d1;
	font-weight: 700;
}

.sp-tabs__content strong {
	color: #0b1f3a;
}

.sp-tabs__content a {
	color: #0758d1;
	font-weight: 600;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.sp-tabs__content hr {
	margin: 28px 0;
	border: 0;
	border-top: 1px solid #dce6f3;
}

.sp-tabs__table {
	width: calc(100% - 84px);
	margin: 38px 42px 44px;
	border-collapse: separate;
	border-spacing: 0;
	max-width: 760px;
	overflow: hidden;
	border: 1px solid #e1eaf6;
	border-radius: 12px;
}

.sp-tabs__panel > #reviews {
	box-sizing: border-box;
	padding: 38px 42px 44px;
	font-size: var(--sp-font-content);
}

.sp-tabs__table th,
.sp-tabs__table td {
	padding: 12px 16px;
	border-bottom: 1px solid rgba(0, 87, 217, 0.06);
	font-size: var(--sp-font-table);
	text-align: left;
}

.sp-tabs__table th {
	font-weight: 600;
	color: var(--potf-text-soft, #5F6F89);
	width: 40%;
}

.sp-tabs__table td {
	color: var(--potf-secondary, #0B1F3A);
	font-weight: 500;
}

/* ======================================================================
   Related Products Section
   ====================================================================== */
.sp-related {
	padding: 64px 24px 34px;
	background: transparent;
}

.sp-related__header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 28px;
}

.sp-related__eyebrow {
	display: block;
	margin-bottom: 5px;
	color: #0758d1;
	font-size: var(--sp-font-eyebrow);
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.sp-related__heading {
	margin: 0;
	font-family: var(--potf-font-heading, "Inter", sans-serif);
	font-size: var(--potf-type-content-title);
	font-weight: 800;
	color: var(--potf-secondary, #0B1F3A);
}

.sp-related__view-all {
	min-height: 42px;
	box-sizing: border-box;
	padding: 0 24px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background: #0758d1;
	color: #fff;
	font-size: var(--sp-font-action);
	font-weight: 800;
	letter-spacing: .04em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
	box-shadow: 0 6px 16px rgba(7, 88, 209, .2);
	transition: background-color .2s ease, transform .2s ease;
}

.sp-related__view-all:hover {
	background: #0649ac;
	color: #fff;
	transform: translateY(-1px);
}

.sp-related__carousel {
	position: relative;
}

.sp-related__grid {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(260px, 20.5vw, 280px);
	grid-template-columns: none;
	gap: 16px;
	overflow-x: auto;
	overflow-y: hidden;
	padding: 4px 2px 12px;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}

.sp-related__grid::-webkit-scrollbar {
	display: none;
}

.sp-related__grid .product-card {
	min-width: 0;
	scroll-snap-align: start;
	border-color: #dfe8f4;
	border-radius: 14px;
}

.sp-related .product-card__image-wrap {
	height: 205px;
	box-sizing: border-box;
	padding: 22px;
}

.sp-related .product-card__image {
	max-height: 165px;
}

.sp-related .product-card__info {
	padding: 17px 16px 18px;
}

.sp-related .product-card__title {
	min-height: 42px;
	font-size: var(--sp-font-card-title);
	line-height: 1.35;
}

.sp-related .product-card__price {
	padding-top: 8px;
	font-size: var(--sp-font-card-price);
}

.sp-related .product-card__actions {
	margin-top: 10px;
}

.sp-related .product-card__cart-icon {
	display: none;
}

.woocommerce .sp-related .product-card__button--cart {
	width: auto;
	height: 38px;
	min-width: 126px;
	min-height: 38px;
	box-sizing: border-box;
	padding: 0 18px !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 999px;
	background: #0758d1;
	color: #fff;
	font-size: var(--sp-font-action);
	line-height: 1 !important;
	text-align: center;
	vertical-align: middle;
	box-shadow: 0 4px 12px rgba(7, 88, 209, .2);
}

.woocommerce .sp-related .product-card__button--cart:hover {
	background: #0649ac;
	color: #fff;
}

.sp-related__arrow {
	position: absolute;
	top: 50%;
	z-index: 4;
	width: 38px;
	height: 38px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #dce6f3;
	border-radius: 50%;
	background: #fff;
	color: #0758d1;
	box-shadow: 0 5px 16px rgba(32, 71, 121, .12);
	cursor: pointer;
	transform: translateY(-50%);
	transition: opacity .2s ease, background-color .2s ease;
}

.sp-related__arrow--prev { left: -19px; }
.sp-related__arrow--next { right: -19px; }

.sp-related__arrow svg {
	width: 19px;
	height: 19px;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sp-related__arrow:hover:not(:disabled) {
	background: #edf5ff;
}

.sp-related__arrow:disabled {
	opacity: 0;
	pointer-events: none;
}

/* ======================================================================
   Responsive
   ====================================================================== */
@media (max-width: 1024px) {
	.page-template-single-product {
		--sp-font-breadcrumb: 16px;
		--sp-font-eyebrow: 13px;
		--sp-font-meta: 15px;
		--sp-font-body: 17px;
		--sp-font-label: 16px;
		--sp-font-control: 17px;
		--sp-font-action: 15px;
		--sp-font-price: 36px;
		--sp-font-old-price: 22px;
		--sp-font-small-heading: 19px;
		--sp-font-tab: 16px;
		--sp-font-content: 17px;
		--sp-font-table: 16px;
		--sp-font-trust-title: 15px;
		--sp-font-trust-text: 14px;
		--sp-font-card-title: 17px;
		--sp-font-card-price: 19px;
	}
}

@media (max-width: 767px) {
	.page-template-single-product {
		--sp-font-breadcrumb: 15px;
		--sp-font-eyebrow: 12px;
		--sp-font-meta: 14px;
		--sp-font-body: 16px;
		--sp-font-label: 15px;
		--sp-font-action: 14px;
		--sp-font-price: 32px;
		--sp-font-old-price: 20px;
		--sp-font-small-heading: 18px;
		--sp-font-tab: 15px;
		--sp-font-content: 16px;
		--sp-font-table: 15px;
		--sp-font-trust-title: 15px;
		--sp-font-trust-text: 14px;
		--sp-font-card-title: 16px;
		--sp-font-card-price: 18px;
	}
}

@media (max-width: 960px) {
	.sp-detail__layout {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.sp-gallery,
	.sp-gallery__main {
		height: auto;
	}

	.sp-related__grid { grid-auto-columns: calc((100% - 32px) / 3); }

	.sp-gallery,
	.sp-info--redesigned {
		width: 100%;
		max-width: 760px;
		margin-inline: auto;
	}

	.sp-trust__inner {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0;
	}

	.sp-trust__item {
		padding: 20px;
		border-right: 0;
		border-bottom: 1px solid #e1e8f2;
	}

	.sp-trust__item:nth-child(odd) { border-right: 1px solid #e1e8f2; }
	.sp-trust__item:nth-last-child(-n + 2) { border-bottom: 0; }
}

@media (max-width: 768px) {
	.sp-detail {
		padding: 28px 16px 48px;
	}

	.sp-breadcrumb {
		padding: 16px 16px 0;
	}

	.sp-gallery__main {
		padding: 28px;
		min-height: 420px;
	}

	.sp-gallery__image {
		max-height: 360px;
	}

	.sp-gallery__thumb {
		width: 60px;
		height: 60px;
	}

	.sp-gallery {
		display: flex;
		flex-direction: column;
	}

	.sp-gallery__main { order: 1; width: 100%; }
	.sp-gallery__thumbs {
		order: 2;
		width: 100%;
		flex-direction: row;
		overflow-x: auto;
	}

	.sp-gallery__more {
		width: 60px;
		height: 60px;
		flex-basis: 60px;
	}

	.sp-cart-form {
		flex-direction: column;
		align-items: stretch;
	}

	.sp-tabs-section {
		padding: 0 16px 48px;
	}

	.sp-tabs__nav {
		overflow-x: auto;
		flex-wrap: nowrap;
		-webkit-overflow-scrolling: touch;
	}

	.woocommerce .sp-tabs .sp-tabs__tab {
		white-space: nowrap;
		padding: 0 18px;
		font-size: var(--sp-font-tab);
	}

	.sp-tabs__content,
	.sp-tabs__panel > #reviews {
		padding: 28px 24px 32px;
	}

	.sp-description__header {
		padding: 24px;
	}

	.sp-tabs__table {
		width: calc(100% - 48px);
		margin: 28px 24px 32px;
	}

	.sp-related {
		padding: 48px 16px 30px;
	}

	.sp-related__grid {
		grid-auto-columns: calc((100% - 16px) / 2);
		grid-template-columns: none;
		gap: 16px;
	}

	.sp-related__arrow--prev { left: -10px; }
	.sp-related__arrow--next { right: -10px; }

	.sp-trust { padding-inline: 16px; }
}

@media (max-width: 640px) {
	.sp-related__header {
		align-items: flex-start;
		flex-direction: column;
		gap: 16px;
		margin-bottom: 24px;
	}

	.sp-related__header > div {
		width: 100%;
	}

	.sp-related__view-all {
		width: 100%;
		max-width: 240px;
	}
}

@media (max-width: 480px) {
	.sp-tabs {
		border-radius: 14px;
	}

	.sp-tabs__nav {
		padding: 8px;
	}

	.woocommerce .sp-tabs .sp-tabs__tab {
		min-height: 40px;
		padding: 0 14px;
	}

	.sp-tabs__content,
	.sp-tabs__panel > #reviews {
		padding: 24px 18px 28px;
		font-size: var(--sp-font-content);
	}

	.sp-description__header {
		padding: 22px 18px;
	}

	.sp-tabs__table {
		width: calc(100% - 36px);
		margin: 24px 18px 28px;
	}

	.sp-related__header {
		margin-bottom: 22px;
	}

	.sp-related__view-all {
		max-width: none;
		min-height: 38px;
		padding: 0 18px;
	}

	.sp-related__grid {
		grid-auto-columns: min(82%, 280px);
		grid-template-columns: none;
		max-width: none;
	}

	.sp-gallery__thumbs {
		gap: 6px;
	}

	.sp-gallery__thumb {
		width: 52px;
		height: 52px;
	}

	.sp-info__promises,
	.sp-trust__inner {
		grid-template-columns: 1fr;
	}

	.sp-cart-form__actions {
		gap: 8px;
	}

	.sp-cart-form--redesigned .sp-cart-form__submit,
	.sp-cart-form__buy-now {
		padding-inline: 12px;
	}

	.sp-trust__item,
	.sp-trust__item:first-child,
	.sp-trust__item:last-child,
	.sp-trust__item:nth-child(odd),
	.sp-trust__item:nth-last-child(-n + 2) {
		padding: 18px 0;
		border-right: 0;
		border-bottom: 1px solid #e1e8f2;
	}

	.sp-trust__item:last-child { border-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.sp-gallery__image,
	.sp-gallery__thumb,
	.sp-cart-form__submit,
	.sp-tabs__tab,
	.sp-info__stock-dot {
		transition: none;
		animation: none;
	}

	.sp-gallery__main--hover-zoom.is-zooming .sp-gallery__image {
		transition: none;
	}
}
