body {
    direction: rtl;
    margin: 0;
    font-family: Arial, sans-serif;
    padding-top: 60px; 
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}


.navbar {
    background-color: #f8f8f8;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 77px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}


.logo img {
    height: 81px;
}


.nav-links {
    list-style: none;
    display: flex;
    padding: 0;
}

.nav-links li {
    margin-left: 40px;
}

@media (max-width: 768px){
    .nav-links li{
    margin-left: 15px;
    }
}
    

.nav-links a {
    text-decoration: none;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 20px;
    transition: all 0.3s;
}


.nav-links a:hover {
    color: #01af5b;
}



@media (max-width: 768px) {
    .logo img {
        height: 72px;
        margin-left: 112px;
        margin-right: -15px;
    }
    .nav-links a {
        font-size: 20px;
    }
    .nav-text {
        display: none;
    }
}

img{
    border-radius: 6px;
    width: 100%;
    height: 238px;
}

.img-card {
    border-radius: 11px;
    width: 100%;
    height: 200px;
    margin-top: -7px;
    background-color: rgb(186, 186, 186);
}

@media (max-width :768px) {
    .img-card{
        width: 100%;
        height: 80px;
    }

    img{
        width: 100%;
        height: 81px;
    }
}

h2 {
    font-size: 18px;
    margin: 10px 0;
}

p{
    color: #555;
}

.p1 {
    font-size: 17px;
    display: block;
}

.p2{
    display: none;
}


@media (max-width:768px) {
    .p1{
        display: none;
    }

    .p2{
        display: block;
        font-size: 17px;
    }
}

.price {
    font-weight: bold;
    color: #d32f2f;
    margin: 10px 0;
    font-size: 20px;
}

button {
    background: #d32f2f;
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.4s;
    width: 140px;
    font-size: 17px;
}

button:hover {
    background: #b71c1c;
}

.but2 {
    background-color: #0fdf7a;
    width: 140px;
}

.but2:hover{
    background-color: #04c467;
}



.product-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
    width: 90%;
    max-width: 800px;
    margin-top: 616px;
    cursor:pointer
}

.product-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    padding: 15px;
    text-align: center;
    width: 100%;
    max-width: 470px;
    transition: 0.3s;
    height: 400px;
    cursor:pointer
}

.product-card:hover {
    transform: scale(1.05);
}



@media (max-width: 768px) {
    .product-container {
        flex-direction: row;
        justify-content: space-between;
        margin-top: 504px;
        gap: 13px;
    }
    .product-card {
        max-width: 96%;
        margin-bottom: 12px;
        height: 399px;
    }   
    button {
        max-width: 97px;
        font-size: 14.4px;
    }

    .but2 {
        max-width: 97px;
        margin-top: 0.5rem;
    }
}



nav {
    width: 100%;
    background: #d32f2f;
    color: #fff;
    text-align: center;
    padding: 15px 0;
    font-size: 20px;
}

.slider {
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 1022px;
    position: absolute;
}

.slider img {
    width: 100%;
    height: 86%;
    object-fit: cover;
}


@media (max-width: 768px) {
    .slider {
        height: 200px;
        margin-bottom: 1020px;
        width: 100%;
    }
}

.support-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    z-index: 1000;
}

.support-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 10px;
    visibility: hidden;
}

.support-btn {
    background-color: #1b9500;
    color: white;
    padding: 10px 6px;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    transition: 0.3s;
    margin-left: 24px;
}

@media (max-width :768px) {
    .support-options{
        margin-left: 10px;
    }
}

.support-btn:hover{
    background-color: #00c410;
    transition: 0.3s;
}

.support-btn i {
    font-size: 18px;
}


.support-options.active {
    visibility: visible;
}

.support-options.active .support-btn {
    opacity: 1;
    transform: translateY(0);
}


.support-btn:nth-child(1) { transition-delay: 0.1s; }
.support-btn:nth-child(2) { transition-delay: 0.2s; }
.support-btn:nth-child(3) { transition-delay: 0.3s; }
.support-btn:nth-child(4) { transition-delay: 0.4s; }


.support-options.closing .support-btn {
    opacity: 0;
    transform: translateY(20px);
}


.support-toggle {
    background-color: #07ca17;
    color: white;
    border: none;
    width: 100px;
    border-radius: 100%;
    font-size: 40px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: 100px;
}

.support-toggle:hover {
    background-color: #00be10;
}

@media(max-width :768px){
    .support-toggle{
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-left: 45px;
    }
}

.pish{
    border-bottom: solid rgb(0, 167, 8);
    width: 170px;
    position: absolute;
    margin-top: -164px;
    font-size: 40px;
    margin-right: 5px;
    border-right: solid rgb(0, 175, 9);
    border-bottom-right-radius: 17px;
}

@media (max-width: 768px) {
    .pish {
        width: 109px;
        margin-top: -210px;
        margin-right: 5px;
    }
}
.pov{
    margin-right: 10px;
}

@media (max-width: 768px) {
    .pov{
        margin-right: 5px;
        font-size: 30px;
    }

}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


.container {
    display: flex;
    justify-content: center;
    gap: 96px;
    flex-wrap: wrap;
    padding: 20px;
    text-align: center;
    position: absolute;
    margin-top: -582px;
    border-bottom: solid rgb(23, 141, 0);
    cursor: pointer;
}

@media (max-width:768px) {
    .container{
        gap: 10px;
        margin-top: -654px;
    }
}


.item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.item img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.item img:hover {
    transform: scale(1.1);
}

.item p {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    font-weight: bold;
}


@media (max-width: 576px) { 
    .hide-mobile {
        display: none;
    }
}


@media (min-width: 577px) and (max-width: 992px) { 
    .hide-tablet {
        display: none;
    }
}



.cart-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 30px;
    cursor: pointer;
}


.cart-sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -3px 0 5px rgba(0,0,0,0.2);
    padding: 20px;
    transition: right 0.3s ease-in-out;
}

@media (max-width:768px) {
    .cart-sidebar{
        width: 220px;
    }
}


.close-btn {
    background: #a10000;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    left: 10px;
}



.pharmacy-menu-icon {
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 30px;
    cursor: pointer;
    z-index: 9999;
}

/* استایل پنل منو */
.pharmacy-menu-sidebar {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100%;
    background-color: #fff;
    box-shadow: 3px 0 5px rgba(0,0,0,0.3);
    padding: 20px;
    transition: left 0.3s ease-in-out;
    z-index: 9998; 
    overflow-y: auto; 
    transition: right 0.3s ease-in-out;
}

@media (max-width:768px) {
    .pharmacy-menu-sidebar{
        width: 250px;
    }
}


.pharmacy-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    position: absolute;
    top: 21px;
    margin-right: 125px;
    background-color: #9b0000;
}


.pharmacy-menu-sidebar ul {
    list-style-type: none;
    padding: 0;
}

.pharmacy-menu-sidebar li {
    margin: 20px 0;
}

.pharmacy-menu-sidebar a {
    text-decoration: none;
    font-size: 18px;
    color: #333;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.pharmacy-menu-sidebar a:hover {
    background-color: #ddd;
}


.pharmacy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 9997; 
    display: none; 
}
