.codein {
    margin: 20px auto;
}

/* breadcrumb */

.woocommerce-breadcrumb {
    padding: 8px 10px !important;
    box-shadow: 0px 1px 15px -5px #C5CAE9;
    border-radius: 12px;
}

/* End breadcrumb */

/* Start Archive Product */
/* Start Filter offcanvas */
.filter-archive {
    text-align: left;
    display: none;
    box-shadow: 0px 1px 15px -5px #C5CAE9;
}

.filter-archive .bt-offcanvas {
    color: #263238;
    font-size: 1.3rem;
    transform: unset;
}

.filter-archive .bt-offcanvas>i {
    display: inline-block;
    transform: scale(1.7);
    margin-right: 10px;
}

.filter-sidebar>.sidebar-product-archive {
    background: unset;
    border-radius: unset;
    box-shadow: unset;
    text-align: right;
}

/* End Filter offcanvas */
.main-archive-product {
    font-size: 14px;
    font-weight: 300;
    border: 1px solid #eee;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0rem 1rem rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    order: 2;
}

/* subtitle header archive product */
.main-archive-product .woocommerce-products-header {
    text-align: center;
    padding: 1rem;
    margin-bottom: .9rem;
    position: relative;
    overflow: hidden;
}

.main-archive-product .woocommerce-products-header__title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #263238;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    position: relative;
    display: inline-block;
}

.main-archive-product .woocommerce-products-header__title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0%;
    width: 100%;
    height: 2px;
    background: #263238;
    border-radius: 3px;
}

.main-archive-product .term-description {
    width: 98%;
    margin: 0 auto;
    position: relative;
    text-align: right;
    border-right: 5px solid #00BCD4;
    background-color: #E0F7FA;
}

.main-archive-product .term-description h2,
.main-archive-product .term-description h3,
.main-archive-product .term-description h4,
.main-archive-product .term-description h5,
.main-archive-product .term-description h6 {
    padding-right: 15px;
    font-weight: 500;
}

.main-archive-product .term-description p {
    font-size: .9rem;
    color: #263238;
    line-height: 1.8;
    margin: 0;
    display: inline-block;
    padding: 0.3rem 1.5rem;

}

@media (max-width: 768px) {

    .term-description p {
        font-size: 1rem;
        padding: 0.6rem 1.2rem;
    }
}

/* شمارش نتایج محصولات */
.main-archive-product .woocommerce-result-count {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
    text-align: right;
}

/* فرم مرتب‌سازی محصولات */
.main-archive-product .woocommerce-ordering {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.5rem;
}

.main-archive-product .woocommerce-ordering label {
    font-size: 0.9rem;
    color: #333;
    margin-left: 0.5rem;
}

.main-archive-product .woocommerce-ordering .orderby {
    padding: 4px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background: #fff;
    color: #333;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
}

.main-archive-product .woocommerce-ordering .orderby:hover,
.main-archive-product .woocommerce-ordering .orderby:focus {
    border-color: #888;
    outline: none;
}

/* غیرفعال‌سازی کامل اثر کلاس‌های پیش‌فرض مانند columns-4 */
.main-archive-product ul.products.columns-4 {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

/* استایل آیتم‌های هر محصول */
.main-archive-product ul.products li.product {
    flex: 1 1 calc(25% - 2rem);
    box-sizing: border-box;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 1rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin: 5px;
}

.main-archive-product ul.products li.product:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* استایل تصویر محصول */
.main-archive-product ul.products li.product .woocommerce-LoopProduct-link img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: cover;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link {
    position: relative;
}

.woocommerce ul.products li.product a.woocommerce-loop-product__link .product-out-of-stock {
    background-color: #FCE4EC;
    border: 1px solid #E91E63;
    color: #E91E63;
    left: 0;
    top: 0;
    font-weight: 300;
    transition: all .5s ease-in-out;
}

.woocommerce ul.products li.product:hover a.woocommerce-loop-product__link .product-out-of-stock {
    background: #E91E63;
    color: #fff;
}

/* استایل عنوان و قیمت */
.main-archive-product ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.5rem;
    color: #333;
    line-height: 25px;
}

.main-archive-product ul.products li.product .price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: #190d4c;
    margin-bottom: 1rem;
    position: relative;
}

/* دکمه افزودن به سبد خرید */
.main-archive-product ul.products li.product .button {
    display: inline-block;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 300;
    transition: all 0.5s ease-in-out;
    color: var(--font-color);
    background-color: #FCE4EC;
}

.main-archive-product ul.products li.product .button:hover {
    background-color: #f8bbd0;
}

.main-archive-product ul.products li.product .ajax_add_to_cart {
    background: #E1F5FE;
}

.main-archive-product ul.products li.product .ajax_add_to_cart:hover {
    background: #81d4fa;
}

.main-archive-product ul.products li.product .product_type_variable {
    background: #ECEFF1;
    color: #607D8B;
}

.main-archive-product ul.products li.product .product_type_variable:hover {
    background: #CFD8DC;
}

.main-archive-product ul.products li.product a.added_to_cart.wc-forward {
    background-color: #009688;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 25px;
    font-size: 0.95rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
    margin-top: 10px;
}

.main-archive-product ul.products li.product a.added_to_cart.wc-forward:hover {
    background: #017e72;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.25);
}

/* واکنش‌گرا برای موبایل و تبلت */
@media (max-width: 1024px) {
    .main-archive-product ul.products li.product {
        flex: 1 1 calc(50% - 2rem);
        /* دو ستونه */
    }
}

@media (max-width: 600px) {
    .main-archive-product ul.products li.product {
        flex: 1 1 100%;
        /* تک ستونه */
    }
}

.main-archive-product ul.products li .codein-compare {
    position: absolute;
    left: 0;
    top: 5px;
}

.main-archive-product ul.products li .codein-wishlist {
    position: absolute;
    right: 0;
    top: 5px;
    margin-left: 0;
    margin-right: 8px;
}

