/* বেসিক রিসেট */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
}

a {
    color: #004d00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

/* হেডার */
header {
    background: #004d00;
    color: #fff;
    padding: 20px 0;
    border-bottom: 5px solid #003300;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.2em;
}

/* নেভিগেশন */
nav {
    background: #006600;
    color: #fff;
}

nav ul {
    padding: 0;
    list-style: none;
    text-align: center;
}

nav ul li {
    display: inline;
    padding: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1em;
    padding: 10px 0;
    display: inline-block;
}

nav ul li a:hover {
    background: #004d00;
    text-decoration: none;
}

/* মেইন কনটেন্ট */
main {
    padding: 20px 0;
}

main h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #004d00;
}

/* গাছের গ্রিড লেআউট */
.plant-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* গাছের কার্ড স্টাইল */
.plant-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
    border-top: 3px solid #006600;
}

.plant-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.plant-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover;
}

.plant-card .card-content {
    padding: 15px;
}

.plant-card h3 {
    font-size: 1.3em;
    margin: 10px 0 5px;
    min-height: 40px;
}

.plant-card p {
    color: #666;
    font-size: 0.9em;
    min-height: 45px;
    overflow: hidden;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
}

.plant-card .price {
    display: block;
    font-size: 1.4em;
    color: #d9534f;
    margin: 10px 0 15px;
    font-weight: bold;
}

/* ডিফল্ট বাটন স্টাইল (হোম পেজের কার্ডের জন্য) */
.details-btn {
    display: block;
    background: #006600; /* সবুজ রং */
    color: #fff;
    padding: 10px 0;
    border-radius: 5px;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s;
}

.details-btn:hover {
    background: #004d00;
    text-decoration: none;
}

/* ডিটেইলস পেজ (details.html)*/
.plant-details {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.plant-details img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    margin-right: 30px;
    border-radius: 8px;
}

.plant-details .info {
    flex-grow: 1;
    max-width: calc(100% - 380px); 
}

.plant-details h2 {
    text-align: left;
    margin-top: 0;
    margin-bottom: 5px;
    color: #004d00;
}

.details-price {
    display: block;
    font-size: 1.8em;
    color: #d9534f;
    margin: 10px 0 20px;
    font-weight: bold;
}

.plant-details h3 {
    color: #004d00;
    margin-top: 20px;
    font-size: 1.2em;
}

.plant-details ul {
    margin-left: 20px;
    list-style-type: disc;
    color: #555;
    margin-bottom: 20px; 
}

/* ***ডিটেইলস পেজের "এখনই অর্ডার করুন" বাটনকে সেন্টার ও ডিজাইন করা*** */

/* ১. বাটনকে সেন্টার করার জন্য কন্টেইনার */
.order-button-container { 
    text-align: center; 
    margin-top: 20px;
    margin-bottom: 10px;
}

/* ২. বাটন স্টাইল */
.order-now-btn {
    display: inline-block; /* মাঝখানে আসার জন্য block থেকে inline-block করা */
    max-width: 90%; 
    padding: 16px 30px; /* প্যাডিং বাড়ানো */
    font-size: 1.3em; /* ফন্ট সাইজ বড় করা */
    border-radius: 10px; 
    box-shadow: 0 4px 10px rgba(0, 102, 0, 0.4); 
    transition: all 0.3s ease;
    text-transform: none; 
}

.order-now-btn:hover {
    background: #004d00;
    box-shadow: 0 6px 15px rgba(0, 102, 0, 0.6); 
    transform: translateY(-2px); 
}


/* ফুটার */
footer {
    background: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-top: 20px;
}

/* === গাছের কার্ডের জন্য অতিরিক্ত স্টাইল (এলোমেলোভাবে দেখানোর জন্য) === */
.style-1 {
    background-color: #f7fff7; 
    box-shadow: 0 4px 6px rgba(0, 77, 0, 0.1);
    border-top: 3px solid #004d00;
}

