/* =====================================================
   Vendora — product detail page
   ===================================================== */

/* Breadcrumb styles live in cart.css (site-wide). */

/* ---------- Product archive ---------- */

.vd-prod-count {
	margin-left: 8px;
	display: inline-block;
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
	font-size: 12.5px;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 10px;
	vertical-align: middle;
}

.vd-products-empty {
	margin: 24px;
	padding: 48px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	text-align: center;
	color: var(--vd-text-3);
}

.vd-products-empty svg {
	color: var(--vd-text-3);
	opacity: .5;
}

.vd-products-empty b {
	font-size: 15px;
	color: var(--vd-text-2);
}

.vd-products-empty span {
	font-size: 13.5px;
}

/* ---------- Main column ---------- */

.vd-prod-col {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

/* ---------- Product card ---------- */

.vd-product {
	overflow: hidden;
}

.vd-prod-gallery {
	margin: 20px 24px 0;
	border-radius: var(--vd-radius-sm);
	overflow: hidden;
	background: var(--vd-inset);
}

.vd-prod-gallery img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
}

/* Carousel (multi-image): the box hugs the active image, so every
   picture shows in full with no side letterboxing. */
.vd-gal {
	position: relative;
}

.vd-gal .vd-gal-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0;
	transition: opacity .5s ease;
}

.vd-gal .vd-gal-slide.active {
	position: relative;
	height: auto;
	opacity: 1;
}

.vd-gal-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}

.vd-gal-dot {
	width: 9px;
	height: 9px;
	border: none;
	border-radius: 5px;
	padding: 0;
	cursor: pointer;
	background: rgba(255, 255, 255, .55);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: background .2s, width .2s, transform .2s;
}

.vd-gal-dot:hover {
	transform: scale(1.25);
	background: rgba(255, 255, 255, .85);
}

.vd-gal-dot.active {
	width: 22px;
	background: var(--vd-primary);
}

.vd-prod-head {
	padding: 20px 24px 24px;
}

.vd-prod-brand {
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vd-text-3);
}

.vd-prod-title {
	margin-top: 4px;
	font-size: 26px;
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.25;
}

.vd-prod-sub {
	margin-top: 6px;
	font-size: 14.5px;
	color: var(--vd-text-2);
}

.vd-prod-price {
	margin-top: 14px;
	display: flex;
	align-items: baseline;
	gap: 10px;
}

.vd-prod-price b {
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.02em;
}

.vd-prod-price s {
	font-size: 15px;
	color: var(--vd-text-3);
}

/* ---------- Color variants ---------- */

.vd-prod-variant {
	margin-top: 18px;
}

.vd-prod-variant-label {
	font-size: 13.5px;
	color: var(--vd-text-2);
}

.vd-prod-variant-label b {
	color: var(--vd-text);
	font-weight: 700;
}

.vd-prod-swatches {
	margin-top: 10px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.vd-swatch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1.5px solid var(--vd-border);
	border-radius: 999px;
	background: var(--vd-card);
	padding: 8px 16px 8px 10px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--vd-text-2);
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}

.vd-swatch i {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 1px solid rgba(16, 24, 40, .15);
}

.vd-swatch:hover {
	border-color: var(--vd-primary-border);
}

.vd-swatch.active {
	border-color: var(--vd-primary);
	background: var(--vd-primary-soft);
	color: var(--vd-text);
}

/* ---------- Plans ---------- */

.vd-prod-plans {
	margin-top: 16px;
	display: flex;
	gap: 10px;
}

.vd-plan {
	border: 1.5px solid var(--vd-border);
	border-radius: 10px;
	background: var(--vd-card);
	padding: 9px 22px;
	font-size: 14px;
	font-weight: 700;
	color: var(--vd-text-2);
	cursor: pointer;
	transition: border-color .2s, background .2s, color .2s;
}

.vd-plan:hover {
	border-color: var(--vd-primary-border);
}

.vd-plan.active {
	border-color: var(--vd-primary);
	background: var(--vd-primary-soft);
	color: var(--vd-primary);
}

/* ---------- Total box ---------- */

