/* Adantech Product Page Complete v6.1.0 - Stable WoodMart/Dokan Safe */

body.single-product.adpc-v610,
body.single-product.adpc-v610 * {
    box-sizing: border-box;
}

body.single-product.adpc-v610 {
    --adpc-border: #e7ecf3;
    --adpc-soft: #f8fafc;
    --adpc-title: #111827;
    --adpc-text: #4b5563;
    --adpc-muted: #98a2b3;
}

body.single-product.adpc-v610-font,
body.single-product.adpc-v610-font .website-wrapper,
body.single-product.adpc-v610-font .main-page-wrapper,
body.single-product.adpc-v610-font .single-product-content,
body.single-product.adpc-v610-font .product,
body.single-product.adpc-v610-font .summary,
body.single-product.adpc-v610-font .woocommerce-tabs,
body.single-product.adpc-v610-font input,
body.single-product.adpc-v610-font button,
body.single-product.adpc-v610-font textarea,
body.single-product.adpc-v610-font select {
    font-family: var(--adpc-v610-font), Tahoma, Arial, sans-serif !important;
}

/* Width: align with page, no horizontal overflow */
body.single-product.adpc-v610-main .single-product-content,
body.single-product.adpc-v610-main .product-image-summary,
body.single-product.adpc-v610-main .product-image-summary-wrap,
body.single-product.adpc-v610-main .product-image-summary-inner,
body.single-product.adpc-v610 .adpc-v610-services,
body.single-product.adpc-v610-tabs .woocommerce-tabs,
body.single-product.adpc-v610-tabs .wc-tabs-wrapper,
body.single-product.adpc-v610-tabs .wd-tabs-wrapper,
body.single-product.adpc-v610 .related.products {
    width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px)) !important;
    max-width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px)) !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Main product card: style only, no destructive gallery override */
body.single-product.adpc-v610-main .product-image-summary-wrap,
body.single-product.adpc-v610-main .product-image-summary-inner {
    background: #fff !important;
    border: 1px solid var(--adpc-border) !important;
    border-radius: 22px !important;
    box-shadow: 0 14px 42px rgba(16,24,40,.035) !important;
    overflow: hidden !important;
}

/* Gallery safe center */
body.single-product.adpc-v610-main .woocommerce-product-gallery,
body.single-product.adpc-v610-main .product-images,
body.single-product.adpc-v610-main .wd-product-images {
    padding: 18px !important;
    background: #fff !important;
    text-align: center !important;
    overflow: hidden !important;
}

body.single-product.adpc-v610-main .woocommerce-product-gallery__image,
body.single-product.adpc-v610-main .woocommerce-product-gallery__image > a {
    text-align: center !important;
}

body.single-product.adpc-v610-main .woocommerce-product-gallery__image img,
body.single-product.adpc-v610-main .woocommerce-product-gallery img.wp-post-image,
body.single-product.adpc-v610-main .product-images img,
body.single-product.adpc-v610-main .wd-product-images img {
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
    transform: none !important;
}

body.single-product.adpc-v610-main img.zoomImg,
body.single-product.adpc-v610-main .zoomImg {
    display: none !important;
}

/* Summary typography */
body.single-product.adpc-v610-main div.product .summary.entry-summary,
body.single-product.adpc-v610-main .summary.entry-summary,
body.single-product.adpc-v610-main .entry-summary {
    padding: 22px 24px !important;
    background: #fff !important;
    box-shadow: none !important;
    min-width: 0 !important;
}

body.single-product.adpc-v610-main .product_title,
body.single-product.adpc-v610-main h1.product_title {
    color: var(--adpc-title) !important;
    font-size: clamp(26px, 2vw, 36px) !important;
    font-weight: 780 !important;
    line-height: 1.35 !important;
    letter-spacing: -.02em !important;
    margin: 8px 0 12px !important;
}

body.single-product.adpc-v610-main .summary .price,
body.single-product.adpc-v610-main .summary p.price {
    color: var(--adpc-v610-primary, #ff7a1a) !important;
    font-size: clamp(20px, 1.8vw, 27px) !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
}

body.single-product.adpc-v610-main .summary .price del,
body.single-product.adpc-v610-main .summary .price del .amount {
    color: #a3aab7 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.single-product.adpc-v610-main .summary .price ins {
    text-decoration: none !important;
}

body.single-product.adpc-v610-main .woocommerce-product-details__short-description {
    color: var(--adpc-text) !important;
    font-size: 13.5px !important;
    font-weight: 650 !important;
    line-height: 1.95 !important;
    padding: 12px 0 4px !important;
    margin: 12px 0 0 !important;
    border-top: 1px solid var(--adpc-border) !important;
}

/* Feature / shipping boxes */
.adpc-v610-summary-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 11px;
    margin: 15px 0 13px;
    direction: rtl;
}

