/**
 * استایل‌های مشترک صفحات با تمپلیت یدک14.
 */

body.yadak14-page-template {
	--ypt-red: var(--y14-brand-primary, #dd0508);
	--ypt-red-soft: rgba(221, 5, 8, 0.1);
	--ypt-gray-50: #f5f6f8;
	--ypt-gray-200: #e2e5eb;
	--ypt-gray-500: #5c616b;
	--ypt-radius: 22px;
	--ypt-shadow: 0 18px 48px rgba(15, 17, 22, 0.08);
	--ypt-shadow-hover: 0 26px 56px rgba(221, 5, 8, 0.14);
}

/* تمپلیت‌های برگه + صفحات ووکامرس سفارشی‌شده (سبد، تسویه، تشکر) */
body.yadak14-page-template .whb-header,
body.yadak14-cart-page .whb-header,
body.yadak14-checkout-page .whb-header,
body.yadak14-thankyou-page .whb-header,
body.yadak14-blog-archive .whb-header {
	margin-bottom: unset !important;
}

/* پس‌زمینه صفحات محتوایی (بدون صفحه اصلی و ورود که استایل خود را دارند) */
body.yadak14-page-template [class$="-app"]:not(.yadak14-home-app):not(.yadak14-auth-app) {
	background: var(--ypt-gray-50);
}

body.yadak14-page-template [class$="-section--muted"] {
	background: linear-gradient(180deg, #fff 0%, var(--ypt-gray-50) 100%) !important;
}

/* ——— کارت‌های مشترک ——— */
body.yadak14-page-template .y14-card,
body.yadak14-page-template .yct-card,
body.yadak14-page-template .yrr-card,
body.yadak14-page-template .ytr-step__card,
body.yadak14-page-template .ypv-use-card,
body.yadak14-page-template .ypv-data-item,
body.yadak14-page-template .yfq-item,
body.yadak14-page-template .yct-brand-panel,
body.yadak14-page-template .yct-form,
body.yadak14-page-template .y14-callout,
body.yadak14-page-template .ytr-float-card {
	border-radius: var(--ypt-radius) !important;
	border: 1px solid rgba(226, 229, 235, 0.95) !important;
	background: rgba(255, 255, 255, 0.94) !important;
	box-shadow: var(--ypt-shadow) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		border-color 0.28s ease !important;
}

body.yadak14-page-template .y14-card:hover,
body.yadak14-page-template .yct-card:hover,
body.yadak14-page-template .yrr-card:hover,
body.yadak14-page-template .ytr-step__card:hover,
body.yadak14-page-template .ypv-use-card:hover,
body.yadak14-page-template .ypv-data-item:hover {
	transform: translateY(-5px) !important;
	border-color: rgba(221, 5, 8, 0.28) !important;
	box-shadow: var(--ypt-shadow-hover) !important;
}

/* نوار رنگی بالای کارت */
body.yadak14-page-template .y14-card::before,
body.yadak14-page-template .yct-card::before,
body.yadak14-page-template .yrr-card::before {
	height: 4px !important;
	background: linear-gradient(90deg, var(--ypt-red), #ff6b6e) !important;
	opacity: 1 !important;
}

/* آیکن داخل کارت */
body.yadak14-page-template .y14-card__icon,
body.yadak14-page-template .yct-card__icon,
body.yadak14-page-template .yrr-card__icon,
body.yadak14-page-template .ytr-step__icon {
	width: 52px !important;
	height: 52px !important;
	border-radius: 16px !important;
	background: linear-gradient(145deg, rgba(221, 5, 8, 0.14), rgba(221, 5, 8, 0.06)) !important;
	color: var(--ypt-red) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* عنوان و متن کارت */
body.yadak14-page-template .y14-card__title,
body.yadak14-page-template .yct-card__title,
body.yadak14-page-template .yrr-card__title,
body.yadak14-page-template .ytr-step__title {
	font-weight: 900 !important;
	letter-spacing: -0.01em;
}

/* شماره کارت مرجوعی */
body.yadak14-page-template .yrr-card__num {
	color: rgba(221, 5, 8, 0.14) !important;
	font-size: 2.25rem !important;
}

/* آکاردئون FAQ */
body.yadak14-page-template .yfq-item {
	overflow: hidden;
}

body.yadak14-page-template .yfq-item[open] {
	transform: none !important;
	border-color: rgba(221, 5, 8, 0.32) !important;
	box-shadow: var(--ypt-shadow-hover) !important;
}

body.yadak14-page-template .yfq-item__q {
	padding: 1.05rem 1.2rem !important;
}

body.yadak14-page-template .yfq-item__chev {
	border-radius: 14px !important;
	background: var(--ypt-red-soft) !important;
}

body.yadak14-page-template .yfq-item__a {
	padding: 0 1.2rem 1.2rem !important;
	background: linear-gradient(180deg, rgba(245, 246, 248, 0.5), transparent);
}

/* آیتم‌های لیست حریم خصوصی */
body.yadak14-page-template .ypv-data-item {
	display: flex !important;
	align-items: center;
	gap: 0.85rem;
	padding: 1rem 1.15rem !important;
}

body.yadak14-page-template .ypv-data-item__ico {
	flex-shrink: 0;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 14px;
	background: var(--ypt-red-soft);
	color: var(--ypt-red);
}

body.yadak14-page-template .ypv-use-card {
	padding: 1.15rem 1.1rem !important;
}

body.yadak14-page-template .ypv-use-card__n {
	display: inline-grid;
	place-items: center;
	min-width: 2rem;
	height: 2rem;
	margin-bottom: 0.65rem;
	padding: 0 0.5rem;
	border-radius: 10px;
	background: var(--ypt-red);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 900;
}

/* کارت مراحل پیگیری */
body.yadak14-page-template .ytr-step__card {
	padding: 1.35rem 1.2rem !important;
}

body.yadak14-page-template .ytr-step__num {
	background: linear-gradient(135deg, var(--ypt-red), #ff4d50) !important;
	color: #fff !important;
	box-shadow: 0 10px 24px rgba(221, 5, 8, 0.28);
}

/* پنل برند و فرم تماس */
body.yadak14-page-template .yct-brand-panel {
	padding: 1.5rem 1.25rem !important;
	background: linear-gradient(160deg, #0f1014 0%, #1a1b22 55%, #2a0a0b 100%) !important;
	border-color: rgba(255, 255, 255, 0.08) !important;
	color: #fff;
}

body.yadak14-page-template .yct-brand-panel:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 24px 56px rgba(15, 17, 22, 0.35) !important;
}

body.yadak14-page-template .yct-form {
	padding: clamp(1.25rem, 3vw, 1.75rem) !important;
}

body.yadak14-page-template .yct-form .yct-input,
body.yadak14-page-template .yct-form .yct-textarea,
body.yadak14-page-template .yct-form select {
	border-radius: 14px !important;
	border: 1px solid var(--ypt-gray-200) !important;
	background: #fff !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.yadak14-page-template .yct-form .yct-input:focus,
body.yadak14-page-template .yct-form .yct-textarea:focus {
	border-color: rgba(221, 5, 8, 0.42) !important;
	box-shadow: 0 0 0 4px rgba(221, 5, 8, 0.11) !important;
	outline: none;
}

body.yadak14-page-template .yct-submit {
	border-radius: 14px !important;
	background: linear-gradient(135deg, var(--ypt-red), #ff4d50) !important;
	box-shadow: 0 12px 28px rgba(221, 5, 8, 0.24) !important;
}

/* callout */
body.yadak14-page-template .y14-callout {
	padding: 1.15rem 1.2rem !important;
	border-inline-start: 4px solid var(--ypt-red) !important;
	background: linear-gradient(90deg, rgba(221, 5, 8, 0.08), rgba(255, 255, 255, 0.94)) !important;
}

/* هیروها — عمق بیشتر */
body.yadak14-page-template [class$="-hero"] {
	position: relative;
}

body.yadak14-page-template .y14-chip,
body.yadak14-page-template .ytr-pill,
body.yadak14-page-template .ypv-hero__pills li,
body.yadak14-page-template .yrr-badge {
	border-radius: 999px;
	font-weight: 700;
}

body.yadak14-page-template .ypay-card {
	border-radius: var(--ypt-radius) !important;
	border: 1px solid rgba(226, 229, 235, 0.95) !important;
	background: rgba(255, 255, 255, 0.94) !important;
	box-shadow: var(--ypt-shadow) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		border-color 0.28s ease !important;
}

body.yadak14-page-template .ypay-card:hover {
	transform: translateY(-5px) !important;
	border-color: rgba(221, 5, 8, 0.28) !important;
	box-shadow: var(--ypt-shadow-hover) !important;
}

body.yadak14-page-template .ypay-card::before {
	height: 4px !important;
	background: linear-gradient(90deg, var(--ypt-red), #ff6b6e) !important;
	opacity: 1 !important;
}

body.yadak14-page-template .ypay-card__icon {
	width: 52px !important;
	height: 52px !important;
	border-radius: 16px !important;
	background: linear-gradient(145deg, rgba(221, 5, 8, 0.14), rgba(221, 5, 8, 0.06)) !important;
	color: var(--ypt-red) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.yadak14-page-template .ypay-card__title {
	font-weight: 900 !important;
	letter-spacing: -0.01em;
}

body.yadak14-page-template .yship-card {
	border-radius: var(--ypt-radius) !important;
	border: 1px solid rgba(226, 229, 235, 0.95) !important;
	background: rgba(255, 255, 255, 0.94) !important;
	box-shadow: var(--ypt-shadow) !important;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	transition:
		transform 0.28s ease,
		box-shadow 0.28s ease,
		border-color 0.28s ease !important;
}

body.yadak14-page-template .yship-card:hover {
	transform: translateY(-5px) !important;
	border-color: rgba(221, 5, 8, 0.28) !important;
	box-shadow: var(--ypt-shadow-hover) !important;
}

body.yadak14-page-template .yship-card::before {
	height: 4px !important;
	background: linear-gradient(90deg, var(--ypt-red), #ff6b6e) !important;
	opacity: 1 !important;
}

body.yadak14-page-template .yship-card__icon {
	width: 52px !important;
	height: 52px !important;
	border-radius: 16px !important;
	background: linear-gradient(145deg, rgba(221, 5, 8, 0.14), rgba(221, 5, 8, 0.06)) !important;
	color: var(--ypt-red) !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.yadak14-page-template .yship-card__title {
	font-weight: 900 !important;
	letter-spacing: -0.01em;
}

@media (max-width: 767px) {
	body.yadak14-page-template .ypay-card:hover,
	body.yadak14-page-template .yship-card:hover {
		transform: none !important;
	}
}