/* Single product — MEDIUM parity items (values measured on Production with computed styles). */
body.eyn-native-single-product { --eyn-dl-second: #C39052; --eyn-dl-main: #303F34; }

/* 16. "پیشنهاد شگفت انگیز" countdown (mweb-countdown widget) */
body.eyn-native-single-product .eyn-sp-countdown { grid-column: 1 / -1; flex: 0 0 100%; width: 100%; max-width: 100%; margin-bottom: 10px; }
body.eyn-native-single-product .woo_single_countdown { display: flex; flex-wrap: nowrap; justify-content: space-between; align-items: center; padding: 7px 10px 5px 2px; border-radius: 10px; font-size: 13px; color: #505050; text-align: right; clear: both; }
body.eyn-native-single-product .woo_single_countdown .deal_title > span { display: block; }
body.eyn-native-single-product .woo_single_countdown .deal_title_main { font-size: 13px; line-height: 24px; }
body.eyn-native-single-product .woo_single_countdown .deal_title_sub { font-size: 10px; line-height: 16px; }
body.eyn-native-single-product .woo_single_countdown .product-date { direction: ltr; font-family: var(--eyn-font-num, var(--eyn-font)); }
body.eyn-native-single-product .woo_single_countdown .product-date > div { display: inline-block; margin-left: 8px; vertical-align: top; }
body.eyn-native-single-product .woo_single_countdown .product-date > div span { display: block; text-align: center; }
body.eyn-native-single-product .woo_single_countdown .product-date > div span.no { width: 29px; height: 29px; line-height: 29px; border-radius: 6px; background: #f5f5f5; color: #636363; font-size: 12px; font-weight: 500; }
body.eyn-native-single-product .woo_single_countdown .product-date > div.second span.no { background: var(--eyn-dl-second); color: #fff; }
body.eyn-native-single-product .woo_single_countdown .product-date > div span.text { font-size: 10px; line-height: 18px; color: #c2c2c2; }

/* 22. Discount label on gallery; WooCommerce "تخفیف!" flash and zoom trigger removed */
body.eyn-native-single-product .entry-img .inner { position: relative; }
body.eyn-native-single-product .entry-img .inner .product-label { position: absolute; top: 15px; right: 15px; z-index: 4; width: 40px; height: 40px; line-height: 42px; border-radius: 67% 33% 33% 67% / 50% 49% 51% 50%; background: #ff4242; color: #fff; font-size: 12px; font-weight: 400; text-align: center; font-family: var(--eyn-font-num, var(--eyn-font)); }
body.eyn-native-single-product .entry-img .onsale,
body.eyn-native-single-product .woocommerce-product-gallery__trigger { display: none !important; }

/* 24. Stock line, quantity +/- and add-to-cart button */
body.eyn-native-single-product .elementor-add-to-cart p.stock { margin: 10px 0; font-size: 13px; line-height: normal; color: darkblue; text-align: right; }
body.eyn-native-single-product .eyn-sp-addtocart form.cart { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 0; font-size: 12px; color: #505050; }
body.eyn-native-single-product .eyn-sp-addtocart .quantity { position: relative; display: inline-block; width: 100px; height: 22px; margin: 0 0 0 8px; border: 0; border-radius: 0; float: none; }
body.eyn-native-single-product .eyn-sp-addtocart .quantity input.qty { display: inline-block; width: 100px; height: 22px; padding: 0 20px; border: 1px solid #eee; border-radius: 15px; background: #fff; font-size: 13px; font-weight: 400; line-height: 24.7px; color: #555; text-align: left; }
body.eyn-native-single-product .eyn-sp-addtocart .quantity .plus-minus { position: absolute; top: 1px; right: 8px; left: auto; display: flex; flex-direction: row; width: 48px; height: 20px; order: 0; }
body.eyn-native-single-product .eyn-sp-addtocart .quantity .elm_qty { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin: 0 2px; border: 0; border-radius: 15px; background: transparent; color: #505050; cursor: pointer; }
body.eyn-native-single-product .eyn-sp-addtocart .quantity .elm_qty svg { width: 15px; height: 15px; fill: none; stroke: #414141; }
body.eyn-native-single-product .eyn-sp-addtocart .single_add_to_cart_button { display: inline-flex; align-items: center; justify-content: center; gap: 0; width: auto; min-width: 161px; height: 50px; padding: 5px 12px 5px 14px; border-radius: 15px; background: #8c1c1c; color: #fff; font-size: 12px; font-weight: 500; line-height: 40px; float: none; }
body.eyn-native-single-product .eyn-sp-addtocart .single_add_to_cart_button svg { width: 24px; height: 24px; margin: 0 0 0 4px; fill: none; stroke: #fff; }
body.eyn-native-single-product .product_stock { color: #505050; font-size: 13px; line-height: normal; }
body.eyn-native-single-product .product_stock span { color: #505050; }
body.eyn-native-single-product .product_stock.no_avl,
body.eyn-native-single-product .product_stock.no_avl span { color: #f44336; }

/* 23. SKU / category two-column meta table */
body.eyn-native-single-product .eyn-sp-meta .product_meta { display: flex; flex-direction: column; padding: 0; font-size: 12px; line-height: normal; color: #505050; text-align: right; }
body.eyn-native-single-product .eyn-sp-meta .product_meta .detail-container { position: relative; display: flex; width: 100%; padding: 0; color: #505050; }
body.eyn-native-single-product .eyn-sp-meta .product_meta .detail-label { display: block; flex: 0 0 108px; width: 108px; font-weight: 700; }
body.eyn-native-single-product .eyn-sp-meta .product_meta .sku,
body.eyn-native-single-product .eyn-sp-meta .product_meta .detail-content { display: block; color: #505050; padding: 0; }
body.eyn-native-single-product .eyn-sp-meta .product_meta .detail-content a { color: #505050; }

/* 17. "مشخصات کلی" — full table, no collapse. Visual style lives in wc-single-product.css. */
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-table.is-full .shop_attributes tr,
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-table.is-full .shop_attributes tbody > tr { display: table-row !important; }
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-more,
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-toggle,
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-group { display: none !important; }
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-table.is-full { max-height: none !important; }

/* 18. FAQ accordion: only the first item open (Elementor accordion look) */
body.eyn-native-single-product .eyn-wc-single__policies { margin: 28px 0 18px; border: 0; background: transparent; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-accordion-item { border: 1px solid #d5d8dc; background: #fff; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-accordion-item + .elementor-accordion-item { border-top: 0; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-tab-title { padding: 15px 20px; font-size: 12px; font-weight: 700; line-height: 12px; color: #505050; background: #fff; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-tab-title::before { content: '+'; display: inline-block; width: 18px; margin-left: 0; color: #c49352; font-size: 16px; font-weight: 700; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-tab-title.elementor-active::before { content: '−'; color: #67452e; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-accordion-title { font-size: 14px; font-weight: 600; line-height: 22.4px; color: #c49352; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-tab-title.elementor-active .elementor-accordion-title { color: #67452e; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-tab-content { display: none; padding: 15px 20px; border-top: 1px solid #d5d8dc; font-size: 13px; line-height: 27.3px; color: #7a7a7a; }
body.eyn-native-single-product .eyn-wc-single__policies .elementor-tab-content.elementor-active { display: block; }

/* 20. Desktop floating add-to-cart (Digiland .add_to_cart_sticky; hidden below 1351px like Production) */
body.eyn-native-single-product .add_to_cart_sticky { position: fixed; bottom: 11px; right: 10px; left: auto; z-index: 999; display: flex; flex-direction: row-reverse; width: auto; height: auto; padding: 0; border: 0; background: transparent; color: #fff; opacity: 0; pointer-events: none; cursor: pointer; transition: all .5s ease-in-out; }
body.eyn-native-single-product .add_to_cart_sticky.active { opacity: 1; pointer-events: all; right: 30px; }
body.eyn-native-single-product .add_to_cart_sticky svg { width: 39px; height: 39px; margin-left: 5px; padding: 6px; border-radius: 15px; background: var(--eyn-dl-main); box-shadow: 0 1px 7px -3px rgba(0,0,0,.1); fill: none; stroke: #fff; }
body.eyn-native-single-product .add_to_cart_sticky span { display: inline-block; height: 39px; min-width: 127px; margin: auto auto 5px; padding: 0 15px; border-radius: 15px; background: #fff; box-shadow: 0 1px 7px -3px rgba(0,0,0,.1); color: #333; font-size: 11px; font-weight: 500; line-height: 39px; white-space: nowrap; }
body.eyn-native-single-product .m_add_to_cart_sticky { display: none; }
@media (max-width: 1350px) {
	body.eyn-native-single-product .add_to_cart_sticky { display: none !important; }
}

/* 19. Mobile sticky bar with price + strike price (Digiland .m_add_to_cart_sticky) */
@media (max-width: 767px) {
	body.eyn-native-single-product { padding-bottom: 70px; }
	body.eyn-native-single-product .m_add_to_cart_sticky { position: fixed; right: 10px; bottom: 10px; left: 10px; z-index: 10; display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; height: 50px; padding: 0 15px; border-radius: 10px; background: var(--eyn-dl-main); box-shadow: 0 -5px 5px -4px rgba(0,0,0,.1); color: #fff; line-height: 50px; cursor: pointer; }
	body.eyn-native-single-product.eyn-product-outofstock { padding-bottom: 0; }
	body.eyn-native-single-product.eyn-product-outofstock:has(.esn-notify-card) { padding-bottom: 70px; }
	body.eyn-native-single-product.eyn-product-outofstock .m_add_to_cart_sticky,
	body.eyn-native-single-product .m_add_to_cart_sticky.outofstock { display: none !important; }
	body.eyn-native-single-product.eyn-product-outofstock .eyn-sp-addtocart,
	body.eyn-native-single-product .product.outofstock .eyn-sp-addtocart { display: none !important; }
	body.eyn-native-single-product.eyn-product-outofstock .eyn-sp-price-plugin { display: none !important; }
	body.eyn-native-single-product .esn-notify-card {
		position: fixed;
		right: 10px;
		bottom: 10px;
		left: 10px;
		z-index: 15;
		width: auto;
		max-width: none;
		margin: 0;
		border-radius: 10px;
	}
	body.eyn-native-single-product .esn-notify-header {
		height: 50px;
		min-height: 50px;
		padding: 0 15px;
	}
	body.eyn-native-single-product .esn-notify-card.is-open .esn-notify-header {
		height: auto;
		padding: 10px 15px;
	}
	body.eyn-native-single-product .esn-notify-title {
		font-size: 13px;
		font-weight: 500;
		line-height: 1.3;
	}
	body.eyn-native-single-product .esn-notify-description {
		display: none;
	}
	body.eyn-native-single-product .m_add_to_cart_sticky > span { display: flex; align-items: center; font-size: 12px; font-weight: 500; }
	body.eyn-native-single-product .m_add_to_cart_sticky svg { width: 24px; height: 24px; margin-left: 13px; fill: none; stroke: #fff; }
	body.eyn-native-single-product .m_add_to_cart_sticky .price { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: center; color: #fff; line-height: 27px; font-size: 12px; }
	body.eyn-native-single-product .m_add_to_cart_sticky .price del { color: rgba(255,255,255,.6); font-size: 11px; }
	body.eyn-native-single-product .m_add_to_cart_sticky .price ins { margin-right: 5px; text-decoration: none; color: #fff; font-weight: 500; }
	body.eyn-native-single-product .m_add_to_cart_sticky .price .amount { color: inherit; }
	body.eyn-native-single-product .m_add_to_cart_sticky .price .woocommerce-Price-currencySymbol { font-size: 9px; font-weight: normal; }
	body.eyn-native-single-product .m_add_to_cart_sticky .price::before { content: ''; position: relative; right: -25px; display: inline-block; width: 1px; height: 22px; background: rgba(255,255,255,.35); }
	body.eyn-native-single-product .woo_single_countdown .product-date > div span.no { width: 32px; height: 32px; line-height: 32px; border-radius: 10px; font-size: 12px; }
}

/* 17b. Production shows no "توضیحات تکمیلی" heading and the table spans the whole panel */
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-table.is-full h2 { display: none; }
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-table.is-full,
body.eyn-native-single-product #tab-additional_information .eyn-sp-specs-table.is-full table.shop_attributes { width: 100% !important; max-width: none !important; }
body.eyn-native-single-product .m_add_to_cart_sticky .price del { text-decoration-color: #ff4242; }
/* Add-to-cart button uses the site font (buttons don't inherit it by default). */
body.eyn-native-single-product .single_add_to_cart_button,
body.eyn-native-single-product .eyn-sp-addtocart .single_add_to_cart_button,
body.eyn-native-single-product .eyn-sticky-a2c button,
body.eyn-native-single-product .eyn-sticky-a2c .button { font-family: var(--mainfont, var(--eyn-font)), Tahoma, sans-serif; letter-spacing: 0; }


/* Keep the specs table as a real two-column table on mobile (override Woo smallscreen block layout). */
@media (max-width: 767px) {
	body.eyn-native-single-product #tab-additional_information table.shop_attributes { display: table !important; width: 100% !important; }
	body.eyn-native-single-product #tab-additional_information table.shop_attributes tbody { display: table-row-group !important; }
	body.eyn-native-single-product #tab-additional_information table.shop_attributes tr,
	body.eyn-native-single-product #tab-additional_information table.shop_attributes tbody > tr { display: table-row !important; }
	body.eyn-native-single-product #tab-additional_information table.shop_attributes th,
	body.eyn-native-single-product #tab-additional_information table.shop_attributes td { display: table-cell !important; }
}
