/* VCL Shop UX: single product extras (tabs, chips, size guide, PayPal slot). */

/* ---- Tabs ---- */
.vcl-single .woocommerce-tabs {
	margin-top: 40px;
	clear: both;
}

.vcl-tab-head {
	display: none;
}

@media (min-width: 768px) {
	.vcl-single .woocommerce-tabs ul.tabs {
		display: flex !important;
		flex-wrap: wrap;
		gap: 0 32px;
		margin: 0 0 24px;
		padding: 0;
		list-style: none;
		border: 0;
		border-bottom: 1px solid #d9d9d9;
		background: none;
		overflow: visible;
	}

	.vcl-single .woocommerce-tabs ul.tabs::before,
	.vcl-single .woocommerce-tabs ul.tabs::after {
		display: none;
	}

	.vcl-single .woocommerce-tabs ul.tabs li {
		margin: 0 0 -1px;
		padding: 0;
		border: 0;
		border-radius: 0;
		background: none;
	}

	.vcl-single .woocommerce-tabs ul.tabs li::before,
	.vcl-single .woocommerce-tabs ul.tabs li::after {
		display: none;
	}

	.vcl-single .woocommerce-tabs ul.tabs li a {
		display: block;
		padding: 12px 0;
		border-bottom: 2px solid transparent;
		font-family: 'Roboto', sans-serif;
		font-size: 15px;
		font-weight: 500;
		color: #777;
		text-decoration: none;
	}

	.vcl-single .woocommerce-tabs ul.tabs li.active a,
	.vcl-single .woocommerce-tabs ul.tabs li a:hover {
		border-bottom-color: #000;
		color: #000;
	}
}

@media (max-width: 767px) {
	.vcl-single .woocommerce-tabs ul.tabs {
		display: none !important;
	}

	.vcl-tab-head {
		display: flex;
		align-items: center;
		justify-content: space-between;
		width: 100%;
		margin: 0;
		padding: 14px 0;
		border: 0;
		border-top: 1px solid #e3e3e3;
		background: none;
		color: #000;
		font-family: 'Roboto', sans-serif;
		font-size: 15px;
		font-weight: 500;
		text-align: left;
		cursor: pointer;
	}

	.vcl-tab-head::after {
		content: '+';
		font-size: 20px;
		line-height: 1;
	}

	.vcl-tab-head.is-open::after {
		content: '\2212';
	}

	.vcl-single .woocommerce-tabs .woocommerce-Tabs-panel {
		display: none !important;
		padding: 0 0 16px;
	}

	.vcl-single .woocommerce-tabs .woocommerce-Tabs-panel.is-open {
		display: block !important;
	}

	/* The panel's own heading repeats the toggle label. */
	.vcl-single .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child {
		display: none;
	}
}

/* ---- Size / segment chips ---- */
.vcl-chips-source {
	position: absolute !important;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

.vcl-single table.variations th,
.vcl-single table.variations td {
	display: block;
	padding: 0;
	text-align: left;
}

.vcl-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 14px;
}