.adpc-v610-feature-box,
.adpc-v610-shipping-card {
    background: #fff;
    border: 1px solid var(--adpc-border);
    border-radius: 15px;
    padding: 14px 16px;
    box-shadow: 0 8px 22px rgba(16,24,40,.025);
}

.adpc-v610-feature-box h3,
.adpc-v610-shipping-card h3 {
    margin: 0 0 9px;
    color: var(--adpc-title);
    font-size: 14.5px;
    font-weight: 850;
    line-height: 1.65;
}

.adpc-v610-shipping-card h3 {
    display: flex;
    align-items: center;
    gap: 7px;
}

.adpc-v610-shipping-card h3 .dashicons {
    color: var(--adpc-v610-danger, #ef394e);
}

.adpc-v610-feature-box ul,
.adpc-v610-shipping-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.adpc-v610-feature-box li,
.adpc-v610-shipping-card li {
    position: relative;
    padding-right: 13px;
    color: #667085;
    font-size: 12.3px;
    font-weight: 700;
    line-height: 1.75;
}

.adpc-v610-feature-box li:before,
.adpc-v610-shipping-card li:before {
    content: "";
    position: absolute;
    right: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--adpc-v610-danger, #ef394e);
}

.adpc-v610-return-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: #667085;
    font-size: 11.8px;
    font-weight: 650;
    line-height: 1.8;
    margin: 0 0 9px;
}

.adpc-v610-return-note p {
    margin: 0;
}

.adpc-v610-return-note .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    color: #98a2b3;
    margin-top: 3px;
}

/* Cart: no overlap, stable in WoodMart */
body.single-product.adpc-v610-cart form.cart,
body.single-product.adpc-v610-cart .summary form.cart,
body.single-product.adpc-v610-cart .woocommerce-variation-add-to-cart {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin: 15px 0 12px !important;
    padding: 11px !important;
    background: #fff !important;
    border: 1px solid var(--adpc-border) !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 28px rgba(16,24,40,.035) !important;
    overflow: hidden !important;
}

body.single-product.adpc-v610-cart .quantity,
body.single-product.adpc-v610-cart form.cart .quantity {
    width: 132px !important;
    min-width: 132px !important;
    max-width: 132px !important;
    height: 44px !important;
    display: grid !important;
    grid-template-columns: 38px 56px 38px !important;
    align-items: center !important;
    justify-content: center !important;
    background: #fff !important;
    border: 1px solid #dfe5ec !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    padding: 0 !important;
    margin: 0 !important;
    flex: 0 0 132px !important;
}

body.single-product.adpc-v610-cart .quantity input.qty,
body.single-product.adpc-v610-cart .quantity .qty {
    width: 56px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 !important;
    margin: 0 !important;
    text-align: center !important;
    border: 0 !important;
    border-left: 1px solid #e5e7eb !important;
    border-right: 1px solid #e5e7eb !important;
    background: #fff !important;
    color: #111827 !important;
    font-size: 13.5px !important;
    font-weight: 850 !important;
    box-shadow: none !important;
}

body.single-product.adpc-v610-cart .quantity .minus,
body.single-product.adpc-v610-cart .quantity .plus,
body.single-product.adpc-v610-cart .quantity input[type=button],
body.single-product.adpc-v610-cart .quantity button {
    width: 38px !important;
    height: 42px !important;
    min-width: 38px !important;
    min-height: 42px !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    background-color: #fff !important;
    color: #344054 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    flex: none !important;
}

