﻿/* =========================
   Speedy Market Theme Base
========================= */

body {
    background-color: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A);
}

.store-page {
    --theme-white: #ffffff;
    --theme-black: #000000;
    --theme-danger: #bb2d3b;
    --theme-soft-background: rgba(51, 70, 129, 0.06);
    --theme-light-border: rgba(51, 70, 129, 0.12);

    min-height: 100vh;
    background: var(--theme-background, #F6F8FC);
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
    font-size: var(--theme-base_font_size, 14px);
}

.store-page a {
    color: inherit;
}

.store-page button,
.store-page input,
.store-page textarea,
.store-page select {
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
}

#dark_div,
.store-dark-layer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1900 !important;
    background: rgba(0, 0, 0, 0.6) !important;
    opacity: 1 !important;
    display: none;
}

#myNav.overlay {
    z-index: 2000 !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
}

#myNav .overlay-content {
    z-index: 2001 !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
}

#myNav .overlay-content,
#hiden_menu {
    position: relative !important;
    z-index: 2001 !important;
}

#hiden_menu {
    background: var(--theme-surface, #ffffff) !important;
    color: var(--theme-text, #1A1A1A) !important;
    border-radius: var(--theme-cart_radius, 20px) var(--theme-cart_radius, 20px) 0 0 !important;
    box-shadow: 0 -12px 36px rgba(15, 23, 42, 0.16);
    border-top: 1px solid var(--theme-border, #E5E7EB);
}

#hiden_menu .cart-panel,
#myNav .cart-panel,
#hiden_menu .cart-panel-header,
#myNav .cart-panel-header,
#hiden_menu .cart-list,
#myNav .cart-list,
#hiden_menu .checkout-summary,
#myNav .checkout-summary {
    background: var(--theme-surface, #ffffff) !important;
    color: var(--theme-text, #1A1A1A) !important;
    border-color: var(--theme-border, #E5E7EB) !important;
}

#hiden_menu .cart-panel-title,
#myNav .cart-panel-title {
    color: var(--theme-text, #1A1A1A) !important;
}

#hiden_menu .cart-clean-button,
#myNav .cart-clean-button {
    color: var(--theme-muted, #6B7280) !important;
}

#hiden_menu .cart-clean-button:hover,
#myNav .cart-clean-button:hover {
    color: var(--theme-secondary, #FF7A00) !important;
}

#hiden_menu .cart-item,
#myNav .cart-item,
#hiden_menu .list-group-item,
#myNav .list-group-item {
    background: var(--theme-surface, #ffffff) !important;
    color: var(--theme-text, #1A1A1A) !important;
    border-color: var(--theme-border, #E5E7EB) !important;
}

#hiden_menu .checkout-button,
#myNav .checkout-button {
    background: var(--theme-secondary, #FF7A00) !important;
    color: var(--theme-white, #ffffff) !important;
    border-radius: var(--theme-button_radius, 12px) !important;
}

#hiden_menu hr,
#myNav hr {
    border-color: var(--theme-border, #E5E7EB) !important;
    opacity: 1;
}


/* =========================
   Product Card
========================= */

.product-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    background: var(--theme-surface, #ffffff) !important;
    border: 1px solid var(--theme-border, #E5E7EB);
    border-radius: var(--theme-card_radius, 16px) !important;
    overflow: hidden;
    transition: 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
}

.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-link:hover {
    color: inherit;
}

.product-image-box {
    position: relative;
    background: var(--theme-background, #F6F8FC);
}

.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.product-card-body {
    text-align: left;
    background: var(--theme-surface, #ffffff);
}

.product-name {
    color: var(--theme-text, #1A1A1A);
}

.product-price-block {
    min-height: 48px;
}

.product-price {
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
    font-weight: 300;
    font-size: var(--theme-price_size, 14px);
    color: var(--theme-muted, #797979);
}

.product-offprice {
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
    font-weight: 700;
    margin-top: -2px;
    color: var(--theme-secondary, #FF7A00) !important;
    font-size: var(--theme-price_size, 14px);
}

.product-price.is-hidden,
.product-offprice.is-hidden,
.product-instock.is-hidden {
    display: none;
}

.product-price.is-invisible {
    visibility: hidden;
}

.product-actions {
    text-align: left;
    margin-top: -41px;
}

.product-remove-button,
.product-add-button {
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
    font-weight: 300;
    visibility: hidden;
}

.product-qty {
    min-width: 12px;
    text-align: center;
    margin-right: 0px;
    margin-left: 0px;
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
    font-weight: 300;
    visibility: hidden;
}

.product-unavailable-badge {
    background: var(--theme-danger, #bb2d3b);
    color: var(--theme-white, #ffffff);
}

.product-discount-badge {
    background: var(--theme-secondary, #FF7A00);
    color: var(--theme-white, #ffffff);
    border-radius: 999px;
    padding: 3px 8px;
    font-size: 11px;
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
    font-weight: 700;
}

.catalog-contact-link {
    color: var(--theme-secondary, #FF7A00);
    text-decoration: none;
    font-family: var(--theme-font_family, sahan-vazir, sans-serif);
    font-weight: 700;
    cursor: pointer;
}

.catalog-contact-link:hover {
    color: var(--theme-secondary, #FF7A00);
}


/* =========================
   Buttons
========================= */

.sahan_button_reg,
.sahan_button_reg2,
.sahan_button_reg3,
.theme-button {
    background: var(--theme-secondary, #FF7A00) !important;
    border-radius: var(--theme-button_radius, 12px) !important;
}

.product-purchase-box .sahan_button_reg3,
.product-purchase-box #btn_add_to_cart,
.product-purchase-box #btn_contact_for_price {
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.6 !important;
}


/* =========================
   Product  Page
========================= */

body.store-page {
    font-family: var(--theme-font_family, sahan-vazir), sans-serif;
    background-color: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A);
}

.product-page {
    min-height: 100vh;
}

.product-page-container {
    background: var(--theme-surface, #FFFFFF);
    margin-top: 8px;
    padding-bottom: 0;
    border-radius: var(--theme-card_radius, 20px);
    overflow: hidden;
}

.product-cart-side {
    z-index: 1;
}

.product-final-price {
    color: var(--theme-secondary, #FF7A00);
    font-family: var(--theme-font_family, sahan-vazir), sans-serif;
    font-weight: 700;
    margin: 0;
}

.product-old-price {
    color: var(--theme-muted, #6B7280);
    font-family: var(--theme-font_family, sahan-vazir), sans-serif;
    font-weight: 300;
}

.cart-item-price {
    color: var(--theme-muted, #6B7280);
}

.cart-item-offprice {
    color: var(--theme-secondary, #FF7A00);
}

.cart-item:not(.has-discount) .cart-item-offprice {
    color: var(--theme-primary, #334681);
}

.product-cart-box {
    background-color: var(--theme-surface, #FFFFFF);
    height: auto;
    margin-top: 8px;
    text-align: start;
    border-radius: var(--theme-cart_radius, 20px);
    border-color: var(--theme-border, rgba(51, 70, 129, 0.12)) !important;
    box-shadow: var(--theme-card_shadow, 0 10px 30px rgba(31, 42, 77, 0.08));
    overflow: hidden;
}

.product-mobile-cart-bar {
    height: 54px;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--theme-primary, #334681), var(--theme-primary-dark, #1F2A4D));
    padding-left: 10px;
    padding-right: 10px;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    z-index: 10;
    box-shadow: 0 -10px 28px rgba(31, 42, 77, 0.22);
}

.product-mobile-cart-bar label {
    color: #FFFFFF !important;
}

.store-dark-backdrop {
    background: rgba(0, 0, 0, 0.55);
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: none;
}

/* =========================
   Product Variation Buttons
========================= */

.product-variation-box,
#productVariationBox {
    margin-top: 18px;
}

.variation-attribute {
    margin-bottom: 18px;
}

.variation-attribute-title {
    margin-bottom: 10px;
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    font-weight: 700;
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.variation-option {
    min-height: 38px;
    padding: 8px 14px;
    border-radius: var(--theme-button_radius, 16px);
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.16));
    background: var(--theme-surface, #FFFFFF);
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    cursor: pointer;
    transition: 0.18s ease;
}

.variation-option:hover {
    border-color: var(--theme-primary, #334681);
    color: var(--theme-primary, #334681);
    background: rgba(51, 70, 129, 0.06);
}

.variation-option.active {
    border-color: var(--theme-primary, #334681);
    background: var(--theme-primary, #334681);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(51, 70, 129, 0.22);
}

.variation-option.is-switchable:not(.active) {
    border-color: var(--theme-secondary, #FF7A00);
    color: var(--theme-secondary, #FF7A00);
    background: rgba(255, 122, 0, 0.08);
}

.variation-option.is-disabled,
.variation-option:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    border-color: var(--theme-border, rgba(51, 70, 129, 0.12));
    background: rgba(107, 114, 128, 0.08);
    color: var(--theme-muted, #6B7280);
    box-shadow: none;
}

.variation-option.is-disabled:hover,
.variation-option:disabled:hover {
    border-color: var(--theme-border, rgba(51, 70, 129, 0.12));
    background: rgba(107, 114, 128, 0.08);
    color: var(--theme-muted, #6B7280);
}

#variationSelectionHint,
.variation-selection-hint {
    margin-top: 6px;
    color: var(--theme-muted, #6B7280);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 12px;
    line-height: 1.8;
}

/* Mobile */
@media (max-width: 768px) {

    .variation-options {
        gap: 7px;
    }

    .variation-option {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 12px;
        border-radius: var(--theme-button_radius, 14px);
    }

}

/* =========================
   Product Variation Button Click State Fix
========================= */

.variation-option,
.variation-option.btn,
.variation-option.btn-success,
.variation-option.btn-outline-success {
    border-color: var(--theme-border, rgba(51, 70, 129, 0.16)) !important;
    background-color: var(--theme-surface, #FFFFFF) !important;
    color: var(--theme-text, #1A1A1A) !important;
    box-shadow: none !important;
}

.variation-option:hover,
.variation-option.btn:hover,
.variation-option.btn-success:hover,
.variation-option.btn-outline-success:hover {
    border-color: var(--theme-primary, #334681) !important;
    background-color: rgba(51, 70, 129, 0.06) !important;
    color: var(--theme-primary, #334681) !important;
    box-shadow: none !important;
}

.variation-option:focus,
.variation-option:active,
.variation-option:focus-visible,
.variation-option.btn:focus,
.variation-option.btn:active,
.variation-option.btn:focus-visible,
.variation-option.btn-success:focus,
.variation-option.btn-success:active,
.variation-option.btn-success:focus-visible,
.variation-option.btn-outline-success:focus,
.variation-option.btn-outline-success:active,
.variation-option.btn-outline-success:focus-visible {
    border-color: var(--theme-primary, #334681) !important;
    background-color: rgba(51, 70, 129, 0.10) !important;
    color: var(--theme-primary, #334681) !important;
    box-shadow: 0 0 0 3px rgba(51, 70, 129, 0.12) !important;
    outline: none !important;
}

.variation-option.active,
.variation-option.active:hover,
.variation-option.active:focus,
.variation-option.active:active,
.variation-option.btn.active,
.variation-option.btn.active:hover,
.variation-option.btn.active:focus,
.variation-option.btn.active:active,
.variation-option.btn-success.active,
.variation-option.btn-success.active:hover,
.variation-option.btn-success.active:focus,
.variation-option.btn-success.active:active,
.variation-option.btn-outline-success.active,
.variation-option.btn-outline-success.active:hover,
.variation-option.btn-outline-success.active:focus,
.variation-option.btn-outline-success.active:active {
    border-color: var(--theme-primary, #334681) !important;
    background-color: var(--theme-primary, #334681) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 18px rgba(51, 70, 129, 0.22) !important;
}

.variation-option.is-switchable:not(.active),
.variation-option.is-switchable:not(.active):hover,
.variation-option.is-switchable:not(.active):focus,
.variation-option.is-switchable:not(.active):active {
    border-color: var(--theme-secondary, #FF7A00) !important;
    background-color: rgba(255, 122, 0, 0.08) !important;
    color: var(--theme-secondary, #FF7A00) !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.10) !important;
}

.variation-option.is-disabled,
.variation-option.is-disabled:hover,
.variation-option.is-disabled:focus,
.variation-option.is-disabled:active,
.variation-option:disabled,
.variation-option:disabled:hover,
.variation-option:disabled:focus,
.variation-option:disabled:active {
    border-color: var(--theme-border, rgba(51, 70, 129, 0.12)) !important;
    background-color: rgba(107, 114, 128, 0.08) !important;
    color: var(--theme-muted, #6B7280) !important;
    box-shadow: none !important;
}


/* =========================
   Checkout Page Theme
========================= */

.checkout-page {
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
}

.checkout-container {
    margin-top: 0;
}

.checkout-main-card {
    background: var(--theme-surface, #FFFFFF);
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12));
    border-radius: var(--theme-card_radius, 20px);
    box-shadow: var(--theme-card_shadow, 0 10px 30px rgba(31, 42, 77, 0.06));
    min-height: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.checkout-title-col {
    text-align: right;
}

.checkout-back-col {
    text-align: left;
}

.checkout-page-title {
    margin: 0;
    color: var(--theme-text, #1A1A1A);
    font-size: 16px;
    font-weight: 700;
}

.checkout-back-link {
    color: var(--theme-primary-dark, #1F2A4D);
    font-size: 13px;
    text-decoration: none;
}

.checkout-back-link:hover {
    color: var(--theme-primary, #334681);
}

.checkout-page hr {
    border-color: var(--theme-border, rgba(51, 70, 129, 0.14));
    opacity: 1;
}

.checkout-page .form-group {
    text-align: right;
    margin-bottom: 16px;
}

.checkout-page .form-group span {
    display: block;
    margin-bottom: 7px;
    color: var(--theme-muted, #6B7280);
    font-size: 13px;
    font-weight: 500;
}

.checkout-page .form-field {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.14));
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-surface, #FFFFFF);
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: 0.18s ease;
}

.checkout-page .form-field:focus {
    border-color: var(--theme-primary, #334681);
    box-shadow: 0 0 0 3px rgba(51, 70, 129, 0.10);
}

.checkout-page .form-field::placeholder {
    color: var(--theme-muted, #6B7280);
}

.checkout-shipping-button {
    background: var(--theme-secondary, #FF7A00) !important;
    border: 1px solid var(--theme-secondary, #FF7A00) !important;
    color: #ffffff !important;
    border-radius: var(--theme-button_radius, 16px);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    padding: 9px 16px;
    box-shadow: 0 8px 18px rgba(255, 122, 0, 0.18);
}

.checkout-shipping-button:hover,
.checkout-shipping-button:focus,
.checkout-shipping-button:active {
    background: var(--theme-secondary, #FF7A00) !important;
    border-color: var(--theme-secondary, #FF7A00) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.16) !important;
}

.checkout-shipping-menu {
    background: var(--theme-secondary, #FF7A00);
    border: none;
    border-radius: var(--theme-button_radius, 16px);
    padding: 8px;
    overflow: hidden;
}

.checkout-shipping-list {
    background: var(--theme-secondary, #FF7A00);
}

.checkout-shipping-menu .dropdown-item {
    color: #ffffff;
    border-radius: 12px;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    padding: 9px 12px;
}

.checkout-shipping-menu .dropdown-item:hover,
.checkout-shipping-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

#btn_send_to_IPG,
.checkout-page .sahan_button_reg {
    background: var(--theme-primary, #334681) !important;
    border: none !important;
    border-radius: var(--theme-button_radius, 16px);
    color: #ffffff !important;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    min-height: 44px;
    box-shadow: 0 10px 24px rgba(51, 70, 129, 0.20);
}

#btn_send_to_IPG:hover,
.checkout-page .sahan_button_reg:hover {
    background: var(--theme-primary-dark, #1F2A4D) !important;
}

.checkout-cart-panel {
    background: var(--theme-surface, #FFFFFF);
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12));
    border-radius: var(--theme-cart_radius, 20px);
    box-shadow: var(--theme-card_shadow, 0 10px 30px rgba(31, 42, 77, 0.06));
    height: auto;
    margin-top: 8px;
    text-align: start;
    overflow: hidden;
}

#lbl_cart_qty {
    color: var(--theme-text, #1A1A1A);
    font-size: 14px;
    font-weight: 700;
}

#img_clean_factor {
    color: var(--theme-secondary, #FF7A00);
    font-size: 13px;
    cursor: pointer;
}

.checkout-page .cart-item {
    background: var(--theme-surface, #FFFFFF);
    border-color: var(--theme-border, rgba(51, 70, 129, 0.10));
    color: var(--theme-text, #1A1A1A);
}

.checkout-page .cart-item-name {
    color: var(--theme-text, #1A1A1A);
}

.checkout-page .cart-item-price {
    color: var(--theme-muted, #6B7280);
}

.checkout-page .cart-item-offprice {
    color: var(--theme-primary, #334681);
}

.checkout-page .cart-add-button,
.checkout-page .cart-remove-button,
.checkout-page .sahan_button {
    border-color: var(--theme-primary, #334681) !important;
    color: var(--theme-primary, #334681) !important;
    background: transparent !important;
}

.checkout-page .cart-add-button:hover,
.checkout-page .cart-remove-button:hover,
.checkout-page .sahan_button:hover {
    background: var(--theme-primary, #334681) !important;
    color: #ffffff !important;
}

#lbl_sum,
#lbl_off,
#lbl_shipiing,
#lbl_total_sum {
    color: var(--theme-text, #1A1A1A) !important;
}

#lbl_total_off_sum {
    color: var(--theme-secondary, #FF7A00) !important;
    font-weight: 700;
}

#txt_copun {
    border-color: var(--theme-border, rgba(51, 70, 129, 0.14));
    border-radius: var(--theme-button_radius, 16px);
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
}

#btn_copun_reg,
.checkout-page .sahan_button_reg2 {
    background: var(--theme-secondary, #FF7A00) !important;
    color: #ffffff !important;
    border-radius: var(--theme-button_radius, 16px);
    font-family: var(--theme-font_family, sahan-vazir);
}

.checkout-return-button {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-muted, #6B7280);
    color: #ffffff;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
}

.checkout-return-button:hover {
    background: var(--theme-primary-dark, #1F2A4D);
}

.checkout-mobile-cart-bar {
    height: 54px;
    background: linear-gradient(135deg, var(--theme-primary, #334681), var(--theme-primary-dark, #1F2A4D));
    padding-left: 10px;
    padding-right: 10px;
    display: none;
    color: #ffffff;
    box-shadow: 0 -8px 22px rgba(31, 42, 77, 0.18);
}

.checkout-mobile-cart-bar label,
.checkout-mobile-cart-bar #bottom_sum_bill {
    color: #ffffff !important;
    font-family: var(--theme-font_family, sahan-vazir);
}

@media only screen and (max-width: 600px) {

    .checkout-page .col-3 {
        display: none;
    }

}

@media only screen and (max-width: 990px) {

    .checkout-main-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }

    .checkout-page .pt-0[style*="padding-right: 40px"],
    .checkout-page .row[style*="padding-right: 40px"] {
        padding-right: 16px !important;
        padding-left: 16px !important;
    }

    .checkout-mobile-cart-bar {
        display: block;
    }

}

.checkout-dark-backdrop {
    background: rgba(0, 0, 0, 0.58);
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 2;
    display: none;
    top: 0;
    right: 0;
}

.checkout-form-section {
    padding-right: 40px;
    padding-left: 40px;
}

@media only screen and (max-width: 990px) {

    .checkout-form-section {
        padding-right: var(--theme-page_padding_mobile, 16px);
        padding-left: var(--theme-page_padding_mobile, 16px);
    }

}

.checkout-dotted-line {
    margin-top: 25px;
    margin-bottom: 25px;
    border: none;
    border-top: 1px dotted var(--theme-muted, #6B7280);
    opacity: 0.65;
}

.checkout-dotted-line-small {
    margin-top: 20px;
    margin-bottom: 20px;
}

.checkout-submit-button {
    min-height: 46px;
    padding-right: 40px;
    padding-left: 40px;
    margin-top: 10px;
    margin-bottom: 50px;
    border: none;
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-secondary, #FF7A00) !important;
    color: #ffffff;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(51, 70, 129, 0.20);
    transition: 0.18s ease;
}

.checkout-submit-button:hover,
.checkout-submit-button:focus {
    background: var(--theme-secondary, #FF7A00) !important;
    color: #ffffff;
    outline: none;
}

.checkout-submit-button.btn-loading {
    opacity: 0.75;
}

.checkout-description-field {
    height: 200px;
    resize: vertical;
}

.checkout-cart-header {
    min-height: 38px;
    align-items: center;
}

.checkout-cart-title {
    margin-top: 10px;
    margin-right: 15px;
    color: var(--theme-text, #1A1A1A);
    font-size: 14px;
    font-weight: 700;
}

.checkout-cart-clean {
    margin-top: 10px;
    margin-left: 15px;
    text-align: left;
    color: var(--theme-secondary, #FF7A00);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.checkout-cart-list {
    margin-top: -14px;
    margin-bottom: -14px;
    max-height: 400px;
    overflow-y: auto;
}

.checkout-cart-list::-webkit-scrollbar {
    width: 5px;
}

.checkout-cart-list::-webkit-scrollbar-thumb {
    background: var(--theme-border, rgba(51, 70, 129, 0.16));
    border-radius: 20px;
}

.checkout-page #div_bill_sum {
    color: var(--theme-text, #1A1A1A);
    font-size: 13px;
}

.checkout-page #div_bill_sum .container {
    color: var(--theme-text, #1A1A1A);
}

.checkout-page #lbl_sum,
.checkout-page #lbl_off,
.checkout-page #lbl_shipiing,
.checkout-page #lbl_copun_amount {
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir);
}

.checkout-page #lbl_total_sum {
    color: var(--theme-muted, #6B7280) !important;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
}

.checkout-page #lbl_total_off_sum {
    color: var(--theme-secondary, #FF7A00) !important;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 16px;
    font-weight: 700;
}

.checkout-coupon-input {
    width: 100%;
    min-height: 40px;
    margin-left: 0;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.14));
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-surface, #FFFFFF);
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
}

.checkout-coupon-input:focus {
    border-color: var(--theme-primary, #334681);
    box-shadow: 0 0 0 3px rgba(51, 70, 129, 0.10);
}

.checkout-coupon-button {
    width: 100%;
    min-height: 40px;
    margin-right: 0;
    border: none;
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-secondary, #FF7A00);
    color: #ffffff;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    font-weight: 600;
}

.checkout-coupon-error {
    text-align: right;
    margin-bottom: -3px;
    font-size: 13px;
    color: var(--theme-danger, #bb2d3b);
    font-weight: 500;
    display: none;
}

.checkout-mobile-cart-row {
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.checkout-mobile-cart-bar {
    height: 54px;
    background: linear-gradient(135deg, var(--theme-primary, #334681), var(--theme-primary-dark, #1F2A4D));
    padding-left: 10px;
    padding-right: 10px;
    display: none;
    color: #ffffff;
    box-shadow: 0 -8px 22px rgba(31, 42, 77, 0.18);
    z-index: 20;
}

/* =========================
   Checkout Page Theme
========================= */

.checkout-page {
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
}

.checkout-container {
    margin-top: 0;
}

.checkout-main-card {
    background: var(--theme-surface, #FFFFFF);
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12));
    border-radius: var(--theme-card_radius, 20px);
    box-shadow: var(--theme-card_shadow, 0 10px 30px rgba(31, 42, 77, 0.06));
    min-height: 100%;
    margin-bottom: 0;
    overflow: hidden;
}

.checkout-title-col {
    text-align: right;
}

.checkout-back-col {
    text-align: left;
}

.checkout-page-title {
    margin: 0;
    color: var(--theme-text, #1A1A1A);
    font-size: 16px;
    font-weight: 700;
}

.checkout-back-link {
    color: var(--theme-primary-dark, #1F2A4D);
    font-size: 13px;
    text-decoration: none;
}

.checkout-back-link:hover {
    color: var(--theme-primary, #334681);
}

.checkout-page hr {
    border-color: var(--theme-border, rgba(51, 70, 129, 0.14));
    opacity: 1;
}

.checkout-form-section {
    padding-right: 40px;
    padding-left: 40px;
}

.checkout-page .form-group {
    text-align: right;
    margin-bottom: 16px;
}

.checkout-page .form-group span {
    display: block;
    margin-bottom: 7px;
    color: var(--theme-muted, #6B7280);
    font-size: 13px;
    font-weight: 500;
}

.checkout-page .form-field {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.14));
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-surface, #FFFFFF);
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    padding: 10px 14px;
    outline: none;
    transition: 0.18s ease;
}

.checkout-page .form-field:focus {
    border-color: var(--theme-primary, #334681);
    box-shadow: 0 0 0 3px rgba(51, 70, 129, 0.10);
}

.checkout-page .form-field::placeholder {
    color: var(--theme-muted, #6B7280);
}

.checkout-description-field {
    height: 200px;
    resize: vertical;
}

.checkout-dotted-line {
    margin-top: 25px;
    margin-bottom: 25px;
    border: none;
    border-top: 1px dotted var(--theme-muted, #6B7280);
    opacity: 0.65;
}

.checkout-dotted-line-small {
    margin-top: 20px;
    margin-bottom: 20px;
}

.checkout-shipping-button {
    background: var(--theme-secondary, #FF7A00) !important;
    border: 1px solid var(--theme-secondary, #FF7A00) !important;
    color: #ffffff !important;
    border-radius: var(--theme-button_radius, 16px);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    padding: 9px 16px;
    box-shadow: 0 8px 18px rgba(255, 122, 0, 0.18);
}

.checkout-shipping-button:hover,
.checkout-shipping-button:focus,
.checkout-shipping-button:active {
    background: var(--theme-secondary, #FF7A00) !important;
    border-color: var(--theme-secondary, #FF7A00) !important;
    color: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.16) !important;
}

.checkout-shipping-menu {
    background: var(--theme-secondary, #FF7A00);
    border: none;
    border-radius: var(--theme-button_radius, 16px);
    padding: 8px;
    overflow: hidden;
}

.checkout-shipping-list {
    background: var(--theme-secondary, #FF7A00);
}

.checkout-shipping-menu .dropdown-item {
    color: #ffffff;
    border-radius: 12px;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    padding: 9px 12px;
}

.checkout-shipping-menu .dropdown-item:hover,
.checkout-shipping-menu .dropdown-item:focus {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}


.checkout-submit-button.btn-loading {
    opacity: 0.75;
}

.checkout-cart-panel {
    background: var(--theme-surface, #FFFFFF);
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12));
    border-radius: var(--theme-cart_radius, 20px);
    box-shadow: var(--theme-card_shadow, 0 10px 30px rgba(31, 42, 77, 0.06));
    height: auto;
    margin-top: 8px;
    text-align: start;
    overflow: hidden;
}

.checkout-cart-header {
    min-height: 38px;
    align-items: center;
}

.checkout-cart-title {
    margin-top: 10px;
    margin-right: 15px;
    color: var(--theme-text, #1A1A1A);
    font-size: 14px;
    font-weight: 700;
}

.checkout-cart-clean {
    margin-top: 10px;
    margin-left: 15px;
    text-align: left;
    color: var(--theme-secondary, #FF7A00);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
}

.checkout-cart-list {
    margin-top: -14px;
    margin-bottom: -14px;
    max-height: 400px;
    overflow-y: auto;
}

.checkout-cart-list::-webkit-scrollbar {
    width: 5px;
}

.checkout-cart-list::-webkit-scrollbar-thumb {
    background: var(--theme-border, rgba(51, 70, 129, 0.16));
    border-radius: 20px;
}

/* =========================
   Checkout JS Cart Items
========================= */

.checkout-cart-item {
    padding-top: 12px;
    padding-bottom: 10px !important;
    background: var(--theme-surface, #FFFFFF) !important;
    border-color: var(--theme-border, rgba(51, 70, 129, 0.10)) !important;
    color: var(--theme-text, #1A1A1A);
}

.checkout-cart-item-info {
    min-width: 0;
}

.checkout-cart-item-name {
    margin-bottom: 6px;
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.checkout-cart-item-price {
    margin-top: -4px;
    margin-bottom: 0;
    color: var(--theme-muted, #6B7280);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 11px;
    font-weight: 400;
    text-decoration: line-through;
}

.checkout-cart-item-offprice {
    margin-top: -1px;
    margin-bottom: 0;
    color: var(--theme-secondary, #FF7A00);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    font-weight: 700;
}

.checkout-cart-item.no-discount .checkout-cart-item-price {
    display: none;
    margin: 0;
}

.checkout-cart-item.no-discount .checkout-cart-item-offprice {
    margin-top: -3px;
    margin-bottom: 0;
    color: var(--theme-primary, #334681);
    font-size: 12px;
    font-weight: 500;
}

.checkout-cart-item-qty {
    min-width: 24px;
    height: 24px;
    margin-right: 6px;
    margin-left: 2px;
    margin-top: 4px;
    border-radius: 999px;
    background: rgba(51, 70, 129, 0.08);
    color: var(--theme-primary, #334681);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 12px;
    font-weight: 700;
    line-height: 24px;
    text-align: center;
}

.checkout-page #div_bill_sum {
    color: var(--theme-text, #1A1A1A);
    font-size: 13px;
}

.checkout-page #div_bill_sum .container {
    color: var(--theme-text, #1A1A1A);
}

.checkout-page #lbl_sum,
.checkout-page #lbl_off,
.checkout-page #lbl_shipiing,
.checkout-page #lbl_copun_amount {
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir);
}

.checkout-page #lbl_total_sum {
    color: var(--theme-muted, #6B7280) !important;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
}

.checkout-page #lbl_total_off_sum {
    color: var(--theme-secondary, #FF7A00) !important;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 16px;
    font-weight: 700;
}

.checkout-coupon-input {
    width: 100%;
    min-height: 40px;
    margin-left: 0;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.14));
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-surface, #FFFFFF);
    color: var(--theme-text, #1A1A1A);
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    padding: 8px 12px;
    outline: none;
}

.checkout-coupon-input:focus {
    border-color: var(--theme-primary, #334681);
    box-shadow: 0 0 0 3px rgba(51, 70, 129, 0.10);
}

.checkout-coupon-button {
    width: 100%;
    min-height: 40px;
    margin-right: 0;
    border: none;
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-secondary, #FF7A00);
    color: #ffffff;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 13px;
    font-weight: 600;
}

.checkout-coupon-error {
    text-align: right;
    margin-bottom: -3px;
    font-size: 13px;
    color: var(--theme-danger, #bb2d3b);
    font-weight: 500;
    display: none;
}

.checkout-return-button {
    width: 100%;
    min-height: 42px;
    border: none;
    border-radius: var(--theme-button_radius, 16px);
    background: var(--theme-muted, #6B7280);
    color: #ffffff;
    font-family: var(--theme-font_family, sahan-vazir);
    font-size: 14px;
}

.checkout-return-button:hover {
    background: var(--theme-primary-dark, #1F2A4D);
}

.checkout-mobile-cart-bar {
    height: 54px;
    background: linear-gradient(135deg, var(--theme-primary, #334681), var(--theme-primary-dark, #1F2A4D));
    padding-left: 10px;
    padding-right: 10px;
    display: none;
    color: #ffffff;
    box-shadow: 0 -8px 22px rgba(31, 42, 77, 0.18);
    z-index: 20;
}

.checkout-mobile-cart-row {
    align-items: center;
    height: 100%;
    cursor: pointer;
}

.checkout-mobile-cart-bar label,
.checkout-mobile-cart-bar #bottom_sum_bill {
    color: #ffffff !important;
    font-family: var(--theme-font_family, sahan-vazir);
}

.checkout-dark-backdrop {
    background: rgba(0, 0, 0, 0.58);
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 2;
    display: none;
    top: 0;
    right: 0;
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: checkout-button-spin 0.7s linear infinite;
}

@keyframes checkout-button-spin {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@media only screen and (max-width: 600px) {

    .checkout-page .col-3 {
        display: none;
    }

}

@media only screen and (max-width: 990px) {

    .checkout-form-section {
        padding-right: var(--theme-page_padding_mobile, 16px);
        padding-left: var(--theme-page_padding_mobile, 16px);
    }

    .checkout-main-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
    }

    .checkout-mobile-cart-bar {
        display: block;
    }

}

/* =========================
   Checkout Field Labels Fix
========================= */

.checkout-page .checkout-field-label,
.checkout-page .form-group .checkout-field-label,
.checkout-page .form-group > span.checkout-field-label {
    display: block !important;
    margin-bottom: 7px !important;
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
}

.checkout-page .form-group {
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir) !important;
}

.checkout-page .form-field,
.checkout-page input.form-field,
.checkout-page textarea.form-field {
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir) !important;
}

.checkout-page .form-field::placeholder {
    color: var(--theme-muted, #6B7280) !important;
}


/* =========================
   Header Logo Radius
   All Themes / All Pages
   Keep At Very Bottom
========================= */

.food-header-logo {
    border-radius: var(--theme-button_radius, 14px) !important;
    overflow: hidden !important;
}

.food-logo-image {
    border-radius: inherit !important;
}

/* =========================
   Amazing Section Image Radius
   Default + SpeedyFood
   Keep At Very Bottom
========================= */

.amazing-section a,
.amazing-products-section a,
.discount-products-section a,
.food-amazing-image-link {
    overflow: hidden !important;
}

.amazing-section img,
.amazing-products-section img,
.discount-products-section img,
.food-amazing-image,
.food-amazing-image-link img {
    border-radius: calc(var(--theme-card_radius, 18px) / 2) !important;
}

.amazing-section [class*="image"],
.amazing-products-section [class*="image"],
.discount-products-section [class*="image"],
.food-amazing-image-link {
    border-radius: calc(var(--theme-card_radius, 18px) / 2) !important;
    overflow: hidden !important;
}

/* =========================
   Contact For Price Button Center Fix
   Keep At Very Bottom
========================= */

#btn_contact_for_price {
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    direction: rtl !important;
    line-height: 1.6 !important;
    white-space: nowrap !important;
}

#btn_contact_for_price * {
    text-align: center !important;
}

/* =========================
   Default Theme Checkout Cart
   Match Default Store Pages
   Keep At Very Bottom
========================= */

body.theme-default.checkout-page .checkout-food-cart-column {
    min-height: 0 !important;
}

body.theme-default.checkout-page .checkout-food-cart-sticky {
    position: sticky !important;
    top: 16px !important;
    height: auto !important;
    max-height: calc(100dvh - 32px) !important;
    min-height: 0 !important;
    margin-right: 8px !important;
    margin-left: 8px !important;
    overflow: visible !important;
}

body.theme-default.checkout-page .checkout-food-cart-panel,
body.theme-default.checkout-page .checkout-cart-panel,
body.theme-default.checkout-page .food-cart-panel {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    transform: none !important;
    display: block !important;
    background: var(--theme-surface, #FFFFFF) !important;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12)) !important;
    border-radius: var(--theme-cart_radius, 20px) !important;
    box-shadow: var(--theme-card_shadow, 0 10px 30px rgba(31, 42, 77, 0.06)) !important;
    overflow: hidden !important;
    text-align: right !important;
}

body.theme-default.checkout-page .checkout-food-cart-inside,
body.theme-default.checkout-page .food-cart-panel-inside {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    display: block !important;
    overflow: visible !important;
    background: var(--theme-surface, #FFFFFF) !important;
}

/* Header مثل دیفالت */

body.theme-default.checkout-page .checkout-food-cart-header,
body.theme-default.checkout-page .food-cart-header {
    min-height: 44px !important;
    padding: 10px 14px !important;
    background: var(--theme-surface, #FFFFFF) !important;
    border-bottom: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12)) !important;
    color: var(--theme-text, #1A1A1A) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
}

body.theme-default.checkout-page .food-cart-kicker {
    color: var(--theme-text, #1A1A1A) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}

body.theme-default.checkout-page .checkout-food-clear-button,
body.theme-default.checkout-page .food-cart-clear-button {
    border: 0 !important;
    background: transparent !important;
    color: var(--theme-secondary, #FF7A00) !important;
    padding: 0 !important;
    border-radius: 0 !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

body.theme-default.checkout-page .checkout-food-clear-button:hover,
body.theme-default.checkout-page .food-cart-clear-button:hover {
    color: var(--theme-primary, #334681) !important;
}

/* List */

body.theme-default.checkout-page .checkout-food-cart-list-parent,
body.theme-default.checkout-page .food-cart-list-parent,
body.theme-default.checkout-page .cart-list-parent {
    min-height: 0 !important;
    max-height: none !important;
    padding: 10px 12px !important;
    background: var(--theme-surface, #FFFFFF) !important;
    overflow: visible !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-list,
body.theme-default.checkout-page .checkout-food-cart-list-parent #cart_list,
body.theme-default.checkout-page .food-cart-list,
body.theme-default.checkout-page #cart_list {
    margin: 0 !important;
    padding: 0 !important;
    max-height: 400px !important;
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-list::-webkit-scrollbar,
body.theme-default.checkout-page #cart_list::-webkit-scrollbar {
    width: 5px;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-list::-webkit-scrollbar-thumb,
body.theme-default.checkout-page #cart_list::-webkit-scrollbar-thumb {
    background: var(--theme-border, rgba(51, 70, 129, 0.16));
    border-radius: 20px;
}

body.theme-default.checkout-page .checkout-food-empty-cart-image {
    width: 100% !important;
    max-width: 155px !important;
    height: auto !important;
    margin: 24px auto !important;
    padding: 0 !important;
    display: block;
    opacity: 0.72;
}

/* Cart Items مثل کارت‌های دیفالت */

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item,
body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-item,
body.theme-default.checkout-page #cart_list .cart-item,
body.theme-default.checkout-page #cart_list .checkout-cart-item {
    width: 100% !important;
    margin: 0 0 8px 0 !important;
    padding: 10px !important;
    background: var(--theme-surface, #FFFFFF) !important;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.10)) !important;
    border-radius: 14px !important;
    color: var(--theme-text, #1A1A1A) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item:last-child,
body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-item:last-child,
body.theme-default.checkout-page #cart_list .cart-item:last-child,
body.theme-default.checkout-page #cart_list .checkout-cart-item:last-child {
    margin-bottom: 0 !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item-info,
body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-item-info,
body.theme-default.checkout-page #cart_list .cart-item-info,
body.theme-default.checkout-page #cart_list .checkout-cart-item-info {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item-name,
body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-item-name,
body.theme-default.checkout-page #cart_list .cart-item-name,
body.theme-default.checkout-page #cart_list .checkout-cart-item-name {
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.7 !important;
    margin: 0 0 5px 0 !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item-price,
body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-item-price,
body.theme-default.checkout-page #cart_list .cart-item-price,
body.theme-default.checkout-page #cart_list .checkout-cart-item-price {
    color: var(--theme-muted, #6B7280) !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    margin: 0 !important;
    text-decoration: line-through !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item-offprice,
body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-item-offprice,
body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-bold-price,
body.theme-default.checkout-page #cart_list .cart-item-offprice,
body.theme-default.checkout-page #cart_list .checkout-cart-item-offprice,
body.theme-default.checkout-page #cart_list .cart-bold-price {
    color: var(--theme-secondary, #FF7A00) !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    margin: 0 !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item:not(.has-discount) .cart-item-offprice,
body.theme-default.checkout-page #cart_list .cart-item:not(.has-discount) .cart-item-offprice {
    color: var(--theme-primary, #334681) !important;
}

/* Qty Buttons مثل دیفالت */

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-remove-button,
body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-add-button,
body.theme-default.checkout-page #cart_list .cart-remove-button,
body.theme-default.checkout-page #cart_list .cart-add-button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border-radius: 999px !important;
    border: 1px solid var(--theme-primary, #334681) !important;
    background: transparent !important;
    color: var(--theme-primary, #334681) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-add-button,
body.theme-default.checkout-page #cart_list .cart-add-button {
    background: var(--theme-primary, #334681) !important;
    color: #FFFFFF !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-remove-button:hover,
body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-add-button:hover,
body.theme-default.checkout-page #cart_list .cart-remove-button:hover,
body.theme-default.checkout-page #cart_list .cart-add-button:hover {
    background: var(--theme-secondary, #FF7A00) !important;
    border-color: var(--theme-secondary, #FF7A00) !important;
    color: #FFFFFF !important;
}

body.theme-default.checkout-page .checkout-food-cart-list-parent .cart-item-qty,
body.theme-default.checkout-page .checkout-food-cart-list-parent .checkout-cart-item-qty,
body.theme-default.checkout-page #cart_list .cart-item-qty,
body.theme-default.checkout-page #cart_list .checkout-cart-item-qty {
    min-width: 24px !important;
    height: 24px !important;
    margin-right: 4px !important;
    margin-left: 2px !important;
    border-radius: 999px !important;
    background: rgba(51, 70, 129, 0.08) !important;
    color: var(--theme-primary, #334681) !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 24px !important;
    text-align: center !important;
}

/* Bill area مثل دیفالت */

body.theme-default.checkout-page .checkout-food-bill,
body.theme-default.checkout-page .food-checkout-summary,
body.theme-default.checkout-page #div_bill_sum {
    margin-top: 0 !important;
    padding: 12px 14px 14px 14px !important;
    background: var(--theme-surface, #FFFFFF) !important;
    border-top: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12)) !important;
    color: var(--theme-text, #1A1A1A) !important;
}

body.theme-default.checkout-page .food-bill-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 13px !important;
}

body.theme-default.checkout-page .food-bill-row strong {
    color: var(--theme-text, #1A1A1A) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

body.theme-default.checkout-page .food-bill-hr {
    border: 0 !important;
    border-top: 1px dotted var(--theme-muted, #6B7280) !important;
    margin: 10px 0 !important;
    opacity: 0.65 !important;
}

body.theme-default.checkout-page #lbl_total_sum {
    color: var(--theme-muted, #6B7280) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
}

body.theme-default.checkout-page #lbl_total_off_sum {
    color: var(--theme-secondary, #FF7A00) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Coupon مثل دیفالت */

body.theme-default.checkout-page .checkout-food-coupon-box {
    display: block !important;
    margin-top: 10px !important;
    text-align: left !important;
}

body.theme-default.checkout-page .checkout-food-coupon-box .checkout-coupon-error {
    margin-bottom: 6px !important;
    color: var(--theme-danger, #bb2d3b) !important;
    font-size: 12px !important;
    text-align: right !important;
}

body.theme-default.checkout-page .checkout-food-coupon-box .checkout-coupon-input {
    width: 100% !important;
    min-height: 40px !important;
    margin-left: 0 !important;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.14)) !important;
    border-radius: var(--theme-button_radius, 16px) !important;
    background: var(--theme-surface, #FFFFFF) !important;
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 13px !important;
    padding: 8px 12px !important;
    outline: none !important;
}

body.theme-default.checkout-page .checkout-food-coupon-box .checkout-coupon-input:focus {
    border-color: var(--theme-primary, #334681) !important;
    box-shadow: 0 0 0 3px rgba(51, 70, 129, 0.10) !important;
}

body.theme-default.checkout-page .checkout-food-coupon-box .checkout-coupon-button {
    width: 100% !important;
    min-height: 40px !important;
    margin-top: 6px !important;
    border: none !important;
    border-radius: var(--theme-button_radius, 16px) !important;
    background: var(--theme-secondary, #FF7A00) !important;
    color: #FFFFFF !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

body.theme-default.checkout-page .checkout-food-return-button,
body.theme-default.checkout-page .checkout-return-button {
    width: 100% !important;
    min-height: 42px !important;
    margin-top: 9px !important;
    border: none !important;
    border-radius: var(--theme-button_radius, 16px) !important;
    background: var(--theme-muted, #6B7280) !important;
    color: #FFFFFF !important;
    font-family: var(--theme-font_family, sahan-vazir), sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

body.theme-default.checkout-page .checkout-food-return-button:hover,
body.theme-default.checkout-page .checkout-return-button:hover {
    background: var(--theme-primary-dark, #1F2A4D) !important;
}

/* Desktop layout */

@media (min-width: 991px) {
    body.theme-default.checkout-page .checkout-container > .row {
        display: flex !important;
        align-items: flex-start !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    body.theme-default.checkout-page #right_panel {
        width: calc(75% - 6px) !important;
        max-width: calc(75% - 6px) !important;
        flex: 0 0 calc(75% - 6px) !important;
    }

    body.theme-default.checkout-page #left_panel {
        width: calc(25% - 6px) !important;
        max-width: calc(25% - 6px) !important;
        flex: 0 0 calc(25% - 6px) !important;
        display: block !important;
    }
}

/* Mobile */

@media (max-width: 990px) {
    body.theme-default.checkout-page #left_panel {
        display: none !important;
    }

    body.theme-default.checkout-page .checkout-container {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0 !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        padding-bottom: 90px !important;
    }

    body.theme-default.checkout-page .checkout-container > .row {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    body.theme-default.checkout-page #right_panel {
        width: 100% !important;
        max-width: 100% !important;
    }

    body.theme-default.checkout-page .checkout-main-card {
        border-radius: 0 !important;
        border-right: 0 !important;
        border-left: 0 !important;
        box-shadow: none !important;
    }

    body.theme-default.checkout-page #hiden_menu .checkout-food-cart-panel,
    body.theme-default.checkout-page .overlay-content .checkout-food-cart-panel,
    body.theme-default.checkout-page #hiden_menu .checkout-cart-panel,
    body.theme-default.checkout-page .overlay-content .checkout-cart-panel {
        height: auto !important;
        max-height: none !important;
        border-radius: var(--theme-cart_radius, 20px) var(--theme-cart_radius, 20px) 0 0 !important;
        overflow: hidden !important;
        background: var(--theme-surface, #FFFFFF) !important;
    }

    body.theme-default.checkout-page #hiden_menu .checkout-food-cart-header,
    body.theme-default.checkout-page .overlay-content .checkout-food-cart-header,
    body.theme-default.checkout-page #hiden_menu .food-cart-header,
    body.theme-default.checkout-page .overlay-content .food-cart-header {
        border-radius: 0 !important;
    }
}

#lbl_product_unavailable {
    width: 100%;
    border: 0 !important;
    border-radius: var(--theme-button_radius, 14px) !important;
    background-color:#bb2d3b!important;
    color: #ffffff !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    line-height: 1.8;
    padding: 9px 13px !important;
    text-align: center;
}

.product-back-to-menu-button {
    width: 100%;
    min-height: 42px;
    margin-top: 9px;
    border: 1px solid var(--theme-primary, #F59E0B);
    border-radius: var(--theme-button_radius, 14px);
    background-color: rgba(245, 158, 11, 0.10);
    color: var(--theme-text) !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.8;
    padding: 9px 14px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.product-back-to-menu-button:hover {
    background-color: var(--theme-primary, #F59E0B);
    color: #111827 !important;
}

/* =========================
   Search Page Clean Layout
========================= */
html:has(body.store-search-page),
body.store-search-page {
    min-height: 100vh !important;
}

body.store-search-page {
    margin: 0 !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
    overflow-x: hidden !important;
}

body.store-search-page .store-search-page-shell {
    width: 100% !important;
    min-height: 100vh !important;
    display: flex !important;
    flex-direction: column !important;
}

body.store-search-page .store-search-page-layout {
    width: min(100% - 24px, 1320px) !important;
    margin: 12px auto 24px !important;
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    grid-template-areas: "filter products" !important;
    gap: 12px !important;
    align-items: start !important;
    flex: 1 0 auto !important;
}

body.store-search-page .store-search-filter-column {
    grid-area: filter !important;
    min-width: 0 !important;
    align-self: start !important;
}

body.store-search-page .store-search-page-main {
    grid-area: products !important;
    min-width: 0 !important;
    width: 100% !important;
    align-self: start !important;
}

body.store-search-page .store-catalog-panel,
body.store-search-page .store-search-filter-panel {
    margin: 0 !important;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12)) !important;
    border-radius: var(--theme-card_radius, 20px) !important;
    background: var(--theme-surface, #FFFFFF) !important;
    box-shadow: var(--theme-card_shadow, 0 10px 30px rgba(31, 42, 77, 0.06)) !important;
    overflow: visible !important;
}

body.store-search-page .store-catalog-panel::before,
body.store-search-page .store-content-wrap {
    display: none !important;
}

body.store-search-page .store-catalog-search-wrap {
    padding: 10px 12px 6px !important;
    margin: 0 !important;
}

body.store-search-page .products-section {
    background: transparent !important;
    padding: 10px 12px 14px !important;
    margin: 0 !important;
    border-radius: 0 0 var(--theme-card_radius, 20px) var(--theme-card_radius, 20px) !important;
}

body.store-search-page .category-title,
body.store-search-page .store-category-title,
body.store-search-page .category-title-row {
    margin-top: 0 !important;
}

body.store-search-page .store-search-filter-panel {
    position: sticky !important;
    top: 12px !important;
    width: 100% !important;
}

body.store-search-page .store-search-filter-header {
    padding: 13px 14px !important;
    border-bottom: 1px solid var(--theme-border, rgba(51, 70, 129, 0.12)) !important;
    background: color-mix(in srgb, var(--theme-primary, #334681) 8%, var(--theme-surface, #FFFFFF)) !important;
    border-radius: var(--theme-card_radius, 20px) var(--theme-card_radius, 20px) 0 0 !important;
}

body.store-search-page .store-search-filter-title {
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    line-height: 1.8 !important;
    text-align: right !important;
}

body.store-search-page .store-search-filter-active-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    padding: 12px 12px 0 !important;
}

body.store-search-page .store-search-filter-active-item {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    min-height: 34px !important;
    padding: 7px 9px !important;
    border-radius: 12px !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.8 !important;
}

body.store-search-page .store-search-filter-active-label {
    color: var(--theme-muted, #6B7280) !important;
    flex: 0 0 auto !important;
}

body.store-search-page .store-search-filter-active-value {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
}

body.store-search-page .store-search-filter-body {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px !important;
}

body.store-search-page .store-search-filter-field {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    text-align: right !important;
}

body.store-search-page .store-search-filter-label {
    color: var(--theme-muted, #6B7280) !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.8 !important;
}

body.store-search-page .store-search-filter-select,
body.store-search-page .store-search-filter-input {
    width: 100% !important;
    height: 40px !important;
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.14)) !important;
    border-radius: 13px !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    padding: 0 10px !important;
    outline: none !important;
    box-shadow: none !important;
}

body.store-search-page .store-search-filter-select:focus,
body.store-search-page .store-search-filter-input:focus {
    border-color: var(--theme-primary, #334681) !important;
    background: var(--theme-surface, #FFFFFF) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary, #334681) 12%, transparent) !important;
}

body.store-search-page .store-search-filter-price-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
}

body.store-search-page .store-search-filter-check {
    min-height: 38px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    border-radius: 13px !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    cursor: pointer !important;
}

body.store-search-page .store-search-filter-check input {
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    accent-color: var(--theme-primary, #334681) !important;
}

body.store-search-page .store-search-filter-submit,
body.store-search-page .store-search-filter-clear {
    width: 100% !important;
    min-height: 40px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: var(--theme-button_radius, 14px) !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
}

body.store-search-page .store-search-filter-submit {
    border: 0 !important;
    background: var(--theme-primary, #334681) !important;
    color: #FFFFFF !important;
}

body.store-search-page .store-search-filter-clear {
    border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.14)) !important;
    background: transparent !important;
    color: var(--theme-primary, #334681) !important;
}

body.store-search-page .store-search-load-more-wrap {
    display: flex !important;
    justify-content: center !important;
    padding: 16px 8px 4px !important;
}

body.store-search-page .store-search-load-more-button {
    min-width: 190px !important;
    min-height: 42px !important;
    border: none !important;
    border-radius: var(--theme-button_radius, 14px) !important;
    background: var(--theme-primary, #334681) !important;
    color: #ffffff !important;
    font-family: var(--theme-font_family, sahan-vazir), Tahoma, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 24px rgba(31, 42, 77, 0.12) !important;
}

body.store-search-page .store-search-cart-holder #left_panel,
body.store-search-page #left_panel.product-cart-side {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    flex: 0 0 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

@media only screen and (min-width: 991px) {
    body.store-search-page #myNav.overlay {
        left: 0 !important;
        right: auto !important;
        width: 0;
        max-width: 360px !important;
        background: var(--theme-background, #F6F8FC) !important;
        box-shadow: 16px 0 44px rgba(15, 23, 42, 0.24) !important;
    }

    body.store-search-page #myNav .overlay-content {
        width: 100% !important;
        min-width: 0 !important;
        top: 0 !important;
        margin-top: 0 !important;
        padding: 12px 10px 28px !important;
        text-align: right !important;
    }

    body.store-search-page #hiden_menu,
    body.store-search-page #hiden_menu #left_panel_inside,
    body.store-search-page #hiden_menu #cart_list_parent {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.store-search-page .store-search-desktop-cart-button {
        position: fixed !important;
        left: 22px !important;
        right: auto !important;
        bottom: 22px !important;
        z-index: 1800 !important;
        width: 46px !important;
        min-width: 46px !important;
        max-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        padding: 0 !important;
        border: 1px solid var(--theme-border, rgba(51, 70, 129, 0.16)) !important;
        border-radius: 999px !important;
        background: var(--theme-primary, #334681) !important;
        color: #FFFFFF !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        box-shadow: 0 12px 28px rgba(31, 42, 77, 0.22) !important;
        cursor: pointer !important;
    }

    body.store-search-page .store-search-desktop-cart-button-icon {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 22px !important;
        height: 22px !important;
        font-size: 18px !important;
        line-height: 1 !important;
    }

    body.store-search-page .store-search-desktop-cart-button-badge {
        position: absolute !important;
        top: -7px !important;
        right: -7px !important;
        min-width: 20px !important;
        height: 20px !important;
        padding: 0 6px !important;
        border: 2px solid #FFFFFF !important;
        border-radius: 999px !important;
        background: var(--theme-secondary, #FF7A00) !important;
        color: #FFFFFF !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 11px !important;
        font-weight: 900 !important;
        line-height: 1 !important;
    }
}

@media only screen and (max-width: 990px) {
    body.store-search-page .store-search-page-layout {
        width: calc(100% - 16px) !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
        display: block !important;
    }

    body.store-search-page .store-search-filter-column {
        margin-bottom: 8px !important;
    }

    body.store-search-page .store-search-filter-panel {
        position: relative !important;
        top: auto !important;
    }

    body.store-search-page .store-search-filter-body {
        gap: 10px !important;
    }

    body.store-search-page .store-search-desktop-cart-button {
        display: none !important;
    }

    body.store-search-page #myNav.overlay {
        left: 0 !important;
        right: auto !important;
        max-width: none !important;
        box-shadow: none !important;
    }

    body.store-search-page .store-footer {
        margin-top: auto !important;
        margin-bottom: var(--theme-search-footer-bottom-gap, 0px) !important;
    }
}


/* Search page layout final guard */
body.store-search-page #store_search_products_panel {
    grid-area: products !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
    align-self: start !important;
}

body.store-search-page .store-search-page-layout > .store-search-filter-column,
body.store-search-page .store-search-page-layout > .store-search-page-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.store-search-page .store-search-page-layout {
    gap: 8px !important;
    align-items: start !important;
}

body.store-search-page .store-catalog-panel,
body.store-search-page .store-search-filter-panel {
    margin-top: 0 !important;
}

body.store-search-page .store-search-cart-holder {
    display: none !important;
}


/* Search page mobile product grid fix */
@media only screen and (max-width: 575.98px) {
    body.store-search-page .products-row.row-cols-4 > *,
    body.store-search-page .products-row > .product-column,
    body.store-search-page .products-row > .col {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media only screen and (min-width: 576px) and (max-width: 767.98px) {
    body.store-search-page .products-row.row-cols-4 > *,
    body.store-search-page .products-row > .product-column,
    body.store-search-page .products-row > .col {
        flex: 0 0 50% !important;
        width: 50% !important;
        max-width: 50% !important;
    }
}


/* Search page search preview layer fix */
body.store-search-page .store-search-box {
    position: relative !important;
    z-index: 1180 !important;
}

body.store-search-page .store-search-form {
    position: relative !important;
    z-index: 1180 !important;
}

body.store-search-page .store-search-preview {
    position: absolute !important;
    z-index: 1185 !important;
}

body.store-search-page .store-category-section,
body.store-search-page .store-category-bar,
body.store-search-page .category-bar,
body.store-search-page .category-list {
    z-index: 80 !important;
}


/* Search page sticky category layer final fix */
body.store-search-page .store-search-box,
body.store-search-page .store-search-form {
    z-index: 30 !important;
}

body.store-search-page .store-search-preview {
    z-index: 40 !important;
}

body.store-search-page .store-category-section,
body.store-search-page .store-category-bar,
body.store-search-page .category-bar,
body.store-search-page .category-list {
    position: relative !important;
    z-index: 700 !important;
}


/* Search page sticky category restore */
body.store-search-page .store-category-section,
body.store-search-page .store-category-bar,
body.store-search-page .category-bar,
body.store-search-page .category-list {
    position: sticky !important;
    top: 0 !important;
    z-index: 700 !important;
}

body.store-search-page .store-search-box,
body.store-search-page .store-search-form {
    position: relative !important;
    z-index: 30 !important;
}

body.store-search-page .store-search-preview {
    z-index: 40 !important;
}


/* Search page cart structure same as home page */
body.store-search-page .store-search-cart-source {
    display: block !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    max-width: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    visibility: visible !important;
}

body.store-search-page .store-search-cart-source > #left_panel.product-cart-side,
body.store-search-page .store-search-cart-source > #left_panel {
    display: none !important;
    width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
}

body.store-search-page #dark_div,
body.store-search-page #dark_div.store-dark-layer,
body.store-search-page #dark_div.store-dark-backdrop {
    z-index: 1900 !important;
    pointer-events: auto !important;
}

body.store-search-page #myNav.overlay,
body.store-search-page .cart-mobile-overlay {
    z-index: 2000 !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

body.store-search-page #myNav .overlay-content,
body.store-search-page #hiden_menu {
    z-index: 2001 !important;
    background: var(--theme-background, #F6F8FC) !important;
    color: var(--theme-text, #1A1A1A) !important;
    min-height: 100vh !important;
}

body.store-search-page #hiden_menu #left_panel_inside,
body.store-search-page #hiden_menu #cart_list_parent {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    height: auto !important;
    margin: 0 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
}

body.store-search-page #hiden_menu #cart_list_parent {
    background: var(--theme-surface, #ffffff) !important;
    position: relative !important;
    z-index: 2002 !important;
}

@media only screen and (min-width: 991px) {
    body.store-search-page #myNav.overlay {
        left: 0 !important;
        right: auto !important;
        max-width: 360px !important;
    }

    body.store-search-page #myNav .overlay-content {
        padding: 12px 10px 28px !important;
        text-align: right !important;
    }
}

@media only screen and (max-width: 990px) {
    body.store-search-page #myNav.overlay {
        left: 0 !important;
        right: auto !important;
        max-width: none !important;
        box-shadow: none !important;
    }

    body.store-search-page #myNav .overlay-content {
        padding: 0 !important;
        text-align: right !important;
    }
}







/* CHIPI_SEARCH_PAGE_HOME_SEARCH_COPY_20260519_07 */
body.store-search-page .store-search-standalone-box {
    display: none !important;
}

body.store-search-page .store-catalog-search-wrap {
    display: block !important;
    padding: var(--theme-search-page-catalog-search-padding, 25px 12px 6px) !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

body.store-search-page .store-catalog-search-wrap .store-search-box {
    margin: 0 !important;
    position: relative !important;
    top: auto !important;
    z-index: 45 !important;
}

body.store-search-page .store-catalog-search-wrap .store-search-box.is-stuck {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: var(--theme-search-box-radius, var(--theme-card_radius, 16px)) !important;
}

@media only screen and (max-width: 990px) {
    body.store-search-page .store-search-page-layout {
        width: calc(100% - var(--theme-search-page-mobile-side-gap, 16px)) !important;
        margin-top: var(--theme-search-page-mobile-top-gap, 8px) !important;
        margin-bottom: var(--theme-search-page-mobile-bottom-gap, 8px) !important;
    }

    body.store-search-page .store-search-filter-column {
        margin-bottom: var(--theme-search-page-mobile-section-gap, 8px) !important;
    }

    body.store-search-page .store-catalog-search-wrap {
        padding: var(--theme-search-page-mobile-catalog-search-padding, 25px 12px 6px) !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
    }

    body.store-search-page .store-catalog-search-wrap .store-search-box {
        margin: 0 !important;
    }
}

@media only screen and (max-width: 575.98px) {
    body.store-search-page .store-search-page-layout {
        width: calc(100% - var(--theme-search-page-phone-side-gap, 16px)) !important;
        margin-top: var(--theme-search-page-phone-top-gap, 8px) !important;
    }

    body.store-search-page .store-search-filter-column {
        margin-bottom: var(--theme-search-page-phone-section-gap, 8px) !important;
    }

    body.store-search-page .store-catalog-search-wrap {
        padding: var(--theme-search-page-phone-catalog-search-padding, 25px 12px 6px) !important;
    }
}
/* END_CHIPI_SEARCH_PAGE_HOME_SEARCH_COPY */

/* Search suggestion category/title/price layout */
body.store-search-page .store-search-preview-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: center !important;
    gap: 3px !important;
    min-width: 0 !important;
    text-align: right !important;
}

body.store-search-page .store-search-preview-category {
    max-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 2px 8px !important;
    border-radius: 999px !important;
    background: color-mix(in srgb, var(--theme-secondary, #FF7A00) 14%, #ffffff) !important;
    color: var(--theme-secondary, #FF7A00) !important;
    border: 1px solid color-mix(in srgb, var(--theme-secondary, #FF7A00) 22%, transparent) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    line-height: 1.6 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.store-search-page .store-search-preview-title {
    max-width: 100% !important;
    color: var(--theme-text, #1A1A1A) !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1.7 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body.store-search-page .store-search-preview-price {
    max-width: 100% !important;
    color: var(--theme-primary, #334681) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
}

/* =========================
   Home Mobile Full Width Promo Sections
   پیشنهاد ویژه و تخفیف‌ها فقط در موبایل تمام‌عرض
========================= */

@media only screen and (max-width: 700px) {

    body.theme-default:not(.store-search-page) .store-home-main {
        overflow-x: visible !important;
    }

    body.theme-default:not(.store-search-page) #cards_continer_amazing.store-home-amazing,
    body.theme-default:not(.store-search-page) .store-home-products-shell > .discount-products-section,
    body.theme-default:not(.store-search-page) .discount-products-section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-right: calc(50% - 50vw) !important;
        margin-left: calc(50% - 50vw) !important;
        border-radius: 0 !important;
        border-right: none !important;
        border-left: none !important;
    }

    body.theme-default:not(.store-search-page) #cards_continer_amazing.store-home-amazing {
        padding-right: var(--theme-home-amazing-mobile-full-padding-x, 0) !important;
        padding-left: var(--theme-home-amazing-mobile-full-padding-x, 0) !important;
    }

    body.theme-default:not(.store-search-page) .store-home-amazing-box {
        border-radius: 0 !important;
        padding-right: var(--theme-home-amazing-mobile-inner-padding-x, var(--theme-page_padding_mobile, 8px)) !important;
        padding-left: var(--theme-home-amazing-mobile-inner-padding-x, var(--theme-page_padding_mobile, 8px)) !important;
    }

    body.theme-default:not(.store-search-page) .discount-products-section {
        padding-right: var(--theme-home-discount-mobile-full-padding-x, var(--theme-page_padding_mobile, 8px)) !important;
        padding-left: var(--theme-home-discount-mobile-full-padding-x, var(--theme-page_padding_mobile, 8px)) !important;
    }

}

/* =========================
   Search Page Mobile Footer Scroll Performance Fix
========================= */

@media only screen and (max-width: 990px) {

    body.store-search-page .store-footer {
        box-shadow: none !important;
        transform: translateZ(0);
        backface-visibility: hidden;
        contain: layout paint;
    }

    body.store-search-page .store-search-cart-source {
        display: none !important;
    }

    body.store-search-page #hiden_menu {
        box-shadow: none !important;
    }

    body.store-search-page .store-dark-layer,
    body.store-search-page #dark_div {
        will-change: auto !important;
    }

    body.store-search-page .store-search-filter-panel {
        position: relative !important;
        top: auto !important;
    }

}

/* =========================
   Mobile Scroll Performance
========================= */

@media only screen and (max-width: 990px) {

    body.store-search-page .store-search-page-layout {
        display: block !important;
    }

    body.store-search-page .store-search-filter-panel {
        position: relative !important;
        top: auto !important;
    }

    body.store-search-page .store-catalog-panel,
    body.store-search-page .store-search-filter-panel,
    body.store-search-page .product-card {
        box-shadow: none !important;
    }

    body.store-search-page .store-search-cart-source {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        max-width: 1px !important;
        max-height: 1px !important;
        overflow: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    body.store-search-page .store-search-desktop-cart-button {
        display: none !important;
    }

}

@media only screen and (max-width: 990px) {

    .store-home-search-wrap {
        position: sticky !important;
        top: var(--theme-home-search-sticky-top, 0px) !important;
        z-index: 650 !important;
        transition: none !important;
    }

    .store-home-search-panel {
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transition: none !important;
    }

    .store-home-search-wrap.is-stuck,
    .store-home-search-wrap.is-stuck .store-home-search-panel {
        box-shadow: none !important;
    }

}
