/*
Theme Name: Hospa
Theme URI: https://jadoogarwp.com/
Description: قالب اختصاصی و پرفورمنس‌محور فروشگاه مکمل اسب (FSE Architecture)
Author: Shayan
Author URI: https://jadoogarwp.com/
Version: 2.0.0
Text Domain: hospa
*/

/* =============================================
   JadoogarWP: Global Styles
============================================= */

:root {
    --primary-dark: #0C1C3D;
    --heading-link-blue: #214074;
    --bg-cream: #F6F6F6;
    --white: #ffffff;
    --gold-gradient: linear-gradient(to top, #00843d 0%, #00a84e 100%);
    --tw-text-opacity: 1;
}

h3.wc-block-components-product-name {
    font-size: 0.7rem ! IMPORTANT;
}

a {
    background-color: transparent;
    color: #0b1c3d !important;
}

div#wpadminbar a {
    color: white ! IMPORTANT;
}

.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: #0c1c3d !important;
}

ins {
    text-decoration: none;
}

table td,
table th {
    border: none !important;
}

html {
    font-size: 100% !important;
    -webkit-text-size-adjust: 100%;
}

*,
*:focus,
*:active {
    outline: 0 !important;
}

/* تایپوگرافی عمومی */
body,
p,
input,
textarea,
select,
li,
dd {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    text-shadow: 0 0 0.1px rgba(0, 0, 0, 0.01);
}

small,
.jscm-app-bottom-sheet dl.variation dd,
.jscm-app-bottom-sheet dl.variation dd p {
    font-size: 0.625rem !important;
    font-weight: 500 !important;
}

h1 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

