@font-face {
	font-weight: normal;
	font-style: normal;
	font-family: "woodmart-font";
	src: url("//ketabtaha.com/wp-content/themes/woodmart/fonts/woodmart-font-1-400.woff2?v=8.3.4") format("woff2");
}

:root {
	--wd-text-font: "Vazirmatn-FD-NL-Regular", Arial, Helvetica, sans-serif;
	--wd-text-font-weight: 400;
	--wd-text-color: #777777;
	--wd-text-font-size: 14px;
	--wd-title-font: "Vazirmatn-FD-NL-Regular", Arial, Helvetica, sans-serif;
	--wd-title-font-weight: 400;
	--wd-title-color: #242424;
	--wd-entities-title-font: "Vazirmatn-FD-NL-Bold", Arial, Helvetica, sans-serif;
	--wd-entities-title-font-weight: 700;
	--wd-entities-title-color: #333333;
	--wd-entities-title-color-hover: rgb(51 51 51 / 65%);
	--wd-alternative-font: "Vazirmatn-FD-NL-Bold", Arial, Helvetica, sans-serif;
	--wd-widget-title-font: "Vazirmatn-FD-NL-Bold", Arial, Helvetica, sans-serif;
	--wd-widget-title-font-weight: 700;
	--wd-widget-title-transform: uppercase;
	--wd-widget-title-color: #333;
	--wd-widget-title-font-size: 16px;
	--wd-header-el-font: "Vazirmatn-FD-NL-Bold", Arial, Helvetica, sans-serif;
	--wd-header-el-font-weight: 700;
	--wd-header-el-transform: uppercase;
	--wd-header-el-font-size: 13px;
	--wd-otl-style: dotted;
	--wd-otl-width: 2px;
	--wd-primary-color: #363a91;
	--wd-alternative-color: #fbbc34;
	--btn-default-bgcolor: #363a91;
	--btn-default-bgcolor-hover: #777777;
	--btn-accented-bgcolor: #363a91;
	--btn-accented-bgcolor-hover: #777777;
	--wd-form-brd-width: 2px;
	--notices-success-bg: #459647;
	--notices-success-color: #fff;
	--notices-warning-bg: #E0B252;
	--notices-warning-color: #fff;
	--wd-link-color: #363a91;
	--wd-link-color-hover: #0c11f1;
}
.wd-age-verify-wrap {
	--wd-popup-width: 500px;
}
.wd-popup.wd-promo-popup {
	background-color: #111111;
	background-image: none;
	background-repeat: no-repeat;
	background-size: contain;
	background-position: left center;
}
.wd-promo-popup-wrap {
	--wd-popup-width: 800px;
}
:is(.woodmart-woocommerce-layered-nav, .wd-product-category-filter) .wd-scroll-content {
	max-height: 280px;
}
.wd-page-title .wd-page-title-bg img {
	object-fit: cover;
	object-position: center center;
}
.page .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.woodmart-archive-shop:not(.single-product) .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.single-product .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.woodmart-archive-blog .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.single-post .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.woodmart-archive-portfolio .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.single-portfolio .wd-page-content {
	background-color: rgb(255,255,255);
	background-image: none;
}
.mfp-wrap.wd-popup-quick-view-wrap {
	--wd-popup-width: 920px;
}
:root{
--wd-container-w: 1222px;
--wd-form-brd-radius: 35px;
--btn-default-color: #fff;
--btn-default-color-hover: #fff;
--btn-accented-color: #fff;
--btn-accented-color-hover: #fff;
--btn-default-brd-radius: 5px;
--btn-default-box-shadow: none;
--btn-default-box-shadow-hover: none;
--btn-accented-brd-radius: 5px;
--btn-accented-box-shadow: none;
--btn-accented-box-shadow-hover: none;
--wd-brd-radius: 12px;
}

@media (min-width: 1222px) {
section.elementor-section.wd-section-stretch > .elementor-container {
margin-left: auto;
margin-right: auto;
}
}


.wd-page-title {
background-color: #0a0a0a;
}

@font-face {
	font-family: "iransans";
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "iransansb";
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "iran";
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Vazir";
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Vazir Bold";
	font-weight: 700;
	font-style: normal;
}

