/* صفحهٔ محصول */
.pd-topbar { display: none; }

.pd-actions { margin-bottom: 12px; }
.pd-actions form { display: flex; justify-content: center; gap: 12px; }
.pd-actions button { width: 40px; height: 40px; border: 1px solid #eceef1; border-radius: 10px; background: #fff; color: #3a3a3a; font-size: 17px; line-height: 1; }
.pd-actions button:hover { border-color: var(--main-color-one); color: var(--main-color-one); }

.pd-toast { position: fixed; top: 70px; left: 50%; z-index: 1100; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 10px; background: #2e2e2e; color: #fff; font-size: 14px; white-space: nowrap; transform: translateX(-50%); }
.pd-toast a { color: #fff; font-weight: 500; text-decoration: underline; }

.pd-deal { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 2px 10px; margin-bottom: 12px; border-bottom: 3px solid var(--main-color-one); }
.pd-deal-title { color: var(--main-color-one); font-size: 15px; font-weight: 700; }
.pd-deal-timer { color: var(--main-color-one); font-size: 16px; font-weight: 700; direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

.pro_gallery { position: relative; }
.pd-gallery-count { position: absolute; bottom: 8px; left: 8px; z-index: 5; padding: 2px 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; direction: ltr; }
.pd-gallery-count[hidden] { display: none; }

.add-cart-float { display: none; }

@media (max-width: 767.98px) {
	/* هدر و نوار پایین سایت در این صفحه جای خود را به نوار بالای محصول می‌دهند */
	body:has(.pd-topbar) header, body:has(.pd-topbar) .mobile-footer, body:has(.pd-topbar) .site-alert-image, body:has(.pd-topbar) #contact { display: none !important; }
	body:has(.pd-topbar) { background: #fff; }

	.pd-topbar { position: sticky; top: 0; z-index: 90; display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 14px; border-bottom: 1px solid #e8e9ed; background: #fff; }
	.pd-back { border: 0; background: transparent; padding: 6px; color: #3a3a3a; font-size: 20px; line-height: 1; }
	.pd-top-actions { display: flex; align-items: center; gap: 18px; }
	.pd-top-actions a { position: relative; color: #3a3a3a; font-size: 22px; line-height: 1; }
	.pd-cart-count { position: absolute; top: -7px; left: -9px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--main-color-one); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
	.pd-cart-count[hidden] { display: none; }

	.pd-crumb { margin: 0 !important; padding: 8px 2px !important; background: transparent !important; box-shadow: none !important; }
	.pd-crumb .breadcrumb { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.pd-crumb .breadcrumb::-webkit-scrollbar { display: none; }
	.pd-crumb a { font-size: 12px !important; }

	.product-gallery-thumb { display: none !important; }

	.product-meta .title h6 { margin-top: 10px; color: #2e2e2e; font-size: 17px; font-weight: 700; line-height: 2; }
	.product-rate-border { flex-wrap: wrap; gap: 8px; border: 0 !important; }
	.product-rate-border .ms-3 { margin: 0 !important; padding: 5px 12px; border-radius: 8px; background: #f3f4f6; font-size: 13px; }

	.se-cart { padding: 12px 14px; border-radius: 12px; background: #f5f7fb; box-shadow: none; }
	.se-cart-item { padding: 10px 0; border-bottom: 1px solid #e6e8ee; font-size: 14px; }
	.se-cart-item:last-of-type { border-bottom: 0; }
	.se-cart-item h6 { font-size: 14px !important; }

	.shop-feature .navbar-nav { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
	.shop-feature .nav-item { flex-direction: column; gap: 6px; border: 0 !important; font-size: 12px; text-align: center; }
	.shop-feature img { width: 42px; height: 42px; margin: 0 !important; }

	/* نوار خرید پایین */
	.add-cart-float { position: fixed; right: 0; bottom: 0; left: 0; z-index: 99; display: block; width: 100%; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid #e0e2e7; background: #f7f8fa; }
	.pd-buy-price { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
	.pd-buy-price b { color: #2e2e2e; font-size: 18px; font-weight: 700; }
	.pd-buy-old { color: #9aa0ab; font-size: 13px; text-decoration: line-through; }
	.pd-buy-badge { padding: 1px 8px; border-radius: 5px; background: var(--main-color-one); color: #fff; font-size: 13px; }
	.pd-buy-stock { margin-top: 4px; color: #5d6470; font-size: 12px; text-align: right; }
	.pd-buy-stock.low { color: var(--main-color-one); }
	.pd-buy-btn { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 0; border-radius: 10px; background: var(--main-color-one); color: #fff; font-size: 15px; }
}
