* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #121212;
    color: #fff;
}

/* Navbar (unchanged) */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #181c1ca7;
    padding: 1rem 2rem;
    position: relative;
    transition: background-color 0.3s ease;
}

.logo img {
    height: 80px;
    width: 80px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(130, 241, 230, 0.549);
    transition: all 0.3s ease;
    object-fit: contain;
    background-color: #fff;
    border: 1px solid #ddd;
    margin-right: 200px;
}

.logo img:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 12px rgba(67, 72, 21, 0.521);
    border-color: #223523;
}

.navbar-list {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.navbar-item a {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-item a:hover {
    color: #ffeb3b;
}

.navbar-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 3px;
    background-color: #ffeb3b;
    transition: width 0.3s ease;
}

.navbar-item a:hover::after {
    width: 100%;
}

.d-flex {
display: flex;
align-items: center;
margin-left: 20px;
position: relative; /* اضافه شد */
}

.form-control {
position: relative;
padding: 10px 40px 10px 15px;
border: 2px solid #444;
border-radius: 25px;
background-color: #2b2b2b;
color: #fff;
font-size: 14px;
transition: all 0.3s ease;
width: 200px;
}

.form-control:focus {
outline: none;
border-color: #ffeb3b;
box-shadow: 0 0 8px rgba(221, 207, 76, 0.563);
width: 250px;
}

.form-control::placeholder {
color: #aaa;
}

.btn-outline-success {
display: none; /* Hide the button */
}

/* Search icon inside input */
.d-flex::after {
content: "\f002";
font-family: "Font Awesome 6 Free";
font-weight: 900;
position: absolute;
right: 20px; /* تغییر از 35px به 20px */
top: 50%;
transform: translateY(-50%);
color: #aaa;
pointer-events: none;
transition: all 0.3s ease;
}

.form-control:focus + .btn-outline-success + ::after,
.form-control:focus ~ ::after {
color: #ffeb3b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
.d-flex {
margin-left: 10px;
}
.form-control {
width: 150px;
}
.form-control:focus {
width: 180px;
}
}

/* Product Container */
.product-container {
    display: flex;
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    gap: 40px;
}

/* Product Image */
.product-image {
    width:700px;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    transition: all 0.4s ease;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 215, 0, 0.3);
}

.product-image:hover img {
    transform: scale(1.05);
}

.product-details {
    flex: 1;
    padding: 30px;
    background-color: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 4px;
    margin-left: 100px;
    width: 700px;
}

.product-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: #FFD700;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.4s ease;
}

.product-details:hover::before {
    transform: scaleY(1);
}

.product-title {
    font-size: 2rem;
    color: #FFD700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.product-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #FFD700;
    transition: width 0.4s ease;
}

.product-details:hover .product-title::after {
    width: 100%;
}

.product-category {
    display: inline-block;
    background-color: #FFD700;
    color: #121212;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.product-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #ccc;
    margin-bottom: 25px;
}

.product-price {
    font-size: 1.8rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.product-price::before {
    content: '';
    width: 30px;
    height: 2px;
    background-color: #FFD700;
}

.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.action-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.share-btn {
    background-color: #1e1e1e;
    color: #FFD700;
    border: 2px solid #FFD700;
}

.save-btn {
    background-color: #FFD700;
    color: #121212;
    border: 2px solid #FFD700;
    margin-left: 80px;
}

.share-btn:hover {
    background-color: #FFD700;
    color: #121212;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.save-btn:hover {
    background-color: #121212;
    color: #FFD700;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* Footer (unchanged) */
.footer {
    background-color: #1e1e1e;
    color: #ccc;
    font-family: Arial, sans-serif;
    padding: 2rem;
    margin-top: 100px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 2rem;
}

.footer-logo img {
    width: 120px;
    margin-bottom: 1rem;
}

.footer-logo p {
    font-size: 0.9rem;
    color: #aaa;
}

.footer-middle {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    text-decoration: none;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #f5a623;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    background-color: #2b2b2b;
    border-radius: 50%;
    text-align: center;
    margin-right: 0.5rem;
    color: #ccc;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background-color: #f5a623;
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-top: 1px solid #333;
    padding-top: 1.5rem;
    color: #777;
    font-size: 0.9rem;
}

.footer-links a {
    color: #ccc;
    margin-left: 1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f5a623;
}

.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.dot {
    width: 15px;
    height: 15px;
    margin: 0 5px;
    background-color: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    animation: bounce 1.4s infinite ease-in-out both;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1.0);
    }
}

