/* Ateeq Video Shop — brand-aligned shoppable videos */
.ateeq-video-shop {
	--ateeq-vs-bg: #f8f6f2;
	--ateeq-vs-primary: #cbae8e;
	--ateeq-vs-text: #2c2620;
	--ateeq-vs-radius: 14px;
	--ateeq-vs-card-width: min(180px, 28vw);
	padding: 2.5rem 0 2rem;
	color: var(--ateeq-vs-text);
}

.ateeq-video-shop__scroller {
	position: relative;
	padding-inline: clamp(12px, 3vw, 32px);
}

.ateeq-video-shop__track {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: clamp(10px, 1.5vw, 18px);
	align-items: stretch;
}

.ateeq-video-shop__card {
	min-width: 0;
	border-radius: var(--ateeq-vs-radius);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(44, 38, 32, 0.08);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ateeq-video-shop__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(44, 38, 32, 0.14);
}

.ateeq-video-shop__media {
	position: relative;
	aspect-ratio: 9 / 16;
	background: #1a1612;
}

.ateeq-video-shop__play-trigger {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
	text-align: inherit;
	color: inherit;
}

.ateeq-video-shop__play-trigger:focus-visible {
	outline: 2px solid var(--ateeq-vs-primary);
	outline-offset: -2px;
}

.ateeq-video-shop__play-trigger .ateeq-video-shop__video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	vertical-align: middle;
}

.ateeq-video-shop__gradient {
	position: absolute;
	inset: auto 0 0 0;
	height: 34%;
	z-index: 2;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
	pointer-events: none;
}

/* On-video product row (compact) */
.ateeq-video-shop__overlay {
	position: absolute;
	inset-inline: 0;
	bottom: 0;
	z-index: 3;
	display: flex;
	align-items: center;
	gap: 7px;
	padding: 8px 8px 10px;
	pointer-events: none;
}

.ateeq-video-shop__thumb-wrap {
	flex-shrink: 0;
	width: 50px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(248, 246, 242, 0.28);
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.32);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	padding: 3px;
	box-sizing: border-box;
	overflow: hidden;
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
}

.ateeq-video-shop__thumb-wrap .ateeq-video-shop__thumb {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain !important;
	object-position: center;
	border-radius: 4px;
	border: 0;
	background: transparent;
	box-shadow: none;
	padding: 0;
	margin: 0;
}

@media (max-width: 549px) {
	.ateeq-video-shop__thumb-wrap {
		width: 44px;
		height: 56px;
		padding: 2px;
		border-radius: 5px;
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
	}
}

.ateeq-video-shop__overlay-text {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding-inline-end: 4px;
}

