/* ==========================================================================
   Moobox skin for WoodMart — fonts, header, cards, shop, product, footer
   Toggle: موباکس ← تنظیمات ← «پوسته طراحی موباکس»
   ========================================================================== */

:root {
	--mbx-brand: #e2246b;
	--mbx-brand-d: #b5174f;
	--mbx-brand-soft: #fdeef4;
	--mbx-gold: #f5b800;
	--mbx-ink: #1d1a2b;
	--mbx-muted: #6b6880;
	--mbx-line: #eee7ee;
	--mbx-soft: #faf7fb;
	--mbx-card: #ffffff;
	--mbx-r-lg: 20px;
	--mbx-r-md: 14px;
	--mbx-shadow: 0 1px 2px rgba(29, 26, 43, .04), 0 8px 24px rgba(29, 26, 43, .06);
	--mbx-shadow-hover: 0 2px 4px rgba(29, 26, 43, .05), 0 18px 40px rgba(226, 36, 107, .14);
	--mbx-font: 'MBX Vazirmatn', 'Vazirmatn', 'iranyekan', Tahoma, sans-serif;
	--mbx-font-title: 'MBX Estedad', 'Estedad', 'MBX Vazirmatn', 'iranyekan', Tahoma, sans-serif;
	/* Moobox widgets follow the brand (WhatsApp buttons stay WhatsApp-green). */
	--mbx-green: var(--mbx-brand);
	--mbx-green-d: var(--mbx-brand-d);
}

/* ---------- WoodMart variables ---------- */
body {
	--wd-primary-color: var(--mbx-brand);
	--wd-alternative-color: var(--mbx-gold);
	--btn-accented-bgcolor: var(--mbx-brand);
	--btn-accented-bgcolor-hover: var(--mbx-brand-d);
	--btn-accented-brd-radius: 12px;
	--btn-default-brd-radius: 12px;
	--wd-brd-radius: 14px;
	--wd-form-brd-radius: 12px;
	--wd-text-font: var(--mbx-font);
	--wd-title-font: var(--mbx-font-title);
	--wd-entities-title-font: var(--mbx-font-title);
	--wd-widget-title-font: var(--mbx-font-title);
	--wd-header-el-font: var(--mbx-font);
	--wd-alternative-font: var(--mbx-font);
	--wd-title-font-weight: 700;
	--wd-entities-title-font-weight: 600;
	--wd-header-el-font-weight: 600;
	--wd-title-color: var(--mbx-ink);
	--wd-entities-title-color: var(--mbx-ink);
	--wd-entities-title-color-hover: var(--mbx-brand);
	--color-gray-900: var(--mbx-ink);
}

/* ---------- Typography ---------- */
body,
button, input, select, textarea,
.wd-nav > li > a, .woocommerce-breadcrumb, .price, .amount {
	font-family: var(--mbx-font) !important;
	font-feature-settings: "ss01";
}
h1, h2, h3, h4, h5, h6, .title, .wd-entities-title, .widget-title, .product_title, .page-title .title,
.mbx-h2, .mbx-hero h1, .wd-el-title, .elementor-heading-title {
	font-family: var(--mbx-font-title) !important;
	letter-spacing: 0 !important;
}
body {
	color: #3a3650;
	line-height: 1.9;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--mbx-brand); color: #fff; }

/* ---------- Header ---------- */
.whb-general-header.whb-with-bg,
.whb-header-bottom.whb-with-bg {
	background: transparent !important;
	border: 0 !important;
}
.whb-general-header .whb-row-container,
.whb-general-header .container {
	background: rgba(255, 255, 255, .92);
	backdrop-filter: saturate(160%) blur(10px);
	-webkit-backdrop-filter: saturate(160%) blur(10px);
	border-radius: 0 0 22px 22px;
	box-shadow: var(--mbx-shadow);
}
.whb-header-bottom .container {
	background: rgba(255, 255, 255, .96);
	border-radius: 18px;
	margin-top: 10px;
	box-shadow: 0 6px 20px rgba(29, 26, 43, .06);
}
.whb-sticked .whb-header-bottom .container { margin-top: 6px; }

