/*
Theme Name: BazareGandom
Theme URI: https://bazaregandom.ir/
Author: Younes
Author URI: https://www.linkedin.com/in/younes-darabi-0951b3200
Version: 1.0
*/
:root {
    --primary-color: #008445;
    --secondery-color: #753c28;
    --text-color: #404042;
    --message-color: #ff4800;
    --shadow-first: 0 4px 16px rgba(0, 0, 0, 0.16);
    --shadow-second: 0 4px 16px rgba(0, 0, 0, 0.4);
}

@font-face {
    font-family: 'irs';
    font-style: normal;
    font-weight: normal;
    font-display: auto;
    src: url('fonts/IRANSansWeb.eot');
    src: url('fonts/IRANSansWeb.eot?#iefix') format('embedded-opentype'),
        url('fonts/IRANSansWeb.woff') format('woff'),
        url('fonts/IRANSansWeb.ttf') format('truetype');
}

@font-face {
    font-family: 'irs';
    font-style: normal;
    font-weight: 700;
    font-display: auto;
    src: url('fonts/IRANSansWeb_Bold.eot');
    src: url('fonts/IRANSansWeb_Bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/IRANSansWeb_Bold.woff') format('woff'),
        url('fonts/IRANSansWeb_Bold.ttf') format('truetype');
}

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    list-style-type: none;
    text-decoration: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #f5f4f4;
    font-family: irs;
    color: var(--text-color);
    width: 100%;
    margin: 0 auto;
    position: relative;
}

html,
body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    height: 100%;
}

a,
button {
    cursor: pointer;
    border: none;
    outline: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    background: none;
    box-shadow: none;
}

img,
video {
    display: block;
    max-width: 100%;
    height: auto;
}

a,
li {
    transition: all 0.2s ease-out 0.15s;
    -webkit-transition: all 0.2s ease-out 0.15s;
    -moz-transition: all 0.2s ease-out 0.15s;
    color: var(--primary-color);
}

table {
    width: 100%;
    text-align: right;
    border-collapse: collapse;
}

th,
td {
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 15px;
}

tr:hover>td {
    background: #ddfffd;
}

.hidden {
    display: none;
}

.hide-desktop {
    display: none;
}

.hide-mobile {
    display: block;
}

.hide-scroll {
    overflow: hidden;
}

.hidescrollbar::-webkit-scrollbar {
    display: none;
}

.hidescrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.center {
    text-align: center;
}

.flex {
    display: flex;
    flex-wrap: wrap;
}

.flex.center {
    justify-content: center;
}

.flex.space-between {
    justify-content: space-between;
}

.flex.nowrap {
    flex-wrap: nowrap;
}

.flex.align-center {
    align-items: center;
}

.flex.align-end {
    align-items: end;
}

.flex.end {
    justify-content: end;
}

.flex.column {
    flex-direction: column;
}

.row {
    position: relative;
}

.col {
    position: relative;
}

.col-10 {
    width: 10%;
}

.col-15 {
    width: 15%;
}

.col-18 {
    width: 18%;
}

.col-20 {
    width: 20%;
}

.col-25 {
    width: 25%;
}

.col-30 {
    width: 30%;
}

.col-33 {
    width: 33.33333%;
}

.col-40 {
    width: 40%;
}

.col-45 {
    width: 45%;
}

.col-50 {
    width: 50%;
}

.col-55 {
    width: 55%;
}

.col-60 {
    width: 60%;
}

.col-70 {
    width: 70%;
}

.col-75 {
    width: 75%;
}

.col-80 {
    width: 80%;
}

.col-90 {
    width: 90%;
}

.col-100 {
    width: 100%;
}

.padding-4 {
    padding: 4px;
}

.padding-7 {
    padding: 7px;
}

.padding-14 {
    padding: 14px;
}

.padding-21 {
    padding: 21px;
}

.gap-7 {
    gap: 7px;
}