body.single-product.adpc-v610-cart .quantity .minus:hover,
body.single-product.adpc-v610-cart .quantity .plus:hover {
    background: var(--adpc-soft) !important;
    color: var(--adpc-v610-primary, #ff7a1a) !important;
}

body.single-product.adpc-v610-cart .single_add_to_cart_button,
body.single-product.adpc-v610-cart button.single_add_to_cart_button {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 44px !important;
    min-height: 44px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, var(--adpc-v610-primary, #ff7a1a), #ff6500) !important;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(255,122,26,.20) !important;
    font-size: 13.5px !important;
    font-weight: 900 !important;
    padding: 0 16px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
}

/* product action buttons wrap cleanly */
body.single-product.adpc-v610 .summary .wd-compare-btn,
body.single-product.adpc-v610 .summary .wd-wishlist-btn,
body.single-product.adpc-v610 .summary .wd-action-btn,
body.single-product.adpc-v610 .summary .compare,
body.single-product.adpc-v610 .summary .yith-wcwl-add-to-wishlist {
    max-width: 100% !important;
    white-space: normal !important;
}

body.single-product.adpc-v610 .summary .wd-buttons,
body.single-product.adpc-v610 .summary .product-share,
body.single-product.adpc-v610 .summary .wd-social-icons {
    max-width: 100% !important;
    overflow: hidden !important;
}

/* Product meta */
body.single-product.adpc-v610 .product_meta {
    border-top: 1px solid var(--adpc-border) !important;
    margin-top: 14px !important;
    padding-top: 12px !important;
    color: #667085 !important;
    font-size: 12.2px !important;
    font-weight: 700 !important;
}

/* 4 service boxes */
.adpc-v610-services,
.adpc-v610-services * {
    box-sizing: border-box;
}

.adpc-v610-services {
    width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px));
    max-width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px));
    margin: 14px auto 18px !important;
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 9px;
    direction: rtl;
}

.adpc-v610-service {
    min-width: 0;
    min-height: 72px;
    background: #fff;
    border: 1px solid var(--adpc-border);
    border-radius: 15px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    box-shadow: 0 10px 26px rgba(16,24,40,.03);
    overflow: hidden;
}

.adpc-v610-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 13px;
    background: #fff7ed;
    border: 1px solid rgba(255,122,26,.20);
    color: var(--adpc-v610-primary, #ff7a1a);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.adpc-v610-icon img {
    width: 23px;
    height: 23px;
    object-fit: contain;
    display: block;
}

.adpc-v610-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: var(--adpc-v610-primary, #ff7a1a);
}

.adpc-v610-service-text {
    min-width: 0;
}

.adpc-v610-service-text strong {
    display: block;
    color: var(--adpc-title);
    font-size: 12.7px;
    font-weight: 850;
    line-height: 1.45;
}

.adpc-v610-service-text small {
    display: block;
    margin-top: 1px;
    color: var(--adpc-muted);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.45;
}

/* Tabs */
body.single-product.adpc-v610-tabs .woocommerce-tabs,
body.single-product.adpc-v610-tabs .wc-tabs-wrapper,
body.single-product.adpc-v610-tabs .wd-tabs-wrapper {
    background: #fff !important;
    border: 1px solid var(--adpc-border) !important;
    border-radius: 17px !important;
    overflow: hidden !important;
    box-shadow: 0 12px 34px rgba(16,24,40,.03) !important;
    margin-top: 14px !important;
    margin-bottom: 22px !important;
}

body.single-product.adpc-v610-tabs .woocommerce-tabs ul.tabs,
body.single-product.adpc-v610-tabs .woocommerce-tabs .tabs,
body.single-product.adpc-v610-tabs .wc-tabs,
body.single-product.adpc-v610-tabs .wd-nav-tabs {
    min-height: 54px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 0 20px !important;
    margin: 0 !important;
    border-bottom: 1px solid var(--adpc-border) !important;
    overflow-x: auto !important;
    background: #fff !important;
}

body.single-product.adpc-v610-tabs .woocommerce-tabs ul.tabs li,
body.single-product.adpc-v610-tabs .woocommerce-tabs .tabs li,
body.single-product.adpc-v610-tabs .wc-tabs li,
body.single-product.adpc-v610-tabs .wd-nav-tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    white-space: nowrap !important;
}

body.single-product.adpc-v610-tabs .woocommerce-tabs ul.tabs li a,
body.single-product.adpc-v610-tabs .woocommerce-tabs .tabs li a,
body.single-product.adpc-v610-tabs .wc-tabs li a,
body.single-product.adpc-v610-tabs .wd-nav-tabs li a {
    min-height: 54px !important;
    display: inline-flex !important;
    align-items: center !important;
    color: #667085 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
    text-decoration: none !important;
    border-bottom: 3px solid transparent !important;
}

