/* ════════════════════════════════════════
   WooCommerce — سراسری سایت
   ════════════════════════════════════════ */

/* ── قیمت‌ها ── */
del, ins { float: right; width: 100% }
ins { text-decoration: none }

.tcl-price-del,
del.tcl-price-del {
    display: block !important;
    float: none !important;
    width: auto !important;
    font-family: 'yekan', Tahoma, sans-serif;
    font-size: 12px;
    color: #aaa;
    text-decoration: line-through;
    line-height: 1.6;
}
.tcl-price-ins,
ins.tcl-price-ins {
    display: block !important;
    float: none !important;
    width: auto !important;
    text-decoration: none !important;
    font-family: 'yekan Bold', Tahoma, sans-serif;
    font-size: 14px;
    color: #2e7d32;
    line-height: 1.6;
}
.woocommerce ul.products .price > .woocommerce-Price-amount,
.woocommerce ul.products .price > bdi {
    font-family: 'yekan Bold', Tahoma, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    display: block;
    line-height: 1.6;
}
.tcl-price-del .woocommerce-Price-currencySymbol,
.tcl-price-ins .woocommerce-Price-currencySymbol,
.woocommerce ul.products .price .woocommerce-Price-currencySymbol {
    font-family: 'yekan', Tahoma, sans-serif;
    font-size: 11px;
    color: inherit;
}

/* ── بج تخفیف ── */
.onsale {
    position: absolute;
    color: #fff;
    font-size: .8rem;
    background-color: #d32f2f;
    border-radius: 6px;
    padding: 0 6px;
    right: 18px;
    top: 18px;
    font-family: cursive;
}

