@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100;200;300;400;500;600;700;800;900&display=swap");
:root {
    --green-dark: #00563f;
    --green-light: #008060;
    --white: #ffffff;
    --black: #000000;
    --coffee-brown: #4b3621;
}

body {
    margin: 0;
    background-color: #f4f4f4;
    font-family: "Vazirmatn", sans-serif;
    direction: rtl;
    overflow-x: hidden;
}

.hero-products {
    position: relative;
    padding-top: 240px;
}

.hero-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 75vh;
    z-index: 0;
}

.hero-title {
    font-size: 50px;
    font-weight: 900;
    color: #ffffff;
    position: relative;
    z-index: 3;
    letter-spacing: 3px;
}

.hero-cup-wrapper {
    margin-top: -60px;
    z-index: 40000000;
}

.hero-cup {
    position: relative;
    z-index: 40000000;
}

.floating-img {
    position: absolute;
    width: 70px;
    z-index: 2;
    opacity: 0.95;
}

.f1 {
    top: 20%;
    right: 35%;
    transform: rotate(-10deg);
    width: 170px;
}

.f2 {
    top: 32%;
    right: 37%;
    transform: rotate(-132deg);
    width: 400px !important;
}

.f3 {
    top: 48%;
    right: 24%;
    animation: float 3s ease-in-out infinite;
    width: 100px;
}

.f4 {
    top: 22%;
    right: 10%;
    transform: rotate(0deg);
    width: 170px;
}

.f5 {
    top: 25%;
    left: 12%;
    transform: rotate(50deg);
    animation: float 3s ease-in-out infinite;
}

.f6 {
    top: 20%;
    right: 52%;
    transform: rotate(18deg);
    animation: float 3s ease-in-out infinite;
}

.f7 {
    top: 37%;
    left: 23%;
    transform: translateX(-50%);
    width: 160px;
}

.f8 {
    bottom: 67.5%;
    left: 40%;
    transform: translateX(-50%) rotate(145deg);
    width: 65px;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-5px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(-5deg);
    }
    75% {
        transform: translateY(5px) rotate(3deg);
    }
    100% {
        transform: translateY(0) rotate(0deg);
    }
}

@media (max-width: 1300px) {
    .f2 {
        top: 32%;
        right: 30%;
        transform: rotate(-132deg);
        width: 400px !important;
    }
    .f1 {
        top: 20%;
        right: 34%;
        transform: rotate(-10deg);
        width: 130px;
    }
    .f3 {
        top: 55%;
        right: 20%;
        animation: float 3s ease-in-out infinite;
        width: 90px;
    }
    .f4 {
        right: 5%;
        width: 160px;
    }
    .f5 {
        width: 55px;
    }
    .f6 {
        right: 50%;
    }
    .f7 {
        top: 53%;
        left: 22%;
        transform: translateX(-50%);
        width: 115px;
    }
    .f8 {
        bottom: 65.5%;
        left: 35%;
        transform: translateX(-50%) rotate(155deg);
        width: 55px;
    }
}

@media (max-width: 900px) {
    .hero-cup {
        width: 55%;
    }
    .f2 {
        top: 33%;
        right: 31%;
        transform: rotate(-132deg);
        width: 325px !important;
    }
    .hero-shape {
        height: 80vh;
    }
    .f1 {
        top: 25%;
        right: 28%;
        transform: rotate(-10deg);
        width: 120px;
    }
    .f3 {
        width: 70px;
    }
    .f4 {
        right: 2%;
        width: 125px;
    }
    .f5 {
        width: 35px;
    }
    .f7 {
        top: 53%;
        left: 22%;
        transform: translateX(-50%);
        width: 100px;
    }
    .f8 {
        bottom: 58.5%;
        left: 32%;
        transform: translateX(-50%) rotate(155deg);
        width: 45px;
    }
}

@media (max-width: 700px) {
    .f2 {
        top: 40%;
        right: 30%;
        transform: rotate(-132deg);
        width: 260px !important;
    }
}

@media (max-width: 592px) {
    .hero-shape {
        height: 57vh;
    }
    .f4 {
        width: 100px;
    }
    .f1 {
        top: 31%;
        right: 24%;
        transform: rotate(-10deg);
        width: 85px;
    }
    .f2 {
        top: 43%;
        right: 32%;
        width: 225px !important;
    }
    .f3 {
        width: 50px;
        top: 70%;
    }
    .f7 {
        top: 45%;
        left: 12%;
    }
    .f8 {
        bottom: 57.5%;
        left: 29%;
    }
    .hero-title {
        top: -25px;
        font-size: 30px;
    }
}

