/* =========================================================
   Theme4 — Product detail
   ========================================================= */

.t4-product {
	--t4-buy-green: #2EBF6B;
	--t4-buy-green-hover: #26A85C;
	--t4-viewer-bg: #F3F0FF;
	--t4-viewer-text: #6B5CE7;
}

body#product .sm-page-wrap > .sm-breadcrumb {
	display: none;
}

.t4-product__toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.t4-product__crumb {
	min-width: 0;
	flex: 1;
}

.t4-product__crumb .sm-breadcrumb {
	margin: 0;
}

.t4-product__pager {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.t4-product__pager-btn {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--border, #EDEDED);
	border-radius: 8px;
	background: var(--white, #fff);
	color: var(--text-muted, #7E7E7E);
	text-decoration: none;
	transition: color 250ms ease, border-color 250ms ease, background 250ms ease;
}

.t4-product__pager-btn:hover:not(.is-disabled) {
	color: var(--primary, #3D47D9);
	border-color: var(--primary, #3D47D9);
}

.t4-product__pager-btn.is-disabled {
	opacity: 0.4;
	pointer-events: none;
}

.product-showcase.t4-product__showcase {
	margin-bottom: 1.5rem;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.t4-product__inner {
	padding: 0;
}

.t4-product__media {
	position: relative;
	height: 100%;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
}

.t4-product__gallery-main {
	position: relative;
	width: 100%;
	min-height: 420px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--background, #F8F9FA);
	border-radius: 12px;
	overflow: hidden;
}

.t4-product__image,
.t4-product__gallery-main img {
	width: auto;
	max-width: 100%;
	max-height: 480px;
	object-fit: contain;
	mix-blend-mode: normal;
}

.t4-product__expand {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 4;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border, #EDEDED);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.96);
	color: var(--text-muted, #7E7E7E);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: color 250ms ease, border-color 250ms ease;
}

.t4-product__expand:hover {
	color: var(--primary, #3D47D9);
	border-color: var(--primary, #3D47D9);
}

.product-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	width: 36px;
	height: 36px;
	border: 1px solid var(--border, #EDEDED);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	color: var(--text, #1A1A1A);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-gallery__nav:hover {
	background: #fff;
	border-color: var(--primary, #3D47D9);
	color: var(--primary, #3D47D9);
}

.product-gallery__nav--prev { left: 10px; }
.product-gallery__nav--next { right: 10px; }

.product-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-start;
	width: 100%;
	margin-top: 12px;
}

.product-gallery__thumb {
	width: 56px;
	height: 56px;
	padding: 4px;
	border: 2px solid var(--border, #EDEDED);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}

.product-gallery__thumb.active {
	border-color: var(--primary, #3D47D9);
}

.product-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.t4-product__buybox {
	position: relative;
	height: 100%;
	padding: 4px 0 0;
	border-radius: 0;
	background: transparent;
}

.t4-product__discount,
.discount-badge.t4-product__discount {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	width: 48px;
	height: 48px;
	padding: 0;
	border-radius: 50%;
	background: var(--primary, #3D47D9);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

.t4-product__heading {
	padding: 0 0 0 58px;
	border-bottom: 0;
	min-height: 48px;
}

.t4-product__heading .product-brand-link {
	display: inline-block;
	margin-bottom: 0.35rem;
	color: var(--text-muted, #7E7E7E);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-decoration: none;
	text-transform: uppercase;
}

.t4-product__heading h1 {
	margin: 0;
	color: var(--text, #1A1A1A);
	font-size: clamp(1.35rem, 2.2vw, 1.75rem);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.t4-product__excerpt {
	margin: 14px 0 0;
	color: var(--text-muted, #7E7E7E);
	font-size: 0.9rem;
	line-height: 1.6;
}

.t4-product__sku {
	margin: 10px 0 0;
	color: #A0A0A0;
	font-size: 0.8125rem;
}

.t4-product__prices {
	display: block;
	padding: 16px 0 8px;
}

.t4-product__prices .old-price,
.old-price {
	text-decoration: line-through;
	color: #B0B0B0;
	font-size: 0.95rem;
	margin-bottom: 2px;
}

.t4-product__prices .current-price,
.current-price {
	color: var(--primary, #3D47D9);
	font-size: clamp(1.6rem, 2.5vw, 2rem);
	font-weight: 700;
	line-height: 1.15;
}

.product-variation-label {
	display: flex;
	align-items: baseline;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
	color: var(--text, #1A1A1A);
}

.product-variation-selected {
	font-weight: 500;
	color: var(--text-muted, #7E7E7E);
}

.product-variation-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.product-variation-option {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.5rem;
	padding: 0.4rem 0.9rem;
	border: 1.5px solid var(--border, #EDEDED);
	border-radius: 8px;
	background: #fff;
	color: var(--text, #1A1A1A);
	font-size: 0.875rem;
	font-weight: 500;
	line-height: 1.2;
	cursor: pointer;
	transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.product-variation-option:hover:not(:disabled):not(.active) {
	border-color: #C8C8C8;
	background: var(--background, #F8F9FA);
}

.product-variation-option.active {
	background: var(--primary, #3D47D9);
	border-color: var(--primary, #3D47D9);
	color: #fff;
	box-shadow: none;
}

.product-variation-option:disabled {
	opacity: 0.38;
	cursor: not-allowed;
	text-decoration: line-through;
}

.product-variation-group {
	width: 100%;
	float: none;
}

.t4-product__actions {
	display: flex;
	align-items: stretch;
	gap: 10px;
	margin: 1rem 0 1.1rem;
}

.qty-picker {
	display: flex;
	align-items: stretch;
	min-height: 48px;
	border: 1px solid var(--border, #EDEDED);
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	flex-shrink: 0;
}

.qty-btn {
	background: #fff;
	border: none;
	min-width: 36px;
	padding: 0 10px;
	font-size: 1.1rem;
	color: var(--text-muted, #7E7E7E);
	cursor: pointer;
}

.qty-btn:hover {
	color: var(--primary, #3D47D9);
}

.qty-input {
	width: 40px;
	border: none;
	text-align: center;
	font-weight: 700;
	color: var(--text, #1A1A1A);
	background: transparent;
}

.t4-product__cart,
.t4-product__actions .cart-button {
	flex: 1;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	background: var(--primary, #3D47D9);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 250ms ease;
}

.t4-product__cart:hover,
.t4-product__actions .cart-button:hover {
	background: var(--primary-hover, #3239C4);
	color: #fff;
}

.t4-product__cart:disabled,
.t4-product__buynow:disabled {
	opacity: 0.55;
	cursor: not-allowed;
}

.t4-product__buynow {
	flex: 1;
	min-height: 48px;
	border: 0;
	border-radius: 8px;
	background: var(--t4-buy-green);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	padding: 0 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 250ms ease;
}

.t4-product__buynow:hover {
	background: var(--t4-buy-green-hover);
	color: #fff;
}

.t4-product__utils {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

.t4-product__fav {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	color: var(--text-muted, #7E7E7E);
	font-size: 0.875rem;
	font-weight: 500;
	padding: 0;
	cursor: pointer;
	transition: color 250ms ease;
}

.t4-product__fav:hover,
.t4-product__fav.is-active,
.t4-product__fav.active {
	color: #EF4444;
}

.t4-product__share {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--text-muted, #7E7E7E);
	font-size: 0.875rem;
}

.t4-product__share a {
	color: var(--text-muted, #7E7E7E);
	display: inline-flex;
	transition: color 250ms ease;
}

.t4-product__share a:hover {
	color: var(--primary, #3D47D9);
}

.t4-product__notice {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 10px;
	font-size: 0.875rem;
}

.t4-product__notice-icon {
	display: inline-flex;
	flex-shrink: 0;
}

.t4-product__notice--viewers {
	background: var(--t4-viewer-bg);
	color: var(--t4-viewer-text);
	font-weight: 600;
}

.t4-product__notice--viewers .t4-product__notice-icon {
	color: var(--t4-viewer-text);
}

.t4-product__notice--delivery {
	background: #fff;
	border: 1px solid var(--border, #EDEDED);
	color: var(--text, #1A1A1A);
}

.t4-product__notice--delivery .t4-product__notice-icon {
	color: var(--primary, #3D47D9);
}

.t4-product__notice--delivery strong {
	font-weight: 700;
	font-size: 0.9rem;
}

.t4-product__payments {
	margin-top: 18px;
	padding-top: 4px;
}

.t4-product__payments-label {
	display: block;
	margin-bottom: 10px;
	color: var(--text-muted, #7E7E7E);
	font-size: 0.875rem;
	font-weight: 600;
}

.t4-product__payments-list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.t4-pay-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 30px;
	padding: 0 8px;
	border: 1px solid var(--border, #EDEDED);
	border-radius: 6px;
	background: #fff;
}

.t4-pay-logo--eft {
	background: #1E3A8A;
	border-color: #1E3A8A;
	color: #fff;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	padding: 0 10px;
}

.t4-product__alert {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 14px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--text-muted, #7E7E7E);
	font-size: 0.8125rem;
	cursor: pointer;
	transition: color 250ms ease;
}

.t4-product__alert:hover {
	color: var(--primary, #3D47D9);
}

.t4-product__tabs,
.product-content-tabs.t4-product__tabs {
	margin-bottom: 2rem;
	border: 1px solid var(--border, #EDEDED);
	border-radius: 12px;
	background: #fff;
	overflow: hidden;
}

.t4-product__tabs .nav-tabs {
	gap: 0.5rem;
	padding: 0.75rem 1rem 0;
	border: 0;
	background: var(--background, #F8F9FA);
}

.t4-product__tabs .nav-link {
	border: 0;
	border-radius: 8px 8px 0 0;
	color: var(--text-muted, #7E7E7E);
	font-weight: 650;
}

.t4-product__tabs .nav-link.active {
	background: #fff;
	color: var(--primary, #3D47D9);
}

.product-tab-content {
	min-height: 140px;
	padding: clamp(1rem, 2.5vw, 1.75rem);
	background: #fff;
}

.product-label-badge {
	display: none;
}

@media (max-width: 991.98px) {
	.t4-product__gallery-main {
		min-height: 300px;
	}

	.t4-product__image,
	.t4-product__gallery-main img {
		max-height: 340px;
	}

	.product-gallery__thumbs {
		display: none;
	}

	.t4-product__heading {
		padding-left: 0px;
	}
}

@media (max-width: 575.98px) {
	.t4-product__toolbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.t4-product__actions {
		flex-wrap: wrap;
	}

	.qty-picker {
		width: 33%;
		justify-content: space-between;
	}

	.t4-product__cart,
	.t4-product__buynow {
		flex: 1 1 calc(50% - 5px);
		min-width: calc(50% - 5px);
	}

	.t4-product__utils {
		flex-direction: column;
		align-items: flex-start;
	}
}
