@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.7.1") 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;
}

/* ============================================================
   KETAB TAHA - ULTIMATE PRODUCT PAGE FIX (2025 FINAL)
   Clean Design + Hidden Share Buttons + Fix Layout
   ============================================================ */

/* 1. حذف دکمه‌های اشتراک‌گذاری و لینک‌های اضافی (فقط در صفحه محصول) */
.single-product-content .product-share,
.single-product-content .wd-social-icons,
.single-product-content .wd-action-btn.wd-style-text,
.single-product-content a[href*="shortlink"],
.single-product-content .product-share-btn {
    display: none !important;
}

/* حذف متن "همخوان کنید" */
.single-product-content .share-title {
    display: none !important;
}

/* 2. اصلاح ساختار گرید (ستون عکس و متن) */
.product-image-summary.row {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-right: -15px;
    margin-left: -15px;
    align-items: flex-start;
}

/* ستون عکس */
.product-image-summary .col-lg-6.product-images {
    width: 45% !important; /* کمی باریک‌تر برای تمرکز بیشتر روی متن */
    padding: 0 15px !important;
    flex: 0 0 45% !important;
    max-width: 45% !important;
}

/* ستون توضیحات */
.product-image-summary .col-lg-6.entry-summary {
    width: 55% !important; /* فضای بیشتر برای متن */
    padding: 0 20px 0 50px !important;
    flex: 0 0 55% !important;
    max-width: 55% !important;
}

/* 3. عنوان محصول - بولد و مشکی */
h1.product_title {
    font-size: 24px !important;
    font-weight: 900 !important; /* خیلی ضخیم */
    color: #212121 !important;
    line-height: 1.5 !important;
    margin-bottom: 20px !important;
}

