/*
 Theme Name:   Woodmart Child
 Description:  Woodmart Child Theme
 Author:       XTemos
 Author URI:   http://xtemos.com
 Template:     woodmart
 Version:      1.0.0
 Text Domain:  woodmart
*/
.wd-add-btn {
    display: none !important;
}


/* تعریف فونت ایران یکان */
@font-face {
    font-family: 'IRANYekan';
    src: url('./assets/fonts/IRANYekanXFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'IRANYekan';
    src: url('./assets/fonts/IRANYekanXFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

/* اعمال فونت روی کل بدنه سایت */
body, button, .content-header input {
    font-family: 'IRANYekan', sans-serif;
    margin: 0;
    background: #FCFEFF;
}

.profile {
    max-width: 1200px;
    margin: auto;
    padding: 16px;
}

/* Header */
.profile-header {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.75rem;
    padding-top: 14px;
    padding-bottom: 1.25rem;
}

.user-info {
    width: 268px;
    display: flex;
    align-items: center;
}

.wallet {
    display: flex;
    justify-content: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.wallet-inner {
    width: auto;
    border: 1px solid #E0E0E0;
    background-color: #fff;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 15px;
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.375rem;
}

.cash-wrapper {
    display: flex;
    justify-content: space-between;
    gap: 0.25rem;
    width: auto;
}

.cash-title {
    font-weight: 600;
    font-size: 0.875rem;
    color: #1F2937;
}

.cash {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    min-width: 95px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #4B5563;
}

.wallet-divider {
    background-color: #E5E7EB;
    height: 1.5rem;
    width: 1px;
    display: block;
}

.wallet-btn {
    display: flex;
    justify-content: flex-end;
    width: auto;
    min-width: 140px;
    text-decoration: none;
}

/* Layout */
.profile-layout {
    display: flex;
    justify-content: space-between;
}

/* Sidebar */

.profile-menu {
    list-style: none;
    margin: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0;
}

.profile-menu li a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #fff;
    line-height: 24px;
    width: 280px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
}

.profile-menu li svg {
    margin-right: 8px;
}

.profile-menu li.logout {
    color: #dc2626;
}

.profile-menu li.active {
    border: 1px solid #E0E0E0;
    border-left: 0;
}

.account-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Content */
.profile-content {
    background: #fff;
    border-radius: 0.125rem;
    padding: 16px 24px;
    border: 1px solid rgb(211 216 228);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.content-header input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

/* Tabs */
.order-tabs {
    display: flex;
    margin: 20px 0;
}

.order-tabs button {
    flex: 1;
    padding: 10px;
    border: 1px solid #eee;
    background: #f9fafb;
    cursor: pointer;
}

.order-tabs button.active {
    background: #fff;
    border-bottom: 2px solid #2563eb;
    font-weight: 600;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 40px 0;
    color: #6b7280;
}

.empty-state img {
    width: 120px;
    margin-top: 16px;
}

.woo-wallet-header {
    display: none;
}

.woo-wallet-price bdi {
    color: #ffffff;
}

.profile-menu li {
    width: 280px;
}
/* Responsive */
@media (max-width: 1280px) {
    .profile-menu li a {
        width: 180px;
    }
    .my-container {
        padding-bottom: 1.5rem;
    }

    .user-input {
        width: 168px;
    }
    .profile-menu li {
        width: 180px;
    }

    .profile-menu {
        width: 180px;
    }
}

@media (max-width: 1024px) {
    .wallet-divider {
        display: none;
    }
    .my-container {
        flex-direction: column-reverse;
        padding-top: 0;
    }
    .user-input {
        width: 100%;
    }

    .wallet {
        width: 100%;
    }

    .wallet-inner {
        width: 100%;
        flex-direction: column;
    }

    .cash-wrapper {
        width: 100%;
        padding-left: 0;
    }

    .wallet-btn {
        width: 100%;
        min-width: auto;
    }

    .profile-layout {
        flex-direction: column;
    }

    .profile-menu {
        width: 100%;
        background: #ffffff;
    }

    .profile-menu li {
        width: 100%;
        border-bottom: 1px solid #eaeaea !important;
    }

    .profile-menu li.active {
        border: none;
    }

    .logout-mobile {
        display: flex;
        gap: 4px;
        align-items: center;
        margin: 24px 0;
        border: 1px solid #aeaeae;
        align-self: end;
        padding: 8px 16px;
        border-radius: 8px;
    }

    .account-body-title {
        border-bottom: 1px solid #b6b6b6;
        margin-bottom: 16px;
        padding-bottom:8px ;
    }

    .account-body-title {
        display: flex;
        gap: 4px;
        align-items: center;
        align-self: flex-start;
    }

    .account-body-title h2 {
        font-size: 16px;
        margin: 0 !important;
    }

    .account-body-title a {
        height: 24px;
    }

    .profile-menu li svg {
        margin-right: 0;
    }

    .profile-header {
        padding-bottom: 0;
    }

}

@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
    }

    .profile-header {
        width: 100%;
    }
}

@media (min-width: 1024px) {
    .logout-mobile, .account-body-title {
        display: none;
    }
}

/*dashboard*/

.profile-content {
    font-family: "IRANYekan", sans-serif;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* عنوان‌ها */
.my-account-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
    display: block;
}

/* کارت اطلاعات حساب */
.my-account-detail-boxs {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.account-detail-box {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.account-detail-box-content {
    background: #f9fafb;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all .25s ease;
}

.account-detail-box-content:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
}

.account-detail-box-content > span {
    font-size: 13px;
    color: #6b7280;
}

.account-detail-box-content div span,
.account-detail-box-content div {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
}

/* وضعیت سفارشات */
.my-account-orders-wrapper {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.my-account-orders {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.order-box {
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    transition: all .25s ease;
}

.order-box:hover {
    border-color: #6366f1;
    box-shadow: 0 6px 18px rgba(99,102,241,0.15);
}

.order-box b {
    font-size: 18px;
    color: #111827;
    display: block;
    margin-bottom: 6px;
}

.order-box span {
    font-size: 13px;
    color: #6b7280;
}

/* آخرین سفارشات */
.my-account-last-orders {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

.last_order_items {
    background: #f9fafb;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .account-detail-box,
    .my-account-orders {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .account-detail-box,
    .my-account-orders {
        grid-template-columns: 1fr;
    }
}
/* حالت موبایل */
@media (max-width:1024px){
    body.dashboard-main .account-body { display:none; } /* مخفی کردن داشبورد اصلی */
    body.dashboard-main .profile-layout-wrapper { display:block; } /* فقط منو */

    body.dashboard-sub .account-body { display:flex; } /* محتوای صفحات دیگر */
    body.dashboard-sub .profile-layout-wrapper { display:none; } /* منو مخفی */
}

/*account tab */


.lian-orders-title-wrap {
    margin-bottom: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}
.lian-order-search {
    display: flex;
    background-color: #f0f0f1;
    padding: 4px 12px;
    border-radius: 8px;
    height: 48px;
    align-items: center;
    max-width: 100%;
    justify-content: space-between;
}
.lian-search-input {
    font-size: 14px;
    border: none !important;
    background: transparent;
    min-width: 215px;
    padding: 0 !important;
}
.lian-search-input:hover,
.lian-search-input:focus,
.lian-search-input:active {
    border: none !important;
    outline: none !important;
}
.lian-search-input::placeholder {
    color: #81858b;
}
.lian-search-button {
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    padding: 0;
}
.lian-orders-title {
    font-size: 18px;
    font-weight: 700 !important;
    color: #333;
    margin: 0 !important;
}
.lian-order-tabs {
    margin-bottom: 16px;
    border-bottom: 1px solid #E0E0E2;
}
.lian-tabs-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    white-space: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.lian-tab-item {
    flex: 0 0 auto;
    position: relative;
}
.lian-tab-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #81858b !important;
}
.lian-tab-item.active a.lian-tab-link::after {
    content: '';
    position: absolute;
    background-color: #1F264B;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    height: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 16px);
    bottom: 0;
}
.lian-tab-count {
    font-size: 12px;
    margin-right: 4px;
    background-color: #a1a3a8;
    min-width: 24px;
    height: 23px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    color: #fff !important;
}
.lian-tab-item.active .lian-tab-count {
    background: #1F264B;
    color: #fff;
}
.lian-tab-item.active .lian-tab-link {
    color: #1F264B !important;
}
.lian-tab-link:hover .lian-tab-count {
    color: #fff;
}
.lian-empty-orders {
    font-size: 14px;
    color: #333;
    background-color: #f5f7f9;
    padding: 16px;
    border-radius: 4px;
    text-align: right;
}
.woocommerce-info {
    margin-top: 70px;
    margin-bottom: 70px;
    width: 50%;
    margin-left: auto;
    margin-right: auto;
    background: transparent !important;
    text-align: center;
    opacity: 0.6;
}
.woocommerce-info:before {
    display: none;
}

.woocommerce-pagination {
    padding: 16px !important;
}
/* Table card styles */
.woocommerce-orders-table {
    border: none !important;
}
.woocommerce-orders-table thead {
    display: none !important; /* Hide table headers */
}
.woocommerce-orders-table tbody tr {
    display: flex;
    border: 1px solid #E0E0E2 !important;
    border-radius: 8px;
    padding: 16px 0px 0px 0px;
    margin-bottom: 16px;
    gap: 12px;
    cursor: pointer;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.woocommerce-orders-table__cell-order-status{
    order: 1;
    width: 100%;
    padding: 0px 16px !important;
    border: none !important
}


.woocommerce-orders-table__cell-order-date{
    order: 2;
    padding-right: 16px !important;
    border: none !important
}

.woocommerce-orders-table__cell-order-number{
    order: 3;
    margin-right: 10px ;
    border: none !important
}

.woocommerce-orders-table__cell-order-total{
    order: 4;
    margin-right: 10px ;
    border: none !important
}

.woocommerce-orders-table__cell-order-actions{
    order: 5;
    width: 100%;
    border-top: 1px solid #E0E0E2 !important;
    margin-top: 20px;
}


.woocommerce-orders-table td {
    display: block;
}
.lian-order-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}
.lian-arrow-icon {
    width: 20px;
    height: 20px;
}
.lian-order-status {
    color: #333;
    display: flex;
    gap: 8px;
}
.lian-order-details {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: #333;
}
.lian-order-info {
    display: flex;
    gap: 8px;
    align-items: center;
}
.lian-order-label{
    font-weight: 400;
    color: #a1a3a8;
}
.lian-order-value,
.lian-order-number{
    font-weight: 700;
    color: #3f4064 !important
}
.lian-order-products {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}
.lian-product-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.woocommerce table.shop_table_responsive tr td::before, .woocommerce-page table.shop_table_responsive tr td::before {
    display: none !important;
}
td.woocommerce-orders-table__cell-order-date,
td.woocommerce-orders-table__cell-order-status,
.woocommerce table.shop_table_responsive tr:nth-child(2n) td,
.woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
    background: transparent !important;
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
    background-color: transparent !important;
}
table tbody>tr:nth-child(odd)>td, table tbody>tr:nth-child(odd)>th {
    background-color: transparent !important;
}

td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
    border: none !important;
}

table tbody tr:hover>td, table tbody tr:hover>th {
    background-color: transparent !important;
}


.order-progress-wrapper {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.order-step {
    position: relative;
    text-align: center;
    flex: 1;
    z-index: 1;
}

.order-step::before {
    content: '';
    position: absolute;
    top: 12px; /* وسط دایره */
    left: 50%;
    width: 100%;
    height: 3px;
    background: #eee;
    z-index: -1;
    transition: background-color 0.3s ease;
}

.order-step:first-child::before {
    left: 50%;
    width: 50%;
}

.order-step:last-child::before {
    display: block;
    left: 50%;
    width: 100%;
}

/* خط‌ها رنگی برای مراحل کامل و مرحله فعال */
.order-step.completed::before,
.order-step.active::before {
    background: #00b69b;
}

.order-step-circle {
    width: 24px;
    height: 24px;
    margin: 0 auto 0.5em;
    border-radius: 50%;
    background: #ccc;
    position: relative;
    z-index: 2;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.order-step.completed .order-step-circle {
    background: #00b69b;
    animation: pulse 1.5s infinite alternate;
}

.order-step.active .order-step-circle {
    background: #ffaa00;
    animation: pulse-active 1.5s infinite alternate;
}

/* انیمیشن پالس */
@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

@keyframes pulse-active {
    0% { transform: scale(1); box-shadow: 0 0 8px 2px #ffaa00; }
    100% { transform: scale(1.1); box-shadow: 0 0 15px 5px #ffaa00; }
}

.order-step-label {
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap; /* جلوگیری از شکست خط */
}

.order-again a.button {
    padding: 8px 16px !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    color: #FFFFFF !important;
    background: #007b7b !important;
}

ol.woocommerce-OrderUpdates.commentlist.notes {
    display: none !important;
}

button.lian-search-button {
    padding: 0;
}

@media (max-width: 480px) {
    .lian-orders-title-wrap {
        flex-direction: column;
        gap: 24px;
    }

    .lian-search-input {
        font-size: 14px;
    }
    .lian-search-button svg {
        width: 18px;
        height: 18px;
    }
    .lian-orders-title {
        font-size: 16px;
    }
    .lian-tabs-list {
        gap: 6px;
    }
    .lian-tab-link {
        padding: 6px 12px;
        font-size: 13px;
    }
    .lian-tab-count {
        font-size: 11px;
    }
    .lian-empty-orders {
        font-size: 13px;
        padding: 12px;
    }
    .woocommerce-orders-table tbody tr {
        padding: 12px;
    }
    .lian-order-header {
        font-size: 14px;
    }
    .lian-arrow-icon {
        width: 18px;
        height: 18px;
    }
    .lian-order-details {
        flex-direction: column;
        gap: 8px;
        font-size: 13px;
    }
    .lian-product-image {
        width: 60px;
        height: 60px;
    }
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-date {
        margin-bottom: 16px;
    }
    td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-status {
        margin-bottom: 8px;
    }
}

/* modal sheet cross-sell */
.bundle-modal {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    box-shadow: 0 -10px 30px rgba(0,0,0,.2);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform .8s cubic-bezier(.22,.61,.36,1);
    z-index: 9999999;
    touch-action: pan-y;
}

/* حالت باز */
.bundle-modal.active {
    transform: translateY(0);
}

/* handle (دستگیره swipe) */
.bundle-modal::before {
    content: '';
    width: 50px;
    height: 5px;
    background: #ccc;
    border-radius: 10px;
    display: block;
    margin: 12px auto;
}

/* محتوای داخلی */
.bundle-content {
    padding: 20px;
    height: calc(100% - 30px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* دکمه بستن */
.close-modal {
    font-size: 26px;
    cursor: pointer;
}

/* گرید محصولات */
.bundle-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
}

.bundle-backdrop {
    position: fixed;
    inset: 0; /* top:0; left:0; right:0; bottom:0 */
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
    z-index: 9999998; /* کمی پایین‌تر از مودال */
}

.bundle-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* تیتر */
.bundle-content h3 {
    font-size: 20px;
    font-weight: 800;
    color: #2b2b2b;
    margin-bottom: 18px;
    position: relative;
    padding-right: 14px;
}

.bundle-content h3::before {
    content: "";
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 6px;
    background: #EDC8BD;
}

/* گرید محصولات */
.bundle-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

/* کارت هر محصول */
.bundle-item {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    border: 1px solid #f2e2dd;
    transition: .3s;
    box-shadow: 0 6px 18px rgba(0,0,0,.05);
    margin-bottom: 0 !important;
}

.bundle-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px rgba(0,0,0,.10);
    border-color: #EDC8BD;
}

/* تصویر */
.bundle-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fafafa;
}

/* عنوان */
.bundle-item h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
    color: #222;
    margin: 6px 0;
    min-height: 46px;
}

/* قیمت */
.bundle-item .amount {
    font-size: 15px;
    font-weight: 800;
    color: #000;
}

.bundle-item .woocommerce-Price-currencySymbol {
    font-size: 12px;
    opacity: .8;
    margin-right: 3px;
}

/* دکمه */
.bundle-add-to-cart {
    width: 100%;
    margin-top: 10px;
    padding: 10px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    transition: .25s;
    background: #EDC8BD;
    color: #5a3d36;
}

.bundle-add-to-cart:hover {
    background: #d9ada1;
    color: #fff;
    box-shadow: 0 8px 18px rgba(237,200,189,.45);
    transform: translateY(-2px);
}
.bundle-add-to-cart {
    background: #EDC8BD !important;
    color: #5a3d36;
    border: none;
}

.bundle-add-to-cart:hover {
    background: #d9ada1 !important;
    color: #fff;
}

/* حالت افزوده شده */
.bundle-add-to-cart.added,
.bundle-add-to-cart:disabled {
    background: #27ae60;
    color: #fff;
}

.open-bundle-modal {
    background: #EDC8BD !important;
    color: #5a3d36;
    border: none;
    padding: 14px 18px;
    border-radius: 16px !important;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: .25s;
    display: block;
    margin: 0 auto; /* وسط در دسکتاپ */
    box-shadow: 0 8px 18px rgba(237,200,189,.45);
}

.open-bundle-modal:hover {
    background: #d9ada1;
    color: #fff;
    transform: translateY(-2px);
}

/* 📱 موبایل = تمام عرض */
@media (max-width: 640px) {
    .open-bundle-modal {
        width: 100%;
    }
}

/* 💻 دسکتاپ = وسط با عرض مناسب */
@media (min-width: 641px) {
    .open-bundle-modal {
        width: auto;
        min-width: 320px;
    }
}

/* ریسپانسیو */
@media (max-width: 640px) {
    .bundle-products {
        gap: 12px;
    }

    .bundle-item img {
        height: 130px;
    }

    .bundle-content h3 {
        font-size: 17px;
    }
}

@media (max-width: 1024px) {
    .tabs-layout-tabs {
        display: block !important;
    }
}


/* کانتینر کلی تب‌ها */
.woocommerce-tabs {
    background: #fff;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 40px rgba(0,0,0,.06);
    border: 1px solid #f3e4df;
    margin-top: 30px;
}

/* نوار تب‌ها */
.wd-nav-tabs {
    border-bottom: 1px solid #eee;
    gap: 28px;
}

/* لینک تب */
.wd-nav-tabs .wd-nav-link {
    font-weight: 700;
    font-size: 15px;
    color: #666;
    padding: 12px 4px;
    position: relative;
    transition: .25s;
}

/* خط زیر انیمیشنی */
.wd-nav-tabs .wd-nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 0;
    height: 3px;
    background: #EDC8BD;
    border-radius: 4px;
    transition: .3s;
}

/* هاور */
.wd-nav-tabs .wd-nav-link:hover {
    color: #222;
}

.wd-nav-tabs .wd-nav-link:hover::after {
    width: 100%;
}

/* تب فعال */
.wd-nav-tabs li.active .wd-nav-link,
.wd-nav-tabs .wd-nav-link[aria-selected="true"] {
    color: #000;
}

.wd-nav-tabs li.active .wd-nav-link::after,
.wd-nav-tabs .wd-nav-link[aria-selected="true"]::after {
    width: 100%;
}

/* محتوای تب */
.woocommerce-Tabs-panel {
    margin-top: 22px;
    background: #fafafa;
    border-radius: 18px;
    line-height: 2.1;
    font-size: 15px;
    color: #333;
}

/* پاراگراف‌ها */
.woocommerce-Tabs-panel p {
    margin-bottom: 14px;
}

/* -------- جدول مشخصات محصول -------- */

.shop_attributes {
    border-radius: 16px;
    overflow: hidden;
}

.shop_attributes tr {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 20px 16px !important;
    margin: 0 !important;
    transition: .2s;
}

.wc-tab-inner.wd-entry-content {
    padding: 24px;
}

.shop_attributes tr:nth-child(even) {
    background: #fcf7f5;
}

.shop_attributes tr:hover {
    background: #f6e7e2;
}

/* ستون عنوان */
.shop_attributes th {
    font-weight: 700;
    color: #444;
    padding: 14px 16px;
    width: 35%;
    border: none;
    position: relative;
}

/* مقدار */
.shop_attributes td {
    padding: 14px 16px;
    color: #222;
    border: none;
    font-weight: 500;
}

/* -------- حالت آکاردئون موبایل (وودمارت) -------- */

.wd-accordion-title {
    border-radius: 14px;
    background: #f9f3f1;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid #f1e1dc;
    transition: .25s;
}

.wd-accordion-title.wd-active {
    background: #EDC8BD;
    color: #5a3d36;
}

.shop_attributes tr:last-child {
    border-bottom: 0 !important;
}

/* -------- ریسپانسیو -------- */

@media (max-width: 768px) {
    .wc-tab-inner.wd-entry-content {
        padding: 0;
    }

    .woocommerce-tabs {
        padding: 16px;
        border-radius: 18px;
    }

    .woocommerce-Tabs-panel {
        padding: 16px;
        font-size: 14px;
    }

    .shop_attributes th,
    .shop_attributes td {
        padding: 12px;
        font-size: 13px;
    }

    .wd-nav-tabs {
        gap: 16px;
    }
}

.shop_attributes tbody {
    margin: 0 !important;
}

/*cross sell atr */

 .sheet-inner span {
     font-size: 16px;
     font-weight: bold;
     color: #1c1c1c;
 }
.sheet-inner-img-desc {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.sheet-inner button.addon-toggle {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7d0c5;
}
.sheet-inner img {
    width: 150px !important;
    height: 150px !important;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}
.addon-desc{
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    font-size:14px;
    line-height:1.8;
    color:#555;
    margin-bottom:0;
}

.modal-price-box{
    margin:16px 0;
}
.modal-price-box del{
    color:#999;
    font-size:13px;
}
.modal-price-box strong{
    font-size:18px;
    margin:0 6px;
}
.modal-price-box em{
    background:#ffeded;
    color:#e53935;
    font-style:normal;
    font-size:13px;
    padding:2px 6px;
    border-radius:8px;
    font-family: 'IRANSansx';
}

.addon-info span.title {
    margin-bottom: 8px;
}

.addon-inline-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.addon-inline-row .open-addon-sheet{
    background:none;
    border:none;
    color:#1976d2;
    cursor:pointer;
}

.addon-sheet{
    position:fixed;
    inset:0;
    display:none;
    z-index:999999;
}

.addon-sheet.active{
    display:block;
}

.sheet-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.4);
}

.sheet-inner{
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    background:#fff;
    padding:20px;
    border-radius:24px 24px 0 0;
}

.addon-summary-bar{
    display:flex;
    align-items:center;
    gap:10px;
    margin:10px 0;
}

.open-addon-sheet{
    background:none;
    border:none;
    color:#1976d2;
    font-weight:600;
    cursor:pointer;
}

.addon-summary span{
    background:#f5f5f5;
    padding:4px 8px;
    border-radius:10px;
    font-size:12px;
}

.addon-toggle{
    background:#f0f0f0;
    border:none;
    padding:6px 12px;
    border-radius:10px;
    cursor:pointer;
}

.addon-toggle.active{
    background: #ff0000 !important;
    color: #ffffff;
}

#addon-sheet{
    position:fixed;
    bottom:-100%;
    left:0; right:0;
    background:#fff;
    border-radius:24px 24px 0 0;
    transition:.35s;
    z-index:9999;
    padding:20px;
}
#addon-sheet.active{ bottom:0; }
.sheet-backdrop{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
}
.addon-row{
    display:flex;
    justify-content: space-between;
    gap:12px;
    padding:14px;
    border:1px solid #eee;
    border-radius:14px;
    margin-bottom:10px;
    background-color: #ffffff;
}
input.addon-inline-check {
    margin-left: 12px;
}
.check-info {
    display: flex;
}
.price del{ color:#999; font-size:12px; }
.price strong{ font-size:15px; }
.price em{
    background:#ffeded;
    color:#e53935;
    font-style:normal;
    font-size:12px;
    padding:2px 6px;
    border-radius:8px;
    margin-right:6px;
    font-family: 'IRANSansx';
}

div#woo_sc_show_popup {
    transform: rotate(90deg);
    margin-left: -22px !important;
    margin-top: 0 !important;
}

.showcoupon {
    color: #000000 !important;
}

/* استایل فرم کوپن در چک‌اوت */
.custom-checkout-coupon {
    border: 1px solid #d1d1d1 !important; /* خط دور فرم */
    padding: 15px !important;
    border-radius: 8px !important; /* گوشه‌های گرد */
    background-color: #fafafa !important; /* رنگ پس‌زمینه ملایم */
    margin-top: 20px !important;
	margin-bottom: 20px !important;
}

.custom-checkout-coupon .woocommerce-info {
    padding: 10px !important;
    margin-bottom: 15px !important;
    border-radius: 5px !important;
}

.custom-checkout-coupon .woocommerce-form-coupon input.input-text {
    width: calc(100% - 120px) !important; /* پهنای فیلد با دکمه */
    padding: 10px !important;
    border: 1px solid #ccc !important;
    border-radius: 5px !important;
    margin-right: 10px !important;
}

.custom-checkout-coupon .woocommerce-form-coupon button.button {
    padding: 10px 20px !important;
    background-color: #1F264A !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    cursor: pointer !important;
}

.custom-checkout-coupon .woocommerce-form-coupon button.button:hover {
    background-color: #0077aa !important;
}

:root :is(.woocommerce-form-coupon-toggle,.woocommerce-form-login-toggle)>div {
	margin:0 !important
}
form#woocommerce-checkout-form-coupon {
    margin: 24px 0 0 0 !important;
}

.woocommerce-info {
    width: 100% !important;
    flex-direction: column !important;
}

input#coupon_code {
    width: 100% !important;
    margin: 0 !important;
}

.custom-checkout-coupon .woocommerce-form-coupon button.button {
	width: 100%;
}

form#woocommerce-checkout-form-coupon p.form-row.form-row-last {
    width: 100%;
}

