* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* استفاده از فونت وزیر */
body {
    direction: rtl;
    font-family: 'Vazir', sans-serif;
    color: #333;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    color: #fff;
    border-radius: 15px;
    border: 3px solid #f1f1f1;
    margin: 0.5rem 0.25rem 4rem 0.25rem;
}

.navbar .menu {
    display: flex;
    gap: 1rem;
}

.navbar .menu a, .navbar .menu .dropbtn {
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.menu .dropdown-content {
    display: flex;
    gap: 6px;
}

.dropdown-content a {
    font-size: 14px;
    font-weight: 600;
    color: #111;
}

.dropdown-content a:hover {
    color: #062981;
    transition: 0.3s ease;
}

/* Hide everything except logo and hamburger icon on mobile */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: #000; /* Black color for visibility */
}

/* Hide the full menu and login link on mobile/tablet by default */
@media (max-width: 1024px) {
    .menu, #login {
        display: none;
    }

    .hamburger {
        display: block;
        font-size: 24px;
        cursor: pointer;
        color: #000;
    }

    /* Sidebar menu */
    #menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: -75%; /* Hidden off-screen initially */
        width: 75%;
        height: 100%;
        background-color: #fff;
        padding-top: 2rem;
        padding-left: 1rem;
        gap: 1.5rem;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        z-index: 1000;
        transition: left 0.3s ease;
    }

    /* Show the sidebar menu when active */
    #menu.active {
        left: 0;
    }

    /* Dropdown items in sidebar */
    #menu .dropdown-content {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #menu .dropdown-content a {
        color: #111;
        font-size: 18px;
        font-weight: bold;
    }

    #menu .dropdown-content a:hover {
        color: #062981;
    }

    /* Overlay styling */
    #menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    /* Show overlay when menu is active */
    #menu-overlay.active {
        display: block;
    }
}

.category-section {
    margin: 2rem;
}
.titles{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.category-title {
    font-size: 1.5rem;
    color: #062981;
    text-align: right;
    margin-right: 20px;
    margin-bottom: 0.45rem;
}
.main-slider-container{
    max-width: 100%;
    overflow: hidden;
}
.st img{
    width: 100%;
    object-fit: fill;
}
.logo{
    color: #062981;
    font-size: 24px;
    font-weight: 900;
}
#login{
    padding: 8px 18px;
    font-size: 16px;
    background: linear-gradient(45deg, #1d40bd, #4719df, #63097e, #2e09c3, #b10922);
    background-size: 400%;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-weight: 100;
    cursor: pointer;
    text-decoration: none;
}
.swiper-container {
    width: 88%;
    margin: 0 auto;
    overflow: hidden;  
    padding-top: 14px;
    background-color: #fbfbfb;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
}

.swiper-wrapper {
    display: flex;
    gap: 0px;
}

.swiper-slide {
    width: 250px; 
    flex-shrink: 0; 
}


.product-box {
    width: 220px;  
    padding: 14px;
    text-align: center;
    max-width: 250px;
}
.product-box:hover{
    background-color: #f5f5f5;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    transition: 0.7s ease;
}

.product-box img {
    width: 100%;
    height: 150px; /* ارتفاع ثابت برای تصاویر */
    object-fit: contain; /* تناسب تصاویر داخل باکس */
    border-radius: 5px;
    margin-bottom: 8px;
}

.product-box h3 {
    font-size: 1rem;
    color: #333;
    margin: 0.25rem 0;
}

.product-box p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.boxes{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 85%;
    height: 100%;
    gap: 10px;
    margin: 0 auto;
}
#boxes{
    width: 100%;
    height: 400px;
}
.row{
    text-align: center;
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
}
.r1r{
    width: 25%;
    border-radius: 20px;
}
.r1m{
    width: 25%;
    border-radius: 20px;
}
.r1l{
    width: 50%;
    border-radius: 20px;
}
.r2r{
    width: 50%;
    border-radius: 20px;
}
.r2m{
    width: 25%;
    border-radius: 20px;
}
.r2l{
    width: 25%;
    border-radius: 20px;
}
.rowi img{
    width: 100%;
    height: 100%;
    border-radius: 20px;

}
.product-box .buy-btn {
    padding: 8px 18px;
    font-size: 16px;
    background: linear-gradient(45deg, #1d40bd, #4719df, #63097e, #2e09c3, #b10922);
    background-size: 400%;
    color: #fff;
    border: none;
    border-radius: 18px;
    font-weight: 100;
    cursor: pointer;
    transition: background-position 0.3s ease;
}

.product-box .buy-btn:hover {
    background-position: 100%;
    transition: background-position 1.5s ease;
}

.persian-number{
    font-family: 'Vazir';
}



/* Footer */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

