/* ==========================================================================
   عیناکتو — اصلاحات نقطه‌ای کارفرما
   فقط موارد خواسته‌شده؛ هیچ انتخابگر دیگری دست نمی‌خورد.
   ========================================================================== */

/* --------------------------------------------------------------------------
   ۱) آیکون ذره‌بین هدر — وسط دایره
   -------------------------------------------------------------------------- */

body.eyewear-ux .ey-search {
	align-items: center;
}

body.eyewear-ux .ey-search button,
body.eyewear-ux .ey-search .ey-search__btn {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 38px;
	height: 38px;
	min-width: 38px;
	padding: 0 !important;
	line-height: 1;
	border-radius: 50%;
	flex: 0 0 38px;
}

body.eyewear-ux .ey-search button svg,
body.eyewear-ux .ey-search .ey-search__btn svg {
	display: block;
	width: 18px;
	height: 18px;
	margin: 0;
}

/* --------------------------------------------------------------------------
   ۲) دکمه افزودن به سبد در آرشیو — متن وسط‌چین
   -------------------------------------------------------------------------- */

body.eyewear-ux ul.products li.product .button,
body.eyewear-ux ul.products li.product a.add_to_cart_button,
body.eyewear-ux ul.products li.product .added_to_cart {
	display: flex !important;
	align-items: center;
	justify-content: center;
	text-align: center !important;
	line-height: 1.6 !important;
	padding-block: 8px !important;
}

body.eyewear-ux ul.products li.product .button.loading::after,
body.eyewear-ux ul.products li.product .button.added::after {
	position: static;
	margin-inline-start: 6px;
}

/* --------------------------------------------------------------------------
   ۳) برچسب تخفیف آرشیو — قرمز واضح و جذاب
   -------------------------------------------------------------------------- */

