html{
    scroll-behavior: smooth;
}
body{
    text-align: right;
    font-family: 'Vazir', sans-serif;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* header */
header {
    display: flex;
    justify-content: space-between;
    align-items:center;
    padding: 0 20px;
    margin: 0;
    height: 110px;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    font-family: 'Tahoma', sans-serif;
}

.logo {
    height: 120px;
    width: 100px;
}

.menu {
    list-style: none;
    display: flex;
    gap: 30px;
}

.menu a {
    text-decoration: none;
    color: black;
    padding: 8px 12px;
    transition: color 0.3s;
}

.menu a:hover {
    color: gray;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    min-width: 160px;
    border-radius: 5px;
    overflow: hidden;
    list-style: none;
    z-index: 1000;
}

.dropdown-content li {
    border-bottom: 0px solid white;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content li a {
    display: block;
    padding: 10px 15px;
    color: black;
    text-decoration: none;
}

.dropdown-content li a:hover {
    background-color: rgba(159,182,193,0.61);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.search-box input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    outline: none;

}
.dropdown .dropdown-content {
    display: none;
}

/* وقتی کلاس active گرفته منو نمایش داده شود */
.dropdown.active .dropdown-content {
    display: block;
}
/* responsive */
@media (max-width: 768px) {
    header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 8px 12px;
        flex-direction: row;
        height: auto;
        gap: 10px;
    }

    .logo {
        width: 45px; /* سایز لوگو کوچیک‌تر و مناسب */
        height: auto;
        order: 2; /* لوگو وسط */
    }

    nav {
        order: 1; /* منو سمت راست */
    }

    .search-box {
        order:0; /* سرچ سمت چپ */
        width: auto;
    }

    .search-box input {
        width: 90px; /* کوچیک برای موبایل */
        height: 30px;
        font-size: 12px;
        border-radius: 6px;
    }

    .menu {
        display: flex;
        flex-direction: row;
        gap: 8px;
        align-items: center;
        justify-content: center;
    }

    .menu li a {
        font-size: 12px;
        padding: 4px 6px;
    }

    /* دراپ‌داون‌ها روی موبایل بهتر دیده بشن */
    .dropdown-content {
        position: absolute;
        right: 0;
        background: #fff;
        border-radius: 6px;
        padding: 5px 0;
        top: 35px;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }
}


/*body*/
.product-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.product-top-box {
    display: flex;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: visible;
    margin-bottom: 35px;
    min-height: 400px;
}

.product-img {
    flex: 1;
    text-align: center;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-img img {
    max-width: 100%;
    border-radius: 12px;
}

.product-details {
    flex: 2;
    padding: 25px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-name {
    font-size: 28px;
    font-weight: bold;
    color: #222;
}

.divider {
    border: none;
    border-top: 1px solid rgba(0,0,0,0.1);
    margin: 12px 0;
}



.product-short-desc {
    font-size:20px;
    color: #666;
    margin: 15px 0;
}

.bottom-actions {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-top: auto;
}

.price-btn {
    background: #007bff;
    border: none;
    color: #fff;
    padding: 12px 25px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.price-btn:hover {
    background: linear-gradient(90deg,rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 35%, rgba(0, 212, 255, 1) 100%);
}

.dropdown {
    position: relative;
}

.dropdown-btn {
    background: #2196f3;
    border: none;
    color: #fff;
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 8px;
    cursor: pointer;
}

.dropdown-btn:hover {
    background: #1976d2;
}

.dropdown-list {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 160px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.15);
    list-style: none;
    padding: 8px 0;
    margin: 0;
    z-index: 1000;

    /* NEW → اسکرول وقتی آیتم زیاد بود */
    max-height: 150px;
    overflow-y: auto;
}

.dropdown-list li {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-list li:hover {
    background: #f1f1f1;
}



.brands-box ul {
    width: 90%;
    list-style: none;
    padding: 10px 15px;
    background: #f1f1f1;
    border-radius: 8px;
    display: flex;
    gap: 15px;
    margin-right: 10px;
    font-size: 18px;
}

.brands-box li {
    padding: 5px 12px;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    font-size: 16.5px;
    cursor: pointer;
    transition: 0.3s;
}

.brands-box li:hover {
    background: #e0e0e0;
}

.brands-box li.active {
    background: #007bff;
    color: #fff;
    font-weight: bold;
}

.product-bottom-box {
    background: #f9f9f9;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.product-bottom-box h2 {
    margin-bottom: 15px;
    color: #333;
    font-size: 35px;
}

.product-bottom-box h3 {
    margin-top: 30px;
    font-size: 30px;
    margin-bottom: 10px;
    color: #444;
}
.product-bottom-box #title{
    color: red;
}
.product-bottom-box p{
    font-size: 20px;
    color: gray;
}

.product-bottom-box li {
    font-size:20px;
    list-style-type: decimal;
    color: gray;
}

.product-bottom-box a{
    text-decoration: none;
    color:gray;
}
#title:hover{
    color: black;
}
.product-bottom-box a:hover{
    color: rgba(255,83,116,0.98) ;

}

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    width: 350px;
    text-align: center;
    box-shadow: 0 6px 22px rgba(0,0,0,0.25);
    position: relative;
    animation: fadeIn 0.3s ease;
}

.modal-content h2 {
    margin-bottom: 15px;
    color: #333;
}

.modal-content p {
    margin: 8px 0;
    color: #555;
    font-size: 15px;
}

.close {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #555;
}

.close:hover {
    color: red;
}

@keyframes fadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* responsive */
@media (max-width: 768px) {
    .product-top-box {
        flex-direction: column;
        min-height: auto;
    }
}
/*footer*/
.footer {
    background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
    color: #333;
    padding: 30px 20px;
    font-family: "IRANSans", sans-serif;
    border-top: 1px solid #ddd;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}


.footer-brand h2 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #222;
}

.footer-brand p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 500px;
}


.footer-menus {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.footer-menus h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #111;
}

.footer-menus ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menus li {
    margin-bottom: 8px;
}

.footer-menus a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-menus a:hover {
    color: #e74c3c;
}


.footer-contact {
    text-align: center ;
    font-size: 14px;
    color: #444;
}
@media (min-width: 992px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    .footer-brand {
        width: 35%;
        text-align: right;
    }
    .footer-menus {
        width: 40%;
        justify-content: center;
    }
    .footer-contact {
        width: 25%;
        text-align: right;
    }
    ul,li{
        margin-top: 10px;
        list-style-type: none;
    }
}