/* ── نوتیس‌ها ── */
.tcl-notice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    margin-bottom: 12px;
    font-family: 'yekan Bold', Tahoma, sans-serif;
    font-size: 14px;
    direction: rtl;
    flex-wrap: wrap;
}
.tcl-notice-success { background: #e8f5e9; border: 1.5px solid #a5d6a7; color: #1b5e20; }
.tcl-notice-error   { background: #ffebee; border: 1.5px solid #ef9a9a; color: #b71c1c; }
.tcl-notice-info    { background: #e3f2fd; border: 1.5px solid #90caf9; color: #0d47a1; }
.tcl-notice-icon { font-size: 18px; flex-shrink: 0; }
.tcl-notice-text { flex: 1; line-height: 1.7; }
.tcl-notice a.button,
.tcl-notice a.wc-forward {
    display: inline-block;
    padding: 7px 16px;
    border-radius: 8px;
    font-size: 13px;
    background: #2e7d32;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
    font-family: 'yekan Bold', Tahoma, sans-serif;
    transition: background .15s;
    flex-shrink: 0;
}
.tcl-notice a.button:hover,
.tcl-notice a.wc-forward:hover { background: #1b5e20; }
.tcl-notice::before { display: none !important; }

/* ── جدول سبد خرید ── */
.woocommerce table.shop_table { background: white !important; }
.product-thumbnail img { max-width: 80px !important; max-height: 80px; }
.content_page .product-remove .remove { display: block; font-size: 2.5em !important; color: rgb(175 209 54) !important; }

@media (min-width: 768px) {
    .woocommerce td.product-remove { width: 1rem !important; }
}

.woocommerce .cart .button,
.woocommerce .cart input.button,
.woocommerce a.button.alt:hover,
.woocommerce a.button.alt { color: black !important; padding: 20px !important; background-color: rgb(151 210 60) !important; }

.coupon .input-text { padding: 16px; width: 110px !important; }

/* ── فیلد تعداد ── */
.quantity { display: flex; align-items: center; justify-content: center; }
input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; display: none; }
.quantity input { text-align: center; width: 40px !important; height: 40px; border: 1px solid #ccc; border-right: 0; margin: 0; }
.quantity button { background-color: #f7f7f7; border: 1px solid #ccc; width: 30px; height: 40px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.quantity button:hover { background-color: #e7e7e7; }

/* ── جمع سبد (cart-totals) ── */
.tcl-cart-totals {
    background: #fff;
    border: 1.5px solid #ebebeb;
    border-radius: 16px;
    padding: 20px;
    margin-top: 20px;
    font-family: 'yekan', Tahoma, sans-serif;
    direction: rtl;
}
.tcl-cart-totals h2 {
    font-family: 'yekan ExtraBlack', Tahoma, sans-serif;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1.5px solid #f0f0f0;
}
.tcl-totals-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.tcl-totals-row:last-of-type { border-bottom: none; }
.tcl-totals-label { color: #666; }
.tcl-totals-value { color: #1a1a1a; font-family: 'yekan Bold', Tahoma, sans-serif; }
.tcl-totals-row.order-total .tcl-totals-label { font-family: 'yekan Bold', Tahoma, sans-serif; color: #1a1a1a; font-size: 15px; }
.tcl-totals-row.order-total .tcl-totals-value { color: #2e7d32; font-size: 16px; }
.tcl-totals-row .tcl-totals-value bdi,
.tcl-totals-row .tcl-totals-value span { font-family: 'yekan', Tahoma, sans-serif; }

.tcl-checkout-btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #2e7d32, #43a047);
    color: #fff !important;
    text-align: center;
    border-radius: 12px;
    font-family: 'yekan ExtraBlack', Tahoma, sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 16px;
    transition: opacity .2s;
    border: none;
    cursor: pointer;
}
.tcl-checkout-btn:hover { opacity: .9; }

.wc-proceed-to-checkout a.checkout-button,
.woocommerce .wc-proceed-to-checkout a.button.alt {
    display: block !important;
    position: static !important;
    width: 100% !important;
    padding: 14px !important;
    background: linear-gradient(135deg, #2e7d32, #43a047) !important;
    color: #fff !important;
    text-align: center !important;
    border-radius: 12px !important;
    font-family: 'yekan ExtraBlack', Tahoma, sans-serif !important;
    font-size: 15px !important;
    text-decoration: none !important;
    margin: 16px 0 0 !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    z-index: auto !important;
    transition: opacity .2s;
    border: none !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
}
.wc-proceed-to-checkout a.checkout-button:hover,
.woocommerce .wc-proceed-to-checkout a.button.alt:hover { opacity: .9 !important; }

.tcl-shipping-calc { font-size: 12px; color: #888; margin-top: 4px; }

/* ── نوار شناور پایین سبد (موبایل) ── */
.tcl-sticky-checkout { display: none; }

@media (max-width: 768px) {
    .tcl-sticky-checkout {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        bottom: 108px;
        right: 0;
        left: 0;
        z-index: 9999;
        background: #fff;
        border-top: 1.5px solid #e0e0e0;
        padding: 10px 16px;
        box-shadow: 0 -4px 16px rgba(0,0,0,.10);
        direction: rtl;
        gap: 12px;
    }
    .tcl-sticky-total-label { font-size: 11px; color: #888; font-family: 'yekan', Tahoma, sans-serif; margin-bottom: 2px; }
    .tcl-sticky-total-amount { font-family: 'yekan Bold', Tahoma, sans-serif; font-size: 14px; color: #1a1a1a; white-space: nowrap; }
    .tcl-sticky-checkout-btn {
        display: block;
        padding: 12px 20px;
        background: linear-gradient(135deg, #2e7d32, #43a047);
        color: #fff !important;
        border-radius: 12px;
        font-family: 'yekan ExtraBlack', Tahoma, sans-serif;
        font-size: 14px;
        text-decoration: none !important;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: center;
    }
    .tcl-cart-totals { margin-bottom: 150px; }
}

/* ── چک‌اوت عمومی (فرم) ── */
.woocommerce button.button.alt { background-color: #3498db; color: #fff; border-radius: 5px; padding: 10px 20px; text-transform: uppercase; font-weight: 700; }
.woocommerce form .form-row { margin-bottom: 15px; }
.woocommerce h3 { border-bottom: 2px solid #3498db; padding-bottom: 5px; margin-bottom: 20px; }

.woocommerce form.checkout { display: flex; flex-wrap: wrap; }
.woocommerce form.checkout .col-1,
.woocommerce form.checkout .col-2,
.woocommerce form.checkout .col1-set,
.woocommerce form.checkout .col2-set { flex: 1 1 100%; }
.woocommerce form.checkout .col2-set { margin-left: 4% !important; }

@media (min-width: 768px) {
    .woocommerce form.checkout .col2-set { order: 1; flex: 1 1 58%; }
    .woocommerce form.checkout .col1-set { order: 2; flex: 1 1 38%; }
    .woocommerce form.checkout .col-1,
    .woocommerce form.checkout .col-2 { order: 1 !important; flex: 1 1 100% !important; width: 100% !important; }
    .woocommerce form.checkout .col-2 { margin-top: 30px; order: 2 !important; }
}

.woocommerce #place_order { background-color: #97d23c; border-color: #97d23c; color: #fff; width: 100%; padding: 20px; font-size: 1.5rem; }
.woocommerce #place_order:hover { background-color: #79b41e; border-color: #79b41e; }

.woocommerce table.shop_table { background-color: #fafafa !important; font-size: 14px; }
.woocommerce table .order-total { font-size: 18px; }
.woocommerce-checkout h3 { border-bottom: 2px solid #b7e396 !important; }
.woocommerce-info { border-top-color: #b7e396 !important; }

@media (max-width: 767px) {
    .woocommerce table.shop_table_responsive tr.order-total,
    .woocommerce-page table.shop_table_responsive tr.order-total,
    .woocommerce-page table.woocommerce-checkout-review-order-table tr.order-total {
        margin: 0 auto; position: fixed; bottom: 80px; right: 0; left: 0; width: 90%;
        z-index: 8; background: #fff; padding: 2rem; display: flex; justify-content: end;
        font-size: .8rem; border-top: 1px solid #dedede;
    }
    .woocommerce .wc-proceed-to-checkout a.button.alt {
        margin: 0; position: fixed; bottom: 112px; right: 0; left: auto; padding: 0;
        margin-right: 2rem; z-index: 500; color: #fff !important; line-height: 20px; opacity: 1;
    }
    .woocommerce #payment .place-order {
        margin: 0 auto !important; position: fixed; bottom: 70px; right: 0; left: 0; width: 90%;
        z-index: 8; background: #fff; padding: 1rem 4rem 1.5rem !important;
        display: flex; justify-content: end; font-size: .8rem; border-top: 1px solid #dedede !important;
    }
    .woocommerce #payment .place-order button { font-size: 1.2rem !important; }
}

/* ── صفحه‌بندی ── */
.pagination { display: flex; justify-content: center; margin-top: 20px; }
.pagination a,
.pagination span { color: #333; padding: 8px 12px; margin: 0 5px; text-decoration: none; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; }
.pagination .current { background-color: rgb(151 201 60 / var(--tw-bg-opacity)); color: #000; border-color: rgb(151 210 60 / var(--tw-bg-opacity)); }
.pagination a:hover { background-color: #eee; }

/* ── متفرقه ── */
.catcss { display: contents !important; }
.catcss a { margin: 0 5px; }
.eye { margin: -1px 4px; }
.user { margin: 0 2px; }
.bottom-6 { bottom: 2.5rem !important; }
#countdown { margin-top: 5px; }

/* ── فرم جستجو ── */
.searchform { display: flex; align-items: center; }
.searchsubmit { float: left; padding: 8px 0; background: none; border: none; cursor: pointer; }

/* ── صفحات محتوا ── */
.content_page { margin-top: 10px; }
.content_page p { font-size: 1.1rem; line-height: 1.8; margin-bottom: 20px; }
.content_page a { color: #97d23c; text-decoration: none; }
.content_page a:hover { color: #97d23c; text-decoration: underline; }

/* ── بلاگ ── */
.container_blog h2,
.container_blog h3 { font-weight: 700; font-family: yekan Bold; margin-top: 2rem; margin-bottom: .5rem; line-height: 1.25rem; }
.title_blog { font-size: 1.5em; font-family: 'yekan Bold'; }
.container_blog p { font-size: 1.2rem; margin-bottom: 1.6em; line-height: 2.4rem; font-family: 'Yekan'; text-align: justify; }
.container_blog img { margin: 2rem auto; }
.container_blog .size-featured_1100_450 { border-radius: 2rem; }
.container_blog tr td { font-size: 1rem; }

@media (max-width: 767px) {
    .main { width: 100%; overflow-x: hidden; word-wrap: break-word; }
    .main img { max-width: 100%; height: auto; }
    .main table { width: 100%; display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .main pre { white-space: pre-wrap; }
}

/* ── منوی ناوبری موبایل (اندیکاتور فعال) ── */
.mob-nav-item { position: relative; padding-bottom: 6px; }
.mob-nav-item::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, #2e7d32, #66bb6a);
    opacity: 0;
    transition: opacity .2s;
}
.mob-nav-item.active::after { opacity: 1; }
.mob-nav-item.active a,
.mob-nav-item.active svg use { color: #2e7d32; }

/* ── سوایپر ── */
.swiper img { width: 100%; height: auto; max-width: 500px; }