.gap-14 {
    gap: 14px;
}

.gap-21 {
    gap: 21px;
}

.gap-35 {
    gap: 35px;
}


.loader {
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    margin: 10px auto;
}

.loader::before,
.loader::after {
    content: "";
    grid-area: 1/1;
    --c: no-repeat radial-gradient(farthest-side, #25b09b 92%, #0000);
    background:
        var(--c) 50% 0,
        var(--c) 50% 100%,
        var(--c) 100% 50%,
        var(--c) 0 50%;
    background-size: 12px 12px;
    animation: l12 1s infinite;
}

.loader::before {
    margin: 4px;
    filter: hue-rotate(45deg);
    background-size: 8px 8px;
    animation-timing-function: linear
}

@keyframes l12 {
    100% {
        transform: rotate(.5turn)
    }
}


.container {
    width: 100%;
    position: relative;
    max-width: 1260px;
    margin: 0 auto;
}

.btn {
    box-shadow: var(--shadow-first);
    padding: 6px 15px;
    border-radius: 12px;
    background: var(--primary-color);
    border: 3px solid #fff;
    color: #fff;
    font-weight: 700;
}

.btn:hover {
    background: var(--secondery-color);
    box-shadow: var(--shadow-second);
}

.btn.dark {
    background: var(--secondery-color);
    color: #fff;
}

.btn.simple {
    box-shadow: none;
    border: 0 none;
    font-size: 12px;
    padding: 4px 10px;
}

.btn.dark:hover {
    background: var(--primary-color);
}

.overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9;
    display: none;
}

.overlay.light {
    background: rgba(0, 0, 0, 0.2);
}

.message {
    text-align: center;
    margin: 15px 0 0;
    color: var(--message-color);
    font-weight: 700;
    font-size: 15px;
}

.ys-popup {
    max-width: 500px;
    width: 90%;
    background: #fff;
    position: fixed;
    top: 110px;
    left: 0;
    right: 0;
    margin: auto;
    max-height: 500px;
    overflow-x: hidden;
    padding: 20px;
    border-radius: 7px;
    box-shadow: var(--shadow-second);
    z-index: 10;
    display: none;
}

.ys-popup .close-box-btn,
.cart-box .close-box-btn,
.mobile-nav .close-box-btn {
    position: absolute;
    left: 20px;
    top: 20px;
    cursor: pointer;
}

.ys-popup .logo {
    margin: 0 auto;
}

.ys-popup p label {
    font-weight: 700;
    font-size: 15px;
}

.ys-popup .title h1 {
    text-align: center;
    font-size: 21px;
    margin: 30px 0;
}

.ys-popup p {
    margin: 10px 0;
}

.login-box p.message {
    text-align: center;
    font-size: 14px;
    color: var(--message-color);
}

input,
select,
textarea {
    background: #fff;
    border: 0 none;
    border-radius: 12px;
    box-shadow: var(--shadow-first);
    padding: 10px 15px;
    font-family: irs;
    font-size: 15px;
    width: 100%;
    outline: 0;
}

input[type="checkbox"] {
    width: auto;
}

input[type="number"] {
    -moz-appearance: textfield;
    text-align: center;
    direction: ltr;
    border: 2px solid #313131;
}

input[type="email"] {
    direction: ltr;
    text-align: center;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: var(--primary-color);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 20px;
}

.ys-popup p a {
    display: block;
    width: auto;
    margin: 0 auto;
    text-align: center;
}

.white-box {
    background: #fff;
    box-shadow: var(--shadow-first);
    border-radius: 14px;
}

header {
    background: var(--primary-color);
    box-shadow: var(--shadow-first);
    padding: 7px 0;
    position: relative;
    z-index: 10;
    height: 121px;
}

header .site-logo img {
    width: 80px;
}

header .title-box h1 {
    font-size: 41px;
    color: #fff;
}