.woocommerce-form-coupon, .woocommerce-form-login.hidden-form {
    padding: 16px !important;
}

.whb-top-bar .wd-header-text p {
    color: #FFFFFF !important;
    font-size: 12px;
    font-weight: bold;
}
.whb-row.whb-top-bar.whb-sticky-row.whb-with-bg.whb-without-border.whb-color-dark.whb-col-1 {
	background-color: #1B264B !important;
}

.product-labels.labels-rounded .out-of-stock {
    max-width: unset !important;
    height: 54px !important;
    width: 54px !important;
}

/* =========================================================
   استایل سفارشی بخش دیدگاه‌های محصول (ووکامرسی)
   هدف: نمایش کارتی، تمیز و شبیه اسکرین‌شات ارسالی
   محل قرارگیری: Appearance > Customize > Additional CSS
   یا داخل style.css قالب فرزند
   ========================================================= */

/* کانتینر کلی دیدگاه‌ها */
.wd-reviews-content {
    direction: rtl;
}

/* حذف بولت و پدینگ پیش‌فرض لیست */
.wd-reviews-content .commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* هر آیتم دیدگاه به‌صورت کارت مجزا */
.wd-reviews-content .commentlist > li.review,
.wd-reviews-content .commentlist > li.comment {
    background: #ffffff;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

/* حذف حاشیه/بک‌گراند اضافه‌ی کانتینر داخلی کامنت */
.wd-reviews-content .comment_container {
    background: transparent;
    border: none;
    padding: 0;
}

/* چیدمان بخش نویسنده / تاریخ / امتیاز */
.wd-reviews-content .comment-text .meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* راست‌چین برای فارسی */
    gap: 6px;
    margin-bottom: 10px;
}

