@font-face {
    font-family: "Vazirmatn";
    src: url("../Fonts/Vazirmatn-Regular.woff2") format("woff2");
}

body {
    font-family: "Vazirmatn" !important;
}

section {
    margin-bottom: 40px;
}

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
    height: 70px;

}

header.scrolled {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    header {
        background-color: rgb(255, 255, 255);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    }

    main {
        margin-top: 70px;
    }
}

header nav {
    margin-inline: 10vw;
}

@media (max-width: 1400px) {
    header nav {
        margin-inline: 15vw;
    }
}

@media (max-width: 1200px) {
    header nav {
        margin-inline: 10vw;
    }
}

@media (max-width: 992px) {
    header nav {
        margin-inline: 10vw;
    }
}

@media (max-width: 576px) {
    header nav {
        margin-inline: 5vw;
    }

    .navbar-brand img {
        height: 20px;
    }
}

.navbar {
    padding: 1rem 0 !important;
}

.nav-item {
    margin-inline: 10px;
}

.navbar-brand img {
    height: 30px;
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
}

.offcanvas-link {
    background-color: #313131;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: larger;
transition: background-color 0.3s ease, scale 0.3s ease;

}

.offcanvas-link:hover {
    background-color: #505050;
   scale: 1.2;
   color: #cccccc;

transition: background-color 0.3s ease, scale 0.3s ease;
}


.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.slide-text {
    position: absolute;
    color: black;
    font-size: 20px;
    padding: 10px;
}

.slide-text.left,
.slide-text.right {
    top: 50%;
    transform: translateY(-50%);
}

.slide-text.left {
    left: 10%;
}

.slide-text.right {
    right: 10%;
}

@media (max-width: 768px) {

    .slide-text.left,
    .slide-text.right {
        /* left: 10px;
        right: 10px; */
        width: 50%;
    }
}

@media (max-width: 992px) {

    .slide-text.left,
    .slide-text.right {
        /* left: 10px;
        right: 10px; */
        width: 50%;
    }
}

