/**
 * Minimal WooCommerce styles inside theme shell (default WC CSS disabled).
 */

.dt-wc-content .woocommerce {
    direction: rtl;
    text-align: right;
}

.dt-wc-content .woocommerce table.shop_table {
    width: 100%;
    border-collapse: collapse;
}

.dt-wc-content .woocommerce table.shop_table th,
.dt-wc-content .woocommerce table.shop_table td {
    padding: 0.75rem;
    border-bottom: 1px solid #eee;
}

.dt-wc-content .woocommerce .button,
.dt-wc-content .woocommerce button.button,
.dt-wc-content .woocommerce a.button {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    background: var(--main-color-one, #5b2d8a);
    color: #fff;
    border: 0;
    text-decoration: none;
}

.dt-wc-content .woocommerce .quantity .qty {
    max-width: 4rem;
    text-align: center;
}

.dt-wc-content .woocommerce-message,
.dt-wc-content .woocommerce-info,
.dt-wc-content .woocommerce-error,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    position: relative;
    list-style: none;
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.85rem;
    border: 1px solid transparent;
    border-right: 4px solid transparent;
    font-weight: 600;
    line-height: 1.7;
    direction: rtl;
    text-align: right;
}

.woocommerce .woocommerce-error,
.dt-wc-content .woocommerce-error {
    background: #fef2f2;
    border-color: #fecaca;
    border-right-color: #dc2626;
    color: #991b1b;
}

.woocommerce .woocommerce-message,
.dt-wc-content .woocommerce-message {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-right-color: #059669;
    color: #065f46;
}

.woocommerce .woocommerce-info,
.dt-wc-content .woocommerce-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-right-color: #2563eb;
    color: #1e3a8a;
}

.dt-wc-content .woocommerce-product-gallery,
.dt-single-product .woocommerce-product-gallery {
    margin-bottom: 1.5rem;
    opacity: 1 !important;
}

.dt-single-product .woocommerce-product-gallery__wrapper img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
}

.dt-single-product .woocommerce-product-gallery__image:not(:first-child) {
    display: none;
}

.dt-single-product .woocommerce div.product .product_title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.dt-single-product .woocommerce div.product p.price {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

@media (max-width: 767px) {
    .dt-wc-content .woocommerce table.shop_table {
        font-size: 0.875rem;
    }
}

.dt-saeqeh-archive .page-numbers,
.dt-wc-content .page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.dt-saeqeh-archive .page-numbers li,
.dt-wc-content .page-numbers li {
    list-style: none;
}

.dt-saeqeh-archive .page-numbers a,
.dt-saeqeh-archive .page-numbers span,
.dt-wc-content .page-numbers a,
.dt-wc-content .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #eee;
    text-decoration: none;
}

.dt-saeqeh-archive .page-numbers .current,
.dt-wc-content .page-numbers .current {
    background: var(--main-color-one, #5b2d8a);
    color: #fff;
    border-color: transparent;
}

.checkout.woocommerce-checkout .form-row label {
    display: block;
    margin-bottom: 0.35rem;
}

.checkout.woocommerce-checkout .form-row input,
.checkout.woocommerce-checkout .form-row textarea,
.checkout.woocommerce-checkout .form-row select {
    width: 100%;
}

/* Compare / wishlist disabled until feature is implemented */
.product-header-btn a:not(.add_to_cart_button):not(.ajax_add_to_cart),
.icon-product-box {
    display: none !important;
}

.mobile-footer .mf-link-icon .bi-heart,
.mobile-footer .mf-link-icon .bi-arrow-left-right {
    display: none;
}

/* Checkout steps: wrap on narrow viewports (no nested horizontal scroll). */
.payment_navigtions,
.checkout-headers {
    max-width: 100%;
    min-width: 0;
}

.checkout-headers .navbar {
    max-width: 100%;
    min-width: 0;
}

.checkout-headers ul.navbar-nav,
.checkout-headers ul {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
}

.checkout-headers ul.navbar-nav > .nav-item,
.checkout-headers ul li {
    flex: 0 1 auto;
    min-width: 0;
}

.dt-checkout-page .checkout-headers ul li,
.dt-cart-page .checkout-headers ul li {
    min-width: 0;
}

/* Checkout steps: non-clickable steps (div.nav-link) share the look of linked steps. */
.checkout-headers ul li .nav-link--static {
    display: flex;
    align-items: center;
    font-size: 18px;
}

.checkout-headers ul li .nav-link--static p {
    margin-bottom: 0;
    color: #8c8888;
    white-space: nowrap;
}

.checkout-headers ul li .nav-link--static span {
    width: 20px;
    height: 20px;
    line-height: 20px;
    background-color: #ccc;
    color: #fff;
    text-align: center;
    margin-left: 7px;
    flex-shrink: 0;
}

.checkout-headers ul li.active .nav-link--static span {
    background-color: var(--main-color-one);
}

.checkout-headers ul li.active .nav-link--static p {
    font-weight: 900;
    color: var(--color-site);
}

@media (max-width: 767px) {
    .checkout-headers {
        max-width: 100%;
        min-width: 0;
    }

    .checkout-headers ul {
        flex-wrap: wrap;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        overflow-x: visible;
        justify-content: flex-start;
    }

    .checkout-headers ul li {
        min-width: 0;
        flex: 0 1 auto;
        padding-left: 28px;
    }

    .dt-checkout-page .checkout-headers ul li,
    .dt-cart-page .checkout-headers ul li {
        min-width: 0;
    }

    .checkout-headers ul li::before {
        width: 24px;
    }

    .checkout-headers ul li:last-child {
        padding-left: 0;
    }

    .checkout-headers ul li a,
    .checkout-headers ul li .nav-link--static {
        font-size: 14px;
        white-space: normal;
    }
}

@media (max-width: 576px) {
    .dt-checkout-page .checkout-headers ul li,
    .dt-cart-page .checkout-headers ul li {
        min-width: 0 !important;
        max-width: 48%;
        padding-left: 12px !important;
    }

    .checkout-headers ul li a,
    .checkout-headers ul li .nav-link--static {
        font-size: 13px;
    }
}