.vcl-chip {
	min-width: 48px;
	margin: 0;
	padding: 9px 14px;
	border: 1px solid #000;
	border-radius: 8px;
	background: #fff;
	color: #000;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

.vcl-chip.is-selected {
	background: #000;
	color: #fff;
}

.vcl-chip:disabled {
	border-color: #ccc;
	color: #bbb;
	text-decoration: line-through;
	cursor: not-allowed;
}

.vcl-chips--segment .vcl-chip {
	border-radius: 999px;
	padding: 9px 20px;
}

/* ---- Size guide ---- */
.vcl-sizeguide {
	margin: 0 0 12px;
}

.vcl-sizeguide__open {
	padding: 0;
	border: 0;
	background: none;
	color: #000;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	text-decoration: underline;
	cursor: pointer;
}

.vcl-sizeguide__dialog {
	position: fixed;
	width: min(720px, calc(100vw - 32px));
	max-height: calc(100vh - 64px);
	padding: 28px 24px 24px;
	border: 0;
	border-radius: 12px;
	overflow: auto;
}

.vcl-sizeguide__dialog::backdrop {
	background: rgba(0, 0, 0, 0.55);
}

.vcl-sizeguide__close {
	position: absolute;
	top: 6px;
	right: 12px;
	border: 0;
	background: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.vcl-sizeguide__body table {
	width: 100%;
	font-size: 14px;
}

/* ---- PayPal under the add-to-cart button ---- */
.vcl-single form.cart + #ppc-button-ppcp-gateway,
.vcl-single .ppc-button-wrapper,
.vcl-single #ppc-button-ppcp-gateway {
	width: 100%;
	margin: 10px 0 0;
}

/* ---- Cart form: size, segment, colour, promises, then quantity + add to cart on ONE row ---- */
.vcl-single form.cart,
.vcl-single form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.vcl-single form.cart > *,
.vcl-single form.cart .woocommerce-variation-add-to-cart > .vcl-sizeguide,
.vcl-single form.cart .woocommerce-variation-add-to-cart > .tlv-linked-variations-wrapper {
	flex: 0 0 100%;
	min-width: 0;
}

.vcl-single form.cart > .quantity,
.vcl-single form.cart .woocommerce-variation-add-to-cart > .quantity {
	flex: 0 0 auto;
	margin: 0;
}

.vcl-single form.cart .single_add_to_cart_button {
	flex: 1 1 0;
	width: auto !important;
	min-width: 0;
	margin: 0;
}

.vcl-single form.cart .woocommerce-variation-add-to-cart {
	flex: 0 0 100%;
}

/* Colour swatches (linked variations): label "Màu Nâu" */
.vcl-single .tlv-linked-variations-wrapper {
	margin: 4px 0 8px;
}

.vcl-single .tlv-swatch-label-name {
	margin-right: 6px;
	font-weight: 700;
	text-transform: none;
}

/* ---- Tabs as in the mockup: bold, larger, four equal columns (desktop) ---- */
@media (min-width: 768px) {
	.vcl-single .woocommerce-tabs ul.tabs {
		gap: 0;
	}

	.vcl-single .woocommerce-tabs ul.tabs li {
		flex: 1 1 0;
		text-align: center;
	}

	.vcl-single .woocommerce-tabs ul.tabs li a {
		padding: 16px 12px;
		font-size: 18px;
		font-weight: 700;
		color: #8a8a8a;
	}
}

.vcl-single .tlv-swatch-label-value {
	text-transform: none;
}

/* ---- Tabs, mockup look: display font, Title Case, large, short thick underline under the active tab ---- */
@media (min-width: 768px) {
	.vcl-single .woocommerce-tabs ul.tabs li a {
		padding: 20px 8px 22px;
		position: relative;
		border-bottom: 0;
		font-family: 'Unbounded', 'Roboto', sans-serif;
		font-size: clamp(14px, 1.75vw, 24px);
		font-weight: 700;
		line-height: 1.3;
		text-transform: capitalize;
		color: #8a8a8a;
	}

	.vcl-single .woocommerce-tabs ul.tabs li.active a,
	.vcl-single .woocommerce-tabs ul.tabs li a:hover {
		border-bottom: 0;
		color: #000;
	}

	.vcl-single .woocommerce-tabs ul.tabs li a::after {
		content: '';
		position: absolute;
		left: 50%;
		bottom: 8px;
		width: 56px;
		height: 4px;
		margin-left: -28px;
		background: transparent;
	}

	.vcl-single .woocommerce-tabs ul.tabs li.active a::after {
		background: #000;
	}
}

.vcl-size-contact {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
}

.vcl-size-contact p {
	margin: 0;
}

@media (max-width: 767px) {
	.vcl-tab-head {
		font-family: 'Unbounded', 'Roboto', sans-serif;
		font-weight: 700;
		text-transform: capitalize;
	}
}

/* Active-tab underline: sits below the text, as wide as the text block (was a short bar drawn over the letters). */
@media (min-width: 768px) {
	.vcl-single .woocommerce-tabs ul.tabs li a {
		padding: 20px 8px 28px;
		outline: 0;
		box-shadow: none;
	}

	.vcl-single .woocommerce-tabs ul.tabs li a::after {
		left: 8px;
		right: 8px;
		bottom: 0;
		width: auto;
		height: 4px;
		margin: 0;
	}

	.vcl-single .woocommerce-tabs ul.tabs li {
		border: 0 !important;
		outline: 0 !important;
	}
}

/* ---- Size picker, Cơ bản | Custom, colour dots of merged products (2026-11-05) ---- */
.vcl-single form.cart .vcl-sizepick,
.vcl-single form.cart .vcl-segment,
.vcl-single form.cart .vcl-fcolors,
.vcl-single form.cart .woocommerce-variation-add-to-cart > .vcl-sizepick,
.vcl-single form.cart .woocommerce-variation-add-to-cart > .vcl-segment,
.vcl-single form.cart .woocommerce-variation-add-to-cart > .vcl-fcolors {
	flex: 0 0 100%;
	min-width: 0;
}

.vcl-sizepick__head,
.vcl-segment__label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 12px;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: #000;
}

.vcl-sizepick__note {
	font-size: 13px;
	font-weight: 400;
	color: #666;
}

.vcl-sizepick .vcl-chip {
	min-width: 44px;
	padding: 10px 12px;
	text-align: center;
}

.vcl-sizepick__err {
	margin: 0 0 8px;
	color: #b3261e;
	font-size: 14px;
}

.vcl-segment {
	margin: 0 0 6px;
}