@media (max-width: 470px) {
    .f1 {
        top: 37%;
        width: 70px;
    }
    .f2 {
        top: 55%;
        right: 31%;
        width: 160px !important;
    }
    .f4 {
        width: 80px;
        right: 0%;
    }
    .f7 {
        top: 45%;
        left: 10%;
        width: 65px;
    }
    .f8 {
        bottom: 50.5%;
        left: 30%;
        width: 31px;
    }
}

.coffee-card {
    position: relative;
    background: var(--green-dark);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    transition: all 0.4s ease;
    padding-top: 70px;
    height: 100%;
    width: 280px;
    margin-top: 130px;
}

.coffee-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.rating-card {
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 75px;
    background: var(--green-light);
    backdrop-filter: blur(12px);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 3;
}

.rating-card span {
    background-color: #fff;
    color: #000;
    padding: 3px;
    font-size: 11px;
    border-radius: 7px;
    position: relative;
    left: 60%;
    top: 26%;
}

.coffee-img {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
}

.coffee-img img {
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45));
    transition: transform 0.4s ease;
    width: 70px;
}

.coffee-card:hover .coffee-img img {
    transform: translateY(-6px) scale(1.05);
}

.coffee-img .img2 {
    display: none;
    width: 110px;
}

.coffee-card:hover .coffee-img {
    top: -115px;
}

.coffee-card:hover .coffee-img .img1 {
    display: none;
    transform: scale(1.05) translateY(-6px);
}

.coffee-card:hover .coffee-img .img2 {
    display: block;
}

.coffee-info h5 {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 700;
}

.coffee-info p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    font-size: 0.9rem;
}

.coffee-info span {
    color: #fff;
}

.coffee-info .btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0px;
}

.coffee-info button img {
    width: 60%;
}

.coffee-info .btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}


/*--end card-caffe--*/


/*--end card-caffe--*/

.filter-box {
    position: sticky;
    top: 110px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 3px solid rgba(189, 189, 189, 0.263);
    border-radius: 20px;
    height: fit-content;
    z-index: 20;
}

.text-green {
    position: relative;
    display: inline-block;
    font-weight: 700;
    font-size: 1rem;
    color: transparent;
    background: linear-gradient(46.52deg, rgba(0, 113, 47, 0.266) -145.75%, #008060 119.5%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
    margin-bottom: 1.4rem !important;
}

.text-green::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    margin-top: 6px;
    border-radius: 2px;
    background: linear-gradient(92.52deg, rgba(0, 113, 47, 0.266) -0.75%, #008060 98.5%);
}

.categories-items {
    max-height: 200px;
    overflow-y: scroll;
    overflow-x: hidden !important;
}

.filter-item {
    cursor: pointer;
    user-select: none;
}

.filter-item:hover {
    transform: translateX(-3px);
    font-weight: bold;
}

.filter-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #008060;
    display: inline-block;
    transition: 0.25s;
}

.filter-item.active .filter-circle {
    background: var(--green-light);
    border-color: var(--green-light);
}

.price-slider {
    width: 49%;
    appearance: none;
    -webkit-appearance: none;
    height: 5px;
    background: rgba(26, 114, 28, 0.6);
    border-radius: 10px;
    margin-bottom: 10px;
}

.price-slider::-webkit-slider-runnable-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.price-slider::-moz-range-track {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-light);
    border: 2px solid #0c0c0c;
    cursor: pointer;
}

.price-slider::-moz-range-thumb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-light);
    border: 2px solid #5a5a5a;
    cursor: pointer;
}

.filter-btn {
    display: none;
}

.sort-select {
    border: 1px solid #008060;
    border-radius: 35px;
    background-color: transparent;
    width: 170px;
    height: 40px;
    font-size: 14px;
    color: #008060;
    padding-right: 10px;
    font-weight: 900;
    margin-right: 10px;
}

.close-filter {
    display: none;
}

@media (max-width: 992px) {
    /* .filter-box {
        position: relative;
        top: auto;
        margin-bottom: 2.5rem;
    } */
    .filter-box {
        position: fixed;
        top: 0px;
        right: 0px;
        background-color: #fff;
        width: 100%;
        height: 100vh;
        z-index: 100000000000 !important;
        border-radius: 0px;
        display: none;
    }
    .close-filter {
        display: block;
        position: fixed;
        top: 10px;
        left: 10px;
        font-size: 22px;
        color: #df8c08;
        cursor: pointer;
    }
    .filter-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background-color: #df8c08;
        color: #fff;
        text-decoration: none;
        cursor: pointer;
        position: fixed;
        bottom: 10px;
        right: 10px;
        z-index: 100000000;
    }
    .sort-select {
        border: 1px solid #008060;
        border-radius: 35px;
        background-color: transparent;
        width: 140px;
        height: 40px;
        font-size: 14px;
        color: #008060;
        padding-right: 10px;
        font-weight: 900;
        margin-right: 10px;
        display: none;
    }
}