body.eyewear-ux ul.products li.product span.onsale {
	position: absolute !important;
	top: 10px !important;
	inset-inline-start: 10px !important;
	inset-inline-end: auto !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: auto !important;
	height: auto !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 5px 10px !important;
	border-radius: 999px !important;
	background: linear-gradient(135deg, #e11d2e 0%, #b3121f 100%) !important;
	color: #fff !important;
	font-size: 0.72rem !important;
	font-weight: 800 !important;
	line-height: 1.7 !important;
	letter-spacing: 0 !important;
	box-shadow: 0 6px 16px rgba(179, 18, 31, 0.35) !important;
	text-shadow: none;
	transform: none !important;
	clip-path: none !important;
	z-index: 4;
}

/* کالای تخفیف‌دار کمی برجسته‌تر دیده شود */
body.eyewear-ux ul.products li.product:has(span.onsale) {
	border-color: rgba(225, 29, 46, 0.28) !important;
	box-shadow: 0 10px 24px rgba(179, 18, 31, 0.1) !important;
}

body.eyewear-ux ul.products li.product:has(span.onsale) .woocommerce-loop-product__title {
	color: #2a0a0d !important;
}

/* قیمت قبلی واضح خط بخورد */
body.eyewear-ux ul.products li.product .price del {
	color: #9aa1ae !important;
	opacity: 1 !important;
	text-decoration: line-through;
	font-size: 0.76em;
}

body.eyewear-ux ul.products li.product .price ins {
	text-decoration: none;
	font-weight: 800;
	color: #b3121f !important;
}

/* --------------------------------------------------------------------------
   ۴) دکمه‌های سبد خرید — هم‌رنگ برند
   -------------------------------------------------------------------------- */

body.eyewear-ux.woocommerce-cart .cart_totals .checkout-button,
body.eyewear-ux.woocommerce-cart a.checkout-button,
body.eyewear-ux.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
	background: var(--ey-brand, #780000) !important;
	background-image: none !important;
	color: #fff !important;
	border: 0;
	border-radius: 12px !important;
	min-height: 52px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 0.92rem;
	box-shadow: 0 10px 22px rgba(120, 0, 0, 0.22) !important;
}

body.eyewear-ux.woocommerce-cart .cart_totals .checkout-button:hover,
body.eyewear-ux.woocommerce-cart a.checkout-button:hover {
	background: #5a0000 !important;
	color: #fff !important;
}

/* دکمه‌های ثانویه‌ی سبد: سفید با حاشیه‌ی برند */
body.eyewear-ux.woocommerce-cart button[name="update_cart"],
body.eyewear-ux.woocommerce-cart .coupon button,
body.eyewear-ux.woocommerce-cart .button.e-apply-coupon {
	background: #fff !important;
	background-image: none !important;
	color: var(--ey-brand, #780000) !important;
	border: 1.5px solid rgba(120, 0, 0, 0.35) !important;
	box-shadow: none !important;
	font-weight: 700;
}

body.eyewear-ux.woocommerce-cart button[name="update_cart"]:hover,
body.eyewear-ux.woocommerce-cart .coupon button:hover,
body.eyewear-ux.woocommerce-cart .button.e-apply-coupon:hover {
	background: rgba(120, 0, 0, 0.06) !important;
	color: #5a0000 !important;
}

/* پیام «مشاهده سبد خرید» هم از گرادیان طلایی در نیاید */
body.eyewear-ux .woocommerce-message a.button {
	background: var(--ey-brand, #780000) !important;
	background-image: none !important;
	color: #fff !important;
	border-radius: 10px;
}

/* --------------------------------------------------------------------------
   ۵) هدر صفحه‌های اضافه (رهگیری سفارش و مشابه) — متن سفید روی پس‌زمینه‌ی روشن
   -------------------------------------------------------------------------- */

body.eyewear-ux .shopkit-hero {
	background: linear-gradient(135deg, #2a0a0d 0%, #780000 65%, #8f1a1a 100%);
	border-radius: 18px;
	padding: 22px 20px;
	box-shadow: 0 12px 30px rgba(120, 0, 0, 0.18);
}

body.eyewear-ux .shopkit-hero h1,
body.eyewear-ux .shopkit-hero h2,
body.eyewear-ux .shopkit-hero p,
body.eyewear-ux .shopkit-hero span,
body.eyewear-ux .shopkit-hero label {
	color: #fff !important;
}

body.eyewear-ux .shopkit-hero p {
	opacity: 0.9;
	line-height: 2;
}

body.eyewear-ux .shopkit-hero a {
	color: #ffe3c2 !important;
}

@media (max-width: 768px) {
	body.eyewear-ux .shopkit-hero {
		padding: 18px 16px;
		border-radius: 14px;
	}

	body.eyewear-ux .shopkit-hero h1 {
		font-size: 1.35rem !important;
		line-height: 1.6;
	}
}

/* --------------------------------------------------------------------------
   ۵) حذف دکمه‌ی «به‌روزرسانی سبد خرید» (تغییر تعداد خودکار اعمال می‌شود)
   -------------------------------------------------------------------------- */

body.eyewear-ux.woocommerce-cart .elementor-widget-woocommerce-cart table.shop_table.cart td.actions button[name="update_cart"],
body.eyewear-ux.woocommerce-cart table.shop_table td.actions button[name="update_cart"],
body.eyewear-ux.woocommerce-cart form.woocommerce-cart-form button[name="update_cart"],
body.eyewear-ux.woocommerce-cart button[name="update_cart"] {
	display: none !important;
	visibility: hidden !important;
	width: 0 !important;
	height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   ۶) کادر سفارش در تسویه حساب: محتوای بلند نباید زیر صفحه گم شود
   -------------------------------------------------------------------------- */

@media (min-width: 1024px) {
	body.woocommerce-checkout #order_review {
		position: static !important;
		top: auto !important;
		max-height: none !important;
		overflow: visible !important;
		align-self: start;
	}

	/* کادر سفارش کامل دیده شود؛ بدون برش و بدون اسکرول داخلی */
	body.woocommerce-checkout #order_review .woocommerce-checkout-review-order {
		position: static !important;
	}
}

/* --------------------------------------------------------------------------
   ۷) کارت ورود/ثبت‌نام: پنل برند به‌جای مشکی
   -------------------------------------------------------------------------- */

body.eyewear-ux .ey-auth__aside {
	position: relative;
	overflow: hidden;
	color: #fff;
	background:
		radial-gradient(560px 320px at 90% -12%, rgba(255, 216, 174, .30), transparent 62%),
		radial-gradient(420px 280px at 6% 110%, rgba(255, 255, 255, .12), transparent 60%),
		linear-gradient(152deg, #8b1119 0%, #6d0006 54%, #4b0006 100%) !important;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
	background-blend-mode: normal;
}

/* بافت خطوط مورب بسیار محو برای عمق */
body.eyewear-ux .ey-auth__aside::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 26px);
	pointer-events: none;
}

/* نوار نور مورب برای جلوگیری از تخت‌بودن پنل */
body.eyewear-ux .ey-auth__aside::after {
	content: "";
	position: absolute;
	inset: -30% -60%;
	background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .07) 50%, transparent 58%);
	pointer-events: none;
}