h2 {
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

h3,
.jscm-sheet-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

h4,
.jscm-app-bottom-sheet .woocommerce-mini-cart-item>a:not(.remove) {
    font-size: 0.8125rem !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
}

h5 {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

h6 {
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
}


/* ========================================================
   تایپوگرافی پیشرفته و مقیاس‌پذیر دسکتاپ (مبنا: H1 = 1.6rem)
======================================================== */
@media (min-width: 769px) {

    /* بزرگتر شدن ظریف متن‌های بدنه و لیست‌ها در دسکتاپ برای خوانایی عالی */
    body,
    p,
    input,
    textarea,
    select,
    li,
    dd {
        font-size: 0.875rem !important;
        /* تبدیل از 12px موبایل به 14px دسکتاپ */
        line-height: 1.7 !important;
    }

    small,
    .jscm-app-bottom-sheet dl.variation dd,
    .jscm-app-bottom-sheet dl.variation dd p {
        font-size: 0.75rem !important;
    }

    /* سلسله‌مراتب کاملاً متوازن عناوین بر اساس مقیاس 1.6rem */
    h1 {
        font-size: 1.6rem !important;
        line-height: 1.4 !important;
    }

    h2 {
        font-size: 1.35rem !important;
        font-weight: 600 !important;
        line-height: 1.4 !important;
        margin-top: 10px !important;
    }

    h3,
    .jscm-sheet-title {
        font-size: 1.15rem !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }

    h4,
    .jscm-app-bottom-sheet .woocommerce-mini-cart-item>a:not(.remove) {
        font-size: 1rem !important;
        font-weight: 600 !important;
        line-height: 1.5 !important;
    }

    h5 {
        font-size: 0.875rem !important;
        font-weight: 600 !important;
    }

    h6 {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
    }
}

@font-face {
    font-family: 'yekan';
    src: url('fonts/YekanBakhFaNum-VF-2.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

html,
body,
p,
a,
h1,
h2,
h3,
h4,
h5,
h6,
span,
button,
input,
select,
textarea,
b,
strong,
dl,
dt,
dd,
table,
td,
th {
    font-family: 'yekan', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

.woocommerce,
.woocommerce-page,
.widget_shopping_cart_content,
.jscm-app-bottom-sheet,
form.cart,
button[type="submit"] {
    font-family: 'yekan', sans-serif !important;
}

/* تنظیمات پایه */
body {
    background: var(--bg-cream) !important;
    color: var(--primary-dark) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: rgb(22 22 22 / var(--tw-text-opacity, 1)) !important;
}

.site-main,
.site-content,
main,
.alignwide {
    max-width: 1340px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

p {
    margin: 0px;
}

:root :where(.is-layout-flow)>* {
    margin-block-start: 0 !important;
    margin-block-end: 0 !important;
}

button,
.wp-element-button,
.wp-block-button__link {
    background: var(--gold-gradient);
    color: var(--primary-dark);
    border-radius: 14px !important;
    border: 0 !important;
    transition: box-shadow .3s !important;
}

/* ========================================================
   سبد خرید، چک‌اوت و مینی‌کارت
======================================================== */
.jscm-mc-price-wrap,
.price,
.amount {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.jscm-mc-qty-val {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
}

.woocommerce-mini-cart__total strong {
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
}

.woocommerce-mini-cart__total .amount {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
}

.woocommerce-mini-cart__buttons a {
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

.jscm-btn-close-sheet {
    font-size: 0.75rem !important;
    font-weight: 500 !important;
}

.wc-block-components-quantity-selector__button--plus,
.wc-block-components-quantity-selector__button--minus,
button.wc-block-cart-item__remove-link {
    background: transparent !important;
}

.is-product-collection-layout-carousel {
    padding: 0px;
}

ul.is-product-collection-layout-carousel {
    gap: 10px;
}

.wp-block-woocommerce-checkout-order-summary-block.checkout-order-summary-block-fill-wrapper .wc-block-components-order-summary {
    padding: 0px;
}

.wc-block-components-button:not(.is-link):focus {
    box-shadow: none !important;
}

.wp-container-core-group-is-layout-df3cb9b8.wp-block-group-is-layout-flex {
    gap: 10px;
}

.wc-block-components-quantity-selector {
    border: 1px solid #efefef;
    border-radius: 12px;
    box-sizing: border-box;
    display: flex;
    position: relative;
    width: 107px;
    height: 35px;
}

.wc-block-components-quantity-selector>.wc-block-components-quantity-selector__button--plus {
    font-size: .8em;
}

.wc-block-components-quantity-selector .wc-block-components-quantity-selector__button {
    font-weight: 500;
    opacity: 1;
}

.wc-block-components-totals-coupon.wc-block-components-panel {
    padding: 0px !important;
}

.wc-block-components-totals-wrapper {
    border: solid #c4cbd652;
    padding: 16px 0;
    border-width: 0px 0px 1px;
}

.wc-block-cart .wp-block-woocommerce-cart-order-summary-block {
    border-bottom: none;
}

body .wc-block-cart__main .wc-block-cart-items td {
    border-top: 1px solid #c4cbd652 !important;
    border-bottom: none;
}

.woocommerce-cart main#wp--skip-link--target,
.woocommerce-checkout main#wp--skip-link--target {
    padding: 0px 15px;
}

.wc-block-cart__main .wc-block-cart-items {
    border-bottom: 0px;
}

.is-medium table.wc-block-cart-items .wc-block-cart-items__row,
.is-mobile table.wc-block-cart-items .wc-block-cart-items__row,
.is-small table.wc-block-cart-items .wc-block-cart-items__row {
    display: grid;
    grid-template-columns: 67px 113px 27px;
    padding: 0px 0px 30px;
}

.wp-block-woocommerce-checkout-order-summary-totals-block {
    border-top: none;
    padding-bottom: 0px;
}

.wc-block-components-main.wc-block-cart__main.wp-block-woocommerce-cart-items-block {
    background: white;
    padding: 10px;
    border-radius: 14px;
}

span.wc-block-formatted-money-amount.wc-block-components-formatted-money-amount.wc-block-components-product-price__value {
    font-size: 12px;
}

.wc-block-cart-items__row .wc-block-cart-item__image img {

    border-radius: 12px;

}

.wc-block-components-totals-item__value {
    font-size: 1rem !important;
}

.wc-block-components-button:not(.is-link) {
    padding: 15px;
}

span.wc-block-components-totals-item__label {
    font-size: 1rem !important;
}

.wc-block-components-order-summary .wc-block-components-order-summary-item__image>img {
    border-radius: 12px;
}


.wc-block-components-form .wc-block-components-text-input label,
.wc-block-components-text-input label {
    font-size: 14px !important;
}


button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.wc-block-components-checkout-place-order-button--full-width.contained {
    color: #0b1c3d ! IMPORTANT;
}

/* ========================================================
   جلوگیری از زوم خودکار در فیلد کد تخفیف در موبایل (مخصوصاً iOS)
======================================================== */
.wc-block-components-totals-coupon__input input[type="text"],
#wc-block-components-totals-coupon__input-coupon {
    font-size: 16px !important;
}


a.wc-block-components-product-name {
    font-size: 0.7rem ! IMPORTANT;
}


.wc-block-components-product-badge {
    background: #0b1c3d;
    display: inline-block;
    font-size: 9px;
    line-height: 1.4;
    padding: 2px 4px;
    white-space: nowrap;
    color: #e2aa51;
    border-radius: 5px;
}

.woocommerce-checkout .has-global-padding,
.woocommerce-shop .has-global-padding {
    padding: 30px 15px !important;
}

.wc-block-components-product-sale-badge {
    min-width: 20px;
    text-align: center;
    direction: ltr;
    box-shadow: 0 5px 10px #ee18444d !important;
    transition: box-shadow .3s ease;
}

.wp-block-group.has-border-color:has(.wc-block-components-product-image) {
    cursor: pointer;
}

bdi {
    font-weight: 600;
}

del span.woocommerce-Price-currencySymbol {
    display: none;
}

span.woocommerce-Price-currencySymbol {
    font-size: 9px;
}

del {
    color: #c4cbd6;
    text-align: end;
}

.wc-block-components-product-price {
    display: flex;
    flex-direction: column;
}

.wp-block-woocommerce-checkout {
    padding-top: 0px;
}

.wp-container-core-buttons-is-layout-2a425623 {
    flex-wrap: nowrap;
    align-items: flex-end;
    width: 100%;
}

.wc-block-product-template__responsive {
    grid-gap: 0.5em;
}

body .wc-block-components-totals-coupon__button.contained {
    padding: 6px;
    font-weight: 400;
    color: #ffffff !important;
    background: #0b1c3d;
    height: auto;
}

.wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions,
.wc-block-mini-cart__footer .wc-block-mini-cart__footer-actions>.block-editor-inner-blocks>.block-editor-block-list__layout {
    flex-direction: row !important;
}

.wc-block-components-button:not(.is-link):disabled .wc-block-components-button__text {
    opacity: 1 !important;
}

.wc-block-components-button__text {
    font-weight: 500 !important;
}

.wp-block-woocommerce-checkout-order-summary-block .checkout-order-summary-block-fill {
    border: none !important;
}

.wc-block-components-checkout-place-order-button--full-width {
    margin-top: 20px !important;
}

input {
    border-radius: 12px !important;
    border-color: #0b1c3d21 !important;
}

@media (max-width: 576px) {
    .wc-block-components-checkout-order-summary__title {
        border: none !important;
        padding: 0px 0px 10px !important;
    }

    div#\:r2\: {
        border: none !important;
    }

    .wc-block-components-button__text {
        font-size: 14px;
    }

    body .wc-block-cart__main .wc-block-cart-items td {
        border-top: 0px solid #c4cbd652 !important;
        border-bottom: none;
    }

    .is-product-collection-layout-carousel .wc-block-product {
        flex-basis: 0;
        max-width: 400px;
        min-width: 60.5%;
        scroll-snap-align: center;
    }
}

.wc-blocks-components-select .wc-blocks-components-select__container,
.wc-blocks-components-select .wc-blocks-components-select__select {
    border-radius: 12px !important;
    border-color: #0b1c3d21 !important;
}

.wp-block-woocommerce-checkout-order-summary-block {
    border: 1px solid #0b1c3d21 !important;
    border-radius: 12px !important;
    background: white !important;
    padding: 12px !important;
}

.wc-blocks-components-select__container:has(select#billing-country) {
    display: none !important;
}

.wc-block-components-notice-banner.is-error {
    border-radius: 14px !important;
    font-size: 12px !important;
    padding: 12px !important;
}

.wc-block-components-notice-banner>svg {
    width: 20px !important;
}

a:-webkit-any-link {
    text-decoration: none;
}

img.wp-image-162 {
    width: 100px !important;
}

.wc-block-components-button:not(.is-link).is-style-outline,
.wc-block-components-button:not(.is-link).outlined {
    background-color: #0C1C3D !important;
    color: #ffffff !important;
    border: none !important;
    outline: 0 !important;
    box-shadow: 0 0 0 rgba(12, 28, 61, 0) !important;
    transform: none !important;
    transition: box-shadow 0.3s ease !important;
    padding: 5px !important;
}

.wc-block-components-button:not(.is-link).is-style-outline:hover,
.wc-block-components-button:not(.is-link).outlined:hover {
    background-color: #0C1C3D !important;
    color: #ffffff !important;
    opacity: 1 !important;
    box-shadow: 0 5px 15px rgba(12, 28, 61, 0.4) !important;
}

.wc-block-mini-cart__quantity-badge {
    font-size: 22px;
}

.wp-block-woocommerce-filled-mini-cart-contents-block {
    background: white;
}

h2.wc-block-mini-cart__title.wp-block-woocommerce-mini-cart-title-block {
    font-size: 15px;
    color: rgb(22 22 22 / var(--tw-text-opacity, 1));
    font-weight: 600;
}

.wc-block-components-button.wc-block-components-drawer__close {
    left: 90%;
    background: #efbb60 !important;
    color: #0c1e42 !important;
    border-radius: 13px !important;
    padding: 10px !important;
    top: 25px !important;
}

.woocommerce-cart .wp-container-core-group-is-layout-3a88641f.wp-block-group-is-layout-flex {
    display: none !important;
}

h2.wc-block-mini-cart__title {
    justify-content: center;
}

.wc-block-mini-cart__badge {
    background: white !important;
    font-size: 0.6em;
    color: #0b1c3d !important;
    margin-right: -33%;
    border-radius: 5px;
}

/* ========================================================
   پاپ‌آپ سبک و سریع افزودن به سبد خرید (Hospa Quick Cart Modal)
======================================================== */
.hospa-cart-modal-overlay {
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* No backdrop-filter: re-blurring the whole page every frame stalls older phones. */
    background-color: rgba(12, 28, 61, 0.6) !important;
    z-index: 9999999 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    box-sizing: border-box !important;
}

.hospa-cart-modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.hospa-cart-modal {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 26px 20px 22px 20px !important;
    width: 100% !important;
    max-width: 360px !important;
    box-shadow: 0 20px 50px -10px rgba(12, 28, 61, 0.25) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    direction: rtl !important;
    transform: scale(0.92) translateY(10px);
    transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-sizing: border-box !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal-overlay.show .hospa-cart-modal {
    transform: scale(1) translateY(0) !important;
}

.hospa-cart-modal__icon {
    width: 52px !important;
    height: 52px !important;
    border-radius: 50% !important;
    background: #ecfdf5 !important;
    border: 2px solid #a7f3d0 !important;
    color: #00843d !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
}

.hospa-cart-modal__icon svg {
    width: 26px !important;
    height: 26px !important;
    stroke: #00843d !important;
}

.hospa-cart-modal__title {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    color: #0c1c3d !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal__desc {
    font-size: 0.8125rem !important;
    color: #64748b !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.5 !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal__actions {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
}

.hospa-cart-modal__btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 44px !important;
    border-radius: 12px !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.15s ease !important;
    box-sizing: border-box !important;
    font-family: 'yekan', sans-serif !important;
}

.hospa-cart-modal__btn--view {
    background: #00843d !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(0, 132, 61, 0.25) !important;
}

.hospa-cart-modal__btn--view:hover {
    background: #00a84e !important;
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

.hospa-cart-modal__btn--continue {
    background: #f8fafc !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

.hospa-cart-modal__btn--continue:hover {
    background: #f1f5f9 !important;
    color: #0c1c3d !important;
    border-color: #cbd5e1 !important;
}

.jscm-custom-drawer-overlay {
    display: none !important;
}

.jscm-app-bottom-sheet {
    position: fixed !important;
    bottom: -100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 440px !important;
    height: 60vh !important;
    background: #00843d !important; /* یکپارچه‌سازی پس‌زمینه با هدر سبز جهت حذف کامل خط سفید در گوشه‌ها */
    border-radius: 24px 24px 0 0 !important;
    transition: bottom 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    display: flex !important;
    flex-direction: column !important;
    direction: rtl !important;
    overflow: hidden !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    isolation: isolate;
}

.jscm-custom-drawer-overlay.show .jscm-app-bottom-sheet {
    bottom: 0 !important;
}

.jscm-app-bottom-sheet .blockUI.blockOverlay {
    display: none !important;
}

.jscm-cart-spinner-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(2px) !important;
    z-index: 999 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition: 0.3s !important;
    border-radius: 24px 24px 0 0 !important;
}

.jscm-cart-spinner-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.jscm-spinner {
    width: 40px !important;
    height: 40px !important;
    border: 3px solid rgba(11, 28, 61, 0.1) !important;
    border-top-color: #0b1c3d !important;
    border-radius: 50% !important;
    animation: jscm-spin-drawer 0.8s linear infinite !important;
}

@keyframes jscm-spin-drawer {
    to {
        transform: rotate(360deg);
    }
}

.jscm-app-bottom-sheet .jscm-sheet-header {
    flex-shrink: 0 !important;
    padding: 18px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    text-align: center !important;
    background: #00843d !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 24px 24px 0 0 !important; /* انحنای دقیق و هم‌تراز با لبه بالا */
}

.jscm-sheet-title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: white !important;
}

.jscm-app-bottom-sheet .widget_shopping_cart_content {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
}

.jscm-sheet-content,
.jscm-app-bottom-sheet .woocommerce-mini-cart {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    padding: 12px !important;
    margin: 0 !important;
    list-style: none !important;
    background: #ffffff !important;
    scrollbar-width: thin !important;
    scrollbar-color: #334155 #f5f7f9 !important;
}

.jscm-sheet-content>*,
.jscm-app-bottom-sheet .woocommerce-mini-cart-item {
    direction: rtl !important;
}

.jscm-sheet-content::-webkit-scrollbar,
.jscm-app-bottom-sheet .woocommerce-mini-cart::-webkit-scrollbar {
    width: 5px !important;
}

.jscm-sheet-content::-webkit-scrollbar-track,
.jscm-app-bottom-sheet .woocommerce-mini-cart::-webkit-scrollbar-track {
    background: #f5f7f9 !important;
    border-radius: 10px !important;
}

.jscm-sheet-content::-webkit-scrollbar-thumb,
.jscm-app-bottom-sheet .woocommerce-mini-cart::-webkit-scrollbar-thumb {
    background: #334155 !important;
    border-radius: 10px !important;
}

.jscm-sheet-content::-webkit-scrollbar-thumb:hover,
.jscm-app-bottom-sheet .woocommerce-mini-cart::-webkit-scrollbar-thumb:hover {
    background: #1e293b !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart-item {
    display: flex !important;
    flex-wrap: wrap !important;
    position: relative !important;
    padding: 12px 0px !important;
    margin-bottom: 0px !important;
    border-top: 1px solid #f5f7f9 !important;
    align-items: flex-start !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart-item:first-child {
    border-top: none !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart-item img {
    position: absolute !important;
    right: 0px !important;
    top: 12px !important;
    width: 55px !important;
    height: 55px !important;
    border-radius: 10px !important;
    object-fit: cover !important;
    margin: 0 !important;
    border: 1px solid #f0f2f5 !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart-item>a:not(.remove) {
    width: 90% !important;
    padding-right: 70px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #214074 !important;
    line-height: 1.5 !important;
    text-decoration: none !important;
    display: block !important;
}

.jscm-app-bottom-sheet dl.variation {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    padding-right: 70px !important;
    margin: 6px 0 8px 0 !important;
    list-style: none !important;
}

.jscm-app-bottom-sheet dl.variation dt {
    display: none !important;
}

.jscm-app-bottom-sheet dl.variation dd {
    margin: 0 !important;
    padding: 3px 8px !important;
    background: #f0f2f5 !important;
    color: #555 !important;
    border-radius: 6px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
}

.jscm-app-bottom-sheet dl.variation dd p {
    margin: 0 !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart-item .remove {
    position: absolute !important;
    left: 0px !important;
    top: 32px !important;
    background: #ef71712b !important;
    color: #ef7171 !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 8px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 5 !important;
    transition: 0.2s !important;
    border: none !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart-item .remove:active {
    transform: scale(0.9) !important;
    background: #e0e4e8 !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart-item .remove svg {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

.jscm-item-details {
    width: 100% !important;
    padding-right: 70px !important;
    margin-top: 10px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.jscm-mc-qty-controls {
    display: inline-flex !important;
    align-items: center !important;
    direction: ltr !important;
    background: #f0f2f5 !important;
    border-radius: 50px !important;
    padding: 3px !important;
    gap: 15px;
}

.jscm-mc-qty-controls button {
    background: #ffffff !important;
    color: #0b1c3d !important;
    border: 1px solid #e0e4e8 !important;
    border-radius: 50% !important;
    width: 24px !important;
    height: 24px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: bold !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03) !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart__total {
    flex-shrink: 0 !important;
    border-top: 1px solid #f0f2f5 !important;
    padding: 5px 12px !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart__buttons {
    display: none !important;
}

.jscm-sheet-footer {
    flex-shrink: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    width: 100% !important;
    padding: 10px 14px 26px !important;
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)) !important;
    background: #ffffff !important;
    border: none !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.jscm-btn-view-cart {
    flex: 1 !important;
    min-width: 0 !important;
    height: 44px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(to top, #00843d 0%, #00a84e 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(0, 168, 78, 0.3) !important;
    box-sizing: border-box !important;
}

.jscm-btn-view-cart:hover,
.jscm-btn-view-cart:focus,
.jscm-btn-view-cart:visited {
    color: #ffffff !important;
}

.jscm-btn-view-cart:active {
    opacity: 0.9 !important;
}

.jscm-btn-close-sheet {
    flex: 1 !important;
    min-width: 0 !important;
    height: 44px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    background: #f8f9fa !important;
    color: #555 !important;
    border: 1px solid #eee !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

.jscm-btn-close-sheet:active {
    background: #f0f2f5 !important;
}

.jscm-app-bottom-sheet .woocommerce-mini-cart__empty-message {
    text-align: center !important;
    padding: 40px 20px !important;
    font-size: 14px !important;
    color: #0b1c3d !important;
    font-weight: 600 !important;
    background: #f8f9fa !important;
    border-radius: 12px !important;
    margin: 20px !important;
}

/* =============================================
   فوتر مینیمال و اختصاصی با پس‌زمینه سفید (Hospa Minimal Footer)
============================================= */
.hospa-site-footer {
    background-color: #ffffff !important;
    border-top: 1px solid #f1f5f9;
    width: 100%;
    direction: rtl;
    color: #475569;
    position: relative;
    z-index: 10;
    margin-top: 40px;
    box-sizing: border-box;
}

.hospa-footer-container {
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* ۱. نوار مزایای فروشگاه (ویژگی‌های اعتمادساز مینیمال) */
.hospa-footer-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 30px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hospa-footer-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fafbfc;
    border: 1px solid #f1f5f9;
    transition: all 0.25s ease;
}

.hospa-footer-feature-item:hover {
    background: #f0faf4;
    border-color: rgba(0, 132, 61, 0.2);
    transform: translateY(-2px);
}

.hospa-feature-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00843D;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
}

.hospa-feature-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.hospa-feature-text__title {
    margin: 0 0 3px 0;
    font-size: 0.84rem;
    font-weight: 600 !important;
    color: #0c1c3d;
    line-height: 1.4;
}

.hospa-feature-text p:not(.hospa-feature-text__title) {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 400;
    color: #64748b;
    line-height: 1.4;
}

/* ۲. گرید اصلی ستون‌های فوتر */
.hospa-footer-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.35fr;
    gap: 32px;
    padding: 36px 0 28px;
}

/* ستون درباره فروشگاه */
.hospa-footer-col--about {
    display: flex;
    flex-direction: column;
}

.hospa-footer-logo-link {
    display: inline-block !important;
    max-width: 140px !important;
    margin-bottom: 14px !important;
    text-decoration: none !important;
}

.hospa-site-footer .hospa-footer-logo,
.hospa-footer-col--about .hospa-footer-logo,
.hospa-footer-logo-link img,
img.hospa-footer-logo {
    width: 140px !important;
    max-width: 140px !important;
    height: auto !important;
    max-height: 60px !important;
    object-fit: contain !important;
    display: block !important;
}

.hospa-footer-desc {
    font-size: 0.82rem;
    line-height: 1.85;
    color: #475569;
    margin: 0;
    text-align: justify;
}

/* عناوین ستون‌ها */
.hospa-footer-title {
    font-size: 0.92rem;
    font-weight: 600 !important;
    color: #0c1c3d;
    margin: 0 0 18px 0;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.hospa-title-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #00843D;
    flex-shrink: 0;
}

/* لینک‌های ستون‌ها (لیست عمودی مرتب و تمیز) */
.hospa-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.hospa-footer-links li a {
    color: #475569;
    text-decoration: none;
    font-size: 0.82rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
}

.hospa-footer-links li a::before {
    content: "-";
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.hospa-footer-links li a:hover {
    color: #00843D;
    transform: translateX(-3px);
}

.hospa-footer-links li a:hover::before {
    color: #00843D;
}

/* ستون مرکز پشتیبانی */
.hospa-support-card {
    background: #fbfcfd;
    border: 1px solid #edf2f7;
    border-radius: 16px;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-sizing: border-box;
}

.hospa-support-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f0faf4;
    border: 1px solid rgba(0, 132, 61, 0.15);
    padding: 3px 10px;
    border-radius: 20px;
    width: fit-content;
}

.hospa-status-ping {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #00843D;
    box-shadow: 0 0 0 3px rgba(0, 132, 61, 0.2);
    animation: hospa-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes hospa-ping {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 132, 61, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(0, 132, 61, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 132, 61, 0);
    }
}

.hospa-status-text {
    font-size: 0.72rem;
    font-weight: 600;
    color: #00843D;
}

.hospa-support-contact-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hospa-support-contact-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.hospa-support-phone-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    padding: 12px 14px;
    border-radius: 0;
    text-decoration: none;
    transition: background 0.2s ease;
}

.hospa-support-phone-box:hover {
    background: #f8fafc;
    transform: none;
    box-shadow: none;
}

.hospa-support-contact-extra {
    border-top: 1px dashed #e2e8f0;
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hospa-support-hours {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hospa-support-extensions {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hospa-support-hours li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.74rem;
    color: #475569;
    line-height: 1.55;
    font-weight: 500;
}

.hospa-support-hours li svg {
    width: 15px;
    height: 15px;
    fill: #00843D;
    flex-shrink: 0;
    margin-top: 2px;
}

.hospa-support-extensions li {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f0faf4;
    border: 1px solid rgba(0, 132, 61, 0.18);
    font-size: 0.74rem;
    line-height: 1.35;
    box-sizing: border-box;
    text-align: right;
}

.hospa-support-ext-chip {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    min-width: 0;
}

.hospa-support-ext-num {
    color: #00843D;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

.hospa-support-ext-label {
    color: #334155;
    font-weight: 500;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
}

.hospa-support-ext-num + .hospa-support-ext-label::before {
    content: '·';
    margin-inline-end: 4px;
    color: #94a3b8;
    font-weight: 400;
}

.hospa-support-phone-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f0faf4;
    color: #00843D;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hospa-support-phone-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.hospa-support-phone-info {
    display: flex;
    flex-direction: column;
}

.hospa-phone-caption {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 2px;
}

.hospa-phone-number {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0c1c3d;
    direction: ltr;
    letter-spacing: 0.5px;
}

/* شبکه‌های اجتماعی زیر شماره تلفن */
.hospa-support-socials {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-sizing: border-box;
}

.hospa-support-socials-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
    white-space: nowrap;
}

.hospa-support-socials .hospa-social-icons {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hospa-support-socials .hospa-social-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #475569;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hospa-support-socials .hospa-social-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.25s ease;
}

.hospa-support-socials .hospa-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.hospa-social-instagram:hover {
    background: #fdf2f8 !important;
    border-color: #fbcfe8 !important;
    color: #e1306c !important;
}

.hospa-social-telegram:hover {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0284c7 !important;
}

.hospa-social-whatsapp:hover {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
    color: #16a34a !important;
}

.hospa-social-bale:hover {
    background: #f0faf4 !important;
    border-color: #bbf7d0 !important;
    color: #00843D !important;
}

.hospa-support-meta-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding-top: 2px;
}

.hospa-support-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: #475569;
}

.hospa-support-meta-item svg {
    width: 15px;
    height: 15px;
    fill: #00843D;
    flex-shrink: 0;
}

.hospa-support-meta-item a {
    color: #475569;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hospa-support-meta-item a:hover {
    color: #00843D;
}

/* بخش نمادها و گواهی‌ها (۳ ستون) */
.hospa-trust-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.hospa-trust-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0c1c3d;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hospa-trust-title::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: #00843D;
    flex-shrink: 0;
}

.hospa-trust-seals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.hospa-trust-seal-item {
    height: 64px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    box-sizing: border-box;
    transition: all 0.25s ease;
}

.hospa-trust-seal-item:hover {
    border-color: #00843D;
    box-shadow: 0 4px 10px rgba(0, 132, 61, 0.08);
    transform: translateY(-2px);
}

.hospa-trust-seal-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.hospa-trust-seal-item img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
}

.hospa-seal-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #00843D;
    text-align: center;
    width: 100%;
}

.hospa-seal-placeholder svg {
    fill: #00843D;
    width: 18px;
    height: 18px;
}

.hospa-seal-placeholder span {
    font-size: 0.62rem;
    font-weight: 600;
    color: #475569;
    line-height: 1.1;
    white-space: nowrap;
}

/* ۳. نوار کپی‌رایت پایین فوتر */
.hospa-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 28px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.8rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 12px;
}

.hospa-footer-copy p {
    margin: 0;
}

.hospa-footer-copy strong {
    color: #0c1c3d;
}

.hospa-footer-extra {
    color: #00843D;
    font-weight: 500;
    font-size: 0.78rem;
}

/* واکنش‌گرایی (Responsive) */
@media (max-width: 1024px) {
    .hospa-footer-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hospa-footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 24px;
    }

    .hospa-footer-col--about {
        grid-column: span 2;
    }

    .hospa-footer-col--categories {
        grid-column: span 1;
    }

    .hospa-footer-col--links {
        grid-column: span 1;
    }

    .hospa-footer-col--support {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .hospa-site-footer {
        padding-bottom: 85px; /* جلوگیری از تداخل با منوی شناور پایین موبایل */
    }

    .hospa-footer-features {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 20px 0;
    }

    /* در موبایل: دسته‌بندی‌ها و خدمات مشتریان دقیقاً ۲ ستون کنار هم */
    .hospa-footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 22px 14px;
        padding: 22px 0;
    }

    .hospa-footer-col--about {
        grid-column: span 2;
        align-items: flex-start;
    }

    .hospa-footer-col--categories {
        grid-column: span 1;
    }

    .hospa-footer-col--links {
        grid-column: span 1;
    }

    .hospa-footer-col--support {
        grid-column: span 2;
    }

    .hospa-footer-desc {
        text-align: right;
    }

    .hospa-footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 18px 0;
    }
}

/* ================================== */
/* پاپ‌آپ موفقیت و اسپینر */
/* ================================== */
.jscm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 28, 61, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.jscm-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.jscm-modal-box {
    background: #ffffff;
    padding: 25px 20px;
    border-radius: 20px;
    width: 100%;
    max-width: 260px;
    text-align: center;
    transform: translateY(30px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.jscm-modal-overlay.show .jscm-modal-box {
    transform: translateY(0) scale(1);
}

.jscm-modal-icon {
    color: #eabe6a;
}

.jscm-modal-icon svg {
    width: 50px;
    height: 50px;
}

.jscm-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #0b1c3d;
    margin-bottom: 25px;
}

.jscm-modal-actions {
    display: flex;
    gap: 10px;
}

.jscm-modal-btn {
    flex: 1;
    padding: 12px 20px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    border: none !important;
    transition: opacity 0.2s, transform 0.1s !important;
}

.jscm-modal-btn:active {
    opacity: 0.8;
    transform: scale(0.96);
}

.jscm-btn-cart {
    background: linear-gradient(to top, #00843d 0%, #00a84e 100%);
    color: #0b1c3d !important;
    box-shadow: 0 4px 12px rgba(0, 168, 78, 0.3) !important;
}

.jscm-btn-continue {
    background: #0b1c3d !important;
    color: #ffffff !important;
}

.jscm-modal-title,
.jscm-modal-btn {
    font-family: 'YekanBakh', tahoma, sans-serif !important;
}

body.jscm-suppress-drawer .wc-block-components-drawer__screen-overlay {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -10 !important;
}

/* ================================================= */
/* هدر اختصاصی جادوگر وردپرس */
/* ================================================= */
.jscm-hide-native-cart,
.wp-block-woocommerce-mini-cart .wc-block-mini-cart__button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    z-index: -999 !important;
}

.jscm-custom-header {
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out !important;
    width: 100%;
    direction: rtl;
}

.jscm-custom-header.jscm-header-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none;
}

.jscm-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap !important;
}

.jscm-header-right,
.jscm-header-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: flex-start;
    margin-top: -5px;
}

.jscm-header-right {
    justify-content: flex-start;
}

.jscm-header-left {
    justify-content: flex-end;
    gap: 16px;
}

.jscm-header-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    max-width: 50%;
}