@font-face {
	font-family: "Vazirmatn-FD-NL-Regular";
	src: url("//ketabtaha.com/wp-content/uploads/2024/07/Vazirmatn-FD-NL-Regular.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
}

@font-face {
	font-family: "Vazirmatn-FD-NL-Bold";
	src: url("//ketabtaha.com/wp-content/uploads/2024/07/Vazirmatn-FD-NL-Bold.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
}

/* ============================================================
   WOODMART GOLD CARD DESIGN - PERFECT ALIGNMENT
   ویژگی‌ها: قیمت وسط‌چین، لیبل قیمت برای همه، تخفیف قرمز روی باکس
   ============================================================ */

:root {
    --card-bg: #ffffff;
    --price-box-bg: #f9f9f9;  /* رنگ زمینه باکس قیمت */
    --primary-color: #2c3e80; /* رنگ اصلی (آبی) */
    --discount-red: #e74c3c;  /* قرمز جذاب برای تخفیف */
    --text-dark: #333;
    --radius: 16px;
}

/* 1. تنظیمات کلی کارت (هم‌ترازی و کادربندی) */
.product-grid-item {
    display: flex !important;
    flex-direction: column !important;
    background: var(--card-bg) !important;
    border: 1px solid #e6e6e6 !important;
    border-radius: var(--radius) !important;
    overflow: hidden;
    padding: 10px 10px 0 10px !important; /* پدینگ پایین حذف شد */
    height: 100% !important;
    transition: all 0.3s ease;
    position: relative;
    /* سایه ملایم اولیه */
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
}

.product-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
    border-color: var(--primary-color) !important;
}

/* 2. حذف لیبل‌های مزاحم روی عکس (برچسب‌های آبی و قرمز پیش‌فرض) */
.product-labels {
    display: none !important;
}

/* 3. استایل تصویر محصول */
.product-grid-item .product-element-top {
    width: 100%;
    height: 220px; /* ارتفاع ثابت برای نظم */
    margin-bottom: 10px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    flex-shrink: 0; /* جلوگیری از جمع شدن */
}

.product-grid-item .product-element-top img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* نمایش کامل جلد کتاب */
    transition: transform 0.5s ease;
}

.product-grid-item:hover .product-element-top img {
    transform: scale(1.08);
}

/* 4. عنوان و محتوا (وسط‌چین) */
.product-grid-item .wd-entities-title {
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.6 !important;
    color: var(--text-dark);
    text-align: center !important; /* وسط‌چین */
    margin-bottom: 10px;
    min-height: 42px; /* فضای رزرو شده برای 2 خط */
    
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 5px;
}

/* دسته‌بندی (ریز و خاکستری) */
.product-grid-item .wd-product-cats {
    text-align: center;
    font-size: 11px;
    color: #999;
    margin-bottom: 15px; /* هل دادن باکس قیمت به پایین */
}

/* 5. باکس قیمت (شاهکار طراحی - وسط‌چین کامل) */
.product-grid-item .wrapp-product-price {
    margin-top: auto !important; /* چسبیدن به کف کارت */
    margin-left: -10px !important; /* پر کردن عرض کارت */
    margin-right: -10px !important;
    background: var(--price-box-bg);
    padding: 15px 10px;
    min-height: 90px; /* ارتفاع ثابت برای همه */
    display: flex;
    flex-direction: column;
    align-items: center; /* همه چیز وسط‌چین */
    justify-content: center;
    border-top: 1px solid #eee;
    position: relative;
}

/* لیبل "قیمت محصول:" (برای همه محصولات) */
.product-grid-item .wrapp-product-price::before {
    content: 'قیمت محصول:';
    display: block;
    font-size: 12px;
    color: #888;
    margin-bottom: 6px;
    font-weight: normal;
}

/* استایل قیمت‌ها */
.product-grid-item .price {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0;
}

/* قیمت اصلی (آبی) */
.product-grid-item .price ins,
.product-grid-item .price > .amount {
    color: var(--primary-color) !important;
    font-size: 18px !important;
    font-weight: 900 !important;
    text-decoration: none;
    order: 2;
    background: transparent !important;
}

/* قیمت خط‌خورده (خاکستری ریز) */
.product-grid-item .price del {
    color: #aaa !important;
    font-size: 13px !important;
    text-decoration: line-through;
    margin-left: 8px;
    order: 1;
}

/* 6. دکمه افزودن به سبد (مخفی پایین) */
.product-grid-item .wd-add-btn {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 10;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.product-grid-item:hover .wd-add-btn {
    transform: translateY(0);
}

.product-grid-item .add_to_cart_button {
    width: 100% !important;
    border-radius: 0 !important;
    background: var(--primary-color) !important;
    color: #fff !important;
    height: 45px !important;
    border: none !important;
    font-size: 13px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-grid-item .add_to_cart_button:hover {
    background: #1a2650 !important; /* آبی تیره‌تر */
}

/* 7. بج تخفیف قرمز (با JS اضافه می‌شود) */
.custom-discount-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%); /* دقیقاً وسط لبه بالایی باکس */
    background: var(--discount-red);
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 2px 12px;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(231, 76, 60, 0.3);
    z-index: 5;
    white-space: nowrap;
    border: 2px solid #fff; /* حاشیه سفید برای تمیزی */
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
    .product-grid-item .product-element-top {
        height: 160px;
    }
    .product-grid-item .wd-entities-title {
        font-size: 12px !important;
    }
    .product-grid-item .wrapp-product-price {
        min-height: 80px;
        padding: 10px;
    }
}