body.single-product.adpc-v610-tabs .woocommerce-tabs ul.tabs li.active a,
body.single-product.adpc-v610-tabs .woocommerce-tabs .tabs li.active a,
body.single-product.adpc-v610-tabs .wc-tabs li.active a,
body.single-product.adpc-v610-tabs .wd-nav-tabs li.active a {
    color: var(--adpc-title) !important;
    border-bottom-color: var(--adpc-v610-primary, #ff7a1a) !important;
}

body.single-product.adpc-v610-tabs .woocommerce-tabs .panel,
body.single-product.adpc-v610-tabs .woocommerce-Tabs-panel,
body.single-product.adpc-v610-tabs .wd-tab-content {
    padding: 20px 22px !important;
    color: #667085 !important;
    font-size: 13.5px !important;
    line-height: 2 !important;
}

/* Tablet */
@media (max-width: 991px) {
    body.single-product.adpc-v610-main .single-product-content,
    body.single-product.adpc-v610-main .product-image-summary,
    body.single-product.adpc-v610-main .product-image-summary-wrap,
    body.single-product.adpc-v610-main .product-image-summary-inner,
    body.single-product.adpc-v610 .adpc-v610-services,
    body.single-product.adpc-v610-tabs .woocommerce-tabs,
    body.single-product.adpc-v610-tabs .wc-tabs-wrapper,
    body.single-product.adpc-v610-tabs .wd-tabs-wrapper {
        width: calc(100% - 16px) !important;
        max-width: calc(100% - 16px) !important;
    }

    body.single-product.adpc-v610-main .product-image-summary-wrap,
    body.single-product.adpc-v610-main .product-image-summary-inner {
        border-radius: 17px !important;
    }

    body.single-product.adpc-v610-main .woocommerce-product-gallery,
    body.single-product.adpc-v610-main .product-images,
    body.single-product.adpc-v610-main .wd-product-images {
        padding: 9px !important;
    }

    body.single-product.adpc-v610-main div.product .summary.entry-summary,
    body.single-product.adpc-v610-main .summary.entry-summary,
    body.single-product.adpc-v610-main .entry-summary {
        padding: 13px 12px !important;
    }

    body.single-product.adpc-v610-main .product_title,
    body.single-product.adpc-v610-main h1.product_title {
        font-size: 23px !important;
        line-height: 1.35 !important;
        font-weight: 760 !important;
    }

    body.single-product.adpc-v610-main .summary .price,
    body.single-product.adpc-v610-main .summary p.price {
        font-size: 19px !important;
    }

    body.single-product.adpc-v610-main .woocommerce-product-details__short-description {
        font-size: 12.4px !important;
        line-height: 1.85 !important;
    }

    .adpc-v610-feature-box,
    .adpc-v610-shipping-card {
        padding: 11px !important;
        border-radius: 13px !important;
    }

    .adpc-v610-feature-box h3,
    .adpc-v610-shipping-card h3 {
        font-size: 13.5px !important;
        margin-bottom: 7px !important;
    }

    .adpc-v610-feature-box li,
    .adpc-v610-shipping-card li {
        font-size: 11px !important;
        line-height: 1.65 !important;
    }

    .adpc-v610-return-note {
        font-size: 10.8px !important;
    }

    /* Mobile cart: stack to prevent all overlap */
    body.single-product.adpc-v610-cart form.cart,
    body.single-product.adpc-v610-cart .summary form.cart,
    body.single-product.adpc-v610-cart .woocommerce-variation-add-to-cart {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        padding: 9px !important;
        border-radius: 14px !important;
        overflow: visible !important;
    }

    body.single-product.adpc-v610-cart .quantity,
    body.single-product.adpc-v610-cart form.cart .quantity {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 40px !important;
        flex: none !important;
        grid-template-columns: 40px 1fr 40px !important;
    }

    body.single-product.adpc-v610-cart .quantity input.qty,
    body.single-product.adpc-v610-cart .quantity .qty {
        width: 100% !important;
        height: 38px !important;
        min-height: 38px !important;
        font-size: 13px !important;
    }

    body.single-product.adpc-v610-cart .quantity .minus,
    body.single-product.adpc-v610-cart .quantity .plus,
    body.single-product.adpc-v610-cart .quantity input[type=button],
    body.single-product.adpc-v610-cart .quantity button {
        width: 40px !important;
        height: 38px !important;
        min-width: 40px !important;
        min-height: 38px !important;
    }

    body.single-product.adpc-v610-cart .single_add_to_cart_button,
    body.single-product.adpc-v610-cart button.single_add_to_cart_button {
        width: 100% !important;
        height: 42px !important;
        min-height: 42px !important;
        font-size: 12.8px !important;
        border-radius: 12px !important;
        padding: 0 10px !important;
        flex: none !important;
    }

    .adpc-v610-services {
        grid-template-columns: repeat(4, minmax(0,1fr));
        gap: 5px;
        margin-top: 10px !important;
        margin-bottom: 10px !important;
    }

    .adpc-v610-service {
        min-height: 58px;
        padding: 5px 3px;
        border-radius: 11px;
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 3px;
    }

    .adpc-v610-icon {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        border-radius: 8px;
    }

    .adpc-v610-icon img {
        width: 15px;
        height: 15px;
    }

    .adpc-v610-icon .dashicons {
        width: 14px;
        height: 14px;
        font-size: 14px;
    }

    .adpc-v610-service-text strong {
        font-size: 7.8px;
        line-height: 1.18;
        font-weight: 850;
    }

    .adpc-v610-service-text small {
        display: none;
    }

    body.single-product.adpc-v610-tabs .woocommerce-tabs,
    body.single-product.adpc-v610-tabs .wc-tabs-wrapper,
    body.single-product.adpc-v610-tabs .wd-tabs-wrapper {
        border-radius: 15px !important;
    }

    body.single-product.adpc-v610-tabs .woocommerce-tabs ul.tabs,
    body.single-product.adpc-v610-tabs .woocommerce-tabs .tabs,
    body.single-product.adpc-v610-tabs .wc-tabs,
    body.single-product.adpc-v610-tabs .wd-nav-tabs {
        min-height: 48px !important;
        gap: 14px !important;
        padding: 0 12px !important;
    }

    body.single-product.adpc-v610-tabs .woocommerce-tabs ul.tabs li a,
    body.single-product.adpc-v610-tabs .woocommerce-tabs .tabs li a,
    body.single-product.adpc-v610-tabs .wc-tabs li a,
    body.single-product.adpc-v610-tabs .wd-nav-tabs li a {
        min-height: 48px !important;
        font-size: 11.8px !important;
    }

    body.single-product.adpc-v610-tabs .woocommerce-tabs .panel,
    body.single-product.adpc-v610-tabs .woocommerce-Tabs-panel,
    body.single-product.adpc-v610-tabs .wd-tab-content {
        padding: 12px !important;
        font-size: 12.2px !important;
        line-height: 1.85 !important;
    }
}

/* Narrow phones */
@media (max-width: 370px) {
    .adpc-v610-service-text strong {
        font-size: 7px;
    }

    .adpc-v610-service {
        min-height: 54px;
        padding: 4px 2px;
    }

    .adpc-v610-icon {
        width: 22px;
        height: 22px;
        flex-basis: 22px;
    }
}


/* =====================================================
   v6.1.1 Android tabs/accordion hotfix
   حل مشکل فضای خالی بزرگ در بخش توضیحات/ارسال/نظرات موبایل
===================================================== */

@media (max-width: 991px) {
    body.single-product.adpc-v610-tabs .woocommerce-tabs,
    body.single-product.adpc-v610-tabs .wc-tabs-wrapper,
    body.single-product.adpc-v610-tabs .wd-tabs-wrapper,
    body.single-product.adpc-v610-tabs .tabs-layout-accordion,
    body.single-product.adpc-v610-tabs .wd-accordion,
    body.single-product.adpc-v610-tabs .wd-accordion-wrapper {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    body.single-product.adpc-v610-tabs .woocommerce-Tabs-panel,
    body.single-product.adpc-v610-tabs .woocommerce-tabs .panel,
    body.single-product.adpc-v610-tabs .wd-tab-content,
    body.single-product.adpc-v610-tabs .wd-accordion-content,
    body.single-product.adpc-v610-tabs .accordion-content,
    body.single-product.adpc-v610-tabs #tab-description,
    body.single-product.adpc-v610-tabs #tab-additional_information,
    body.single-product.adpc-v610-tabs #tab-reviews,
    body.single-product.adpc-v610-tabs #tab-shipping,
    body.single-product.adpc-v610-tabs #reviews,
    body.single-product.adpc-v610-tabs .woocommerce-Reviews,
    body.single-product.adpc-v610-tabs #comments,
    body.single-product.adpc-v610-tabs #review_form_wrapper {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        padding-top: 0 !important;
        padding-bottom: 12px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
    }

    body.single-product.adpc-v610-tabs .woocommerce-Reviews:empty,
    body.single-product.adpc-v610-tabs #comments:empty,
    body.single-product.adpc-v610-tabs #review_form_wrapper:empty {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    body.single-product.adpc-v610-tabs .wd-accordion-title,
    body.single-product.adpc-v610-tabs .accordion-title,
    body.single-product.adpc-v610-tabs .tabs-layout-accordion .wd-tab-title,
    body.single-product.adpc-v610-tabs .tabs-layout-accordion .tab-title,
    body.single-product.adpc-v610-tabs .wc-tab-title {
        min-height: 50px !important;
        height: auto !important;
        padding: 0 13px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        color: #111827 !important;
        font-size: 13.5px !important;
        font-weight: 850 !important;
        border-bottom: 1px solid #e7ecf3 !important;
        background: #fff !important;
    }

    body.single-product.adpc-v610-tabs .tabs-layout-accordion > .wd-tab,
    body.single-product.adpc-v610-tabs .wd-accordion-item,
    body.single-product.adpc-v610-tabs .accordion-item {
        min-height: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: 1px solid #e7ecf3 !important;
        background: #fff !important;
        overflow: hidden !important;
    }

    body.single-product.adpc-v610-tabs .tabs-layout-accordion > .wd-tab:last-child,
    body.single-product.adpc-v610-tabs .wd-accordion-item:last-child,
    body.single-product.adpc-v610-tabs .accordion-item:last-child {
        border-bottom: 0 !important;
    }

    /* Reviews section often creates huge empty height in WoodMart mobile */
    body.single-product.adpc-v610-tabs #reviews {
        display: block !important;
        padding: 0 13px 12px !important;
    }

    body.single-product.adpc-v610-tabs #reviews #comments,
    body.single-product.adpc-v610-tabs #reviews #review_form_wrapper {
        min-height: 0 !important;
    }

    body.single-product.adpc-v610-tabs #reviews .woocommerce-Reviews-title,
    body.single-product.adpc-v610-tabs #reviews .commentlist:empty,
    body.single-product.adpc-v610-tabs #reviews .woocommerce-noreviews {
        margin: 0 !important;
        padding: 0 !important;
        min-height: 0 !important;
    }

    body.single-product.adpc-v610-tabs #reviews .comment-respond {
        margin-top: 10px !important;
        padding-top: 0 !important;
    }
}