.ateeq-video-shop__name {
	font-size: 0.68rem;
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.ateeq-video-shop__price {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	font-size: 0.72rem;
	font-weight: 700;
	color: #fff !important;
	line-height: 1.1;
}

.ateeq-video-shop__price .amount,
.ateeq-video-shop__price bdi,
.ateeq-video-shop__price ins,
.ateeq-video-shop__price ins .amount,
.ateeq-video-shop__price > .woocommerce-Price-amount {
	color: #fff !important;
}

.ateeq-video-shop__price ins {
	text-decoration: none;
	order: 1;
	font-size: 0.74rem;
}

.ateeq-video-shop__price del {
	order: 2;
	font-size: 0.62rem;
	font-weight: 500;
	opacity: 1;
	text-decoration-color: rgba(255, 255, 255, 0.55);
}

/* Regular price (no sale) */
.ateeq-video-shop__price > .woocommerce-Price-amount:first-child:last-child {
	font-size: 0.74rem;
}

.ateeq-video-shop__price del,
.ateeq-video-shop__price del .amount,
.ateeq-video-shop__price del bdi {
	color: rgba(255, 255, 255, 0.72) !important;
}

.ateeq-video-shop__cart-btn {
	pointer-events: auto;
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	margin: 0;
	padding: 0;
	border-radius: 50%;
	background: var(--ateeq-vs-primary) !important;
	color: var(--ateeq-vs-text) !important;
	border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	text-decoration: none !important;
	transition: transform 0.15s ease, background 0.2s ease;
}

.ateeq-video-shop__cart-icon {
	width: 16px;
	height: 16px;
}

.ateeq-video-shop__cart-btn:hover,
.ateeq-video-shop__cart-btn:focus-visible {
	background: #dcc5a8 !important;
	color: var(--ateeq-vs-text) !important;
	transform: scale(1.06);
}

.ateeq-video-shop__cart-btn .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.ateeq-video-shop-modal__product[hidden] {
	display: none !important;
}

.ateeq-video-shop__price del {
	opacity: 0.85;
}

.ateeq-video-shop__hint {
	text-align: center;
	font-size: 0.8rem;
	opacity: 0.75;
	margin: 0.75rem 0 0;
}

/* Tablet: 3 columns, still readable */
@media (max-width: 849px) {
	.ateeq-video-shop__track {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* Mobile: horizontal swipe, 1–2 cards visible */
@media (max-width: 549px) {
	.ateeq-video-shop__scroller {
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scroll-snap-type: x mandatory;
		scrollbar-width: thin;
		padding-bottom: 0.5rem;
		mask-image: linear-gradient(to right, transparent, #000 12px, #000 calc(100% - 12px), transparent);
	}

	.ateeq-video-shop__track {
		display: flex;
		flex-wrap: nowrap;
		gap: 14px;
		width: max-content;
		padding-inline-end: 24px;
	}

	.ateeq-video-shop__card {
		flex: 0 0 min(72vw, 280px);
		scroll-snap-align: start;
	}

	.ateeq-video-shop__hint {
		display: block;
	}
}

@media (min-width: 550px) {
	.ateeq-video-shop__hint.show-for-small {
		display: none;
	}
}

/* Modal */
.ateeq-video-shop-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ateeq-video-shop-modal[hidden] {
	display: none !important;
}

.ateeq-video-shop-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 16, 12, 0.78);
}

.ateeq-video-shop-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(960px, 100%);
	max-height: min(92vh, 900px);
	background: var(--ateeq-vs-bg);
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
}

.ateeq-video-shop-modal__close {
	position: absolute;
	top: 10px;
	inset-inline-end: 10px;
	z-index: 5;
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px !important;
	height: 34px !important;
	min-width: 34px;
	min-height: 34px;
	margin: 0;
	padding: 0 !important;
	border: 1px solid rgba(44, 38, 32, 0.14);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	color: var(--ateeq-vs-text);
	font-size: 1.25rem;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(44, 38, 32, 0.1);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.ateeq-video-shop-modal__close:hover,
.ateeq-video-shop-modal__close:focus-visible {
	background: rgba(255, 255, 255, 0.85);
	border-color: rgba(203, 174, 142, 0.65);
	transform: scale(1.04);
	box-shadow: 0 3px 12px rgba(44, 38, 32, 0.14);
	outline: none;
}

.ateeq-video-shop-modal__layout {
	display: grid;
	grid-template-columns: 1fr min(320px, 38%);
	gap: 0;
	min-height: 0;
}

.ateeq-video-shop-modal__player-wrap {
	background: #000;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 280px;
}

.ateeq-video-shop-modal__video {
	width: 100%;
	max-height: min(70vh, 720px);
	object-fit: contain;
	background: #000;
}

.ateeq-video-shop-modal__controls {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	background: rgba(0, 0, 0, 0.65);
	color: #fff;
}

.ateeq-video-shop-modal__ctrl {
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: inherit;
	border-radius: 8px;
	padding: 6px 10px;
	cursor: pointer;
	min-width: 40px;
}

.ateeq-video-shop-modal__seek {
	flex: 1;
	accent-color: var(--ateeq-vs-primary);
}

.ateeq-video-shop-modal__product {
	padding: 1.35rem 1.15rem 1.4rem;
	overflow: hidden;
	background: linear-gradient(180deg, #f8f6f2 0%, #ebe3d8 100%);
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: center;
	gap: 0.75rem;
	min-height: 0;
	max-height: min(92vh, 900px);
}

.ateeq-video-shop-modal__product-name {
	margin: 0;
	padding-inline: 0.25rem;
	font-size: 1.15rem;
	line-height: 1.3;
	font-weight: 600;
	color: var(--ateeq-vs-text);
	letter-spacing: 0.02em;
}

.ateeq-video-shop-modal__product-link {
	display: block;
	text-decoration: none;
	color: inherit;
	margin: 0 auto;
	max-width: 100%;
}

.ateeq-video-shop-modal__product-img-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 210px);
	height: 210px;
	margin: 0 auto;
	padding: 14px;
	box-sizing: border-box;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.35);
	border: 1px solid rgba(203, 174, 142, 0.55);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 16px rgba(44, 38, 32, 0.08);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.ateeq-video-shop-modal__product-img {
	display: block;
	width: auto !important;
	height: auto !important;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain !important;
	object-position: center;
	border-radius: 0;
	margin: 0 auto;
}

.ateeq-video-shop-modal__product-img[hidden] {
	display: none;
}

.ateeq-video-shop-modal__product-link:has(.ateeq-video-shop-modal__product-img[hidden]) {
	display: none;
}

.ateeq-video-shop-modal__product-price {
	font-size: 1rem;
	line-height: 1.3;
	color: var(--ateeq-vs-text);
}

.ateeq-video-shop-modal__product-price .amount,
.ateeq-video-shop-modal__product-price bdi,
.ateeq-video-shop-modal__product-price ins,
.ateeq-video-shop-modal__product-price ins .amount {
	color: var(--ateeq-vs-text) !important;
	font-weight: 700;
}

.ateeq-video-shop-modal__product-price del,
.ateeq-video-shop-modal__product-price del .amount {
	color: rgba(44, 38, 32, 0.55) !important;
	font-size: 0.88em;
	font-weight: 500;
}

.ateeq-video-shop-modal__product-desc {
	flex: 1 1 auto;
	min-height: 0;
	max-height: 32vh;
	overflow-y: auto;
	text-align: start;
	unicode-bidi: plaintext;
	font-size: 0.78rem;
	line-height: 1.5;
	color: rgba(44, 38, 32, 0.9);
	padding: 0.35rem 0.2rem 0.15rem;
	margin: 0;
	-webkit-overflow-scrolling: touch;
}

.ateeq-video-shop-modal__product-desc p {
	margin: 0 0 0.5em;
}

.ateeq-video-shop-modal__product-desc p:last-child {
	margin-bottom: 0;
}

.ateeq-video-shop-modal__product-desc span,
.ateeq-video-shop-modal__product-desc strong {
	font-size: inherit !important;
	color: inherit !important;
	font-weight: 600;
}

.ateeq-video-shop-modal__product-desc[hidden] {
	display: none !important;
}

.ateeq-video-shop-modal__atc {
	width: 100%;
	margin-top: auto;
	flex-shrink: 0;
	padding-top: 0.35rem;
}

.ateeq-video-shop-modal__atc .button,
.ateeq-video-shop-modal__atc .add_to_cart_button,
.ateeq-video-shop-modal__atc .ateeq-vs-product__view {
	display: block;
	width: 100%;
	text-align: center;
	margin: 0 !important;
	padding: 0.72rem 1rem !important;
	font-size: 0.82rem !important;
	font-weight: 600;
	line-height: 1.2;
	border-radius: 10px !important;
	background: var(--ateeq-vs-primary) !important;
	border: 1px solid rgba(44, 38, 32, 0.12) !important;
	color: var(--ateeq-vs-text) !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	box-shadow: 0 3px 12px rgba(44, 38, 32, 0.12);
	transition: background 0.2s ease, transform 0.15s ease;
}

.ateeq-video-shop-modal__atc .button:hover,
.ateeq-video-shop-modal__atc .add_to_cart_button:hover {
	background: #d4bc9e !important;
	transform: translateY(-1px);
}

@media (max-width: 768px) {
	.ateeq-video-shop-modal__layout {
		grid-template-columns: 1fr;
		max-height: 92vh;
		overflow-y: auto;
	}

	.ateeq-video-shop-modal__product {
		padding: 1rem 1rem 1.15rem;
		gap: 0.65rem;
	}

	.ateeq-video-shop-modal__product-img-wrap {
		width: min(100%, 180px);
		height: 180px;
		padding: 10px;
	}

	.ateeq-video-shop-modal__product-name {
		font-size: 1.05rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ateeq-video-shop__card {
		transition: none;
	}

	.ateeq-video-shop__card:hover {
		transform: none;
	}
}

body.ateeq-vs-modal-open {
	overflow: hidden;
}