/* نام نویسنده - بزرگ و پررنگ، ردیف اول */
.wd-reviews-content .woocommerce-review__author {
    order: 1;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
}

/* حذف خط تیره‌ی بین نام و تاریخ */
.wd-reviews-content .woocommerce-review__dash {
    display: none;
}

/* تاریخ - کم‌رنگ‌تر، ردیف دوم */
.wd-reviews-content .woocommerce-review__published-date {
    order: 2;
    font-size: 13px;
    color: #9a9a9a;
}

/* امتیاز ستاره‌ای - ردیف سوم */
.wd-reviews-content .star-rating {
    order: 3;
    margin: 2px 0 0;
    font-size: 18px;
    color: #f5b301; /* رنگ ستاره طلایی مثل اسکرین‌شات */
}
.wd-reviews-content .star-rating span {
    color: #f5b301;
}

/* متن دیدگاه */
.wd-reviews-content .description {
    font-size: 15px;
    line-height: 1.9;
    color: #333333;
    margin: 0;
}
.wd-reviews-content .description p {
    margin: 0;
}

/* ==========================================================
   پاسخ فروشنده (comment children) - به شکل زیرکارت داخل همان کارت
   ========================================================== */
.wd-reviews-content ul.children {
    list-style: none;
    margin: 14px 0 0;
    padding: 14px 0 0;
    border-top: 1px dashed #eee;
}

.wd-reviews-content ul.children > li.comment {
    background: #f9fafc;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* عنوان کلی دیدگاه‌ها */
.wd-reviews-heading .woocommerce-Reviews-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
}

/* دکمه نمایش همه نظرات (در صورت وجود چنین دکمه‌ای در قالب) */
.wd-reviews-content .wd-show-more,
.wd-reviews-content .load-more-reviews {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a3a8f;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
}