/* Main menu: one tidy row, pill hover */
.wd-nav-main {
	flex-wrap: nowrap !important;
	gap: 2px;
}
.whb-general-header .whb-col-left,
.whb-general-header .whb-col-right { min-width: 0; }
.whb-general-header .wd-header-nav { min-width: 0; }
.wd-nav-main > li > a {
	font-size: 14px !important;
	font-weight: 600 !important;
	color: var(--mbx-ink) !important;
	padding: 8px 12px !important;
	border-radius: 10px;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.wd-nav-main > li > a:hover,
.wd-nav-main > li.current-menu-item > a,
.wd-nav-main > li.wd-opened > a {
	background: var(--mbx-brand-soft);
	color: var(--mbx-brand) !important;
}
.wd-nav-main > li > a:after,
.wd-nav-main.wd-style-underline > li > a:after { display: none !important; }
@media (min-width: 1025px) and (max-width: 1440px) {
	.wd-nav-main > li > a { padding: 7px 8px !important; font-size: 13px !important; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
	.wd-nav-main > li > a { padding: 6px 6px !important; font-size: 12.5px !important; }
}

/* Category button */
.wd-header-cats .menu-opener {
	background: linear-gradient(135deg, var(--mbx-brand), #ff5c8a) !important;
	color: #fff !important;
	border-radius: 14px !important;
	font-weight: 700 !important;
	min-height: 46px;
	box-shadow: 0 8px 18px rgba(226, 36, 107, .25);
}
.wd-header-cats .wd-dropdown-cats {
	border-radius: 16px !important;
	box-shadow: 0 20px 50px rgba(29, 26, 43, .14) !important;
	overflow: hidden;
}

/* Search */
.wd-header-search-form .searchform input[type=text],
.wd-header-search-form .searchform input[type=search] {
	background: var(--mbx-soft) !important;
	border: 1.5px solid transparent !important;
	border-radius: 14px !important;
	height: 46px !important;
	padding-inline-start: 18px !important;
	transition: border-color .15s, background .15s;
}
.wd-header-search-form .searchform input:focus {
	background: #fff !important;
	border-color: var(--mbx-brand) !important;
	box-shadow: 0 0 0 4px rgba(226, 36, 107, .12);
}
.whb-header-bottom .wd-social-icons { display: none; }

/* Header tools */
.wd-header-cart .wd-cart-number,
.wd-header-wishlist .wd-tools-count {
	background: var(--mbx-brand) !important;
	font-weight: 700;
}

/* ---------- Page titles & breadcrumbs ---------- */
.page-title {
	background: linear-gradient(135deg, #2a1f3d 0%, #4b1f43 60%, #7a1f4f 100%) !important;
	border-radius: 0 0 28px 28px;
	margin-bottom: 28px;
}
.page-title .title { font-size: clamp(22px, 3vw, 34px) !important; }
.woocommerce-breadcrumb, .wd-breadcrumbs { font-size: 13px !important; opacity: .9; }

/* ---------- Product cards ---------- */
.wd-product .product-wrapper {
	background: var(--mbx-card);
	border: 1px solid var(--mbx-line);
	border-radius: var(--mbx-r-lg);
	padding: 10px 10px 14px !important;
	box-shadow: var(--mbx-shadow);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
	height: 100%;
}
.wd-product:hover .product-wrapper {
	transform: translateY(-4px);
	box-shadow: var(--mbx-shadow-hover);
	border-color: #f6c9da;
}
.wd-product .product-element-top {
	background: var(--mbx-soft);
	border-radius: var(--mbx-r-md);
	overflow: hidden;
}
.wd-product .product-image-link img {
	aspect-ratio: 1 / 1;
	object-fit: contain;
	mix-blend-mode: multiply;
	padding: 8px;
	transition: transform .35s ease;
}
.wd-product:hover .product-image-link img { transform: scale(1.04); }
.wd-product .wd-entities-title {
	font-size: 14px !important;
	line-height: 1.8 !important;
	font-weight: 600 !important;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 3.6em;
	margin-top: 10px !important;
}
.wd-product .wd-product-cats { font-size: 12px; color: var(--mbx-muted); }
.wd-product .wd-product-cats a { color: var(--mbx-muted) !important; }
.wd-product .price,
.wd-product .price .amount {
	color: var(--mbx-ink) !important;
	font-weight: 800 !important;
	font-size: 15px;
}
.wd-product .price ins .amount { color: var(--mbx-brand) !important; }
.wd-product .price del .amount { color: #b5b1c2 !important; font-weight: 500 !important; font-size: 12px; }
.product-labels .product-label {
	border-radius: 10px !important;
	font-weight: 700 !important;
	font-family: var(--mbx-font) !important;
}
.product-labels .onsale { background: var(--mbx-brand) !important; }
.product-labels .out-of-stock { background: #8e8aa3 !important; }

/* "Call for price" buttons of the existing plugin inside cards */
.ariandata-cfp-btn {
	border-radius: 10px !important;
	font-family: var(--mbx-font) !important;
	font-weight: 700 !important;
	transition: transform .15s, filter .15s;
}
.ariandata-cfp-btn:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* ---------- Shop page ---------- */
.shop-loop-head, .wd-shop-tools {
	background: #fff;
	border: 1px solid var(--mbx-line);
	border-radius: 16px;
	padding: 10px 14px;
	margin-bottom: 18px;
}
.woocommerce-ordering select, .wd-products-per-page, .wd-products-shop-view {
	border-radius: 10px !important;
}
.wd-pagination ul, .woocommerce-pagination ul { gap: 6px; border: 0 !important; }
.woocommerce-pagination ul li a, .woocommerce-pagination ul li span,
.wd-pagination ul li a, .wd-pagination ul li span {
	min-width: 42px;
	height: 42px;
	line-height: 42px;
	border-radius: 12px !important;
	border: 1px solid var(--mbx-line) !important;
	background: #fff;
	font-weight: 700;
}
.woocommerce-pagination ul li span.current, .wd-pagination ul li span.current {
	background: var(--mbx-brand) !important;
	border-color: var(--mbx-brand) !important;
	color: #fff !important;
}
.sidebar-container .widget, .wd-sidebar .widget {
	background: #fff;
	border: 1px solid var(--mbx-line);
	border-radius: 16px;
	padding: 16px 18px !important;
}

/* ---------- Single product ---------- */
.single-product .product-image-summary-wrap,
.single-product .product-image-summary {
	gap: 28px;
}
.single-product .woocommerce-product-gallery {
	background: #fff;
	border: 1px solid var(--mbx-line);
	border-radius: 24px;
	padding: 12px;
}
.single-product .woocommerce-product-gallery img { border-radius: 16px; }
.single-product .product_title {
	font-size: clamp(20px, 2.4vw, 28px) !important;
	line-height: 1.6 !important;
	font-weight: 800 !important;
}
.single-product .summary .price,
.single-product .summary .price .amount {
	color: var(--mbx-brand) !important;
	font-weight: 800 !important;
}
.single-product .woocommerce-tabs .wd-nav-tabs > li > a,
.single-product .wc-tabs > li > a { font-weight: 700 !important; }
.single-product .woocommerce-tabs {
	background: #fff;
	border: 1px solid var(--mbx-line);
	border-radius: 24px;
	padding: 8px 22px 22px;
	margin-top: 26px;
}

/* ---------- Buttons & forms ---------- */
.btn, .button, button[type=submit], input[type=submit], .single_add_to_cart_button {
	border-radius: 12px !important;
	font-family: var(--mbx-font) !important;
	font-weight: 700 !important;
}
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], select, textarea {
	border-radius: 12px !important;
}

/* ---------- Mobile bottom toolbar ---------- */
.wd-toolbar {
	background: rgba(255, 255, 255, .96) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-radius: 20px 20px 0 0;
	box-shadow: 0 -6px 24px rgba(29, 26, 43, .08) !important;
}
.wd-toolbar .wd-toolbar-label { font-family: var(--mbx-font) !important; font-weight: 600; font-size: 11px !important; }
.wd-toolbar .wd-tools-count { background: var(--mbx-brand) !important; }

/* ---------- Moobox hero collage ---------- */
.mbx-hero {
	background:
		radial-gradient(circle at 15% 20%, rgba(245, 184, 0, .18), transparent 40%),
		radial-gradient(circle at 85% 80%, rgba(226, 36, 107, .14), transparent 45%),
		linear-gradient(135deg, #fff7fb 0%, #fdf3ff 55%, #fff9ec 100%) !important;
}
.mbx-kicker { color: var(--mbx-brand) !important; box-shadow: 0 4px 12px rgba(226, 36, 107, .1); }
.mbx-hero-search button { background: var(--mbx-brand) !important; }
.mbx-hero-collage {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	padding: 10px;
}
.mbx-hc-item {
	background: #fff;
	border-radius: 20px;
	padding: 12px;
	box-shadow: 0 12px 30px rgba(29, 26, 43, .08);
	text-decoration: none !important;
	color: var(--mbx-ink) !important;
	font-size: 12px;
	font-weight: 600;
	display: flex;
	flex-direction: column;
	gap: 6px;
	transition: transform .25s;
}
.mbx-hc-item img { width: 100%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.mbx-hc-0 { transform: translateY(18px) rotate(-2deg); }
.mbx-hc-3 { transform: translateY(-18px) rotate(2deg); }
.mbx-hc-item:hover { transform: translateY(-4px) rotate(0); }
.mbx-hc-badge {
	position: absolute;
	inset-inline-start: 50%;
	bottom: -14px;
	transform: translateX(50%);
	background: var(--mbx-ink);
	color: #fff;
	font-weight: 800;
	font-size: 13px;
	padding: 8px 14px;
	border-radius: 999px;
	box-shadow: 0 10px 24px rgba(29, 26, 43, .25);
	white-space: nowrap;
}
@media (max-width: 900px) {
	.mbx-hero-collage { grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 0; }
	.mbx-hc-item { padding: 6px; border-radius: 14px; }
	.mbx-hc-item span, .mbx-hc-badge { display: none; }
	.mbx-hc-0, .mbx-hc-3 { transform: none; }
}

/* ---------- Moobox footer ---------- */
.wd-footer.footer-container { background: transparent !important; }
.mbx-footer {
	background:
		radial-gradient(circle at 90% 0%, rgba(226, 36, 107, .25), transparent 40%),
		radial-gradient(circle at 0% 100%, rgba(245, 184, 0, .12), transparent 35%),
		#1d1a2b;
	color: #cfcbe0;
	border-radius: 32px 32px 0 0;
	padding: 0 clamp(16px, 4vw, 56px);
	margin-top: 40px;
	font-size: 14px;
}
.mbx-footer a { color: #e9e6f5 !important; text-decoration: none !important; transition: color .15s; }
.mbx-footer a:hover { color: var(--mbx-gold) !important; }
.mbx-f-cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: linear-gradient(135deg, var(--mbx-brand), #ff6a95);
	border-radius: 24px;
	padding: 22px 26px;
	transform: translateY(-34px);
	box-shadow: 0 18px 40px rgba(226, 36, 107, .35);
	color: #fff;
}
.mbx-f-cta strong { display: block; font-family: var(--mbx-font-title); font-size: 19px; color: #fff; }
.mbx-f-cta span { color: rgba(255, 255, 255, .9); font-size: 14px; }
.mbx-f-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mbx-f-cta .mbx-call-btn { background: rgba(255, 255, 255, .15); color: #fff !important; border-color: rgba(255, 255, 255, .4); }
.mbx-f-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding: 6px 0 30px;
}
.mbx-f-logo img { max-height: 56px; width: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .3)); }
.mbx-f-word { font-family: var(--mbx-font-title); font-size: 28px; font-weight: 800; color: #fff; display: inline-flex; align-items: baseline; gap: 8px; }
.mbx-f-word small { font-size: 12px; letter-spacing: 3px; color: var(--mbx-gold); }
.mbx-f-brand p { margin: 14px 0; line-height: 2.1; color: #bdb8d1; }
.mbx-f-social { display: flex; gap: 8px; }
.mbx-f-social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.mbx-f-social a:hover { background: var(--mbx-brand); color: #fff !important; }
.mbx-f-col h3 { color: #fff !important; font-size: 16px !important; margin: 0 0 14px !important; position: relative; padding-bottom: 10px; }
.mbx-f-col h3:after { content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 28px; height: 3px; border-radius: 3px; background: var(--mbx-gold); }
.mbx-f-col ul { list-style: none; margin: 0; padding: 0; }
.mbx-f-col li { margin-bottom: 10px; line-height: 1.9; }
.mbx-f-contact li { display: flex; gap: 8px; align-items: flex-start; color: #bdb8d1; }
.mbx-f-ic { flex: none; width: 22px; text-align: center; }
.mbx-f-bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	padding: 16px 0 22px;
	font-size: 12.5px;
	color: #9a95b0;
}
.mbx-footer-seals {
	background: #1d1a2b !important;
	padding: 0 clamp(16px, 4vw, 56px) 90px !important;
}
.mbx-footer-seals .elementor-widget-wrap, .mbx-footer-seals .e-con-inner {
	display: flex !important;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 14px;
}
.mbx-footer-seals .elementor-widget { width: auto !important; margin: 0 !important; }
.mbx-footer-seals img, .mbx-footer-seals a img {
	background: #fff;
	border-radius: 16px;
	padding: 8px;
	max-height: 96px;
	width: auto !important;
}
.mbx-footer-seals .elementor-heading-title, .mbx-footer-seals .title { display: none; }
/* App download buttons of the old footer have no real link yet. */
.mbx-footer-seals .elementor-widget:has(a[href="#"]),
.mbx-footer-seals a[href="#"] { display: none !important; }
@media (max-width: 1024px) {
	.mbx-f-grid { grid-template-columns: 1fr 1fr; }
	.mbx-f-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.mbx-footer { border-radius: 24px 24px 0 0; }
	.mbx-f-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
	.mbx-f-contact { grid-column: 1 / -1; }
	.mbx-f-cta { transform: translateY(-24px); padding: 18px; }
	.mbx-f-cta-btns { width: 100%; }
	.mbx-f-cta-btns a { flex: 1; }
	.mbx-f-bottom { justify-content: center; text-align: center; }
}

/* ---------- Small polish ---------- */
.mbx-plist { border-radius: 20px !important; box-shadow: var(--mbx-shadow); }
.mbx-prow-head { background: var(--mbx-soft) !important; }
.mbx-pprice { color: var(--mbx-ink) !important; }
.mbx-cat:hover, .mbx-card-p:hover { box-shadow: var(--mbx-shadow-hover); }
.mbx-card-p, .mbx-cat, .mbx-trust-item { box-shadow: var(--mbx-shadow); border-color: var(--mbx-line) !important; }
.mbx-cat-ph { background: var(--mbx-brand-soft) !important; color: var(--mbx-brand) !important; }
.mbx-rate-badge { background: #fff8e1 !important; border-color: #f5d76e !important; color: #6b4e00 !important; }
.mbx-dot { background: var(--mbx-gold) !important; box-shadow: 0 0 0 4px rgba(245, 184, 0, .25) !important; }
.mbx-wa-cta { background: linear-gradient(135deg, #1d1a2b, #3b1f3f) !important; border-radius: 24px !important; }
@media (prefers-reduced-motion: reduce) {
	.wd-product .product-wrapper, .wd-product .product-image-link img, .mbx-hc-item { transition: none !important; transform: none !important; }
}