.vd-prod-total {
	margin-top: 18px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	padding: 16px 20px;
}

.vd-prod-total-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.vd-prod-total-top span {
	font-size: 14px;
	font-weight: 600;
	color: var(--vd-text-2);
}

.vd-prod-total-top b {
	font-size: 24px;
	font-weight: 800;
	letter-spacing: -.01em;
}

.vd-prod-total small {
	display: block;
	margin-top: 4px;
	font-size: 12.5px;
	color: var(--vd-text-3);
}

/* ---------- Buy actions ---------- */

.vd-prod-actions {
	margin-top: 18px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.vd-prod-actions .vd-btn {
	width: 100%;
	padding: 13px 10px;
}

/* ---------- Description / specs tabs ---------- */

.vd-prod-tabs {
	display: flex;
	gap: 22px;
	border-bottom: 1px solid var(--vd-border);
	padding: 0 24px;
}

.vd-prod-tab {
	position: relative;
	border: 0;
	background: none;
	cursor: pointer;
	padding: 14px 2px;
	font-size: 15px;
	font-weight: 700;
	color: var(--vd-text-3);
	transition: color .2s;
}

.vd-prod-tab:hover {
	color: var(--vd-text-2);
}

.vd-prod-tab.active {
	color: var(--vd-text);
}

.vd-prod-tab.active::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 3px;
	border-radius: 3px 3px 0 0;
	background: var(--vd-primary);
}

.vd-prod-panel {
	padding: 20px 24px 24px;
}

/* ---------- Description ---------- */

.vd-prod-desc {
	font-size: 15px;
	line-height: 1.8;
	color: var(--vd-text-2);
}

.vd-prod-desc > * + * {
	margin-top: 14px;
}

.vd-prod-desc p {
	margin: 0;
}

.vd-prod-desc figure {
	margin: 0;
	border-radius: var(--vd-radius-sm);
	overflow: hidden;
}

.vd-prod-desc figure img {
	width: 100%;
	height: 260px;
	object-fit: cover;
	display: block;
}

.vd-prod-desc > img {
	width: 100%;
	border-radius: var(--vd-radius-sm);
	display: block;
}

.vd-prod-desc.is-collapsed .vd-desc-hidden {
	display: none;
}

.vd-prod-more {
	margin-top: 16px;
	width: 100%;
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	background: var(--vd-inset);
	padding: 11px;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--vd-text-2);
	cursor: pointer;
	transition: border-color .2s, color .2s;
}

.vd-prod-more:hover {
	border-color: var(--vd-primary-border);
	color: var(--vd-primary);
}

/* ---------- Specs table ---------- */

.vd-prod-specs {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: var(--vd-inset);
	border: 1px solid var(--vd-border);
	border-radius: var(--vd-radius-sm);
	overflow: hidden;
}

.vd-prod-specs th {
	width: 34%;
	text-align: left;
	font-weight: 700;
	color: var(--vd-text);
	padding: 12px 16px;
	border-bottom: 1px solid var(--vd-border);
}

.vd-prod-specs td {
	padding: 12px 16px;
	border-bottom: 1px solid var(--vd-border);
	color: var(--vd-text-2);
}

.vd-prod-specs tr:last-child th,
.vd-prod-specs tr:last-child td {
	border-bottom: none;
}

/* ---------- Reviews ---------- */

.vd-reviews {
	overflow: hidden;
}

/* The card itself has no padding — keep the review form (and its divider)
   inset like the review list above it. */
.vd-reviews .vd-c-form-wrap {
	margin: 22px 24px 0;
	padding: 20px 0 24px;
}

.vd-rv-list {
	display: flex;
	flex-direction: column;
	padding: 8px 24px 0;
}

.vd-rv-item {
	display: flex;
	gap: 12px;
	padding: 16px 0;
	border-bottom: 1px solid var(--vd-border);
}

.vd-rv-item:last-child {
	border-bottom: none;
	padding-bottom: 4px;
}