body.eyewear-ux .ey-auth__aside > * {
	position: relative;
	z-index: 1;
}

body.eyewear-ux .ey-auth__aside .ey-auth__brand {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 18px;
}

/* هاله‌ی نرم پشت لوگو */
body.eyewear-ux .ey-auth__aside .ey-auth__brand::before {
	content: "";
	position: absolute;
	inset: -26% -30%;
	background: radial-gradient(closest-side, rgba(255, 255, 255, .22), transparent 72%);
	filter: blur(6px);
	z-index: -1;
}

body.eyewear-ux .ey-auth__aside .ey-auth__brand img {
	max-height: 62px;
	width: auto;
	filter: brightness(0) invert(1) drop-shadow(0 3px 10px rgba(0, 0, 0, .28));
	opacity: 1;
}

body.eyewear-ux .ey-auth__aside .ey-auth__kicker {
	color: #ffdcc2 !important;
	font-size: .78rem;
	letter-spacing: .08em;
	opacity: 1;
}

body.eyewear-ux .ey-auth__aside .ey-auth__title {
	color: #fff !important;
	font-size: 1.5rem;
	line-height: 1.7;
	margin-bottom: 10px;
	text-shadow: 0 1px 12px rgba(0, 0, 0, .22);
}

/* جداکننده‌ی نازک زیر تیتر */
body.eyewear-ux .ey-auth__aside .ey-auth__title::after {
	content: "";
	display: block;
	width: 46px;
	height: 2px;
	margin-top: 12px;
	border-radius: 2px;
	background: linear-gradient(90deg, rgba(255, 219, 190, .95), rgba(255, 219, 190, 0));
}

body.eyewear-ux .ey-auth__aside .ey-auth__text {
	color: rgba(255, 255, 255, .95) !important;
	font-size: .9rem;
	line-height: 2;
}

body.eyewear-ux .ey-auth__aside .ey-auth__list li {
	color: rgba(255, 255, 255, .97) !important;
	font-size: .86rem;
	line-height: 1.95;
	padding-bottom: 8px;
}

body.eyewear-ux .ey-auth__aside .ey-auth__list li svg {
	width: 18px;
	height: 18px;
}

body.eyewear-ux .ey-auth__aside .ey-auth__list li svg {
	stroke: #ffd9b8 !important;
	color: #ffd9b8 !important;
}

@media (max-width: 900px) {
	body.eyewear-ux .ey-auth__aside {
		padding: 20px 18px !important;
	}

	body.eyewear-ux .ey-auth__aside .ey-auth__brand img {
		max-height: 38px;
	}
}
