/* VCL Shop UX: single product page. */

/* Title and price */
.vcl-single .summary .product_title {
	margin: 0 0 8px;
	font-family: 'Unbounded', 'Roboto', sans-serif !important;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.3;
	text-align: left;
	text-transform: none !important;
	color: #000;
}

.vcl-single-price,
.vcl-single-price .woocommerce-Price-amount {
	margin: 0 0 18px;
	font-family: 'Roboto', sans-serif;
	font-size: 28px;
	font-weight: 300;
	line-height: 1.2;
	color: #111;
}

/* Promises under the buy button */
.vcl-perks {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: 0 0 100%;
	margin: 4px 0 8px;
	padding: 0;
	list-style: none;
}

.vcl-perks li {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.4;
	color: #111;
}

.vcl-perks svg {
	flex: none;
}

.vcl-single-price--contact {
	margin-bottom: 22px;
}

/* "Sản phẩm tương tự": heading with a bar, cards as in the shop */
.vcl-single section.related.products > h2,
.vcl-single section.up-sells.products > h2 {
	margin: 40px 0 20px;
	padding-left: 12px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: none;
	border-left: 3px solid #000;
}

/* Mobile: centred title and price above the summary */
@media (max-width: 767px) {
	.vcl-single .summary .product_title,
	.vcl-single-price {
		text-align: center;
	}

	.vcl-single .summary .product_title {
		font-size: 20px;
	}

	.vcl-single-price,
	.vcl-single-price .woocommerce-Price-amount {
		font-size: 22px;
	}
}

/* Gallery on small screens: full-width image (Astra's vertical thumbnail column is desktop only) with dots below. */
.vcl-gallery-dots {
	display: none;
}

@media (max-width: 921px) {
	.vcl-single #ast-gallery-thumbnails {
		display: none !important;
	}

	.vcl-single .woocommerce-product-gallery .flex-viewport {
		margin-left: 0 !important;
		width: 100% !important;
	}

	.vcl-gallery-dots {
		display: flex;
		justify-content: center;
		gap: 8px;
		margin: 12px 0 4px;
		padding: 0;
		list-style: none;
	}

	.vcl-gallery-dots li {
		margin: 0;
	}

	.vcl-gallery-dots button {
		display: block;
		width: 8px;
		height: 8px;
		margin: 0;
		padding: 0;
		border: 0;
		border-radius: 50%;
		background: #c9c9c9;
		cursor: pointer;
		appearance: none;
		-webkit-appearance: none;
	}

	.vcl-gallery-dots li.is-active button {
		background: #000;
	}
}

/* Selected thumbnail (vertical column): a 2px frame exactly over the thumbnail image. The frame is positioned inside the li padding box, which is where the image (absolute, inset 0) sits; the transparent 5px top/bottom borders are outside it (an earlier inset of 5px 0 shifted the frame 5px down and cut 10px of its height). */
.vcl-single .ast-woocommerce-product-gallery__image.flex-active-slide::after {
	inset: 0;
	border: 2px solid #000;
	box-sizing: border-box;
	pointer-events: none;
}

.vcl-single .ast-woocommerce-product-gallery__image {
	cursor: pointer;
}

.vcl-single #ast-vertical-navigation-prev.flex-disabled,
.vcl-single #ast-vertical-navigation-next.flex-disabled {
	display: block;
}

/* Colour with no photo of its own: note under the colour row */
.vcl-photo-note {
	margin: -6px 0 14px;
	font-size: 13px;
	line-height: 1.4;
	color: #6b6b6b;
	font-style: italic;
}

/* Left column thumbnails: Astra paints a 5px BLACK border on the chosen thumbnail (two thick bars above and below it). The thin
   frame above (::after) is the only selection mark: keep the border, only transparent, so nothing shifts. */
.vcl-single .ast-woocommerce-product-gallery__image.flex-active-slide {
	border-color: transparent !important;
}

/* Clicking a thumbnail focuses it (Astra gives the thumbnail a tabindex) and Astra's rule ".ast-woocommerce-product-gallery__image:focus"
   then draws a dotted outline plus a 5px black border (two thick dotted/black bars above and below the thumbnail) until the focus
   moves away. The selected thumbnail already has its thin frame (::after above): no outline / border colour on focus. */
.vcl-single .ast-woocommerce-product-gallery__image:focus,
.vcl-single .ast-woocommerce-product-gallery__image:focus-visible {
	outline: none !important;
	border-color: transparent !important;
}