.jscm-header-center a {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.jscm-header-center img {
    height: 65px !important;
    max-height: 65px !important;
    width: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
    display: block !important;
    margin-top: 5px;
}

.jscm-menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-decoration: none;
}

.jscm-menu-text {
    font-size: 15px;
    font-weight: 500;
    background: linear-gradient(to top, #00843d 0%, #00a84e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.jscm-header-item {
    position: relative;
    text-decoration: none;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.jscm-header-item .hospa-cart-badge {
    position: absolute;
    top: 1px;
    right: 1px;
    background-color: #008744;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-sizing: border-box;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
    z-index: 10;
    line-height: 1;
}

.jscm-header-item .hospa-cart-badge.empty {
    display: none !important;
}

@media (max-width: 768px) {
    .jscm-desktop-only {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .jscm-custom-header {
        background-color: var(--wp--preset--color--primary-dark, #0b1c3d) !important;
        padding: 0 !important;
        border-radius: 0;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 50px;
    }

    .jscm-header-inner {
        max-width: 1340px;
        height: 100px;
        margin: 0 auto;
        padding: 0px;
    }

    .jscm-header-right,
    .jscm-header-left {
        flex: 1;
        jscm-desktop-only min-width: 0;
        display: flex;
        align-items: center;
        height: 100%;
        margin-top: 0px;
    }

    .jscm-header-center {
        order: 1;
        flex: 0 0 auto;
        justify-content: flex-start;
        max-width: none;
    }

    .jscm-header-right {
        order: 2;
        flex: 1;
        justify-content: flex-start;
        padding-right: 40px;
    }

    .jscm-header-left {
        order: 3;
        flex: 0 0 auto;
        gap: 20px;
    }

    .jscm-header-center img {
        height: 80px !important;
        max-height: 80px !important;
    }

    .jscm-desktop-nav {
        display: flex;
        align-items: center;
        gap: 30px;
    }

    .jscm-desktop-nav a {
        color: #ffffff !important;
        text-decoration: none;
        font-size: 15px;
        font-weight: 400;
        transition: all 0.3s ease;
    }

    .jscm-desktop-nav a:hover {
        color: #00a84e;
    }

    .jscm-mobile-only {
        display: none !important;
    }

}

.jscm-support-btn {
    background: linear-gradient(to top, #00843d 0%, #00a84e 100%);
    color: #0b1c3d !important;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 168, 78, 0.25);
    white-space: nowrap;
}

.jscm-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    color: #00a84e;
    transition: opacity 0.3s ease;
}

.jscm-back-btn:hover {
    opacity: 0.8;
}

.jscm-back-text {
    font-size: 15px;
    font-weight: 500;
    color: #00a84e;
    display: inline-block !important;
}

@media (max-width: 400px) {
    .jscm-support-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .jscm-back-text {
        font-size: 13px;
    }

    .jscm-back-btn svg {
        width: 24px;
        height: 24px;
    }
}

@media (min-width: 769px) {
    .woocommerce-checkout .jscm-header-center {
        order: 2 !important;
        flex: 0 0 auto !important;
        justify-content: center !important;
    }

    .woocommerce-checkout .jscm-header-right {
        order: 1 !important;
        flex: 1 !important;
        justify-content: flex-start !important;
        padding-right: 0 !important;
    }

    .woocommerce-checkout .jscm-header-left {
        order: 3 !important;
        flex: 1 !important;
        justify-content: flex-end !important;
    }
}

/* ================================================= */
/* پایه مودال (پشتیبانی + مشخصات محصول) */
/* ================================================= */
.jscm-support-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(11, 28, 61, 0.6) !important;
    z-index: 999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    backdrop-filter: blur(5px) !important;
    direction: rtl !important;
}

.jscm-support-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.jscm-support-box {
    background: #f8f9fa !important;
    width: 85% !important;
    max-width: 440px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    transform: translateY(30px) scale(0.95) !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    box-shadow: 0 20px 40px rgba(11, 28, 61, 0.25) !important;
}

.jscm-support-overlay.show .jscm-support-box {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
}

.jscm-support-head {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 15px !important;
    border-bottom: none !important;
}

.jscm-support-head .jscm-support-title {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: rgb(11, 28, 61) !important;
}

.jscm-support-close {
    background: rgba(11, 28, 61, 0.15) !important;
    border: none !important;
    color: rgb(11, 28, 61) !important;
    cursor: pointer !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
}

.jscm-support-close:hover {
    background: rgb(11, 28, 61) !important;
    color: rgb(0, 168, 78) !important;
}

.jscm-support-body {
    padding: 20px !important;
}







/* ========================================================
   ۱. تنظیمات شبکه ووکامرس (۵ ستونه کردن و هم‌ارتفاعی قطعی)
======================================================== */
/* تنظیمات کانتینر و پدینگ صفحه دسته‌بندی و فروشگاه */
.shop-page {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

@media (max-width: 768px) {
    .shop-page {
        padding-left: 14px !important;
        padding-right: 14px !important;
    }
}

@media (max-width: 480px) {
    .shop-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* تبدیل لیست محصولات به گرید مدرن ۵ ستونه */
.woocommerce ul.products,
.woocommerce-page ul.products,
ul.products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    /* اجبار به ۵ کارت در دسکتاپ */
    gap: 15px !important;
    direction: rtl !important;
    /* چیدمان دقیق از راست */
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
}

/* حذف باگ‌های فضای خالی ووکامرس در حالت گرید */
.woocommerce ul.products::before,
.woocommerce ul.products::after,
ul.products::before,
ul.products::after {
    display: none !important;
}

/* آماده‌سازی آیتم‌ها برای کش آمدن و هم‌قد شدن */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
ul.products li.product,
li.jscm-custom-grid-item {
    float: none !important;
    /* خنثی‌سازی استایل‌های سنتی قالب */
    width: 100% !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}



/* ========================================================
   ۲. دیزاین نهایی کارت محصول (کدهای اختصاصی شما)
======================================================== */
/* باکس اصلی کارت محصول */
.jscm-card-wrapper {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    /* شاه‌کلید: مجبور کردن کارت به پر کردن کل ارتفاع ردیف */
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    height: 100% !important;
    box-sizing: border-box !important;
}


/* تصویر محصول */
.jscm-card-thumb-link {
    display: block !important;
    text-align: center !important;
    margin-bottom: 12px !important;
}

.jscm-card-thumb-link img {
    border-radius: 12px !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    margin: 0px !important;
}

.jscm-card-content {
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    /* هُل دادن خودکار دکمه‌ها به کف کارت */
}

/* فونت و چیدمان عنوان کالا */
.jscm-card-title-link {
    text-decoration: none !important;
}

.jscm-card-title {
    font-size: 0.8rem !important;
    color: #3d3d3d !important;
    text-align: center !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    margin: 0 0 15px 0 !important;
    height: 45px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* ========================================================
   اصلاح بخش قیمت و بج تخفیف (بج تخفیف راست، قیمت چپ)
======================================================== */
.jscm-card-price-badge {
    display: flex !important;
    flex-direction: row-reverse !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-top: auto !important;
    /* چسباندن قطعی قیمت به بالای دکمه */
    margin-bottom: 10px !important;
    padding: 0 4px !important;
    width: 100% !important;
}

/* ساختار دوطبقه عمودی قیمت کالا مستقر در سمت چپ */
.jscm-card-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    direction: rtl !important;
    font-size: 17px !important;
    color: #00843d !important;
}

.jscm-card-price ins,
.jscm-card-price bdi,
.jscm-card-price .amount,
.jscm-card-price .woocommerce-Price-amount {
    font-size: 17px !important;
    color: #00843d !important;
}

.jscm-card-price del,
.jscm-card-price del bdi,
.jscm-card-price del .amount {
    font-size: 14px !important;
    color: #9ca3af !important;
}

@media (min-width: 769px) {
    .jscm-card-price del {
        line-height: 1;
    }
}

/* حذف کلمه تومان/ریال فقط از قیمت خط‌خورده بالا */
.jscm-card-price del .woocommerce-Price-currencySymbol,
.jscm-card-price .jscm-old-price-row .woocommerce-Price-currencySymbol {
    display: none !important;
}

/* دیزاین اختصاصی بج تخفیف مینی‌مال مستقر در سمت راست */
.jscm-card-badge {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    padding: 2px 6px !important;
    border-radius: 8px 8px 8px 0px !important;
    margin-left: 8px !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 2px !important;
    user-select: none !important;
}

/* ========================================================
   دیزاین دکمه لوکسِ دو تکه چسبیده به هم
======================================================== */
.jscm-card-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 100% !important;
    text-decoration: none !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    border: none !important;
    padding: 0 !important;
}

/* بخش پهن طلایی رنگ دکمه */
.jscm-cb-text {
    background: #00843d !important;
    color: #0b1c3d !important;
    flex-grow: 1 !important;
    text-align: center !important;
    padding: 7px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.25s ease !important;
}

/* بخش مربع سرمه‌ای رنگ دکمه حاوی آیکون فلش */
.jscm-cb-icon {
    background: #0b1c3d !important;
    color: #00843d !important;
    width: 30px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 0 !important;
    transition: background 0.25s ease !important;
}

.jscm-card-btn:hover .jscm-cb-text {
    background: #006830 !important;
}

.jscm-card-btn:hover .jscm-cb-icon {
    background: #172f5c !important;
}

/* ========================================================
   ۳. تنظیمات ریسپانسیو (تبلت و موبایل)
======================================================== */
@media (max-width: 1199px) {

    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {

    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {

    .woocommerce ul.products,
    ul.products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}




/* ========================================================
   یکسان‌سازی ۱۰۰٪ دیزاین محصولات در بلاک‌های ووکامرس با قالب اصلی سایت
======================================================== */

/* 🌟 جدید: اجبار بلاک‌های ووکامرس به نمایش ۵ ستونه در دسکتاپ */
.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 15px !important;
}

@media (max-width: 1199px) {
    .wc-block-grid__products {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .wc-block-grid__products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .wc-block-grid__products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }
}

/* ۱. باکس اصلی کارت محصول کرم‌رنگ */
.wc-block-grid__product {
    background: #F6F6F6 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease !important;
    height: 100% !important;
    box-sizing: border-box !important;
}

.wc-block-grid__product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(11, 28, 61, 0.08) !important;
}

/* ۲. تصویر محصول */
.wc-block-grid__product-image {
    margin-bottom: 12px !important;
    text-align: center !important;
}

.wc-block-grid__product-image img {
    border-radius: 12px !important;
    margin: 0 !important;
}

/* ۳. فونت و چیدمان عنوان کالا (با ارتفاع ثابت برای تراز شدن کارت‌ها) */
.wc-block-grid__product-title {
    font-size: 0.8rem !important;
    color: #0b1c3d !important;
    text-align: center !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    margin: 0 0 15px 0 !important;
    height: 45px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* ۴. مخفی کردن ستاره‌های خراب و اضافی SSSSS */
.wc-block-grid__product-rating {
    display: none !important;
}

/* ۵. استایل قیمت (چسباندن به انتهای کارت روی دکمه و وسط چین کردن دقیق) */
.wc-block-grid__product-price {
    display: block !important;
    text-align: center !important;
    direction: rtl !important;
    margin-top: auto !important;
    /* هُل دادن دکمه به پایین */
    margin-bottom: 12px !important;
    font-weight: 700 !important;
}

/* حذف کلمه تومان از قیمت خط‌خورده */
.wc-block-grid__product-price del .woocommerce-Price-currencySymbol {
    display: none !important;
}

/* ۶. دیزاین بج تخفیف (On Sale) */
.wc-block-grid__product-onsale {
    background-color: #ef4444 !important;
    color: #ffffff !important;
    font-size: 0.625rem !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    border-radius: 8px 8px 8px 0px !important;
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.2) !important;
    border: none !important;
}



/* ========================================================
   حل نهایی و قطعی دیزاین محصولات در بلاک‌های ووکامرس (نسخه ۴ ستونه)
======================================================== */

/* ۱. آزاد کردن عرض کل باکسِ دربرگیرنده */
.wc-block-grid,
.wp-block-woocommerce-product-new,
.wp-block-woocommerce-handpicked-products {
    width: 100% !important;
    max-width: 100% !important;
}

/* ۲. شبکه‌بندی ۴ ستونه با عرض کامل */
ul.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    /* تغییر به ۴ ستون */
    width: 100% !important;
    gap: 20px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* تنظیمات ریسپانسیو برای تبلت و موبایل */
@media (max-width: 1199px) {
    ul.wc-block-grid__products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 991px) {
    ul.wc-block-grid__products {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    ul.wc-block-grid__products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
}

/* ۳. باکس اصلی کارت محصول */
li.wc-block-grid__product {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    background: #F6F6F6 !important;
    border-radius: 16px !important;
    padding: 15px !important;
    display: flex !important;
    flex-direction: column !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    height: 100% !important;
    box-sizing: border-box !important;
    position: relative !important;
}

li.wc-block-grid__product:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(11, 28, 61, 0.08) !important;
}

/* ۴. تصویر محصول */
.wc-block-grid__product-image {
    margin-bottom: 12px !important;
    text-align: center !important;
}

.wc-block-grid__product-image img {
    border-radius: 12px !important;
    margin: 0 auto !important;
}

/* ۵. فونت و چیدمان عنوان کالا */
.wc-block-grid__product-title {
    font-size: 0.85rem !important;
    /* کمی بزرگتر برای حالت ۴ ستونه */
    color: #0b1c3d !important;
    text-align: center !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
    margin: 0 0 15px 0 !important;
    height: 45px !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* ۶. مخفی کردن ستاره‌های خراب */
.wc-block-grid__product-rating {
    display: none !important;
}

/* ۷. استایل قیمت */
.wc-block-grid__product-price {
    display: block !important;
    text-align: center !important;
    direction: rtl !important;
    margin-top: auto !important;
    margin-bottom: 15px !important;
    font-weight: 700 !important;
}

.wc-block-grid__product-price del .woocommerce-Price-currencySymbol {
    display: none !important;
}

/* ۸. کشتن باگ نوار سرمه‌ای (حذف استایل از تگ‌های غیرمرتبط) */
.wp-block-button__link::before {
    display: none !important;
    content: none !important;
}

/* ۹. بازسازی دکمه لوکس فقط روی دکمه خرید */
.wc-block-grid__product-add-to-cart {
    margin-top: auto !important;
    width: 100% !important;
    display: block !important;
}

.wc-block-grid__product-add-to-cart a,
.wc-block-grid__product-add-to-cart button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #00843d !important;
    color: #0b1c3d !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    height: 40px !important;
    /* کمی بلندتر برای زیبایی بیشتر */
    padding: 0 0 0 30px !important;
    position: relative !important;
    overflow: hidden !important;
    border: none !important;
    transition: background 0.25s ease !important;
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    margin: 0 !important;
}

.wc-block-grid__product-add-to-cart a:hover,
.wc-block-grid__product-add-to-cart button:hover {
    background: #006830 !important;
    color: #ffffff !important;
}

/* آیکون فلش SVG داخل دکمه */
.wc-block-grid__product-add-to-cart a::before,
.wc-block-grid__product-add-to-cart button::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 32px !important;
    /* متناسب با ارتفاع جدید دکمه */
    background-color: #0b1c3d !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300843d' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='15 18 9 12 15 6'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-size: 16px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block !important;
    transition: background-color 0.25s ease !important;
}

.wc-block-grid__product-add-to-cart a:hover::before,
.wc-block-grid__product-add-to-cart button:hover::before {
    background-color: #172f5c !important;
}


/* ========================================================
   مخفی کردن کامل بخش ایمیل در تسویه حساب جدید ووکامرس
======================================================== */
.wc-block-components-checkout-step--contact-information,
.wc-block-checkout__contact-fields {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}



/* ========================================================
   دیزاین حرفه‌ای و برندینگ بخش آدرس و گزینه‌های پرداخت (نسخه نهایی)
======================================================== */

/* --- ۱. استایل باکس خلاصه آدرس و دکمه ویرایش --- */
.wc-block-components-address-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(11, 28, 61, 0.03) !important;
    transition: all 0.3s ease !important;
}

.wc-block-components-address-card:hover {
    box-shadow: 0 6px 25px rgba(11, 28, 61, 0.08) !important;
}

/* دیزاین دکمه "ویرایش" (تبدیل به یک دکمه سرمه‌ای برجسته و شیک) */
.wc-block-components-address-card__edit,
.wc-block-components-address-card button {
    background: #0b1c3d !important;
    /* رنگ سرمه‌ای برند شما */
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 8px 24px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(11, 28, 61, 0.15) !important;
    text-transform: none !important;
}

/* افکت طلایی شدن دکمه ویرایش در حالت هاور */
.wc-block-components-address-card__edit:hover,
.wc-block-components-address-card button:hover {
    background: #00843d !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 15px rgba(0, 132, 61, 0.3) !important;
}


.wc-block-components-radio-control--highlight-checked:after {
    border: none !important;

}

.wc-block-components-radio-control__description-group,
.wc-block-components-radio-control__label-group {
    display: flex;
    justify-content: space-between;
    padding-right: 25px;
}


.wc-block-components-radio-control .wc-block-components-radio-control__input:checked:before {
    background: #00a84e;
}

/* --- ۲. اصلاح قطعی باکس گزینه‌های پرداخت --- */

/* الف: پاک کردن کامل کادر مشکی و مزاحم پیش‌فرض ووکامرس */
.wc-block-components-radio-control,
.wc-block-components-checkout-step__content,
.wc-block-components-payment-method-accordion {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* ب: استایل دادن به کادر هر روش پرداخت به صورت جداگانه */
.wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control__option {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    margin-bottom: 12px !important;
    padding: 12px 15px !important;
    /* تنظیم مجدد فاصله‌ها برای جلوگیری از به هم ریختگی متن */
    transition: all 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ج: استایل ویژه برای روش پرداختی که تیک خورده است */
.wc-block-components-radio-control-accordion-option:has(input[type="radio"]:checked),
.wc-block-components-radio-control__option:has(input[type="radio"]:checked) {
    border-color: #00843d !important;
    /* کادر طلایی */
    background: #f0faf4 !important;
    /* پس‌زمینه کرم/طلایی */
    box-shadow: 0 4px 15px rgba(0, 132, 61, 0.1) !important;
}

/* د: تغییر رنگ نقطه توپرِ انتخاب به سرمه‌ای */
.wc-block-components-radio-control__input[type="radio"]:checked {
    accent-color: #0b1c3d !important;
}

/* ه: تنظیم فونت توضیحات زیر درگاه پرداخت */
.wc-block-components-payment-method-accordion-content {
    padding-top: 12px !important;
    color: #475569 !important;
    font-size: 0.85rem !important;
    line-height: 1.8 !important;
}


.wc-block-components-radio-control-accordion-content {
    font-size: 12px ! IMPORTANT;
    line-height: 1.4;
    padding: 0 12px 0px !important;
}

/* حذف قطعی خط یا کادر :after در آخرین گزینه پرداخت ووکامرس */
.wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:last-child::after,
.wc-block-checkout__payment-method .wc-block-components-radio-control__option:last-child::after {
    border-width: 0 !important;
    border: none !important;
    display: none !important;
    content: none !important;
}


/* ========================================================
   دیزاین حرفه‌ای و اپلیکیشنی فیلد یادداشت سفارش (Textarea)
======================================================== */

/* ۱. استایل پایه و نرمال کادر */
.wc-block-components-textarea,
.wc-block-components-textarea textarea {
    background-color: #ffffff !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 12px !important;
    /* لبه‌های گرد هماهنگ با بقیه سایت */
    padding: 16px !important;
    color: #475569 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 10px rgba(11, 28, 61, 0.02) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-height: 120px !important;
    /* ارتفاع اولیه مناسب */
    resize: vertical !important;
    /* فقط در ارتفاع قابل تغییر باشد */
    line-height: 1.8 !important;
}

/* ۲. افکت هنگام رفتن موس روی کادر (Hover) */
.wc-block-components-textarea:hover,
.wc-block-components-textarea textarea:hover {
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 15px rgba(11, 28, 61, 0.04) !important;
}

/* ۳. جادوی اصلی: افکت هنگام کلیک و تایپ کردن (Focus) */
.wc-block-components-textarea:focus-within,
.wc-block-components-textarea textarea:focus {
    border-color: #00843d !important;
    /* حاشیه طلایی برند شما */
    box-shadow: 0 0 0 4px rgba(0, 132, 61, 0.15) !important;
    /* هاله نور طلایی دور کادر */
    outline: none !important;
    background-color: #f0faf4 !important;
    /* تغییر بسیار ملایم رنگ پس‌زمینه به کرم */
}

/* ۴. استایل متن راهنما (Placeholder) - مثلاً "یادداشتی به سفارش خود اضافه کنید" */
.wc-block-components-textarea textarea::placeholder {
    color: #94a3b8 !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
}



.wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
    background-color: currentColor;
    content: "";
    display: block;
    height: 3em;
    margin: 0 auto 0.6em;
    mask-size: 3em;
    width: 5em;
}

/* حل مشکل زوم خودکار فیلدها در موبایل */
@media screen and (max-width: 767px) {

    .wc-block-components-text-input input,
    .wc-block-components-select__select {
        font-size: 16px !important;
    }

    /* اگر لیبل‌ها هم هنگام تایپ کوچک می‌شوند، آن‌ها را هم اصلاح می‌کنیم */
    .wc-block-components-text-input label {
        font-size: 16px !important;
    }
}

/* ========================================================
   استایل مینیمال، مدرن و سبک صفحه‌بندی (WooCommerce Pagination)
======================================================== */
.woocommerce nav.woocommerce-pagination,
.woocommerce-page nav.woocommerce-pagination,
nav.woocommerce-pagination {
    margin: 40px auto 30px !important;
    padding: 0 !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    clear: both !important;
}

.woocommerce nav.woocommerce-pagination ul,
.woocommerce-page nav.woocommerce-pagination ul,
nav.woocommerce-pagination ul.page-numbers {
    display: inline-flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    list-style: none !important;
    white-space: normal !important;
}

.woocommerce nav.woocommerce-pagination ul li,
.woocommerce-page nav.woocommerce-pagination ul li,
nav.woocommerce-pagination ul.page-numbers li {
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex !important;
    float: none !important;
    list-style: none !important;
    overflow: visible !important;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span,
.woocommerce-page nav.woocommerce-pagination ul li a,
.woocommerce-page nav.woocommerce-pagination ul li span,
nav.woocommerce-pagination ul.page-numbers li a,
nav.woocommerce-pagination ul.page-numbers li span {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    font-family: inherit !important;
    line-height: 1 !important;
    text-decoration: none !important;
    background-color: #ffffff !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce-page nav.woocommerce-pagination ul li a:hover,
nav.woocommerce-pagination ul.page-numbers li a:hover {
    background-color: #f0faf4 !important;
    color: #00843d !important;
    border-color: #00843d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 132, 61, 0.12) !important;
}

.woocommerce nav.woocommerce-pagination ul li span.current,
.woocommerce-page nav.woocommerce-pagination ul li span.current,
nav.woocommerce-pagination ul.page-numbers li span.current {
    background-color: #00843d !important;
    color: #ffffff !important;
    border-color: #00843d !important;
    box-shadow: 0 4px 12px rgba(0, 132, 61, 0.28) !important;
    font-weight: 700 !important;
    cursor: default !important;
    transform: none !important;
}

.woocommerce nav.woocommerce-pagination ul li span.dots,
.woocommerce-page nav.woocommerce-pagination ul li span.dots,
nav.woocommerce-pagination ul.page-numbers li span.dots {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    color: #94a3b8 !important;
    min-width: 28px !important;
    cursor: default !important;
    font-weight: 700 !important;
}

.woocommerce nav.woocommerce-pagination ul li a.next,
.woocommerce nav.woocommerce-pagination ul li a.prev,
.woocommerce-page nav.woocommerce-pagination ul li a.next,
.woocommerce-page nav.woocommerce-pagination ul li a.prev,
nav.woocommerce-pagination ul.page-numbers li a.next,
nav.woocommerce-pagination ul.page-numbers li a.prev {
    font-size: 1.25rem !important;
    color: #334155 !important;
}

.woocommerce nav.woocommerce-pagination ul li a.next:hover,
.woocommerce nav.woocommerce-pagination ul li a.prev:hover,
.woocommerce-page nav.woocommerce-pagination ul li a.next:hover,
.woocommerce-page nav.woocommerce-pagination ul li a.prev:hover,
nav.woocommerce-pagination ul.page-numbers li a.next:hover,
nav.woocommerce-pagination ul.page-numbers li a.prev:hover {
    color: #00843d !important;
    background-color: #f0faf4 !important;
    border-color: #00843d !important;
}

@media (max-width: 480px) {
    .woocommerce nav.woocommerce-pagination ul,
    .woocommerce-page nav.woocommerce-pagination ul,
    nav.woocommerce-pagination ul.page-numbers {
        gap: 6px !important;
    }

    .woocommerce nav.woocommerce-pagination ul li a,
    .woocommerce nav.woocommerce-pagination ul li span,
    .woocommerce-page nav.woocommerce-pagination ul li a,
    .woocommerce-page nav.woocommerce-pagination ul li span,
    nav.woocommerce-pagination ul.page-numbers li a,
    nav.woocommerce-pagination ul.page-numbers li span {
        min-width: 36px !important;
        height: 36px !important;
        padding: 0 8px !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
    }
}

/* تضمین رنگ متن سفید برای تب فعال و بج‌های دسته‌بندی وبلاگ */
.hospa-blog-tab.is-active,
a.hospa-blog-tab.is-active,
.hospa-blog-tab.is-active .hospa-blog-tab__count,
a.hospa-blog-tab.is-active .hospa-blog-tab__count,
.hospa-blog-card__cat,
a.hospa-blog-card__cat {
    color: #ffffff !important;
}