@font-face {
    font-family: 'IranSans';
    src: url('../irsans.ttf') format('truetype');
}

:root {
    /* --svg-bg: #a5b33c; */

    --svg-bg: var(--e-global-color-text);

    --e-global-color-primary: #3A4F26;
    --e-global-color-secondary: #FFE5C2;
    --e-global-color-text: #628B5D;
    --e-global-color-accent: #000000;
    --e-global-color-66e59a3: #CEDBB2;
    --e-global-color-489cb7c: #493618;
    --e-global-color-75a050b: #BF9D7A;

    --green-contrast: #f6de88;
    /* font-family: "ایران یکان", Sans-serif; */

}

svg {
    width: 1rem;
    height: 1rem;
}

/* nav li{
    white-space: nowrap;
} */
.bg-primary {
    background-color: var(--e-global-color-primary);
}

.text-primary {
    color: var(--e-global-color-primary);
}

.bg-secondary {
    background-color: var(--e-global-color-secondary);
}

.bg-text {
    background-color: var(--e-global-color-text);
}

.text-global {
    color: var(--e-global-color-text);

}

body {
    font-family: 'IranSans', sans-serif;
    color: var(--default);
    margin: 0;
    padding: 0;
}

#modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, .5);
    z-index: 9999;
}

.hmc-main-nav {
    background-color: var(--e-global-color-66e59a3);
    color: #2e4021;
}

.hmc-main-nav li:not(:nth-last-of-type(1))::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 50%;
    background-color: var(--e-global-color-text);
    margin: 0 .5rem;
}

.hmc-main-nav li a {
    font-size: clamp(13px, 1.8vw, 20px);
}

.hmc-notice {
    border: dashed;
    margin-right: auto;
    margin-left: auto;
    min-width: 400px;
    max-width: 40vw;
    width: fit-content;
    text-align: center;
}

.dashboard-item {
    opacity: 0;
    /* display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; */
}

.dashboard-container {
    max-width: min(1200px, 80vw);
    direction: rtl;
}

.dashboard-header {
    color: var(--e-global-color-text);
}


.dashboard-header h2 {
    font-size: 1rem;
}

.dashboard-card {
    /* padding: 1rem; */
    max-width: 30vw;
}

.dashboard-card:hover {
    transform: translateY(-10px);
    scale: 1.2;
}

.dashboard-card:hover :is(svg, path:not(.no-path-fill)) {
    opacity: 1;
}

/* svg:not(.refresh,.no-path-fill),
svg:not(.no-path-fill, .refresh) path {
    fill: var(--svg-bg);
    opacity: .7;
}
.no-path-fill */
.dashboard-card svg {
    opacity: 0.7;
    fill: var(--svg-bg);
}

div[data-icon=hmc-users] svg path,
div[data-icon=hmc-settings] svg path {
    fill: var(--svg-bg);

}

svg.refresh {
    position: relative;
    width: 2rem;
    height: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: .5;
}

.dashboard-card.hmc-workflow>span,
.dashboard-card.hmc-users>span {
    width: 1rem;
    height: 1rem;
    padding: 2rem;
    top: 0;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: red;
    color: white;
    font-weight: bold;
    border-radius: 50%;
}

.cart-item {
    position: relative;

}

.cart-item .update {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background-color: red;
    opacity: 0;
}

input.hmc-qty,
input.hmc-box-qty {
    background-color: transparent;
    background: transparent;
    border: none;
}

.hmc-qty {
    flex: 1;
}

.hmc-box-qty {
    max-width: 25%;
}

.hmc-bg-svg svg {
    pointer-events: none;
    width: 3rem;
}

.hmc_product_input_container span {
    /* display: flex;
    align-items: center;
    justify-content: center; */
    color: var(--svg-bg);
    font-size: 1.2rem;
    font-weight: bold;
    opacity: .3;
}

.hmc_adjust_btn {
    height: 2rem;
    width: 2rem;
    aspect-ratio: 1/1;
    border-radius: .4rem;
    background-color: var(--svg-bg);
    margin: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.hmc-cart-table {
    max-width: 100%;
    overflow-x: auto;
}

.hmc-cart-table a:hover {
    color: var(--e-global-color-text);
}

.hmc-cart-table svg {
    opacity: .2;
    width: 2rem;
    height: 2rem;
}

svg.bg {
    left: 5%;
    max-width: 40%;
    max-height: 40%;
    position: fixed;
    bottom: 5%;
    z-index: -1;
    opacity: .2;
}

.note {
    display: block;
}

.dashboard-card a span {
    white-space: nowrap;
    font-weight: bold;
    color: var(--e-global-color-secondary);
    background-color: #BF9D7A;
}

.dashboard-card:hover a {
    opacity: 1;
    transition: all 0.5s ease;
}

.hmc-flow-bg {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: .3;
}

.hmc-flow-bg::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90, #5d250ad1, transparent)
}

.wave {
    position: absolute;
    width: 200%;
    height: 100%;
    background: linear-gradient(120deg, #9f3333 0%, rgb(255 208 0) 100%);
    opacity: 0.05;
    border-radius: 45%;
}

.wave1 {
    opacity: .3;
    top: 0;
    left: -50%;
    animation-duration: 12s;
    transform: rotate(0deg);
}

.wave2 {
    top: 10%;
    left: -50%;
    animation-duration: 16s;
    animation-delay: -2s;
    opacity: 0.15;
}

.wave3 {
    top: 20%;
    left: -50%;
    animation-duration: 20s;
    animation-delay: -4s;
    opacity: 0.1;
}

.nowrap {
    white-space: nowrap;
}

.wrap {
    flex-wrap: wrap;
}

#breadcrumbs svg {
    --svg-bg: var(--e-global-color-text);
    width: 1.5rem;
    height: 1.5rem;
    opacity: .3;
}

#breadcrumbs svg:nth-of-type(1) path {
    fill: wheat;
}

#breadcrumbs .underline {
    pointer-events: none;
    opacity: .7;
    cursor: default;
    transform: translateY(-.2rem);
    text-underline-offset: .5rem;
}

#breadcrumbs .underline a {
    text-decoration: none;
}

#breadcrumbs li {
    display: flex;
    align-items: center;
}

li#home {
    padding: 0.5rem 0;
    border-radius: 1rem;
    background-color: var(--e-global-color-text);
}

#home svg,
#home path {
    --svg-bg: white;
    width: 4rem;
    opacity: .8;
    transition: .5s all;
}

#home:hover svg,
#home:hover path {
    opacity: 1;
}

.hmc-order-table tbody tr td a:nth-of-type(1) {

    font-weight: 800;
    transition: 1s ease;
    text-underline-offset: 1rem;
}

.woocommerce-Price-currencySymbol {
    font-size: .7rem;
}

.hmc-cart-total {
    background-color: var(--e-global-color-text);
    color: wheat;
}

.hmc-order-table tr,
.hmc-order-table .cart-item {
    position: relative;
}

.hmc-order-table span.update-notification {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    width: 100%;
    height: 100%;
    right: 0;
    top: 0;
    backdrop-filter: blur(50px);
    transition: all 1s;
    color: white;
    opacity: .7;
    pointer-events: none;
}

.cart-item span.update-notification {
    border-radius: 1.5rem;
}

.update-notification.success {
    background-color: #628B5D;
}

.update-notification.error {
    background-color: #9f3333;
}

.elementor-widget-woocommerce-product-add-to-cart .quantity input:is(.qty) {
    padding-right: 0;
    padding-left: 0;
    min-width: 4rem;
}

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

@media (max-width:600px) {
    .mobile-only {
        display: block !important;
    }
}