@font-face {
    font-family: GH2Vazir;
    src: url('../gh-pack-groups/fonts/vazirmatn-variable.woff2') format('woff2');
    font-weight: 100 900;
    font-display: swap;
}

.gh32-badge-source[hidden],
.gh35-authoritative-badges :is(.gh-badges,.gh-server-badges,.gh-v60-badge,.gummy-card-badge,.badge-container,.onsale,.out-of-stock-label,.ghc-alt-off,.wc-block-components-product-sale-badge,.wc-block-grid__product-onsale)[hidden] {
    display: none !important;
}

/* Flatsome can place its sale circle beside the inner product card. */
#main .col-inner:has(.gh32-badge-layer .gh32-sale) > .badge-container .badge-circle:has(.onsale) {
    display: none !important;
}

.gh32-badge-host,
.gh35-combo-image {
    position: relative !important;
}

.gh32-badge-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    pointer-events: none;
}

html body :is(#main,.gh32-badge-host) .gh32-badge-layer[data-gh37-id] .gh32-stack:is(.gh32-left,.gh32-right),
html body .gh32-badge-host > .gh32-badge-layer[data-gh37-id] .gh32-stack:is(.gh32-left,.gh32-right) {
    position: absolute;
    top: 0 !important;
    display: flex;
    flex-direction: column;
    direction: ltr;
    gap: 2px !important;
    max-width: 100%;
}

.gh32-badge-layer:has(> .gh32-left > .gh32-badge):has(> .gh32-right > .gh32-badge) > .gh32-stack {
    max-width: 50%;
}

html body :is(#main,.gh32-badge-host) .gh32-badge-layer[data-gh37-id] .gh32-stack.gh32-right,
html body .gh32-badge-host > .gh32-badge-layer[data-gh37-id] .gh32-stack.gh32-right {
    right: 0 !important;
    left: auto !important;
    align-items: flex-end !important;
}

html body :is(#main,.gh32-badge-host) .gh32-badge-layer[data-gh37-id] .gh32-stack.gh32-left,
html body .gh32-badge-host > .gh32-badge-layer[data-gh37-id] .gh32-stack.gh32-left {
    left: 0 !important;
    right: auto !important;
    align-items: flex-start !important;
}

html body :is(#main,body) .gh32-badge-layer[data-gh37-id] .gh32-stack > .gh32-badge,
html body .gh32-badge-host > .gh32-badge-layer[data-gh37-id] .gh32-stack > .gh32-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    gap: 2px !important;
    margin: 0 !important;
    padding: 2px 5px !important;
    height: auto !important;
    min-height: 0 !important;
    font: 700 10px/1.3 GH2Vazir,Vazirmatn,Tahoma,sans-serif !important;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: center;
    white-space: normal !important;
    direction: rtl !important;
    border: 0 !important;
    border-radius: var(--gh32-corner-radius) !important;
    color: var(--gh32-badge-ink, #fff) !important;
    background: var(--gh32-badge-fill) !important;
    box-shadow: var(--gh32-badge-shadow, none) !important;
}

.gh32-right .gh32-badge { --gh32-corner-radius: 0 0 0 7px; }
.gh32-right .gh32-badge:first-child { --gh32-corner-radius: 0 9px 0 7px; }
.gh32-left .gh32-badge { --gh32-corner-radius: 0 0 7px 0; }
.gh32-left .gh32-badge:first-child { --gh32-corner-radius: 9px 0 7px 0; }

.gh32-badge.gh32-sale { --gh32-badge-fill: #df1019; }
.gh32-badge.gh32-new { --gh32-badge-fill: #278b45; }
.gh32-badge.gh32-popular { --gh32-badge-fill: #154bdf; }
.gh32-badge.gh32-preorder { --gh32-badge-fill: #ef821e; }
.gh32-badge.gh32-stock { --gh32-badge-fill: #fff0f2; --gh32-badge-ink: #b52438; }
.gh32-badge.gh32-rating { --gh32-badge-fill: #fff; --gh32-badge-ink: #233c60; --gh32-badge-shadow: inset 0 0 0 1px #96a9bd; }

.gh32-badge.gh32-rating svg {
    width: 1em;
    height: 1em;
    fill: #b47500 !important;
    stroke: #b47500 !important;
}

/* 2.0.7.11: early CSS guard for the old sale circle, only where the mother provides a source. */
#main .product-small:has(.gh32-badge-source,.gh32-badge-layer) .badge-container .badge-circle:has(.onsale),
#main .product-main:has(.gh32-single-badge-source) .product-gallery .badge-container .badge-circle:has(.onsale){display:none!important;visibility:hidden!important}
@media(min-width:850px){
/* WooCommerce legacy product widgets: thumbnail must not be a badge host or cover text. */
html body .product_list_widget:not(.cart_list):not(.woocommerce-mini-cart)>li{position:relative!important;display:flow-root!important;box-sizing:border-box!important;min-height:74px;padding:8px 0!important;overflow-wrap:anywhere;line-height:1.55;text-align:right;direction:rtl}
html body .product_list_widget:not(.cart_list):not(.woocommerce-mini-cart)>li>a:not(.remove){display:block!important;position:static!important;padding:0!important;margin:0!important;text-align:right;white-space:normal!important}
html body .product_list_widget:not(.cart_list):not(.woocommerce-mini-cart)>li img{display:block!important;position:static!important;float:right!important;width:64px!important;max-width:28%!important;height:64px!important;object-fit:contain!important;margin:0 0 4px 10px!important;transform:none!important}
html body .product_list_widget:not(.cart_list):not(.woocommerce-mini-cart)>li :is(.product-title,.amount,del,ins){position:static!important;white-space:normal!important;overflow-wrap:anywhere}
html body .product_list_widget:not(.cart_list):not(.woocommerce-mini-cart)>li :is(.gh32-badge-source,.gh32-badge-layer,.gh-badges,.gh-server-badges,.badge-container,.onsale,.gh-v60-badge,.gummy-card-badge){display:none!important;visibility:hidden!important}
}
