
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; scroll-behavior: smooth; }
body { background-color: #f9f9f9; }

/* NAVBAR */
.navbar { display: flex; justify-content: space-between; align-items: center; background-color: #2c3e50; padding: 15px 30px; color: white; position: sticky; top: 0; z-index: 1000; }
.navbar .logo a { font-size: 24px; font-weight: bold; color: #2ecc71; text-decoration: none;}
.nav-links { display: flex; list-style: none; }
.nav-links li { margin-left: 20px; }
.nav-links a { color: white; text-decoration: none; font-size: 18px; transition: 0.3s; }
.nav-links a:hover { color: #2ecc71; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background-color: white; transition: 0.3s; }

/* SLIDER */
.slider-container { position: relative; width: 100%; height: 450px; overflow: hidden; background-color: #ddd; }
.slider { width: 100%; height: 100%; }
.slide { position: absolute; width: 100%; height: 100%; opacity: 0; transition: opacity 0.8s ease-in-out; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.prev, .next { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.5); color: white; font-size: 24px; padding: 15px; border: none; cursor: pointer; z-index: 10; }
.prev { left: 10px; border-radius: 0 5px 5px 0; }
.next { right: 10px; border-radius: 5px 0 0 5px; }

/* PRODUCTS GRID */
.products-section { padding: 60px 20px; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; margin-bottom: 40px; font-size: 28px; color: #2c3e50; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; }
.product-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.1); transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; }
.product-card:hover { transform: translateY(-5px); }
.product-img { width: 100%; height: 200px; object-fit: cover; }
.product-info { padding: 15px; text-align: center; }
.product-info h3 { font-size: 20px; margin-bottom: 10px; color: #333; }
.product-info .category { font-size: 14px; color: #777; margin-bottom: 8px; }
.product-info .price { font-size: 18px; color: #e74c3c; font-weight: bold; margin-bottom: 15px; }
.view-btn { background-color: #2ecc71; color: white; border: none; padding: 10px 20px; font-size: 16px; border-radius: 5px; cursor: pointer; width: 100%; transition: 0.3s; }
.view-btn:hover { background-color: #27ae60; }

/* MODAL / POPUP */
/* MODAL / POPUP */





/* MODAL MAIN CONTAINER */
.modal { 
    display: none; 
    position: fixed; 
    z-index: 99999; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background: rgba(0,0,0,0.7); 
    justify-content: center; 
    align-items: center; 
    padding: 10px; 
    box-sizing: border-box;
}

/* MODAL CONTENT BOX */
.modal-content { 
    background: #ffffff; 
    border-radius: 10px; 
    max-width: 650px; 
    width: 100%; 
    position: relative; 
    animation: fadeIn 0.3s ease-in-out; 
    max-height: 85vh; /* স্ক্রিন থেকে যেন বাইরে না যায় */
    overflow-y: auto; /* কন্টেন্ট বেশি হলে স্ক্রোল হবে */
    box-shadow: 0px 5px 15px rgba(0,0,0,0.3);
}

@keyframes fadeIn { 
    from { transform: scale(0.9); opacity: 0; } 
    to { transform: scale(1); opacity: 1; } 
}

/* CLOSE BUTTON */
.close-modal { 
    position: absolute; 
    right: 12px; 
    top: 10px; 
    font-size: 28px; 
    cursor: pointer; 
    color: #333; 
    z-index: 100; 
    background: #eee;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    text-align: center;
    line-height: 28px;
    font-weight: bold;
}

/* MODAL BODY */
.modal-body { 
    display: flex; 
    flex-direction: row;
    flex-wrap: wrap; 
}

/* IMAGE SIDE */
.modal-img-side { 
    flex: 1 1 250px; 
    max-width: 100%;
    background: #f9f9f9;
}

.modal-img-side img { 
    width: 100%; 
    height: auto; 
    max-height: 280px; 
    object-fit: contain; 
    display: block;
}

/* INFO SIDE */
.modal-info-side { 
    flex: 1 1 250px; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
}

.modal-price { 
    font-size: 20px; 
    color: #e74c3c; 
    font-weight: bold; 
    margin: 10px 0; 
}

.modal-desc p { 
    color: #555; 
    line-height: 1.5; 
    font-size: 14px;
    margin-bottom: 15px; 
}

/* BUTTONS AREA */
.modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto; /* বাটনগুলোকে সবসময় নিচে রাখবে */
    padding-top: 10px;
}

.buy-now-btn { 
    background: #e67e22; 
    color: #ffffff !important; 
    text-decoration: none; 
    text-align: center; 
    padding: 12px; 
    font-size: 16px; 
    border-radius: 5px; 
    display: block !important; 
    font-weight: bold; 
    visibility: visible !important;
    opacity: 1 !important;
}

.call-now-btn { 
    background: #27ae60; 
    color: #ffffff !important; 
    text-decoration: none; 
    text-align: center; 
    padding: 12px; 
    font-size: 16px; 
    border-radius: 5px; 
    display: block !important; 
    font-weight: bold; 
    visibility: visible !important;
    opacity: 1 !important;
}

/* MOBILE RESPONSIVE FIX */
@media screen and (max-width: 600px) {
    .modal-body {
        flex-direction: column;
    }
    .modal-img-side img {
        max-height: 200px;
    }
    .modal-info-side {
        padding: 15px;
    }
}










/* ABOUT & REVIEWS */
.about-section { background-color: #27ae60; color: white; padding: 60px 20px; text-align: center; }
.about-container { max-width: 800px; margin: 0 auto; }
.review-section { padding: 60px 20px; max-width: 800px; margin: 0 auto; }
.reviews-container { display: flex; flex-direction: column; gap: 15px; margin-bottom: 40px; }
.review-card { background: white; padding: 15px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); border-left: 5px solid #2ecc71; }
.review-form-container { background: #f1f2f6; padding: 25px; border-radius: 8px; }
.review-form input, .review-form select, .review-form textarea { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; }
.review-form button { background: #2c3e50; color: white; padding: 12px 20px; border: none; border-radius: 5px; cursor: pointer; }

/* CONTACT */
.contact-section { padding: 60px 20px; }
.contact-container { max-width: 600px; margin: 0 auto; background: white; padding: 30px; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.contact-form input, .contact-form textarea { width: 100%; padding: 12px; border: 1px solid #ddd; border-radius: 5px; margin-bottom: 15px; }
.submit-btn { width: 100%; background: #e67e22; color: white; padding: 12px; border: none; border-radius: 5px; font-size: 18px; cursor: pointer; font-weight: bold; }
footer { background:#2c3e50; color:white; text-align:center; padding:20px; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; width: 100%; position: absolute; top: 60px; left: 0; background: #2c3e50; padding: 20px 0; }
    .nav-links.active { display: flex; }
    .nav-links li { margin: 15px 0; text-align: center; }
    .hamburger { display: flex; }
    .slider-container { height: 250px; }
    .modal-body { flex-direction: column; }
}

.call-now-btn{
    display: inline-block;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: 12px 30px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    box-shadow: 0 4px rgba(46, 204, 113, 0.4);
    transition: transform 0.3s, background-color 0.3s;
}
 