.main-archive-product .woocommerce-pagination {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.main-archive-product .woocommerce-pagination .page-numbers {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    padding: 0 !important;
    margin: 0 !important;
    border: unset !important;
}

.main-archive-product .woocommerce-pagination .page-numbers li {
    border-left: unset !important;
}

.main-archive-product .woocommerce-pagination .page-numbers a,
.main-archive-product .woocommerce-pagination .page-numbers span {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    font-size: 14px !important;
    color: #333;
    background-color: #f5f5f5;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-archive-product .woocommerce-pagination .page-numbers a:hover {
    background-color: #e0e0e0 !important;
    color: #000 !important;
}

.main-archive-product .woocommerce-pagination .page-numbers .current {
    background-color: #0073aa !important;
    color: #fff !important;
    font-weight: bold !important;
}

.main-archive-product .woocommerce-pagination .page-numbers .prev i,
.main-archive-product .woocommerce-pagination .page-numbers .next i {
    font-size: 18px;
}

/* حالت کوچک‌تر در موبایل */
@media (max-width: 480px) {

    .main-archive-product .woocommerce-pagination .page-numbers a,
    .main-archive-product .woocommerce-pagination .page-numbers span {
        width: 30px;
        height: 30px;
        font-size: 12px;
        border-radius: 6px;
    }

    .main-archive-product .woocommerce-pagination .page-numbers .prev i,
    .main-archive-product .woocommerce-pagination .page-numbers .next i {
        font-size: 16px;
    }
}

.box-content p.return-to-shop a.button.wc-backward {
    background-color: #E0F7FA;
    font-weight: 400;
    border-radius: 5px;
    color: #0097A7;
}

/* abzarak woo */
.sibebar-woo {
    order: 1;
}

.sidebar-product-archive {
    background: #fff;
    padding: 2rem 1.5rem;
    border-radius: 10px;
    font-family: inherit;
    color: #333;
    font-size: 0.95rem;
    position: relative;
    box-shadow: 0 0rem 1rem rgba(0, 0, 0, 0.1);
}

/* عنوان ابزارک‌ها */
.sidebar-product-archive h2,
.sidebar-product-archive h3,
.sidebar-product-archive h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #222;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

/* لیست گزینه‌های فیلتر */
.wc-block-product-filter-checkbox-list__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wc-block-product-filter-checkbox-list__item {
    margin-bottom: 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

/* ورودی چک‌باکس */
.wc-block-product-filter-checkbox-list__input-wrapper {
    position: relative;
    width: 18px;
    height: 18px;
    border: 1px solid #00BCD4;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f9f9f9;
    transition: border-color 0.3s;
}

.wc-block-product-filter-checkbox-list__input-wrapper:before {
    background: #00BCD4;
    border-radius: 10px;
}

.wc-block-product-filter-checkbox-list__input:checked+svg {
    display: block;
}

.wc-block-product-filter-checkbox-list__mark {
    display: none;
    width: 10px;
    height: 8px;
    color: #007cba;
}

/* متن گزینه */
.wc-block-product-filter-checkbox-list__text {
    color: #333;
    transition: color 0.3s ease;
}

/* دکمه پاک‌کردن فیلترها */
.wc-block-product-filter-clear-button .wp-block-button__link {
    background: #f5f5f5;
    border: 1px solid #ccc;
    color: #333;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 13px;
}

.wc-block-product-filter-clear-button .wp-block-button__link:hover {
    background: #eaeaea;
    color: #000;
    border-color: #999;
}

/* فیلتر قیمت */
.wc-block-product-filter-price-slider__range {
    position: relative;
    height: 6px;
    background: #f47934;
    border-radius: 4px;
    margin: 1rem 0;
}

.wc-block-product-filter-price-slider__range:before {
    background: #e91e63 !important;
}

.wc-block-product-filter-price-slider__range .range-bar {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #607d8b !important;
    border-radius: 4px;
}

.wc-block-product-filter-price-slider input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: transparent;
    position: absolute;
    top: 0px;
}

.wc-block-product-filter-price-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #007cba;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #007cba;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wc-block-product-filter-price-slider input[type=range]::-moz-range-thumb {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #007cba;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #007cba;
    cursor: pointer;
}

.wc-block-product-filter-price-slider .text input[type=text] {
    border: 1px solid transparent !important;
    font-size: 12px !important;
    max-width: 115px !important;
    font-family: var(--main-font-family);
    font-weight: 300;
}



/* دکمه اعمال فیلتر */
.wc-block-product-filters__apply {
    background-color: #007cba;
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    border: none;
    transition: background 0.3s ease;
}

.wc-block-product-filters__apply:hover {
    background-color: #005e92;
}

/* آخرین محصولات مشاهده شده */
.widget_recently_viewed_products ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.widget_recently_viewed_products li {
    margin-bottom: 1rem;
    position: relative;
}

.widget_recently_viewed_products li a {
    display: flex !important;
    font-weight: 500 !important;
    align-items: center;
    justify-content: flex-start;
}

.widget_recently_viewed_products img {
    border: 1px solid #f8f8f8;
    border-radius: 100%;
    width: 48px !important;
    height: 48px !important;
    object-fit: cover;
}

.widget_recently_viewed_products .product-title {
    font-size: 0.9rem;
    color: #333;
    margin: 0;
    line-height: 20px;
}

.widget_recently_viewed_products .amount {
    font-size: 0.85rem;
    color: #666;
}

.widget_recently_viewed_products li .discount-percentage {
    bottom: 0px;
    top: unset;
}

/* Wishlist */

.main-archive-product ul.products li .codein-wishlist {
    position: absolute;
    right: 0;
    top: 5px;
    margin-left: 0;
    margin-right: 8px;
}

.woosw-btn {
    display: flex;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-left: .5rem;
    border: 1px solid #e91e63;
    border-radius: 50%;
    background-color: #fff;
    line-height: 42px;
    transition: all 0.3s ease;
}

.woosw-btn .woosw-btn-icon {
    font-size: 25px;
    color: #F44336;
}

/* page wishlist */
.woosw-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    max-width: 1000px;
    margin: 0 auto;
}

.woosw-items,
.woosw-suggested-items {
    width: 100%;
    border-collapse: collapse;
}

.woosw-item {
    border-bottom: 1px solid #f1f1f1;
    transition: background-color 0.2s ease;
}

.woosw-item:hover {
    background-color: #f9fafb;
}

.woosw-item>td {
    border: unset !important;
}

.woosw-item--image img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 25px !important;
    border: 1px solid #e5e7eb !important;
    transition: transform 0.2s ease;
}

.woosw-item:hover .woosw-item--image img {
    transform: scale(1.05);
}

.woosw-item--info {
    padding: 12px 0;
    line-height: 1.4;
}

.woosw-item--name a {
    font-size: 14px;
    font-weight: 200 !important;
    color: #263238;
    text-decoration: none;
    transition: color 0.2s ease;
}

.woosw-item--name a:hover {
    color: #0066cc;
}

.woosw-item--price {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    margin-top: 4px;
}