header .header-bg {
    position: absolute;
    left: 0;
    top: 0;
}

header .title-box h2 {
    font-size: 14px;
    color: var(--secondery-color);
}

.main-menu {
    background: #c7ec60;
}

.main-menu .menu,
footer .menu {
    display: flex;
    gap: 7px;
}

.main-menu .menu li a {
    padding: 10px 14px;
    border-radius: 14px;
    font-weight: 700;
    display: block;
    color: var(--text-color);
}

.main-menu .menu li:hover a {
    background: var(--primary-color);
    color: #fff;
}

.main-menu .main-menu {
    margin-right: auto;
}

.sub-header {
    background: var(--secondery-color);
    padding: 14px;
}

.sub-header .type-items h3 {
    font-size: 16px;
    color: #fff;
}

section.content-box {
    padding: 21px 0;
}

.content-box.first {
    background: #fff;
}

.logo-bg-3 {
    width: 90%;
}

.big-post-box img {
    width: 100%;
    height: 250px;
}

.type-items-section {
    height: 30px;
}

.small-post-box .item img {
    width: 100px;
    height: 80px;
}

.small-post-box .first-item img {
    width: 100%;
    height: 270px;
}

.small-post-box .item .item-content span {
    height: 50px;
    overflow: hidden;
    display: block;
    font-size: 14px;
}

.gform_required_legend {
    display: none;
}

#field_3_11 .ginput_container {
    width: 100%;
}

#field_3_11 .ginput_container .ginput_container {
    width: 33%;
}

.chart-box {
    width: 100%;
}

footer {
    margin-top: 40px;
    background: #c7ec60;
    padding: 7px 0;
}

footer .menu li a {
    color: #fff;
    padding: 10px;
}

.copyright {
    font-size: 12px;
    color: var(--secondery-color);
}

.single .post-content-box .thumbnail {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 21px;
    box-shadow: var(--shadow-second);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: var(--primary-color);
    z-index: 11;
    box-shadow: var(--shadow-second);
}

.mobile-menu a {
    color: #fff;
    display: block;
    width: 100%;
    padding: 6px 0;
}

img.close-btn {
    width: 24px;
    margin-bottom: 10px;
}

.currency-chart-container {
    position: relative;
    height: 400px;
    /* یا هر ارتفاع دلخواه */
    width: 100%;
}

.top-tags-list a {
    border: 1px solid var(--primary-color);
    padding: 4px;
    display: block;
    border-radius: 4px;
}

.big-post-box .white-box {
    height: 100%;
}

@media screen and (max-width: 780px) {
    .hide-desktop {
        display: block;
    }

    .hide-mobile {
        display: none;
    }

    .container {
        padding: 0 14px;
    }

    header .site-logo img {
        width: 50px;
    }

    .mobile-menu-btn {
        margin-right: auto;
        position: relative;
        z-index: 2;
    }

    .home section.content-box .container>.col {
        width: 100%;
    }

    .home section.content-box .left-box {
        order: 1;
        padding: 0;
        margin-bottom: 40px;
    }

    .home section.content-box .right-box {
        order: 2;
    }

    .big-post-box .col.col-50 {
        width: 100%;
    }

    footer .col.col-50 {
        width: 100%;
    }

    .copyright {
        justify-content: center !important;
    }

    .single .post-content-box .thumbnail {
        width: 100%;
    }

    header .title-box h1 {
        font-size: 28px;
        position: relative;
        z-index: 2;
    }

    .currency-chart-container {
        height: 400px;
    }

    footer .social {
        width: 100%;
        justify-content: center !important;
    }

    .post-content-box .description table {
        display: none;
    }

    .gform-theme--foundation .gform_fields {
        gap: 10px !important;
    }

    .content-box.four .col {
        width: 100%;
    }

    section.content-box .small-post-box .col {
        width: 100%;
    }

    .blog-list .blog-item {
        width: 100%;
    }
}