.vcl-segment__custom {
	margin: 4px 0 10px;
	padding: 14px 16px;
	border: 1px solid #000;
	border-radius: 10px;
	background: #fafafa;
}

.vcl-segment__custom[hidden] {
	display: none;
}

.vcl-segment__custom p {
	margin: 0 0 10px;
	font-size: 14px;
	line-height: 1.5;
}

.vcl-segment__channels {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vcl-segment__ch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 14px;
	border: 1px solid #000;
	border-radius: 999px;
	background: #fff;
	color: #000;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	text-decoration: none;
}

.vcl-segment__ch:hover {
	background: #000;
	color: #fff;
}

/* Custom: no buy controls for this product (the contact block replaces them). */
.vcl-mode-custom form.cart .quantity,
.vcl-mode-custom form.cart .single_add_to_cart_button,
.vcl-mode-custom form.cart .tongluc-pre-order-message,
.vcl-mode-custom .product_meta [class*="astra-advanced-hook"],
.vcl-mode-custom .single_variation_wrap .woocommerce-variation,
.vcl-mode-custom .ppc-button-wrapper,
.vcl-mode-custom #ppc-button-ppcp-gateway,
.vcl-mode-custom [class*="fundiin"] {
	display: none !important;
}

/* Colour dots for products merged by name */
.vcl-fcolors {
	margin: 4px 0 10px;
}

.vcl-fcolors__title {
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
}

.vcl-fcolors__name {
	font-weight: 700;
}

.vcl-fcolors__dots {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 8px;
}

.vcl-fdot {
	position: relative;
	display: inline-block;
	width: 30px;
	height: 30px;
	border: 1px solid rgba(0, 0, 0, 0.25);
	border-radius: 50%;
	background: #ccc;
	box-shadow: 0 0 0 2px #fff inset;
}

.vcl-fdot.is-selected {
	outline: 2px solid #000;
	outline-offset: 2px;
}

.vcl-fdot__txt {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.vcl-segment__custom .vcl-segment__fee {
	margin: 0 0 10px;
	font-weight: 700;
	font-size: 15px;
}

/* ---- Size tab: Châu Âu / Châu Á tables ---- */
.vcl-sizetabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.vcl-sizetabs__panel[hidden] {
	display: none;
}

.vcl-sizetabs__panel table {
	width: 100%;
	max-width: 720px;
	margin: 0 0 12px;
	border-collapse: collapse;
	font-size: 14px;
}

.vcl-sizetabs__panel th,
.vcl-sizetabs__panel td {
	padding: 8px 10px;
	border: 1px solid #d9d9d9;
	text-align: center;
}

.vcl-sizetabs__note {
	margin: 16px 0 0;
	font-style: italic;
	font-size: 14px;
}

.vcl-sizetabs__scroll {
	overflow-x: auto;
}

/* ---- Product info (description facts) in the "Thông tin bổ sung" tab ---- */
.vcl-factlist {
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.vcl-factlist li {
	padding: 6px 0;
	border-bottom: 1px solid #eee;
}

/* ---- Video as the first gallery slot ---- */
.vcl-video-slide {
	position: relative;
	width: 100%;
	aspect-ratio: 1 / 1;
	background-color: #000;
	background-position: center;
	background-size: cover;
	cursor: pointer;
}

.vcl-video-slide__play {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 72px;
	height: 72px;
	margin: -36px 0 0 -36px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.65);
	cursor: pointer;
}

.vcl-video-slide__play::before {
	content: '';
	position: absolute;
	top: 22px;
	left: 28px;
	border-style: solid;
	border-width: 14px 0 14px 22px;
	border-color: transparent transparent transparent #fff;
}

.vcl-video-slide iframe,
.vcl-video-slide video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	background: #000;
}

button.vcl-fdot {
	padding: 0;
	cursor: pointer;
}

button.vcl-fdot:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* ---- Customer 16/11: "Thông tin bổ sung" = ONE plain frame, no red, no spare white space ---- */
.vcl-factlist {
	margin: 0;
}

.vcl-factlist ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vcl-factlist li {
	margin: 0;
	padding: 7px 0;
	border-bottom: 1px solid #eee;
	line-height: 1.5;
}

.vcl-factlist > ul:last-child > li:last-child {
	border-bottom: 0;
}

/* The accordion button took the theme's red button colour on tap / focus (stays red on a phone after the tap). */
.vcl-tab-head,
.vcl-tab-head:hover,
.vcl-tab-head:focus,
.vcl-tab-head:active,
.vcl-tab-head.is-open {
	background: none !important;
	color: #000 !important;
	box-shadow: none;
}

.vcl-tab-head:focus:not(:focus-visible) {
	outline: 0;
}

.vcl-single .woocommerce-tabs .woocommerce-Tabs-panel {
	min-height: 0;
}
