/* Yilko Product Videos 6.2.0 */
:root {
	--ypv-accent: #f48026;
	--ypv-text: #202124;
	--ypv-muted: #747474;
	--ypv-border: #e8e8e8;
	--ypv-surface: #ffffff;
	--ypv-soft: #f6f6f6;
	--ypv-danger: #e53652;
}

/* Product tab cards */
.ypv-product-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 16px;
	margin-top: 20px;
}

.ypv-card {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	padding: 0;
	overflow: hidden;
	color: inherit;
	background: #181818;
	border: 1px solid var(--ypv-border);
	border-radius: 14px;
	box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
	cursor: pointer;
	text-align: right;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ypv-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.ypv-card--horizontal { aspect-ratio: 16 / 9; }
.ypv-card--vertical { aspect-ratio: 9 / 16; }
.ypv-card--square { aspect-ratio: 1 / 1; }

.ypv-card > img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.ypv-card:hover > img {
	opacity: 0.8;
	transform: scale(1.035);
}

.ypv-card__overlay {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent 58%);
	pointer-events: none;
}

.ypv-play-button {
	position: relative;
	display: block;
	width: 50px;
	height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.5);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.24);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.ypv-play-button::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 53%;
	border-top: 7px solid transparent;
	border-bottom: 7px solid transparent;
	border-left: 12px solid #fff;
	transform: translate(-50%, -50%);
}

.ypv-card__title {
	position: absolute;
	right: 12px;
	bottom: 10px;
	left: 12px;
	z-index: 2;
	overflow: hidden;
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.6;
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
}

/* Archive */
.ypv-archive {
	width: min(100%, 980px);
	max-width: 980px;
	margin-inline: auto;
}

.ypv-category-carousel {
	direction: rtl;
	display: flex;
	gap: 10px;
	width: 100%;
	margin: 0 0 24px;
	padding: 4px 2px 10px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.ypv-category-chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 0 0 auto;
	min-height: 44px;
	padding: 8px 16px;
	color: #3b3b3b;
	background: #fff;
	border: 1px solid var(--ypv-border);
	border-radius: 999px;
	box-shadow: 0 3px 12px rgba(0, 0, 0, 0.05);
	font: inherit;
	cursor: pointer;
	scroll-snap-align: start;
}

.ypv-category-chip small {
	display: inline-grid;
	place-items: center;
	min-width: 24px;
	height: 24px;
	padding: 0 6px;
	color: #777;
	background: #f2f2f2;
	border-radius: 999px;
	font-size: 11px;
}

.ypv-category-chip.is-active {
	color: #fff;
	background: var(--ypv-accent);
	border-color: var(--ypv-accent);
}

.ypv-category-chip.is-active small {
	color: var(--ypv-accent);
	background: #fff;
}

.ypv-archive__status {
	min-height: 22px;
	margin-bottom: 8px;
	color: var(--ypv-muted);
	font-size: 13px;
}

.ypv-archive.is-loading .ypv-archive__results {
	opacity: 0.55;
	pointer-events: none;
}

.ypv-archive__results { transition: opacity 0.2s ease; }

.ypv-archive__sections {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.ypv-archive-section {
	direction: rtl;
	display: grid;
	grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.45fr);
	grid-template-areas: "hero grid";
	gap: 14px;
	align-items: stretch;
	min-height: 520px;
}

.ypv-archive-section.is-reverse {
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.92fr);
	grid-template-areas: "grid hero";
}

.ypv-autoplay-card {
	position: relative;
	grid-area: hero;
	min-width: 0;
	min-height: 520px;
	overflow: hidden;
	background: #111;
	border: 1px solid var(--ypv-border);
	border-radius: 18px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
	cursor: zoom-in;
	outline: none;
}

.ypv-autoplay-card[data-ypv-never-focus]:focus-visible {
	box-shadow: 0 0 0 3px rgba(244, 128, 38, 0.25), 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ypv-autoplay-card__media {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	background: #000;
}

.ypv-autoplay-card__media img,
.ypv-autoplay-card__media video,
.ypv-autoplay-card__media iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	pointer-events: none;
}

.ypv-autoplay-card__media img {
	object-fit: cover;
}

.ypv-autoplay-card__media video {
	object-fit: contain;
	background: #000;
}

.ypv-autoplay-card__mute {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 3;
	padding: 6px 9px;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	border-radius: 999px;
	font-size: 10px;
	backdrop-filter: blur(6px);
}