.vd-rv-ava {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	color: #fff;
	font-style: normal;
	font-size: 15px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.vd-rv-body {
	flex: 1;
	min-width: 0;
}

.vd-rv-top {
	display: flex;
	align-items: center;
	gap: 8px;
}

.vd-rv-top b {
	font-size: 14px;
	font-weight: 700;
}

.vd-rv-stars {
	display: inline-flex;
	gap: 2px;
}

.vd-rv-stars svg {
	color: var(--vd-border);
}

.vd-rv-stars svg.on {
	color: var(--vd-amber);
	fill: var(--vd-amber);
}

.vd-rv-top time {
	margin-left: auto;
	font-size: 12.5px;
	color: var(--vd-text-3);
}

.vd-rv-body p {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--vd-text-2);
}

.vd-rv-item img.avatar {
	flex: none;
	width: 38px;
	height: 38px;
	border-radius: 50%;
}

.vd-rv-text {
	margin-top: 6px;
	font-size: 14px;
	line-height: 1.7;
	color: var(--vd-text-2);
}

.vd-rv-text p {
	margin: 0 0 8px;
}

.vd-rv-text p:last-child {
	margin-bottom: 0;
}

/* ---------- Review form: star rating picker ---------- */

.comment-form-rating {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 14px;
}

/* "Logged in as …" note (visible to signed-in reviewers). */
.vd-c-form .logged-in-as {
	font-size: 13.5px;
	color: var(--vd-text-2);
	margin: 0 0 14px;
}

.vd-c-form .logged-in-as a {
	color: var(--vd-primary);
	font-weight: 600;
}

.vd-rating-pick {
	position: relative;
	display: inline-flex;
	direction: rtl;
	gap: 4px;
}

.vd-rating-pick input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.vd-rating-pick label {
	cursor: pointer;
	color: var(--vd-border);
	line-height: 0;
	transition: color .15s;
}

.vd-rating-pick label svg {
	width: 22px;
	height: 22px;
	fill: currentColor;
	stroke: currentColor;
}

.vd-rating-pick label:hover,
.vd-rating-pick label:hover ~ label,
.vd-rating-pick input:checked ~ label {
	color: var(--vd-amber);
}

/* ---------- Related products (right rail) ---------- */

.vd-relp {
	display: flex;
	flex-direction: column;
	padding: 12px 12px 14px;
}

.vd-relp-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px;
	border-radius: 10px;
	transition: background .2s;
}

.vd-relp-item:hover {
	background: var(--vd-field);
}

.vd-relp-img {
	position: relative;
	flex: none;
	width: 54px;
	height: 54px;
	border-radius: 10px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
}

.vd-relp-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.vd-relp-body {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.vd-relp-name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color .2s;
}

.vd-relp-item:hover .vd-relp-name {
	color: var(--vd-primary);
}

.vd-relp-price {
	font-size: 13px;
	font-weight: 700;
	color: var(--vd-primary);
	display: flex;
	gap: 6px;
	align-items: baseline;
}

.vd-relp-price s {
	font-weight: 500;
	font-size: 11.5px;
	color: var(--vd-text-3);
}

.vd-relp-cart {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	color: var(--vd-primary);
	opacity: .8;
	cursor: pointer;
	transition: background .2s, opacity .2s;
}

.vd-relp-cart:hover {
	opacity: 1;
	background: var(--vd-primary-soft);
}

.vd-relp-cart.is-busy {
	opacity: .4;
	pointer-events: none;
}

/* ---------- Toast ---------- */

.vd-toast {
	position: fixed;
	left: 50%;
	bottom: 34px;
	transform: translateX(-50%) translateY(12px);
	background: var(--vd-text);
	color: #fff;
	font-size: 13.5px;
	font-weight: 600;
	padding: 11px 20px;
	border-radius: 999px;
	box-shadow: 0 10px 30px rgba(16, 24, 40, .25);
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, transform .25s;
	z-index: 999;
}

.vd-toast.show {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

/* ---------- Responsive ---------- */

@media (max-width: 640px) {

	.vd-prod-title {
		font-size: 21px;
	}

	.vd-prod-price b {
		font-size: 25px;
	}

	.vd-prod-actions {
		grid-template-columns: 1fr;
	}

	.vd-prod-desc figure img {
		height: 180px;
	}
}