.woosw-item--time {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.woosw-item--stock p {
    font-size: 12px;
    margin: 4px 0;
    padding: 2px 8px;
    border-radius: 6px;
    background: #f1f1f1;
    color: #444;
    display: inline-block;
}

.woosw-item--stock .in-stock {
    background: #e6f7e6;
    color: #0a660a;
}

.woosw-item--stock .out-of-stock {
    background: #fef2f2;
    color: #991b1b;
}

.woosw-item--atc a {
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    text-align: center;
    display: inline-block;
    transition: background-color 0.2s ease;
    border: 1px solid #d1d5db;
}

.woosw-item--atc a:hover {
    background-color: #f1f1f1;
}

.woosw-item--remove span {
    width: 20px !important;
    height: 20px;
    background: #f1f1f1;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.woosw-item--remove span:hover {
    background-color: #e5e5e5;
}

.woosw-suggested {
    margin-top: 20px;
    padding: 16px 0;
    border-top: 1px solid #f1f1f1;
    text-align: center;
}

.woosw-suggested-heading span {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.woosw-actions {
    margin-top: 20px;
    padding: 16px;
    text-align: center;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
}

.woosw-copy-label {
    font-size: 12px;
    color: #6b7280;
    margin-right: 8px;
}

.woosw-copy-url input {
    font-size: 12px;
    padding: 6px 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    width: 200px;
    text-align: center;
}

.woosw-copy-btn button {
    font-size: 12px;
    padding: 6px 12px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.woosw-copy-btn button:hover {
    background: #0055aa;
}

@media (max-width: 576px) {
    .woosw-item {
        display: flex;
        flex-flow: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }

    .woosw-item>td.woosw-item--remove {
        position: absolute;
        top: 0;
        left: 30px;
    }

    .woosw-item--remove span {
        background-color: unset;
        color: #F44336;
        width: 35px !important;
        height: 35px;
    }

    .woosw-items .woosw-item .woosw-item--remove span:before,
    .woosw-items .woosw-item .woosw-item--add span:before {
        font-size: 30px;
    }

    .woosw-list table.woosw-items .woosw-item .woosw-item--image {
        width: 100%;
        height: auto;
    }

    .woosw-list table.woosw-items .woosw-item .woosw-item--image a {
        display: inline-block;
        width: 100%;
        text-align: center;
    }

    .woosw-list table.woosw-items .woosw-item .woosw-item--image a img {
        width: 85% !important;
        height: 100% !important;
    }

    .woosw-list table.woosw-items tr:nth-child(2n) td {
        background-color: unset;
    }
}

/* End wishlist Page */
.woocommerce ul.products li.product a.woocommerce-loop-product__link .discount-percentage {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid #eee;
    border-radius: 50%;
    background-color: #F44336;
    transition: all 0.3s ease;
    color: #fff;
    font-weight: 600;
}

.price bdi {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 10px;
    background: #FFF3E0;
    font-weight: 400;
    font-size: 0.9rem;
}

.price bdi .woocommerce-Price-currencySymbol {
    font-size: 0.7rem;
    font-weight: 300;
}

.price del bdi {
    margin: 5px auto;
    background: #FCE4EC;
    text-decoration: line-through;
}

.price del bdi .woocommerce-Price-currencySymbol {
    font-size: 0rem;
}

.price ins bdi {
    background: #E0F2F1;
}

/* End Archive Product */

/* Start Single Product */
/* Gallery Single */
.woocommerce #content div.product div.images,
.woocommerce div.product div.images,
.woocommerce-page #content div.product div.images,
.woocommerce-page div.product div.images {
    width: 69%;
    position: relative;
    background: #000;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.woocommerce div.product .discount-percentage {
    right: 15px;
    top: 10px;
    border-radius: 10px;
    min-width: unset;
    min-height: unset;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 50px;
    width: 60px;
    line-height: unset;
    background-color: #F44336;
    font-size: 20px;
}

.woocommerce-product-gallery>.codein-wishlist {
    position: absolute;
    left: .5em;
    top: 3.5em;
    width: 36px;
    height: 36px;
    background-color: #F44336;
    border: unset;
    z-index: 10;
}

.woocommerce-product-gallery>.codein-wishlist>.woosw-btn-icon {
    color: #fff;
}

.woocommerce div.product div.images.woocommerce-product-gallery div.flex-viewport {
    height: 600px !important;
    width: 100%;
}

.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
    height: 100%;
    width: 100%;
}

.woocommerce-product-gallery__image {
    height: 100%;
    width: 100%;
}

.woocommerce div.product div.images .woocommerce-product-gallery__image a {
    height: 100%;
    width: 100%;
}

.woocommerce div.product div.images img {
    height: 100%;
    width: 100%;
    object-fit: scale-down;
}


.woocommerce div.product div.images .flex-control-thumbs {
    display: flex;
    flex-flow: column;
    width: 70px;
    position: absolute;
    top: 70px;
    right: 15px;
}

.woocommerce div.product div.images .flex-control-thumbs li {
    width: 60px;
    height: 60px;
    margin: 2px 0;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid #eee;
}

.woocommerce div.product div.images .flex-control-thumbs li img.flex-active {
    border: 2px solid #3F51B5;
}

/* End Gallery Single */

.woocommerce #content div.product div.summary,
.woocommerce div.product div.summary,
.woocommerce-page #content div.product div.summary,
.woocommerce-page div.product div.summary {
    width: 29%;
}

.entry-summary {
    padding: 10px;
    border-radius: 15px;
    box-shadow: 0px 1px 15px -5px #C5CAE9;
}

.product_title.entry-title {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 15px;
    line-height: 25px;
}

.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product p.price,
.woocommerce:where(body:not(.woocommerce-uses-block-theme)) div.product span.price {
    color: #000;
    font-weight: 300;
    margin-bottom: 15px;
}

.woocommerce-product-details__short-description {
    margin-bottom: 1.5rem;

}

.woocommerce-product-details__short-description ul {
    padding-right: 1rem;
    list-style: none;
}

.woocommerce-product-details__short-description li {
    position: relative;
    padding-right: 1.5rem;
    margin-bottom: 0.5rem;
}

.woocommerce-product-details__short-description li::before {
    font-family: 'remixicon' !important;
    content: "\EB79";
    position: absolute;
    right: 0;
    color: #ff5722;
    font-size: 0.9rem;
}

.woocommerce-product-details__short-description p {
    line-height: 25px;
}

.woocommerce div.product p.stock {
    display: inline-block;
    padding: 10px;
    font-weight: 700;
    border-radius: 12px;
    background-color: #ECEFF1;
    margin-bottom: 15px;
    color: #263238;
}

/** Start Plugin addons **/

.wc-pao-addons-container {
    padding: 10px;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-name {
    font-weight: 200;
    margin-bottom: 5px;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-name em.required {
    font-style: normal;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-description {
    font-size: 0.8rem;
    margin: 5px;
    font-weight: 100;
    font-style: normal;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-wrap {
    margin: 0px auto;
    font-size: 13px;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-wrap label {
    font-weight: 100;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-wrap .wc-pao-addon-select {
    padding: 7px 10px;
    border: 1px solid #eee;
    width: 60%;
    border-radius: 10px;
    font-weight: 200;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-checkbox-group-required {
    font-size: .9em;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-checkbox-group-required>p {
    padding: 0;
    margin: 0;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-checkbox-group-required>p>label {
    font-size: .9em;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-checkbox-group-required>p>label>.woocommerce-Price-amount.amount {
    font-size: .859em !important;
    font-weight: 600;
    color: #546E7A;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-checkbox-group-required>p>label>.woocommerce-Price-amount.amount>.woocommerce-Price-currencySymbol {
    font-size: .659em;
    color: #E91E63;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-wrap input[type=file] {
    padding: 5px;
    border: 2px dashed #455A64;
    border-radius: 3px;
    background-color: #f8f9fa;
    color: #546E7A;
    font-size: .9em;
    outline: none;
    cursor: pointer;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-wrap input[type=number] {
    border: 1px solid #eee;
    width: 10%;
    border-radius: 10px;
    font-size: .9em;
    text-align: left;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-wrap small {
    display: inline-block;
    margin-top: 10px;
}

.wc-pao-addons-container .wc-pao-addon .wc-pao-addon-heading {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #546E7A;
    font-weight: 300;
}

.wc-pao-addon-image-swatch {
    border: unset;
    outline: unset;
    padding: 0;
}

.wc-pao-addon-image-swatch:hover {
    border: unset;
    outline: unset;
}

.wc-pao-addon-image-swatch img {
    border: 1px solid #eee;
    border-radius: 10px;
}

.wc-pao-addon-image-swatch img:hover {
    border: 1px solid #000;
}

/** End Plugin addons **/

form.variations_form.cart {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.variations label {
    font-weight: 500 !important;
    color: #333;
    font-size: 14px;
    padding: 10px 0px;
}

.variations select {
    padding: 6px 20px;
    border: 1px solid #eee;
    border-radius: 0.5rem;
    width: 70%;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    outline: none;
    font-weight: 200;

}

.variations select option {
    font-weight: 200;
}

.single_variation {

    margin: 10px auto;
}

.single_variation div {
    margin: 10px auto;
    font-size: .9rem;
}

.woocommerce .quantity .qty {
    border: 1px solid #eee;
    height: 35px;
    border-radius: 10px;
    width: 50px;
}

.entry-summary .single_add_to_cart_button {
    font-weight: 300 !important;
    border-radius: 10px !important;
    background-color: #66bb6a !important;
    transition: all .5s ease-in-out;
}

.entry-summary .single_add_to_cart_button:hover {
    background-color: #1B5E20 !important;
}

.entry-summary .single_add_to_cart_button:active {
    background-color: #43a047 !important;
}

.product_meta {
    display: flex;
    flex-flow: column;
}

.product_meta>span {
    margin: 5px 0;
    font-size: .9rem;
}

/* Tabs single Prodcts */
.woocommerce div.product .woocommerce-tabs ul.tabs {
    background-color: #fdfdfd;
    border-radius: 20px;
    padding: 10px;
    box-shadow: 0px 1px 15px -5px #C5CAE9;
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
    border-bottom: unset;
    content: unset;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
    border: unset;
    background-color: unset;
    margin: 1px 2px;
    border-radius: 15px;
    transition: all .4s ease-in-out;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before {
    border-width: unset;
    border-bottom-left-radius: unset;
    border: unset;
    content: unset;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
    border-bottom-right-radius: unset;
    border-width: unset;
    border: unset;
    content: unset;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li:hover {
    background: #fff3e0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
    background: #fff3e0;
    border-bottom-color: unset;
}

.woocommerce-tabs .tabs li a {
    font-weight: 200 !important;
    color: #ff5722 !important;
    padding: 12px 16px !important;
    transition: all 0.3s ease !important;
}

.woocommerce-tabs .tabs li .reviews_tab a span {
    background-color: #5A9BD5;
    color: white;
    font-size: 0.8em;
    padding: 2px 6px;
    border-radius: 12px;
    margin-right: 4px;
}

.woocommerce-Tabs-panel h2 {
    color: #263238;
    font-size: 1.3rem;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
    font-weight: 400;
}

.woocommerce-Tabs-panel p {
    font-size: 16px;
    color: #263238;
    line-height: 1.6;
    margin-bottom: 12px;
}

.aparat-frame {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin: 16px 0;
}

table.shop_attributes {
    border-collapse: collapse;
    margin: 16px 0;
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-top: unset !important
}

table.shop_attributes th {
    background-color: #e6f2ff;
    color: #003366;
    font-weight: 200 !important;
    padding: 8px 16px !important;
    text-align: right;
    border-bottom: unset !important;
    border-left: 1px solid #eee;
}

table.shop_attributes td {
    padding: 8px 16px !important;
    border-bottom: unset !important;
    font-style: normal !important;
    background-color: #e6f2ff;
}

.woocommerce table.shop_attributes td p {
    padding: 0 !important;
}

#reviews h2 {
    color: #263238;
    margin-bottom: 16px;
}

.woocommerce-noreviews {
    color: #263238 !important;
    font-style: normal;
    text-align: center;
    padding: 15px;
    background: #f9fbfd;
    border-radius: 15px;
    border: 1px dashed #b0d0e0;
}

#commentform .comment-form-rating .stars {
    margin: 8px 0;
}

#submit {
    background-color: #FFF3E0 !important;
    color: #1A237E !important;
    border: none !important;
    padding: 10px 50px !important;
    font-size: 16px !important;
    border-radius: 13px !important;
    cursor: pointer !important;
    transition: background 0.3s;
    font-weight: 300 !important;
}

#submit:hover {
    background-color: #ffe0b2 !important;
}

/* related products */

/* استایل کلی بخش محصولات مشابه */
.woocommerce .products ul::after,
.woocommerce .products ul::before,
.woocommerce ul.products::after,
.woocommerce ul.products::before {
    content: unset !important;
}

.related.products,
.upsells.products {
    margin-top: 1rem;
    padding: 1rem;
    background: #1A237E;
    box-shadow: 0px 1px 15px -5px #1A237E;
    border-radius: 30px;
}

/* عنوان بخش */
.related.products>h2,
.upsells.products>h2 {
    font-size: 1.5rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 2rem;
    text-align: right;
    border-right: 4px solid #fff;
    padding-right: 1rem;
}

/* لیست محصولات */
.related>ul.products,
.upsells>ul.products,
.cross-sells>ul.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    max-width: 1100px;
    margin: 0 auto;
}

.related ul.products>li,
.upsells ul.products>li,
.cross-sells ul.products>li {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
}

/* آیتم محصول */
.related.products .product,
.upsells.products .product,
.cross-sells .products .product {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    text-align: center;
    padding: 1rem !important;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
    position: relative !important;
    width: 100% !important;
    margin: 0 0 1.992em 3.8% !important;
}

.related.products .product:hover,
.upsells.products .product:hover,
.cross-sells .products .product:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
    transform: translateY(-4px);
}

/* تصویر محصول */
.related.products .product img,
.upsells.products .product img,
.cross-sells .products .product img {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.related.products .product:hover img,
.upsells.products .product:hover img,
.cross-sells .products .product:hover img {
    transform: scale(1.05);
}

/* عنوان محصول */
.related.products .woocommerce-loop-product__title,
.upsells.products .woocommerce-loop-product__title,
.cross-sells .products .woocommerce-loop-product__title {
    font-size: 1rem;
    color: #333;
    margin: 0.5rem 0 1rem;
    font-weight: 600;
    line-height: 25px;
    text-align: right;
}

.woocommerce ul.products li.product .price {
    color: #0c124d;
    font-weight: 500;
    text-align: left;
    font-size: .9rem;
}

/* دکمه اطلاعات بیشتر */
.related.products .product .button,
.upsells.products .product .button,
.cross-sells .products .product .button {
    background-color: #00796B;
    color: #fff;
    padding: 0.7rem 1.25rem;
    border-radius: 13px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.related.products .product .button:hover,
.upsells.products .product .button:hover,
.cross-sells .products .product .button:hover {
    background-color: #444;
}

.related ul.products li.product a.woocommerce-loop-product__link {
    position: unset;
}

.related .product-out-of-stock {
    padding: 6px 12px;
    top: 12px !important;
    left: 12px !important;
}

/* دکمه‌های مقایسه و علاقه‌مندی */
.related.products .woosc-btn,
.related.products .woosw-btn,
.upsells.products .woosc-btn,
.upsells.products .woosw-btn,
.cross-sells .products .woosc-btn,
.cross-sells .products .woosw-btn {
    position: absolute;
    top: 12px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1;
}

.related.products .woosc-btn,
.upsells.products .woosc-btn,
.cross-sells .products .woosc-btn {
    left: 12px;
}

.related.products .woosw-btn,
.upsells.products .woosw-btn,
.cross-sells .products .woosw-btn {
    right: 12px;
}

.related.products .woosc-btn:hover,
.related.products .woosw-btn:hover,
.upsells.products .woosc-btn:hover,
.upsells.products .woosw-btn:hover,
.cross-sells .products .woosc-btn:hover,
.cross-sells .products .woosw-btn:hover {
    background: #ffebee;
}

/* End related products */
/* End Single Product */

.woocommerce form .form-row .input-text,
.woocommerce form .form-row select {
    border: 1px solid #eee;
    border-radius: 10px;
    font-weight: 200;
}

.woocommerce form .form-row select option {
    font-weight: 200;
}

/* Start Woo Massage */
.woocommerce-notices-wrapper .woocommerce-message>.wc-forward {
    font-weight: 400;
    background-color: rgb(0 150 156 / 2%);
    color: #009688;
    border: 1px solid #009688;
    transition: .5s ease-in-out;
    font-size: 13px;
    border-radius: 10px;
}

.woocommerce-notices-wrapper .woocommerce-message>.wc-forward:hover {
    background-color: rgb(0 150 157 / 20%);
    color: #009688;
}

.wc-empty-cart-message,
.woocommerce-form-coupon-toggle {
    width: 100%;
}

.woocommerce-error,
.woocommerce-info,
.woocommerce-message {
    border-radius: 15px;
}

.woocommerce-info {
    background-color: rgb(0 188 212 / 2%);
    border: 1px solid #00BCD4;
    color: #00BCD4;
}

.woocommerce-info::before {
    color: #00BCD4;
}

.woocommerce-info a.showcoupon {
    color: #00BCD4;
    border-bottom: 1px dashed #00BCD4;
    font-weight: 400;
}

.woocommerce-info a.showlogin {
    color: #3F51B5;
    border-bottom: 1px dashed #3F51B5;
    font-weight: 400;
}

.woocommerce-error {
    background-color: rgb(255 87 34 / 2%);
    border: 1px solid #FF5722;
    color: #FF5722;
}

.woocommerce-error::before {
    color: #FF5722;
}

.woocommerce-message {
    background-color: rgb(0 150 136 / 2%);
    border: 1px solid #009688;
    color: #009688;
}

.woocommerce-message::before {
    color: #009688;
}

a.woocommerce-privacy-policy-link,
a.woocommerce-terms-and-conditions-link {
    font-weight: 500;
    color: #E57373;
    border-bottom: 1px dashed #EF9A9A;
}

.woocommerce-error {
    border-top-color: #F44336;
    padding: 15px 50px;
    margin: 10px 0;
}

.woocommerce-error::before {
    content: "\e016";
    color: #F44336;
    font-size: 35px;
    right: 2px;
    top: 1%;
}

.woocommerce-error>li>p {
    margin-bottom: 8px;
}

.woocommerce .woocommerce-error .button,
.woocommerce .woocommerce-info .button,
.woocommerce .woocommerce-message .button,
.woocommerce-page .woocommerce-error .button,
.woocommerce-page .woocommerce-info .button,
.woocommerce-page .woocommerce-message .button {
    background-color: #E0F2F1;
    color: #004D40;
    border-radius: 13px;
    font-weight: 200;
    transition: all .3s ease-in-out;
}

.woocommerce .woocommerce-error .button:hover,
.woocommerce .woocommerce-info .button:hover,
.woocommerce .woocommerce-message .button:hover,
.woocommerce-page .woocommerce-error .button:hover,
.woocommerce-page .woocommerce-info .button:hover,
.woocommerce-page .woocommerce-message .button:hover {
    background-color: #4DB6AC;
}

/* End Woo Message */

/* Start MyAccount */

.woocommerce-account .body-page {
    box-shadow: unset;
    border-radius: unset;
}

/* استایل کلی صفحه حساب کاربری */
.box-content>.woocommerce {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 5px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

/* استایل منوی ناوبری */
.woocommerce-MyAccount-navigation {
    flex: 0 0 280px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 25px 0;
    overflow: hidden;
    border: 1px solid #f0f4f8;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.woocommerce-MyAccount-navigation ul li {
    margin: 0;
    padding: 1px 0px;
    position: relative;
    transition: all 0.3s ease;
}

.woocommerce-MyAccount-navigation ul li a {
    display: block;
    margin-left: 10px;
    padding: 8px 30px;
    text-decoration: none;
    color: #334155;
    font-weight: 300;
    font-size: .900rem;
    transition: all 0.25s ease;
    position: relative;
    border-radius: 50px 0px 0px 18px;
}

.woocommerce-MyAccount-navigation ul li a:hover {
    background: #fff3e0;
    color: #FF5722;
}

/* استایل برای آیتم فعال */
.woocommerce-MyAccount-navigation ul li.is-active a {
    background: #fff3e0;
    color: #FF5722;
    font-weight: 300;
}

.woocommerce-MyAccount-navigation ul li.is-active a::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0px;
    height: 100%;
    width: 5px;
    background: #FF5722;
}

/* استایل متمایز برای لینک خروج */
.woocommerce-MyAccount-navigation-link--customer-logout a {
    color: #ef4444;
}

.woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    color: #dc2626;
    background: #fef2f2;
}

.woocommerce-MyAccount-navigation-link--customer-logout.is-active a {
    background: #fef2f2;
    color: #dc2626;
}

.woocommerce-MyAccount-navigation-link--customer-logout.is-active a::before {
    background: #ef4444;
}

/* استایل محتوای اصلی */
.woocommerce-MyAccount-content {
    flex: 1;
    min-width: 300px;
    background: #ffffff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f4f8;
}

.woocommerce-notices-wrapper {
    margin-bottom: 25px;
    width: 100%;
}

.woocommerce-MyAccount-content>p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.woocommerce-MyAccount-content>p:first-child {
    font-size: 1.15rem;
    margin-bottom: 25px;
}

.woocommerce-MyAccount-content p strong {
    color: #1e40af;
    font-weight: 600;
}

.woocommerce-MyAccount-content p a {
    color: #2563eb;
    text-decoration: none;
    position: relative;
    transition: all 0.2s;
    font-weight: 500;
}

.woocommerce-MyAccount-content>p>a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

.woocommerce-MyAccount-content p a:hover::after {
    width: 100%;
    left: 0;
}

/* استایل واکنش‌گرا برای موبایل */
@media (max-width: 768px) {
    .woocommerce {
        flex-direction: column;
        gap: 25px;
        margin: 20px auto;
    }

    .woocommerce-MyAccount-navigation {
        flex: 0 0 auto;
        width: 100%;
    }

    .woocommerce-MyAccount-navigation ul {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 0 15px 10px;
    }

    .woocommerce-MyAccount-navigation ul li {
        flex: 0 0 auto;
    }

    .woocommerce-MyAccount-navigation ul li a {
        padding: 12px 20px;
        border-radius: 8px;
        white-space: nowrap;
        font-size: 1rem;
    }

    .woocommerce-MyAccount-navigation ul li.is-active a::before {
        width: 100%;
        height: 3px;
        bottom: -10px;
        top: auto;
        border-radius: 3px 3px 0 0;
    }

    .woocommerce-MyAccount-content {
        padding: 25px;
    }
}

/* انیمیشن‌های ظریف */
.woocommerce-MyAccount-navigation ul li {
    animation: fadeIn 0.5s ease forwards;
    opacity: 0;
    transform: translateY(10px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-MyAccount-navigation ul li:nth-child(1) {
    animation-delay: 0.1s;
}

.woocommerce-MyAccount-navigation ul li:nth-child(2) {
    animation-delay: 0.2s;
}

.woocommerce-MyAccount-navigation ul li:nth-child(3) {
    animation-delay: 0.3s;
}

.woocommerce-MyAccount-navigation ul li:nth-child(4) {
    animation-delay: 0.4s;
}

.woocommerce-MyAccount-navigation ul li:nth-child(5) {
    animation-delay: 0.5s;
}

.woocommerce-MyAccount-navigation ul li:nth-child(6) {
    animation-delay: 0.6s;
}

.woocommerce-MyAccount-navigation ul li:nth-child(7) {
    animation-delay: 0.7s;
}

.woocommerce-MyAccount-navigation ul li:nth-child(8) {
    animation-delay: 0.8s;
}

/* بهبود ظاهر در حالت فوکوس */
.woocommerce-MyAccount-navigation ul li a:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* MyAccount Address */

/* استایل کلی بخش آدرس‌ها */
.woocommerce-Addresses {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    gap: 30px;
    margin-top: 40px;
}

.woocommerce-Address {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border: 1px solid #f0f4f8;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    float: unset !important;
    width: 100% !important;
}

.woocommerce-Address:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.1);
}

.woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f1f5f9;
    position: relative;
}

.woocommerce-Address-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: #FF5722;
    border-radius: 4px;
}

.woocommerce-Address-title h2 {
    font-size: 1.4rem;
    color: #1e293b;
    font-weight: 600;
    margin: 0;
}

.woocommerce-Address-title .edit {
    font-size: 0.95rem;
    text-decoration: none;
    color: #64748b;
    font-weight: 500;
    padding: 6px 15px;
    border-radius: 6px;
    background: #f8fafc;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.woocommerce-Address-title .edit::before {
    font-family: 'remixicon';
    content: "\EC82";
    font-size: 1rem;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

.woocommerce-Address-title .edit:hover {
    background: #FBE9E7;
    color: #FF5722;
    box-shadow: 0 2px 8px rgb(255 87 34 / 12%);
}

.woocommerce-Address address {
    font-style: normal;
    color: #475569;
    line-height: 1.8;
    font-size: 1.05rem;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    /* فاصله بین آیتم‌ها */
}

/* استایل برای هر بخش آدرس */
.woocommerce-Address address>* {
    display: inline-block;
    position: relative;
    padding-left: 12px;
    /* فاصله قبل از جداکننده */
}

/* جداکننده بین آیتم‌ها */
.woocommerce-Address address>*:not(:last-child)::after {
    content: "|";
    position: absolute;
    left: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: #cbd5e1;
    font-size: 0.9em;
}

/* دکوریشن برای کارت‌ها */
.woocommerce-Address::before {
    content: '';
    position: absolute;
    top: 0;
    right: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, #FF9800, #FF5722);
}

.woocommerce-Address:nth-child(2)::before {
    background: linear-gradient(90deg, #FF5722, #FF9800);
}

/* استایل برای آدرس خالی */
.woocommerce-Address address:empty::before,
.woocommerce-Address address:contains("شما هنوز آدرسی ثبت نکرده اید")::before {
    content: "شما هنوز آدرسی ثبت نکرده اید.";
    color: #94a3b8;
    font-style: italic;
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-Address {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.woocommerce-Address:nth-child(1) {
    animation-delay: 0.2s;
}

.woocommerce-Address:nth-child(2) {
    animation-delay: 0.4s;
}

/* استایل واکنش‌گرا */
@media (max-width: 768px) {
    .woocommerce-Addresses {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .woocommerce-Address-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .woocommerce-Address-title .edit {
        margin-top: 12px;
        align-self: flex-end;
    }
}

.woocommerce-address-fields {
    padding: 30px;
    margin-top: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-address-fields h3 {
    font-size: 1.4rem;
    color: #1e293b;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2e8f0;
    position: relative;
    font-weight: 600;
}

.woocommerce-address-fields h3::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    width: 80px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

.woocommerce-address-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 15px;
}

@media (max-width: 768px) {
    .woocommerce-address-fields__field-wrapper {
        grid-template-columns: 1fr;
    }
}

.form-row {
    margin-bottom: 0;
}

.woocommerce-address-fields .form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #334155;
    font-size: 0.9rem;
}

.woocommerce-address-fields .form-row label .required {
    color: #ef4444;
    margin-right: 4px;
    font-size: 0.9rem;
}

.woocommerce-address-fields .form-row.form-row-wide {
    grid-column: span 2;
}

@media (max-width: 768px) {
    .woocommerce-address-fields .form-row.form-row-wide {
        grid-column: span 1;
    }
}

.woocommerce-address-fields .woocommerce-input-wrapper {
    display: block;
}

.woocommerce-address-fields .input-text,
.woocommerce-address-fields .state_select,
.woocommerce-address-fields .country_select {
    width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    background: #ffffff;
    font-size: 0.95rem;
    color: #334155 !important;
    transition: all 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    height: 42px !important;
}

.woocommerce-address-fields .input-text:focus,
.woocommerce-address-fields .state_select:focus,
.woocommerce-address-fields .country_select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    outline: none;
}

.woocommerce-address-fields .input-text::placeholder {
    color: #94a3b8;
    opacity: 1;
    font-size: 0.9rem;
}

/* استایل دکمه‌ها - هماهنگ با طراحی قبلی */
.woocommerce-address-fields .button {
    background: #2563eb !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px;
    padding: 12px 25px !important;
    font-size: 0.95rem !important;
    font-weight: 400 !important;
    cursor: pointer;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2) !important;
    margin-top: 10px !important;
}

.woocommerce-address-fields .button:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 10px rgba(37, 99, 235, 0.25) !important;
}

/* استایل Select2 - هماهنگ با طراحی قبلی */
.woocommerce-address-fields .select2-container--default .select2-selection--single {
    height: 42px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #334155;
    padding-left: 14px !important;
    padding-right: 14px !important;
    font-size: 0.95rem;
    line-height: 40px;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    left: 10px;
    right: auto;
    width: 24px;
}

.woocommerce-address-fields .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent;
    border-width: 5px 5px 0 5px;
}

.woocommerce-address-fields .select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #64748b transparent;
    border-width: 0 5px 5px 5px;
}

.woocommerce-address-fields .select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0 0px 8px 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.woocommerce-address-fields .select2-results__option {
    padding: 8px 14px;
    color: #334155;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.woocommerce-address-fields .select2-results__option--highlighted {
    background: #eff6ff;
    color: #2563eb;
}

.woocommerce-address-fields .select2-results__option[aria-selected="true"] {
    background: #dbeafe;
    color: #2563eb;
}

.woocommerce-address-fields .form-row .optional {
    color: #64748b;
    font-size: 0.8em;
    margin-right: 4px;
}

.woocommerce-address-fields .form-row.form-row-first,
.woocommerce-address-fields .form-row.form-row-last {
    grid-column: span 1;
    width: 97% !important;
}

.woocommerce-address-fields .edit-account .form-row.form-row-first,
.woocommerce-address-fields .edit-account .form-row.form-row-last {
    width: 47% !important;
}

/* انیمیشن‌های ظریف */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.woocommerce-address-fields .form-row {
    animation: fadeIn 0.4s ease forwards;
    opacity: 0;
}

.woocommerce-address-fields .form-row:nth-child(1) {
    animation-delay: 0.1s;
}

.woocommerce-address-fields .form-row:nth-child(2) {
    animation-delay: 0.2s;
}

.woocommerce-address-fields .form-row:nth-child(3) {
    animation-delay: 0.3s;
}

.woocommerce-address-fields .form-row:nth-child(4) {
    animation-delay: 0.4s;
}

.woocommerce-address-fields .form-row:nth-child(5) {
    animation-delay: 0.5s;
}

.woocommerce-address-fields .form-row:nth-child(6) {
    animation-delay: 0.6s;
}

.woocommerce-address-fields .form-row:nth-child(7) {
    animation-delay: 0.7s;
}

.woocommerce-address-fields .form-row:nth-child(8) {
    animation-delay: 0.8s;
}

.woocommerce-address-fields .form-row:nth-child(9) {
    animation-delay: 0.9s;
}

.woocommerce-address-fields .form-row:nth-child(10) {
    animation-delay: 1.0s;
}

.woocommerce-Button {
    background-color: #eee;
    border-radius: 13px;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
    border-radius: 13px;
    font-weight: 300;
    background-color: #ECEFF1;
    color: #263238;
    transition: all .3s ease-in-out;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button:hover,
.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button:hover,
:where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button:hover {
    background-color: #B0BEC5;
}

/* End MyAccount */

/* Start cart */

/* Reset default styles */
.wc-block-cart-items__header,
.wc-block-cart-items__row {
    border: none !important;
    background: transparent !important;
}

/* Minimal table structure */
.wc-block-cart-items {
    border-collapse: separate;
    border-spacing: 0 1.5rem;
    width: 100%;
}

/* Product items card-style */
.wc-block-cart-items__row {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    transition: transform 0.3s ease;
}

.wc-block-cart-items__row:hover {
    transform: translateY(-2px);
}

/* Image styling */
.wc-block-cart-item__image img {
    border-radius: 8px;
    max-width: 90px;
}

/* Product details */
.wc-block-cart-item__product {
    padding-left: 20px !important;
}

.wc-block-components-product-name {
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    color: #333 !important;
}

/* Price styling */
.wc-block-components-product-price {
    display: block;
    margin: 8px 0;
}

del {
    color: #999 !important;
    margin-left: 8px;
}

ins {
    text-decoration: none !important;
    color: #e53935 !important;
    font-weight: 700 !important;
}

/* Quantity selector */
.wc-block-components-quantity-selector {
    border: 1px solid #eee;
    border-radius: 50px !important;
    padding: 4px;
    display: inline-flex !important;
    align-items: center;
}

.wc-block-components-quantity-selector__button {
    background: #f8f8f8 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
}

.wc-block-components-quantity-selector:after {
    content: unset !important;
}

/* Remove button */
.wc-block-cart-item__remove-link {
    color: #f44336 !important;
    opacity: 0.7;
    font-size: 0.9rem !important;
    margin-top: 10px !important;
    display: inline-block !important;
    margin-right: 10px !important
}

.wc-block-cart-item__remove-link:hover {
    opacity: 1;
}

/* Cart totals sidebar */
.wc-block-cart__sidebar {
    background: #fff !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
    padding: 25px !important;
}

.wc-block-cart__sidebar .wc-block-components-totals-coupon__form .wc-block-components-totals-coupon__button {
    border: 1px solid #eee;
    font-size: 14px;
    border-radius: 3px;
    background-color: #00BCD4;
    color: #fff;
}

.wc-block-cart__totals-title {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
    text-align: center !important;
    color: #102a43 !important;
    font-weight: 600 !important;
}

/* Totals items */
.wc-block-components-totals-item {
    padding: 12px 0 !important;
    border-bottom: 1px dashed #eee !important;
}

.wc-block-components-totals-item__label {
    color: #666 !important;
    font-weight: 400 !important;
    font-size: 16px !important;
}

.wc-block-components-totals-item__value {
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #333 !important;
}

/* Checkout button */
.wc-block-cart__submit-button {
    background: #2563eb !important;
    color: #fff;
    border-radius: 50px !important;
    text-align: center !important;
    padding: 15px !important;
    font-weight: 400 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    width: 100% !important;
    font-size: 1.1rem !important;
}

.wc-block-cart__submit-button:hover {
    background: #1d4ed8 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .wc-block-cart-items__header {
        display: none !important;
    }

    .wc-block-cart-items__row {
        display: flex !important;
        flex-wrap: wrap;
        padding: 15px !important;
    }

    .wc-block-cart-item__image {
        flex: 0 0 25% !important;
    }

    .wc-block-cart-item__product {
        flex: 0 0 75% !important;
        padding-left: 15px !important;
    }

    .wc-block-cart-item__total {
        flex: 0 0 100% !important;
        text-align: right !important;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid #f5f5f5;
    }
}

/* old theme cart */
form.woocommerce-cart-form {
    width: 100%;
}

.woocommerce table.shop_table.woocommerce-cart-form__contents {
    border-collapse: separate;
    width: 100%;
    border-spacing: 0 10px;
    border: unset !important;
}

.woocommerce table.shop_table thead th {
    background: #fafafa;
    padding: 10px;
    font-size: 14px;
    color: #444;
    border-bottom: 1px solid #eee;
    text-align: center;
    border: unset;
    font-weight: 400;
}

.woocommerce table.shop_table tbody tr td {
    border: unset;
}

.woocommerce table.shop_table tbody tr th {
    border: unset;
    background-color: #fff;
    font-weight: 400;

}

.woocommerce-cart-form__cart-item {
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s ease;
}

.woocommerce-cart-form__cart-item:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.woocommerce td.product-remove a.remove {
    font-size: 20px;
    color: #f44336;
    transition: color 0.2s;
}

.woocommerce td.product-remove a.remove:hover {
    color: #c62828;
}

.woocommerce td.product-thumbnail img {
    max-width: 60px;
    border-radius: 8px;
}

.woocommerce td.product-name a {
    font-weight: 400;
    font-size: 14px;
    color: #333;
    transition: color 0.3s;
}

.woocommerce td.product-name a:hover {
    color: #2196f3;
}

.woocommerce td.product-price,
.woocommerce td.product-subtotal {
    font-weight: 500;
    color: #222;
    text-align: center;
    font-size: 14px;
}

.woocommerce td.product-quantity input.qty {
    width: 60px;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

/* بخش اکشن‌ها (کد تخفیف و دکمه‌ها) */
.woocommerce td.actions {
    padding-top: 20px;
}

.woocommerce .coupon {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-start;
    float: unset !important;
}

.woocommerce .coupon input.input-text {
    padding: 8px 12px !important;
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    font-size: 14px !important;
    width: 160px !important;
    height: 35px !important;
    float: unset !important;
}

.woocommerce .coupon button.button,
.woocommerce button[name="update_cart"] {
    background-color: #2196f3 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    font-size: 14px !important;
    transition: all 0.3s !important;
    margin-top: 0 !important;
    font-weight: 400;
}

.woocommerce .coupon button.button:hover,
.woocommerce button[name="update_cart"]:hover {
    background-color: #1976d2 !important;
}

/* حذف فاصله اضافه بین دکمه‌ها */
.woocommerce .actions .button[name="update_cart"] {
    margin-right: 10px;
}

/* جدول مجموع سبد خرید */
.cart-collaterals {
    margin-top: 30px;
    background: #fafafa;
    padding: 20px;
    border-radius: 12px;
    border: unset;
}

.cart_totals h2,
.cross-sells>h2 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #102a43;
    padding-bottom: 5px;
}

.cart_totals table {
    width: 100% !important;
    font-size: 14px;
    border: 1px solid #eee !important;
}

.cart_totals table tr {
    font-weight: 400;
}

.cart_totals table tr th {
    font-weight: 400 !important;
    background-color: unset !important;
}

.cart_totals table .order-total>td strong span bdi {
    font-weight: 700;
}

.cart_totals table .order-total>td strong span bdi span {
    font-size: 10px;
}

.cart_totals .wc-proceed-to-checkout {
    text-align: center;
    margin-top: 20px;
}

.cart_totals .checkout-button.button {
    font-size: 15px !important;
    border-radius: 10px !important;
}

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .woocommerce .coupon {
        flex-direction: column;
        align-items: stretch;
    }

    .woocommerce .coupon input.input-text,
    .woocommerce .coupon button.button,
    .woocommerce .actions .button[name="update_cart"] {
        width: 100%;
    }
}

a.shipping-calculator-button {
    padding: 6px 20px;
    border-radius: 10px;
    background-color: #efeeee;
    color: #4361ee;
    transition: all .3s ease-in-out;
}

a.shipping-calculator-button:hover {
    background-color: #e6e3e3;
}

a.shipping-calculator-button::after {
    content: unset !important;
}

/* end cart */
/* Start checkout */
.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button {
    border: unset;
    background-color: #1565C0;
    color: #fff;
    border-radius: 12px;
    transition: all .4s ease-in-out;
}

.wp-block-woocommerce-checkout-actions-block .wc-block-checkout__actions_row .wc-block-components-checkout-place-order-button:hover {
    background-color: #0d47a1;
}

.wp-block-woocommerce-checkout-order-summary-block .wc-block-components-formatted-money-amount {
    font-weight: 400 !important;
}

.wc-block-checkout__sidebar .wc-block-components-product-name {
    font-size: 14px !important;
    font-weight: 400 !important;
}

.wc-block-components-totals-wrapper {
    border-top: unset;
}

.wc-block-components-button:not(.is-link) {
    border: 1px solid #eee;
    font-size: 14px;
    background-color: #1565C0;
    color: #fff;
    border-radius: 6px;
    transition: all .4s ease-in-out;
}

.wc-block-components-button:not(.is-link):hover {
    background-color: #0d47a1;
}

.wc-block-components-totals-item {
    border-bottom: unset !important;
    padding: 10px 20px !important;
}

/* old theme checkout */
.woocommerce-checkout h3 {
    font-size: 1.6em;
    color: #263238;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 8px;
    font-weight: 600;
}

.woocommerce-billing-fields__field-wrapper .form-row {
    margin-bottom: 16px;
}

.woocommerce-billing-fields__field-wrapper label {
    font-size: 14px;
    font-weight: 300;
    display: block;
    margin-bottom: 6px;
}

.woocommerce-billing-fields__field-wrapper input,
.woocommerce-billing-fields__field-wrapper select,
.woocommerce-billing-fields__field-wrapper textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.3s ease;
}

.woocommerce-billing-fields__field-wrapper input:focus,
.woocommerce-billing-fields__field-wrapper select:focus,
.woocommerce-billing-fields__field-wrapper textarea:focus {
    border-color: #2D5B9C;
    outline: none;
}

:where(.woocommerce) .select2-container .select2-dropdown,
:where(.woocommerce) .select2-container .select2-selection {
    border: 1px solid #eee !important;
    border-radius: 10px !important;
    font-weight: 200 !important;
}

.woocommerce form .form-row textarea.input-text {
    max-width: 400px;
    outline: none;
}

.woocommerce-checkout-review-order-table {
    margin-top: 20px !important;
    border-collapse: collapse !important;
    width: 100% !important;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 10px !important;
    text-align: right !important;
    font-weight: 300 !important;
    border-top: 1px solid rgba(0, 0, 0, .1) !important;
}

.woocommerce-checkout-review-order-table th {
    font-weight: 300 !important;
    font-size: 15px;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 300 !important;
}

.woocommerce-checkout-review-order-table .product-total {
    font-weight: 300 !important;
    color: #2D5B9C;
}

.woocommerce-checkout-review-order-table .order-total td {
    color: #2D5B9C;
}

.woocommerce-checkout-payment .button.alt {
    background-color: #2D5B9C !important;
    color: #fff !important;
    border: none;
    padding: 12px 30px;
    font-weight: 300 !important;
    border-radius: 13px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px
}

.woocommerce-checkout-payment .button.alt:hover {
    background-color: #224a80 !important;
}

.woocommerce-privacy-policy-text a {
    color: #2D5B9C;
    text-decoration: underline;
}

.woocommerce-privacy-policy-text {
    font-size: 13px;
    margin-top: 10px;
}


/* End checkout */