@media (max-width: 992px) {
    .product-container {
        flex-direction: column;
        align-items: center;
    }
    
    .product-image {
        width: 100%;
        max-width: 450px;
    }
}

@media (max-width: 576px) {
    .product-actions {
        flex-direction: column;
    }
    
    .action-btn {
        width: 100%;
    }
}

.share-container {
position: relative;
flex: 1;
}

.share-btn {
background-color: #1e1e1e;
color: #FFD700;
border: 2px solid #FFD700;
padding: 12px;
border-radius: 8px;
font-size: 1rem;
font-weight: bold;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
gap: 8px;
width: 100%;
position: relative;
overflow: hidden;
margin-top:-15px;
margin-bottom: 10px;

}

.share-btn:hover {
background-color: #FFD700;
color: #121212;
transform: translateY(-3px);
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.share-options {
position: absolute;
bottom: 100%;
left: 0;
background-color: #1e1e1e;
border: 1px solid #FFD700;
border-radius: 8px;
padding: 10px;
display: none;
flex-direction: column;
gap: 8px;
width: 100%;
box-shadow: 0 5px 15px rgba(255, 215, 0, 0.2);
z-index: 100;
margin-bottom: 10px;
}

.share-container:hover .share-options {
display: flex;
animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
from { opacity: 0; transform: translateY(10px); }
to { opacity: 1; transform: translateY(0); }
}

.share-option {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 12px;
border-radius: 4px;
color: #fff;
text-decoration: none;
transition: all 0.3s ease;
font-size: 0.9rem;
}

.share-option i {
width: 20px;
text-align: center;
}

.share-option:hover {
background-color: #FFD700;
color: #121212;
}

.share-option.facebook:hover { background-color: #4267B2; color: white; }
.share-option.twitter:hover { background-color: #1DA1F2; color: white; }
.share-option.linkedin:hover { background-color: #0077b5; color: white; }



.translate-btn {
/* Positioning */
position: fixed;
left: 20px;
bottom: 20px;
z-index: 9999;

/* Colors */
background-color: #000000;
color: #FFD700; /* Gold/yellow */
border: 2px solid #FFD700;

/* Shape & Size */
padding: 12px 24px;
border-radius: 30px;
font-size: 16px;
font-weight: bold;
cursor: pointer;

/* Effects */
box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
transition: all 0.3s ease;
transform: translateY(0);

/* Text styling */
text-transform: uppercase;
letter-spacing: 1px;
}

/* Hover effects */
.translate-btn:hover {
background-color: #FFD700;
color: #000000;
box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
transform: translateY(-3px);
}

/* Active/click effect */
.translate-btn:active {
transform: translateY(1px);
box-shadow: 0 2px 10px rgba(255, 215, 0, 0.5);
}

/* Animation for attention */
@keyframes pulse {
0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* Add this class with JavaScript if you want a pulsing effect */
.pulse-effect {
animation: pulse 1.5s infinite;
}




@media (max-width: 600px) {

    .navbar {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

    .navbar-list {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }


    .d-flex {
        flex-direction: column;
    }

    .form-control,
    .btn btn-outline-success {
        width: 100%;
        border-radius: 40px;
        margin-top: 0.5rem;
    }

    .btn btn-outline-success {
        border-radius: 4px;
    }
}