.style-2 {
    background-color: #fffaf0; 
    box-shadow: 0 4px 6px rgba(100, 100, 100, 0.1);
    border-left: 3px solid #ffcc66;
}

.style-3 {
    background-color: #ffffff; 
    border: 1px solid #e0e0e0;
    box-shadow: none;
}

.style-4 {
    background-color: #f0f0f0; 
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-bottom: 3px solid #004d00;
}

/* === মোবাইল রেসপনসিভ ফিক্স === */

@media (max-width: 768px) {
    
    .plant-grid {
        grid-template-columns: 1fr 1fr; 
        gap: 10px; 
        padding: 0 5px; 
    }
    
    .plant-card {
        height: 290px; 
        display: flex; 
        flex-direction: column; 
        justify-content: space-between; 
        padding: 0; 
        margin: 0;
        border-radius: 8px; 
    }

    .plant-card img {
        height: 120px; 
        object-fit: cover;
        border-top-left-radius: 8px; 
        border-top-right-radius: 8px; 
    }
    
    .plant-card .card-content {
        padding: 5px; 
        padding-top: 0;
    }

    .plant-card h3 {
        font-size: 0.95em; 
        margin: 5px 0 3px; 
        min-height: 38px; 
        overflow: hidden;
        display: -webkit-box;
        -webkit-line-clamp: 2; 
        -webkit-box-orient: vertical;
        line-height: 1.2; 
    }
    .plant-card p {
        font-size: 0.75em; 
        padding: 0 2px; 
        margin-bottom: 3px; 
        min-height: 30px; 
        line-height: 1.2;
    }
    .plant-card .price {
        font-size: 1.1em; 
        margin: 3px 0 5px; 
    }
    
    .details-btn {
        margin-top: auto; 
        padding: 6px 0; 
        font-size: 0.8em; 
        border-radius: 0 0 8px 8px; 
    }
    
    /* ডিটেইলস পেজ ফিক্স */
    .plant-details {
        flex-direction: column;
        padding: 15px;
    }

    .plant-details img {
        width: 100%;
        max-width: 300px;
        height: auto;
        margin: 0 auto 15px;
    }

    .plant-details .info {
        max-width: 100%; 
    }
}


/* === অর্ডার ফর্ম স্টাইল (order.html ও details.html এর জন্য) === */

.order-page-container { /* 765.jpg অনুযায়ী ডিজাইন */
    max-width: 500px;
    margin: 30px auto;
    padding: 25px; 
    background: #fff;
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
}

.order-page-container h2 {
    text-align: center;
    color: #004d00;
    margin-bottom: 25px;
    font-size: 1.8em;
    font-weight: 600;
}

.plant-summary {
    background: #e6f7e6; 
    padding: 18px;
    border-radius: 8px;
    border: 1px solid #c9e6c9;
    margin-bottom: 30px;
}

.plant-summary p {
    margin: 8px 0;
    font-size: 1.1em;
    font-weight: normal;
    color: #333;
}

.plant-summary span {
    font-weight: bold;
    color: #004d00;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: normal; 
    margin-bottom: 5px;
    color: #555;
    font-size: 0.95em;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 12px; 
    border: 1px solid #ddd; 
    border-radius: 6px; 
    box-sizing: border-box; 
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05); 
    font-size: 1em;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group textarea:focus {
    border-color: #006600;
    outline: none;
}

/* WhatsApp সাবমিট বাটন */
.submit-whatsapp-btn {
    display: block;
    width: 100%;
    background: #25d366; 
    color: #fff;
    padding: 14px 20px; 
    border: none;
    border-radius: 50px;
    font-size: 1.15em; 
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: 30px; 
    box-shadow: 0 4px 6px rgba(0, 150, 0, 0.2);
}

.submit-whatsapp-btn:hover {
    background: #128c7e;
    box-shadow: 0 4px 8px rgba(0, 150, 0, 0.4);
}