/* Also apply if browser keeps old body class after cache */
@media (max-width: 991px) {
    body.single-product.adpc-v610 .woocommerce-tabs {
        min-height: 0 !important;
        height: auto !important;
    }

    body.single-product.adpc-v610 .woocommerce-tabs * {
        max-width: 100% !important;
    }
}


/* =====================================================
   v6.2.0 CUSTOM TABS FINAL
   خروج تب‌های خراب WoodMart و جایگزینی با تب/آکاردئون تمیز
===================================================== */

/* Hide any leaked original tabs from WoodMart/WooCommerce */
body.single-product.adpc-v610-tabs .woocommerce-tabs:not(.adpc-v620-tabs),
body.single-product.adpc-v610-tabs div.product .woocommerce-tabs:not(.adpc-v620-tabs),
body.single-product.adpc-v610-tabs .wc-tabs-wrapper:not(.adpc-v620-tabs),
body.single-product.adpc-v610-tabs .wd-tabs-wrapper:not(.adpc-v620-tabs),
body.single-product.adpc-v610-tabs .tabs-layout-accordion:not(.adpc-v620-tabs),
body.single-product.adpc-v610-tabs .wd-accordion:not(.adpc-v620-tabs) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

/* Custom tabs shell */
.adpc-v620-tabs,
.adpc-v620-tabs * {
    box-sizing: border-box;
}