.ypv-autoplay-card__open {
	position: absolute;
	inset: 0;
	z-index: 5;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: inherit;
	cursor: zoom-in;
}

.ypv-autoplay-card__open:focus-visible {
	outline: 3px solid rgba(244, 128, 38, 0.78);
	outline-offset: -4px;
}

.ypv-autoplay-card__title {
	position: absolute;
	right: 14px;
	bottom: 14px;
	left: 14px;
	z-index: 3;
	padding: 10px 12px;
	color: #fff;
	background: rgba(0, 0, 0, 0.46);
	border-radius: 10px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.7;
	text-align: center;
	backdrop-filter: blur(6px);
}

.ypv-archive-section__grid {
	grid-area: grid;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: 14px;
	min-width: 0;
}

.ypv-archive-section__grid .ypv-card {
	min-height: 0;
	height: 100%;
	aspect-ratio: auto;
}

.ypv-archive__empty {
	padding: 32px 16px;
	color: var(--ypv-muted);
	background: var(--ypv-soft);
	border-radius: 14px;
	text-align: center;
}

.ypv-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 30px 0 0;
}

.ypv-page-button {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	color: #333;
	background: #fff;
	border: 1px solid var(--ypv-border);
	border-radius: 10px;
	font: inherit;
	cursor: pointer;
}

.ypv-page-button.is-current {
	color: #fff;
	background: var(--ypv-accent);
	border-color: var(--ypv-accent);
}

/* Modal */
.ypv-modal-open { overflow: hidden; }

.ypv-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	opacity: 0;
	transition: opacity 0.22s ease;
}

.ypv-modal.is-open { opacity: 1; }

.ypv-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(5, 5, 5, 0.9);
	backdrop-filter: blur(8px);
}

