/*
Theme Name:  DinaKala Child
Description: DinaKala Child Theme
Author:      Meysam Hosseinkhani
Author URI:  https://i-design.ir
Template:    dinakala
Version:     1.2.1
Text Domain: dina-kala
*/


#button-contact-vr {
    left: 10px;
}

/* ================================
   KilidMarket / Dinakala - Performance and stable layout
   ================================ */

.fal,
.fab {
    display: inline-block;
    min-width: 1em;
    line-height: 1;
    text-align: center;
}

body:not(.dina-dark) .dina-price-con,
body:not(.dina-dark) .dina-price-con .woocommerce-Price-amount,
body:not(.dina-dark) .dina-mini-product .woocommerce-Price-amount,
body:not(.dina-dark) .dina-footer-widget .dina-call-product-link .woocommerce-Price-amount,
body:not(.dina-dark) .dina-widget-content .dina-call-product-link .woocommerce-Price-amount {
    color: #6b4d13;
}

body:not(.dina-dark) .woocommerce-tabs #tab-description a,
body:not(.dina-dark) .woocommerce-tabs #tab-description a .breadcrumb_last {
    color: #0056b3;
}

body:not(.dina-dark) .dina-btn-register.btn-success {
    border-color: #187a35;
    background-color: #187a35;
}

body:not(.dina-dark) .dina-btn-register.btn-success:hover,
body:not(.dina-dark) .dina-btn-register.btn-success:focus {
    border-color: #12632b;
    background-color: #12632b;
}

.bale-float-btn {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 999999;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100vw - 32px);
    padding: 10px 14px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 999px;
    background: #08795e;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.bale-float-btn:hover,
.bale-float-btn:focus {
    color: #fff !important;
    filter: brightness(0.95);
    outline: none;
}

body.bale-float-hide .bale-float-btn {
    display: none !important;
}

.km-before-features-whatsapp {
    margin: 0 0 18px;
}

.km-whatsapp-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 46px;
    padding: 12px 25px;
    border: 0;
    border-radius: 8px;
    background: #0e766a;
    box-shadow: 0 4px 15px rgba(18, 140, 126, 0.28);
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-decoration: none !important;
}

.km-whatsapp-product-btn:hover,
.km-whatsapp-product-btn:focus {
    background: #095d53;
    color: #fff !important;
}

.km-whatsapp-product-btn .fab {
    font-size: 20px;
}

.km-whatsapp-product-btn span {
    white-space: nowrap;
}

/* ================================
   KilidMarket / Dinakala - Content Tables
   Blog, Product Archives, Single Products
   ================================ */

body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table {
    width: 100%;
    max-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 18px 0;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,.04);
    font-size: 14px;
    line-height: 1.9;
    direction: rtl;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table th {
    background: #f5f7f8;
    color: #222;
    font-weight: 700;
    text-align: right;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    border-left: 1px solid rgba(0,0,0,.06);
}

body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table td {
    padding: 11px 14px;
    color: #333;
    text-align: right;
    vertical-align: middle;
    border-bottom: 1px solid rgba(0,0,0,.06);
    border-left: 1px solid rgba(0,0,0,.05);
}

body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table tr:last-child td {
    border-bottom: none;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table th:last-child,
body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table td:last-child {
    border-left: none;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table tr:nth-child(even) td {
    background: #fafafa;
}

body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
:is(
    .entry-content,
    .post-content,
    .dina-post-content,
    .term-description,
    .dina-cat-text,
    .woocommerce-Tabs-panel,
    .woocommerce-product-details__short-description,
    .product-description,
    .product-content
) table tr:hover td {
    background: #f7fbf9;
}

/* جدول مشخصات ووکامرس داخل صفحه محصول */
body.single-product table.woocommerce-product-attributes {
    border-radius: 10px;
    overflow: hidden;
}

body.single-product table.woocommerce-product-attributes th {
    width: 32%;
    background: #f5f7f8;
    color: #222;
}

body.single-product table.woocommerce-product-attributes td p {
    margin: 0;
}

/* موبایل: جلوگیری از بهم‌ریختگی جدول‌های عریض */
@media (max-width: 768px) {
    body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
    :is(
        .entry-content,
        .post-content,
        .dina-post-content,
        .term-description,
        .dina-cat-text,
        .woocommerce-Tabs-panel,
        .woocommerce-product-details__short-description,
        .product-description,
        .product-content
    ) table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        font-size: 13px;
        border-radius: 8px;
    }

    body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
    :is(
        .entry-content,
        .post-content,
        .dina-post-content,
        .term-description,
        .dina-cat-text,
        .woocommerce-Tabs-panel,
        .woocommerce-product-details__short-description,
        .product-description,
        .product-content
    ) table th,
    body:not(.woocommerce-cart):not(.woocommerce-checkout):not(.woocommerce-account) 
    :is(
        .entry-content,
        .post-content,
        .dina-post-content,
        .term-description,
        .dina-cat-text,
        .woocommerce-Tabs-panel,
        .woocommerce-product-details__short-description,
        .product-description,
        .product-content
    ) table td {
        padding: 10px 12px;
    }
}

/* Lighthouse identified adjacent product and phone links in this widget. */
.dina-footer-widget ul.dina-widget-list > li > a,
.dina-widget-content ul.dina-widget-list > li > a {
    display: flex;
    align-items: center;
    min-height: 44px;
}

.dina-footer-widget ul.dina-widget-list > li > a + .dina-call-product-link,
.dina-widget-content ul.dina-widget-list > li > a + .dina-call-product-link {
    margin-top: 8px;
}

@media (max-width: 480px) {
    .bale-float-btn {
        right: 12px;
        bottom: 72px;
        padding: 9px 12px;
        font-size: 13px;
    }

    .km-whatsapp-product-btn {
        width: 100%;
        padding-right: 14px;
        padding-left: 14px;
    }

    .km-whatsapp-product-btn span {
        white-space: normal;
    }
}