/* 4. قیمت - مدرن و تمیز */
p.price {
    font-size: 26px !important;
    color: #333 !important;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 25px !important;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

p.price ins {
    text-decoration: none;
    color: #d32f2f; /* قرمز استاندارد */
}

p.price del {
    font-size: 16px !important;
    color: #9e9e9e !important;
    opacity: 0.8;
}

/* 5. دکمه افزودن به سبد خرید */
form.cart {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px !important;
    background: #fff;
    padding: 10px 0;
}

button.single_add_to_cart_button {
    background-color: #ef394e !important; /* قرمز دیجی‌کالایی */
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 0 45px !important;
    height: 52px !important;
    font-size: 16px !important;
    box-shadow: 0 8px 20px rgba(239, 57, 78, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none !important;
    flex-grow: 1;
}

button.single_add_to_cart_button:hover {
    background-color: #d32f2f !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(239, 57, 78, 0.35);
}

/* فیلد تعداد */
.quantity input.qty {
    border-radius: 8px !important;
    border: 1px solid #e0e0e0 !important;
    height: 52px !important;
    width: 60px !important;
    font-weight: 600;
    font-size: 18px !important;
    color: #333;
}

/* 6. لیبل‌های محصول (دست دوم و ...) */
.product-labels {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-label {
    padding: 6px 14px !important;
    font-size: 12px !important;
    border-radius: 6px !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product-label.onsale {
    background: #ef394e !important;
}

.product-label.-second-hand-quality {
    background: #546e7a !important; /* آبی-طوسی شیک */
}

/* 7. جدول مشخصات - مینیمال */
.shop_attributes {
    margin-top: 25px !important;
    border: 1px solid #f5f5f5 !important;
    border-radius: 10px;
    padding: 15px !important;
    background: #fafafa; /* پس‌زمینه خیلی کمرنگ */
}

.shop_attributes th, 
.shop_attributes td {
    padding: 8px 15px !important;
    border-bottom: 1px solid #eee !important;
    background: transparent !important;
}

.shop_attributes tr:last-child th,
.shop_attributes tr:last-child td {
    border-bottom: none !important;
}

/* 8. اصلاح ویجت پرداخت اقساطی */
/* این بخش قبلاً نامرتب بود، الان مرتب میشه */
.summary-inner > div[style*="border"], 
.summary-inner .wc-block-components-product-price { 
    background: #fff !important;
    border: 1px dashed #bdbdbd !important; /* خط چین برای تمایز */
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 20px 0 !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* 9. ریسپانسیو موبایل */
@media (max-width: 1024px) {
    .product-image-summary .col-lg-6.product-images,
    .product-image-summary .col-lg-6.entry-summary {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .product-image-summary .col-lg-6.entry-summary {
        padding-top: 30px !important;
    }

    button.single_add_to_cart_button {
        width: 100% !important;
    }
}


/* ============================================================
   بخش لیبل‌های هوشمند (اصلاح شده برای متن طولانی)
   ============================================================ */

/* 1. تنظیمات مخصوص صفحه داخلی محصول (دایره/بیضی هوشمند) */
body.single-product .product-image-summary .product-labels {
    top: 25px !important;
    left: 25px !important;
    right: auto !important;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 20 !important;
    max-width: none !important;
    align-items: center !important; /* وسط چین کردن لیبل‌ها */
}

/* استایل پایه برای همه لیبل‌ها در صفحه محصول */
body.single-product .product-image-summary .product-label {
    /* حذف ابعاد ثابت و جایگزینی با ابعاد منعطف */
    width: auto !important;
    height: auto !important;
    min-width: 70px !important; /* حداقل عرض برای دایره بودن */
    min-height: 70px !important; /* حداقل ارتفاع */
    
    padding: 10px !important; /* فضای داخلی برای متن‌های طولانی */
    margin: 0 !important;
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    border-radius: 50px !important; /* گردی کامل برای تبدیل شدن به کپسول */
    line-height: 1.2 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    
    /* انیمیشن */
    animation: badge-pop 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    opacity: 0;
    transform: scale(0);
}

/* لیبل تخفیف (چون متن کوتاهه، دایره کامل میشه) */
body.single-product .product-image-summary .product-label.onsale {
    background: #ff4757 !important;
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    /* این لیبل رو مجبور می‌کنیم دایره بمونه */
    width: 70px !important;
    height: 70px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}

/* لیبل‌های متنی مثل "دست دوم" یا "موجود نیست" */
body.single-product .product-image-summary .product-label.attribute-label:not(.onsale),
body.single-product .product-image-summary .product-label.out-of-stock {
    background: #546e7a !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important; /* جلوگیری از شکستن متن */
    
    /* تنظیم برای بیضی شدن */
    aspect-ratio: auto !important; /* حذف نسبت تصویر مربعی */
}

/* لیبل "موجود نیست" در صفحه محصول */
body.single-product .product-image-summary .product-label.out-of-stock {
    background: #333 !important;
}

/* -------------------------------------------------------------
   2. اصلاح لیبل‌ها در کارت‌های محصول (Product Grid) - کوچک و مرتب
   ------------------------------------------------------------- */
.product-grid-item .product-labels {
    top: 10px !important;
    left: 10px !important;
    right: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    align-items: flex-start !important; /* چپ چین */
}

/* استایل پایه لیبل‌های گرید */
.product-grid-item .product-label {
    width: auto !important;
    height: auto !important;
    min-width: 40px !important; /* حداقل عرض */
    min-height: 40px !important;
    
    padding: 6px 12px !important; /* پدینگ بیشتر برای متن */
    border-radius: 30px !important; /* کپسولی شکل */
    
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    font-size: 11px !important;
    line-height: 1 !important;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15) !important;
    white-space: nowrap !important; /* متن توی یک خط باشه */
    
    animation: badge-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards !important;
    opacity: 0;
    transform: scale(0);
}

/* لیبل تخفیف در گرید (دایره‌ای کوچک) */
.product-grid-item .product-label.onsale {
    background: #ff4757 !important;
    color: white !important;
    /* دایره کامل برای درصد */
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    padding: 0 !important; 
}

/* لیبل‌های متنی در گرید (کپسولی) */
.product-grid-item .product-label.attribute-label,
.product-grid-item .product-label.out-of-stock,
.product-grid-item .product-label.-second-hand-quality {
    background: #546e7a !important;
    color: white !important;
    font-size: 10px !important;
    height: 26px !important; /* ارتفاع کمتر برای متن‌های طولانی */
    min-height: auto !important;
    border-radius: 4px !important; /* مستطیل با گوشه گرد */
}

.product-grid-item .product-label.out-of-stock {
    background: #2d3436 !important;
}

/* حذف حلقه‌های چرخشی (برای سادگی و رفع باگ) */
.product-label::before {
    display: none !important;
}

/* انیمیشن */
@keyframes badge-pop {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}











/* ============================================================
   WOODMART MODERN GLASS CARD (HOMEPAGE SPECIAL)
   ============================================================ */

/* 1. کانتینر اصلی کارت (شیشه‌ای و سفید) */
.product-grid-item .product-wrapper {
    background: rgba(255, 255, 255, 0.95) !important; /* سفید شیشه‌ای */
    backdrop-filter: blur(10px); /* تاری پشت زمینه (افکت شیشه) */
    border: 1px solid rgba(255, 255, 255, 0.4); /* خط دور ظریف */
    border-radius: 16px; /* گوشه‌های گرد */
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07); /* سایه نرم و رنگی */
    transition: all 0.4s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 15px;
}

/* افکت هاور: کارت میاد بالا و سایه بیشتر میشه */
.product-grid-item:hover .product-wrapper {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    border-color: #fff;
}


/* 3. باکس قیمت (بالای همه چیز) */
/* نکته: اگر می‌خوای قیمت بین عکس و متن باشه، order رو بکن 2 */
.product-grid-item .wrap-price {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff; /* باکس سفید */
    padding: 10px 0;
    margin: 0 15px 10px; /* فاصله از اطراف */
    border-radius: 10px; /* گردی باکس قیمت */
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); /* سایه زیر باکس قیمت */
    border: 1px solid #f5f5f5;
    order: -1; /* این دستور قیمت رو میبره بالای بالای کارت */
    position: relative;
    z-index: 5;
}

.product-grid-item .wrap-price .price {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #333 !important;
    display: flex !important;
    flex-direction: column-reverse; /* قیمت اصلی بالا، خط خورده پایین */
    align-items: center;
    line-height: 1.2;
}

.product-grid-item .price ins {
    text-decoration: none;
    color: #d63031 !important; /* رنگ قرمز برای قیمت */
}

.product-grid-item .price del {
    font-size: 12px !important;
    color: #aaa !important;
}

/* 4. عنوان محصول */
.product-grid-item .wd-entities-title {
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #2d3436;
    margin: 5px 15px 10px !important; /* فاصله از اطراف */
    text-align: center;
    line-height: 1.5 !important;
    height: 42px; /* ارتفاع ثابت برای نظم */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 5. حذف دکمه افزودن به سبد خرید (برای تمیزی) */
.product-grid-item .wd-add-btn {
    display: none !important;
}

/* ============================================================
   FIX: Card Size & Price Layout (Forced)
   ============================================================ */

/* 1. بزرگ‌تر کردن کارت‌ها (با تغییر عرض درصد ستون‌ها) */
@media (min-width: 1025px) {
    /* دسکتاپ: نمایش 4 ستون به جای پیش‌فرض که باعث بزرگ شدن کارت میشه */
    .wd-products-element .wd-col-lg-5 {
        flex: 0 0 25% !important; /* 25% یعنی 4 تا در هر ردیف */
        max-width: 25% !important;
    }
    
    /* اگر اسلایدر هست، عرض آیتم‌ها رو زیاد کن */
    .wd-carousel-item {
        width: 300px !important; /* عرض ثابت و بزرگتر برای کارت‌ها */
    }
}

/* 2. چیدمان قیمت (خط‌خورده بالا - اصلی پایین) */
.product-grid-item .price {
    display: flex !important;
    flex-direction: column !important; /* چیدمان ستونی */
    align-items: center !important;
    justify-content: center !important;
}

/* قیمت اصلی (پایین) */
.product-grid-item .price > ins,
.product-grid-item .price > span:not(del) {
    order: 2 !important; /* بره پایین */
    font-size: 18px !important;
    color: #d63031 !important;
    font-weight: 800 !important;
    margin-top: 2px !important;
}

/* قیمت خط خورده (بالا) */
.product-grid-item .price del {
    order: 1 !important; /* بره بالا */
    font-size: 13px !important;
    color: #b2bec3 !important;
    text-decoration: line-through !important;
    opacity: 0.8 !important;
}

/* استایل متن "قیمت:" که با JS اضافه میشه */
.custom-price-label {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 12px !important;
    color: #7f8c8d !important;
    margin-bottom: 5px !important;
    font-weight: normal !important;
}