@media (max-width: 576px) {
    .slide-text p {
        font-size: 16px;
    }

    .slide-text h2 {
        font-size: 20px;
    }

    .btn-slide {
        padding: 0.5rem 1rem;
    }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mute {
    opacity: 0.6;
    font-size: medium;
}

.swiper {
    height: fit-content;
}

.swiper-button-next,
.swiper-button-prev {
    color: black;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
    transition: opacity 0.5s ease, transform 0.3s ease;
    transform: scale(1);
    opacity: 0;
}

.swiper-button.show {
    opacity: 1;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    color: black;
    font-size: 20px !important;
}

@media (max-width: 576px) {

    .swiper-button-next,
    .swiper-button-prev {
        width: 30px !important;
        height: 30px !important;
    }

    .swiper-button-next::after,
    .swiper-button-prev::after {
        font-size: 12px !important;
    }
}

.image-container {
    position: relative;
    overflow: hidden;
    display: inline-block;
    margin: 10px 5px;
    border-radius: 20px;
    color: black;
    width: 100%;
}

.image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.hover-image {
    width: 100%;
    transition: transform 0.7s ease;
}

.image-container:hover .hover-image {
    transform: scale(1.1);
}

.text-overlay-baner {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 50%;
}

@media (max-width: 1200px) {
    .text-overlay-baner h3 {
        font-size: 20px;
    }

    .text-overlay-baner p {
        font-size: 15px;
    }
}

@media (max-width: 992px) {
    .text-overlay-baner h3 {
        font-size: 17px;
    }

    .text-overlay-baner p {
        font-size: 15px;
    }
}

.btn-bottom-right {
    background-color: #FFA832;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: absolute;
    bottom: 0px;
    right: 0px;
    font-size: larger;
}

.btn-bottom-right:hover {
    background-color: #313233;
}

.inverted-radius {
    --r: 24px;
    --s: 30px;
    border-radius: var(--r);
    --_m: /calc(2*var(--r)) calc(2*var(--r)) radial-gradient(#000 70%, #0000 72%) no-repeat;
    mask: right 0 bottom calc(var(--s) + var(--r)) var(--_m),
        right calc(var(--s) + var(--r)) bottom 0 var(--_m),
        radial-gradient(var(--s) at 100% 100%, #0000 99%, #000 101%) calc(-1*var(--r)) calc(-1*var(--r)) no-repeat,
        conic-gradient(from 90deg at calc(100% - var(--s) - 2*var(--r)) calc(100% - var(--s) - 2*var(--r)), #0000 25%, #000 0);
}

.overlay-icons {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translate(-50%, 50%);
    width: 100%;
    padding: 0px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.overlay-icons-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    margin-inline: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(20px);
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease, scale 0.3s ease;
}

.overlay-icons-link:hover {
    background-color: rgba(255, 255, 255, 0.6);
    scale: 1.15;
}

.heart-icon {
    transition: transform 0.3s ease 0.1s, opacity 0.3s ease, background-color 0.3s ease, scale 0.3s ease;
}

.share-icon {
    transition: transform 0.3s ease 0.25s, opacity 0.3s ease, background-color 0.3s ease, scale 0.3s ease;
}

.cart-icon {
    transition: transform 0.3s ease 0.4s, opacity 0.3s ease, background-color 0.3s ease, scale 0.3s ease;
}

.card:hover .overlay-icons {
    opacity: 1;
    transform: translate(-50%, 0);
}

.card:hover .overlay-icons-link {
    transform: translateY(0);
    opacity: 1;
}

.overlay-icons i {
    color: black;
    /* رنگ آیکون‌ها */
    font-size: 20px;
    /* اندازه آیکون‌ها */
    margin: auto;
}

.overlay-icons-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    text-decoration: none;
    margin-inline: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
    /* اضافه کردن افکت بلور به پس‌زمینه */
}

.overlay-icons i {
    color: black;
    font-size: 20px;
    margin: auto;
}

.custom-container {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .custom-container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .custom-container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .custom-container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .custom-container {
        max-width: 75%;
    }
}

@media (min-width: 1400px) {
    .custom-container {
        max-width: 80%;
    }
}

@media (min-width: 2500px) {
    .custom-container {
        max-width: 65%;
    }
}

@media (min-width: 3000px) {
    .custom-container {
        max-width: 50%;
    }
}

.swiper-product img {
    width: 19vw;
    height: fit-content;
}

.swiper-product {
    width: 80vw;
}
@media (min-width: 3000px) {
    .swiper-product {
        width: 50vw;
    }
    .swiper-product img {
        width: 10vw;
    }
}

/* @media (max-width: 1200px) {
    .swiper-product img {
        width: 40vw;
    }

    .swiper-product {
        width: 90vw;
    }
} */

@media (max-width: 1200px) {
    .swiper-product img {
        width: 25vw;
    }
    .swiper-product {
        width: 90vw;
    }
}

@media (max-width: 768px) {
    .swiper-product img {
        width: 35vw;
    }
}

@media (max-width: 576px) {
    .swiper-product img {
        width: 50vw;
    }
}



.swiper-category img {
    height: 250px;
    width: 250px;
    object-fit: cover;
    border-radius: 20px;
}

.swiper-category{
    height: 340px;
    
}

.swiper-category .swiper-slide {
    display: grid;
    justify-content: center;
    align-items: center;
}

.swiper-category a {
    text-align: center;
    text-decoration: none;
    color: black;
    margin-top: 10px;
    font-size: large;
}
.swiper-category .swiper-slide {
    transition: scale 0.3s ease;
    }
.swiper-category .swiper-slide:hover {
scale: 1.1; 
transition: scale 0.3s ease;

}

.swiper-category .swiper-slide img {
    display: block;
    margin: 0 auto;
}

.card-shadow {
    box-shadow: -4px 5px 15px rgba(0, 0, 0, 0.2);
}

a {
    text-decoration: none;

}

.card-hover-effect:hover .card-img-top {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-effect .card-img-top {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.text-white,
.text-black,
.logo-light,
.logo-dark {
    transition: all 0.3s ease;
}

.text-white {
    color: white !important;
}

.text-black {
    color: black !important;
}

.logo-light {
    filter: invert(1) hue-rotate(180deg);
}

.logo-dark {
    filter: none;
}

.link-line {
    position: relative;
    text-decoration: none;
}

.link-line::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    background: black;
    transition: width 0.3s;
    bottom: -5px;
    right: 0;
}

.link-line:hover::after {
    width: 100%;
    left: 0;
}
/*.no-slider{
    padding-top: 30px;
}
*/
@media (min-width: 992px) {
    .no-slider {
        padding-top: 70px;
    }
    
}
