/*
 Theme Name:   Woodmart Child
 Theme URI:    https://xtemos.com/woodmart/
 Description:  Woodmart Child Theme
 Author:       Xtemos
 Author URI:   https://xtemos.com/
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart-child
*/

/* کدهای CSS سفارشی شما از اینجا به بعد قرار می‌گیرند */

/* ================================
   هدر سفارشی PubMarket
   ================================ */
main#main-content {
    padding: 0;
}

.pmc-custom-header {
    direction: rtl;
    background-color: #21503c;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 1000;
}
.pmc-header-inner div {
    max-height: 80px;
}

.pmc-mobile-header div {
    max-height: 60px;
}

.pmc-custom-header .pmc-header-inner * {
    color: #fff;
}

.pmc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.pmc-header-section {
    display: flex;
    align-items: center;
}

.pmc-header-right {
    flex: 0 0 auto;
}

.pmc-header-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.pmc-header-left {
    flex: 0 0 auto;
    gap: 15px;
}

/* منوی اصلی وسط‌چین */
.pmc-header-center .wd-header-nav {
    flex: 1;
    justify-content: center;
}

/* منوی دسکتاپ */
.pmc-desktop-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.pmc-desktop-menu li {
    margin: 0;
    padding: 0;
}

.pmc-desktop-menu a {
    text-decoration: none;
    color: #fff;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s ease;
}

.pmc-desktop-menu a:hover {
    color: var(--wd-primary-color, #83b735);
}

/* خوش‌آمدگویی کاربر */
.pmc-user-greeting {
    font-size: 14px;
    white-space: nowrap;
    color: #fff;
}

.pmc-greeting-text {
    font-weight: 500;
}

.pmc-login-link {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.pmc-login-link:hover {
    color: var(--wd-primary-color, #83b735);
}

/* هدر موبایل */
.pmc-mobile-header {
    display: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    width: 100%;
}

.pmc-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 15px;
}

.pmc-mobile-left,
.pmc-mobile-right {
    flex: 1;
    display: flex;
    align-items: center;
}

.pmc-mobile-left {
    justify-content: flex-start;
}

.pmc-mobile-center {
    flex: 2;
    display: flex;
    justify-content: center;
}

.pmc-mobile-right {
    justify-content: flex-end;
}

/* دکمه همبرگر موبایل */
.pmc-custom-menu-trigger {
    display: inline-block;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 1024px) {
    .pmc-header-inner {
        display: none;
    }

    .pmc-mobile-header {
        display: block;
    }
}
.wd-tools-element {
    --wd-header-el-color: #fff;
}

/* بازنشانی استایل‌های پیش‌فرض وودمارت در هدر */
.pmc-custom-header .site-logo {
    margin: 0;
    padding: 0;
}

.pmc-custom-header .wd-header-cart .wd-tools-text {
    display: none;
}

.pmc-custom-header .wd-header-cart.wd-design-5 .wd-tools-icon {
    width: 40px;
    height: 40px;
}

/* استایل آیکون همبرگر موبایل */
.pmc-mobile-header .wd-header-mobile-nav .wd-tools-icon::before,
.pmc-mobile-header .wd-header-mobile-nav .wd-tools-icon::after {
    content: '';
    display: block;
    position: absolute;
    width: 18px;
    height: 2px;
    background: currentColor;
    top: 50%;
    left: 50%;
    transition: all 0.2s;
}

.pmc-mobile-header .wd-header-mobile-nav .wd-tools-icon {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pmc-mobile-header .wd-header-mobile-nav .wd-tools-icon::before {
    transform: translate(-50%, calc(-50% - 5px));
}

.pmc-mobile-header .wd-header-mobile-nav .wd-tools-icon::after {
    transform: translate(-50%, calc(-50% + 5px));
    width: 12px;
}

/* ================================
   فونت جهانی Vazirmatn
   ================================ */
body,
button,
input,
select,
textarea {
    font-family: 'Vazirmatn', Tahoma, Arial, sans-serif !important;
}

.pmc-mobile-sidebar {
	position: fixed;
	top: 0;
	right: -300px;
	width: 280px;
	height: 100vh;
	background-color: #ffffff;
	z-index: 99999;
	box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
	transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 60px 20px 20px 20px;
	box-sizing: border-box;
}

.pmc-mobile-sidebar.open {
	right: 0;
}

.pmc-sidebar-close {
	position: absolute;
	top: 15px;
	left: 15px;
	font-size: 24px;
	background: none;
	border: none;
	color: #333333;
	cursor: pointer;
	line-height: 1;
	padding: 5px;
}

.pmc-mobile-menu-items {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.pmc-mobile-menu-items li {
	border-bottom: 1px solid #f0f4f7;
	padding-bottom: 10px;
}

.pmc-mobile-menu-items li:last-child {
	border-bottom: none;
}

.pmc-mobile-menu-items a {
	text-decoration: none;
	color: #333333;
	font-weight: 600;
	font-size: 16px;
	display: block;
	transition: color 0.2s ease;
}

.pmc-mobile-menu-items a:hover {
	color: var(--wd-primary-color, #83b735);
}

.pmc-sidebar-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.5);
	z-index: 99998;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pmc-sidebar-overlay.open {
	opacity: 1;
	visibility: visible;
}

.pmc-custom-menu-trigger .wd-tools-icon.fa-bars::before {
	content: "\f0c9" !important;
	font-family: "Font Awesome 6 Free" !important;
	font-weight: 900 !important;
	font-style: normal;
	display: inline-block;
	transition: color 0.25s ease;
}

.pmc-custom-menu-trigger:hover .wd-tools-icon::before {
	color: var(--wd-primary-color, #83b735);
}