.adpc-v620-tabs {
    width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px));
    max-width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px));
    margin: 14px auto 24px !important;
    direction: rtl;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(16,24,40,.03);
    overflow: hidden;
}

.adpc-v620-tabs-nav {
    min-height: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    border-bottom: 1px solid #e7ecf3;
    background: #fff;
}

.adpc-v620-tab-btn {
    min-height: 56px;
    padding: 0 12px;
    margin: 0;
    border: 0 !important;
    border-left: 1px solid #f1f4f8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #667085 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 850;
    position: relative;
    white-space: nowrap;
}

.adpc-v620-tab-btn:last-child {
    border-left: 0 !important;
}

.adpc-v620-tab-btn:after {
    content: "";
    position: absolute;
    right: 18px;
    left: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
}

.adpc-v620-tab-btn.is-active {
    color: #111827 !important;
}

.adpc-v620-tab-btn.is-active:after {
    background: var(--adpc-v610-primary, #ff7a1a);
}

.adpc-v620-panel {
    display: none;
    padding: 0;
    margin: 0;
}

.adpc-v620-panel.is-active {
    display: block;
}

.adpc-v620-accordion-title {
    display: none;
}

.adpc-v620-panel-content {
    padding: 20px 24px;
    color: #667085;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 2;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.adpc-v620-panel-content > *:last-child {
    margin-bottom: 0 !important;
}

.adpc-v620-panel-content p {
    margin-top: 0;
    line-height: 2;
}

.adpc-v620-panel-content table {
    width: 100%;
    border-collapse: collapse;
}

.adpc-v620-panel-content table th,
.adpc-v620-panel-content table td {
    border-bottom: 1px solid #eef2f6;
    padding: 10px 8px;
}

.adpc-v620-panel-content #reviews,
.adpc-v620-panel-content .woocommerce-Reviews,
.adpc-v620-panel-content #comments,
.adpc-v620-panel-content #review_form_wrapper {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Mobile accordion */
@media (max-width: 991px) {
    .adpc-v620-tabs {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-top: 10px !important;
        margin-bottom: 16px !important;
        border-radius: 15px;
    }

    .adpc-v620-tabs-nav {
        display: none !important;
    }

    .adpc-v620-panel {
        display: block !important;
        border-bottom: 1px solid #e7ecf3;
    }

    .adpc-v620-panel:last-child {
        border-bottom: 0;
    }

    .adpc-v620-accordion-title {
        width: 100%;
        min-height: 50px;
        padding: 0 13px;
        margin: 0;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: #111827 !important;
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        text-align: right;
        font-size: 13.3px;
        font-weight: 850;
        cursor: pointer;
    }

    .adpc-v620-accordion-title .dashicons {
        width: 17px;
        height: 17px;
        font-size: 17px;
        color: #98a2b3;
    }

    .adpc-v620-panel.is-active .adpc-v620-accordion-title {
        color: #111827 !important;
    }

    .adpc-v620-panel.is-active .adpc-v620-accordion-title .dashicons {
        color: var(--adpc-v610-primary, #ff7a1a);
    }

    .adpc-v620-panel-content {
        display: none;
        padding: 0 13px 13px !important;
        font-size: 12.3px;
        line-height: 1.85;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .adpc-v620-panel.is-active .adpc-v620-panel-content {
        display: block;
    }

    .adpc-v620-panel-content p,
    .adpc-v620-panel-content li {
        line-height: 1.85;
    }

    .adpc-v620-panel-content #reviews,
    .adpc-v620-panel-content .woocommerce-Reviews,
    .adpc-v620-panel-content #comments,
    .adpc-v620-panel-content #review_form_wrapper,
    .adpc-v620-panel-content .comment-respond,
    .adpc-v620-panel-content .commentlist {
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
}

/* Hard mobile cart anti-overlap */
@media (max-width: 991px) {
    body.single-product.adpc-v610-cart form.cart,
    body.single-product.adpc-v610-cart .summary form.cart,
    body.single-product.adpc-v610-cart .woocommerce-variation-add-to-cart {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        overflow: visible !important;
    }

    body.single-product.adpc-v610-cart .quantity,
    body.single-product.adpc-v610-cart form.cart .quantity {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    body.single-product.adpc-v610-cart .single_add_to_cart_button,
    body.single-product.adpc-v610-cart button.single_add_to_cart_button {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* =====================================================
   v6.3.0 Tabs/Acordion real final
   فقط ۴ بخش ثابت، بدون دکمه اضافه دسکتاپ، بدون callback خراب نظرات
===================================================== */

body.single-product.adpc-v610-tabs .woocommerce-tabs:not(.adpc-v630-tabs),
body.single-product.adpc-v610-tabs div.product .woocommerce-tabs:not(.adpc-v630-tabs),
body.single-product.adpc-v610-tabs .wc-tabs-wrapper:not(.adpc-v630-tabs),
body.single-product.adpc-v610-tabs .wd-tabs-wrapper:not(.adpc-v630-tabs),
body.single-product.adpc-v610-tabs .tabs-layout-accordion:not(.adpc-v630-tabs),
body.single-product.adpc-v610-tabs .wd-accordion:not(.adpc-v630-tabs) {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.adpc-v630-tabs,
.adpc-v630-tabs * {
    box-sizing: border-box;
}

.adpc-v630-tabs {
    width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px));
    max-width: min(calc(100% - 24px), var(--adpc-v610-max, 1440px));
    margin: 14px auto 24px !important;
    direction: rtl;
    background: #fff;
    border: 1px solid #e7ecf3;
    border-radius: 18px;
    box-shadow: 0 12px 34px rgba(16,24,40,.03);
    overflow: hidden;
}

.adpc-v630-tabs-nav {
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-bottom: 1px solid #e7ecf3;
    background: #fff;
}

.adpc-v630-tab-btn {
    min-height: 58px;
    padding: 0 12px;
    margin: 0;
    border: 0 !important;
    border-left: 1px solid #f1f4f8 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #667085 !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    font-weight: 850;
    position: relative;
    white-space: nowrap;
    box-shadow: none !important;
}

.adpc-v630-tab-btn:last-child {
    border-left: 0 !important;
}

.adpc-v630-tab-btn:after {
    content: "";
    position: absolute;
    right: 18px;
    left: 18px;
    bottom: 0;
    height: 3px;
    border-radius: 999px 999px 0 0;
    background: transparent;
}

.adpc-v630-tab-btn.is-active {
    color: #111827 !important;
}

.adpc-v630-tab-btn.is-active:after {
    background: var(--adpc-v610-primary, #ff7a1a);
}

.adpc-v630-panel {
    display: none;
    padding: 0;
    margin: 0;
}

.adpc-v630-panel.is-active {
    display: block;
}

/* مهم: در دسکتاپ عنوان آکاردئون اصلاً نمایش داده نشود */
.adpc-v630-accordion-title {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
}

.adpc-v630-panel-content {
    padding: 20px 24px;
    color: #667085;
    font-size: 13.5px;
    font-weight: 650;
    line-height: 2;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
}

.adpc-v630-panel-content p {
    margin-top: 0;
    line-height: 2;
}

.adpc-v630-note {
    background: #fff7ed;
    border: 1px solid rgba(255,122,26,.16);
    border-radius: 14px;
    padding: 11px 13px;
    color: #667085;
}

.adpc-v630-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.adpc-v630-list li {
    position: relative;
    padding-right: 15px;
}

.adpc-v630-list li:before {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--adpc-v610-primary, #ff7a1a);
}

/* موبایل: تبدیل به آکاردئون تمیز */
@media (max-width: 991px) {
    .adpc-v630-tabs {
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        margin-top: 10px !important;
        margin-bottom: 16px !important;
        border-radius: 15px;
    }

    .adpc-v630-tabs-nav {
        display: none !important;
    }

    .adpc-v630-panel {
        display: block !important;
        border-bottom: 1px solid #e7ecf3;
    }

    .adpc-v630-panel:last-child {
        border-bottom: 0;
    }

    .adpc-v630-accordion-title {
        width: 100% !important;
        min-height: 50px !important;
        height: 50px !important;
        max-height: none !important;
        padding: 0 13px !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: #fff !important;
        color: #111827 !important;
        display: flex !important;
        visibility: visible !important;
        align-items: center !important;
        justify-content: space-between !important;
        text-align: right !important;
        font-size: 13.3px !important;
        font-weight: 850 !important;
        cursor: pointer;
        box-shadow: none !important;
        overflow: visible !important;
    }

    .adpc-v630-accordion-title .dashicons {
        width: 17px;
        height: 17px;
        font-size: 17px;
        color: #98a2b3;
    }

    .adpc-v630-panel.is-active .adpc-v630-accordion-title .dashicons {
        color: var(--adpc-v610-primary, #ff7a1a);
    }

    .adpc-v630-panel-content {
        display: none;
        padding: 0 13px 13px !important;
        font-size: 12.3px;
        line-height: 1.85;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .adpc-v630-panel.is-active .adpc-v630-panel-content {
        display: block;
    }

    .adpc-v630-panel-content p,
    .adpc-v630-panel-content li {
        line-height: 1.85;
    }

    .adpc-v630-note {
        padding: 10px 11px;
        border-radius: 12px;
    }
}