.ypv-modal__dialog {
	position: absolute;
	inset: 2.5vh 3vw;
	display: grid;
	grid-template-rows: minmax(0, 1fr) auto;
	max-width: 1320px;
	max-height: 95vh;
	margin: auto;
	overflow: hidden;
	background: #090909;
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 18px;
	box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

.ypv-stage {
	position: relative;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 0;
	overflow: hidden;
	background: #000;
}

.ypv-player {
	position: absolute;
	inset: 0;
	display: grid;
	place-items: center;
	min-width: 0;
	min-height: 0;
	padding: 0;
	background: #000;
}

.ypv-player video,
.ypv-player iframe {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	border: 0;
	background: #000;
	object-fit: contain;
}

/*
 * ویدیوی عمودی در قاب مستقل و باریک نمایش داده می‌شود.
 * قاب عریض مودال فقط برای ویدیوهای افقی است.
 */
.ypv-modal__dialog.is-vertical {
	left: 50%;
	right: auto;
	width: min(92vw, 560px);
	max-width: 560px;
	transform: translateX(-50%);
}

.ypv-stage.is-vertical {
	background: #000;
}

.ypv-player.is-vertical {
	padding: 12px 58px;
}

.ypv-player.is-vertical video,
.ypv-player.is-vertical iframe {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	max-width: 100% !important;
	max-height: 100% !important;
	margin: auto !important;
	border: 0 !important;
	background: #000 !important;
	object-fit: contain !important;
	object-position: center center !important;
	transform: none !important;
}

.ypv-player.is-vertical iframe {
	aspect-ratio: 9 / 16;
}

.ypv-loading,
.ypv-error {
	padding: 30px;
	color: #fff;
	text-align: center;
}

.ypv-stage__title {
	position: absolute;
	right: 82px;
	bottom: 16px;
	left: 82px;
	z-index: 5;
	margin: 0;
	padding: 9px 13px;
	overflow: hidden;
	color: #fff;
	background: rgba(0, 0, 0, 0.42);
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
	pointer-events: none;
}

.ypv-control,
.ypv-action-button,
.ypv-drawer-close {
	-webkit-appearance: none;
	appearance: none;
	display: inline-grid;
	place-items: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	line-height: 1;
}

.ypv-control {
	position: absolute;
	z-index: 20;
	width: 46px;
	height: 46px;
	color: #fff;
	background: rgba(0, 0, 0, 0.52);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 50%;
	cursor: pointer;
	backdrop-filter: blur(7px);
}

.ypv-control svg,
.ypv-action-button svg,
.ypv-drawer-close svg {
	display: block;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.ypv-control--close {
	top: max(14px, env(safe-area-inset-top));
	left: max(14px, env(safe-area-inset-left));
}

.ypv-control--prev,
.ypv-control--next {
	top: 50%;
	transform: translateY(-50%);
}

.ypv-control--prev { right: 16px; }
.ypv-control--next { left: 16px; }
.ypv-control:disabled { opacity: 0.25; cursor: default; }

.ypv-action-rail {
	position: absolute;
	top: 50%;
	right: 74px;
	z-index: 18;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transform: translateY(-50%);
}

.ypv-action-button {
	width: 52px;
	min-height: 52px;
	gap: 3px;
	padding: 7px 4px;
	color: #fff;
	background: rgba(0, 0, 0, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 16px;
	font: inherit;
	cursor: pointer;
	backdrop-filter: blur(8px);
}

.ypv-action-button span {
	max-width: 48px;
	overflow: hidden;
	font-size: 9px;
	line-height: 1.2;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ypv-action-button.is-liked {
	color: var(--ypv-danger);
	background: rgba(255, 255, 255, 0.94);
}

.ypv-action-button.is-liked svg { fill: currentColor; }

/* Products */
.ypv-products-section {
	position: relative;
	z-index: 8;
	padding: 10px 14px 12px;
	background: #111;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ypv-products-section h3 {
	margin: 0 0 8px;
	color: #fff;
	font-size: 13px;
}

.ypv-products-carousel {
	direction: rtl;
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: thin;
	padding-bottom: 3px;
	-webkit-overflow-scrolling: touch;
}

.ypv-product-card {
	direction: rtl;
	display: grid;
	grid-template-columns: 64px 136px;
	flex: 0 0 auto;
	overflow: hidden;
	color: var(--ypv-text);
	background: #fff;
	border-radius: 10px;
	text-decoration: none;
	scroll-snap-align: start;
}

.ypv-product-card img {
	width: 64px;
	height: 72px;
	object-fit: cover;
}

.ypv-product-card__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 2px;
	min-width: 0;
	padding: 6px 8px;
}

.ypv-product-card__body strong {
	display: -webkit-box;
	overflow: hidden;
	font-size: 11px;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.ypv-product-card__price {
	overflow: hidden;
	font-size: 10px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ypv-product-card .is-in-stock,
.ypv-product-card .is-out-of-stock { font-size: 9px; }
.ypv-product-card .is-in-stock { color: #18864b; }
.ypv-product-card .is-out-of-stock { color: #c32626; }

/* Comments drawer */
.ypv-comments-drawer {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	z-index: 40;
	display: grid;
	grid-template-rows: auto minmax(0, 1fr) auto auto auto;
	width: min(390px, 92vw);
	overflow: hidden;
	background: #fff;
	box-shadow: -18px 0 50px rgba(0, 0, 0, 0.28);
	transform: translateX(105%);
	transition: transform 0.25s ease;
}

.ypv-comments-drawer.is-open { transform: translateX(0); }

.ypv-comments-drawer__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 15px 16px;
	border-bottom: 1px solid var(--ypv-border);
}

.ypv-comments-drawer__header > div {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ypv-comments-drawer__header span {
	display: inline-grid;
	place-items: center;
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	color: #666;
	background: var(--ypv-soft);
	border-radius: 999px;
	font-size: 11px;
}

.ypv-drawer-close {
	width: 40px;
	height: 40px;
	color: #333;
	background: var(--ypv-soft);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
}

.ypv-comments__list { overflow-y: auto; padding: 6px 16px 12px; }
.ypv-comments-loading,
.ypv-error-text,
.ypv-empty { margin: 16px 0; color: var(--ypv-muted); font-size: 12px; text-align: center; }

.ypv-comment {
	display: grid;
	grid-template-columns: 38px minmax(0, 1fr);
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px solid var(--ypv-border);
}

.ypv-comment > img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ypv-comment__body { min-width: 0; }
.ypv-comment__header { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.ypv-comment__header time { flex: 0 0 auto; color: var(--ypv-muted); font-size: 10px; }
.ypv-comment__content { margin-top: 5px; color: #444; font-size: 12px; line-height: 1.85; }
.ypv-comment__content p { margin: 0; }
.ypv-comment__replies { margin-top: 9px; padding-right: 10px; border-right: 2px solid #ededed; }
.ypv-comment.is-reply { grid-template-columns: 30px minmax(0, 1fr); padding: 9px 0; border-bottom: 0; }
.ypv-comment.is-reply > img { width: 30px; height: 30px; }

.ypv-comments-more {
	margin: 8px 16px;
	padding: 10px;
	color: #444;
	background: var(--ypv-soft);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.ypv-comment-login { margin: 10px 16px; padding: 12px; background: var(--ypv-soft); border-radius: 12px; text-align: center; }
.ypv-comment-login p { margin: 0 0 8px; font-size: 12px; }
.ypv-comment-login a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; color: #fff; background: var(--ypv-accent); border-radius: 9px; text-decoration: none; }
.ypv-comment-form { padding: 12px 16px 16px; border-top: 1px solid var(--ypv-border); }
.ypv-comment-form textarea { display: block; width: 100%; min-height: 76px; resize: vertical; box-sizing: border-box; padding: 10px; border: 1px solid var(--ypv-border); border-radius: 10px; }
.ypv-comment-form button { width: 100%; min-height: 42px; margin-top: 8px; padding: 8px 14px; color: #fff; background: var(--ypv-accent); border: 0; border-radius: 10px; cursor: pointer; }
.ypv-comment-message { min-height: 18px; margin: 6px 0 0; color: var(--ypv-muted); font-size: 11px; }

.ypv-toast {
	position: absolute;
	right: 50%;
	bottom: 20px;
	z-index: 60;
	max-width: min(320px, 80vw);
	padding: 10px 15px;
	color: #fff;
	background: rgba(20, 20, 20, 0.9);
	border-radius: 10px;
	opacity: 0;
	pointer-events: none;
	transform: translate(50%, 12px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}
.ypv-toast.is-visible { opacity: 1; transform: translate(50%, 0); }

@media (max-width: 900px) {
	.ypv-archive-section,
	.ypv-archive-section.is-reverse {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
		grid-template-areas: "hero grid";
		min-height: 440px;
	}

	.ypv-autoplay-card { min-height: 440px; }
	.ypv-modal__dialog { inset: 1.5vh 2vw; }
	.ypv-action-rail { right: 62px; }
}

@media (max-width: 700px) {
	.ypv-category-carousel { margin-bottom: 16px; padding-bottom: 8px; }
	.ypv-category-chip { min-height: 40px; padding: 7px 13px; font-size: 12px; }

	.ypv-archive__sections { gap: 20px; }
	.ypv-archive-section,
	.ypv-archive-section.is-reverse {
		display: flex;
		flex-direction: column;
		gap: 8px;
		min-height: 0;
	}

	.ypv-autoplay-card { min-height: 360px; border-radius: 13px; }
	.ypv-archive-section__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto; gap: 8px; }
	.ypv-archive-section__grid .ypv-card { aspect-ratio: 1 / 1; }
	.ypv-card { border-radius: 10px; }
	.ypv-card__title { right: 7px; bottom: 6px; left: 7px; font-size: 9px; }
	.ypv-play-button { width: 38px; height: 38px; }
	.ypv-play-button::after { border-top-width: 5px; border-bottom-width: 5px; border-left-width: 9px; }

	.ypv-modal__dialog {
		inset: 0;
		display: flex;
		flex-direction: column;
		width: 100vw;
		height: 100dvh;
		max-height: 100dvh;
		border: 0;
		border-radius: 0;
	}

	.ypv-stage {
		flex: 1 1 auto;
		min-height: 0;
		height: auto;
	}

	.ypv-player {
		padding: max(4px, env(safe-area-inset-top)) 4px 4px;
	}

	.ypv-player video,
	.ypv-player iframe {
		width: 100%;
		height: 100%;
		max-width: 100%;
		max-height: 100%;
		object-fit: contain;
	}

	.ypv-modal__dialog.is-vertical {
		left: 0;
		right: 0;
		width: 100vw;
		max-width: none;
		transform: none;
	}

	.ypv-player.is-vertical {
		padding: max(8px, env(safe-area-inset-top)) 52px 8px 8px;
	}

	.ypv-player.is-vertical video,
	.ypv-player.is-vertical iframe {
		width: 100% !important;
		height: 100% !important;
		max-width: 100% !important;
		max-height: 100% !important;
		margin: auto !important;
		object-fit: contain !important;
		object-position: center center !important;
		transform: none !important;
	}

	.ypv-player.is-vertical iframe {
		aspect-ratio: 9 / 16;
	}

	.ypv-control { width: 42px; height: 42px; }
	.ypv-control--close { top: max(8px, env(safe-area-inset-top)); left: max(8px, env(safe-area-inset-left)); }
	.ypv-control--prev,
	.ypv-control--next {
		top: auto;
		bottom: 58px;
		transform: none;
	}
	.ypv-control--prev { right: 8px; }
	.ypv-control--next { left: 8px; }

	.ypv-action-rail {
		top: 50%;
		right: max(8px, env(safe-area-inset-right));
		gap: 8px;
		transform: translateY(-50%);
	}

	.ypv-action-button {
		width: 44px;
		min-height: 44px;
		padding: 5px 2px;
		border-radius: 14px;
	}
	.ypv-action-button svg { width: 20px; height: 20px; }
	.ypv-action-button span { font-size: 8px; }

	.ypv-stage__title {
		right: 58px;
		bottom: 8px;
		left: 58px;
		padding: 7px 9px;
		font-size: 11px;
	}

	.ypv-products-section {
		flex: 0 0 auto;
		max-height: 106px;
		padding: 6px 7px calc(7px + env(safe-area-inset-bottom));
	}
	.ypv-products-section h3 { margin-bottom: 5px; font-size: 11px; }
	.ypv-products-carousel { gap: 6px; }

	.ypv-product-card {
		display: flex;
		flex-direction: column;
		flex: 0 0 74px;
		width: 74px;
		border-radius: 7px;
	}
	.ypv-product-card img { width: 74px; height: 48px; }
	.ypv-product-card__body { gap: 1px; min-height: 34px; padding: 3px 4px; }
	.ypv-product-card__body strong { font-size: 7.5px; line-height: 1.3; -webkit-line-clamp: 2; }
	.ypv-product-card__price { font-size: 7.5px; }
	.ypv-product-card .is-in-stock,
	.ypv-product-card .is-out-of-stock { display: none; }

	.ypv-comments-drawer {
		top: auto;
		right: 0;
		bottom: 0;
		left: 0;
		width: 100%;
		max-height: min(78dvh, 680px);
		padding-bottom: env(safe-area-inset-bottom);
		border-radius: 20px 20px 0 0;
		box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.32);
		transform: translateY(105%);
	}
	.ypv-comments-drawer.is-open { transform: translateY(0); }
	.ypv-comments-drawer__header { padding: 12px 14px; }
	.ypv-comments__list { padding-right: 14px; padding-left: 14px; }
	.ypv-comment-form { padding: 10px 14px 12px; }
	.ypv-toast { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 390px) {
	.ypv-autoplay-card { min-height: 320px; }
	.ypv-action-button { width: 42px; min-height: 42px; }
	.ypv-stage__title { right: 54px; left: 54px; }
	.ypv-product-card,
	.ypv-product-card img { width: 70px; }
	.ypv-product-card { flex-basis: 70px; }
	.ypv-product-card img { height: 46px; }
}



/* جلوگیری از تغییر رنگ مستطیل اتوپلی هنگام Hover */
.ypv-autoplay-card .ypv-autoplay-card__open,
.ypv-autoplay-card .ypv-autoplay-card__open:hover,
.ypv-autoplay-card .ypv-autoplay-card__open:focus,
.ypv-autoplay-card .ypv-autoplay-card__open:active,
.ypv-autoplay-card .ypv-autoplay-card__open:visited {
    -webkit-appearance: none !important;
    appearance: none !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    border: 0 !important;
    box-shadow: none !important;
    filter: none !important;
    opacity: 1 !important;
    outline: none !important;
    transform: none !important;
}

/* حذف لایه‌های احتمالی قالب از روی دکمه کلیک */
.ypv-autoplay-card .ypv-autoplay-card__open::before,
.ypv-autoplay-card .ypv-autoplay-card__open::after,
.ypv-autoplay-card .ypv-autoplay-card__open:hover::before,
.ypv-autoplay-card .ypv-autoplay-card__open:hover::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
}

/* جلوگیری از تغییر رنگ، شفافیت یا زوم خود ویدیو در Hover */
.ypv-autoplay-card:hover,
.ypv-autoplay-card:focus-within {
    background-color: #111 !important;
    filter: none !important;
}

.ypv-autoplay-card:hover .ypv-autoplay-card__media,
.ypv-autoplay-card:hover .ypv-autoplay-card__media img,
.ypv-autoplay-card:hover .ypv-autoplay-card__media video,
.ypv-autoplay-card:hover .ypv-autoplay-card__media iframe {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/* قابلیت کلیک حفظ شود */
.ypv-autoplay-card,
.ypv-autoplay-card .ypv-autoplay-card__open {
    cursor: pointer !important;
}
