* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Roboto, Arial, sans-serif;
}

body { 
    background-color: #f1f3f6; 
}

/* Navbar */
.navbar {
    background-color: #2874f0;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
}

.logo { 
    font-size: 24px; 
    font-weight: bold; 
    font-style: italic; 
}

.search-bar { 
    display: flex; 
    width: 40%; 
}

.search-bar input { 
    width: 100%; 
    padding: 10px; 
    border: none; 
    border-radius: 2px 0 0 2px; 
    outline: none; 
}

.search-bar button { 
    padding: 10px 20px; 
    background: white; 
    color: #2874f0; 
    border: none; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 0 2px 2px 0; 
}

/* Desktop a o menu gulo ke halka box effect dewa holo */
.nav-links a { 
    color: white; 
    text-decoration: none; 
    margin-left: 20px; 
    font-weight: 500; 
    font-size: 16px; 
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid white;
}

/* Product Section */
.container { 
    width: 90%; 
    margin: 20px auto; 
    background: white; 
    padding: 20px; 
    box-shadow: 0 1px 4px rgba(0,0,0,0.1); 
}

.section-title { 
    font-size: 22px; 
    font-weight: 500; 
    margin-bottom: 20px; 
    color: #212121; 
}

.product-grid { 
    display: flex; 
    gap: 20px; 
    flex-wrap: wrap; 
}

/* Product Card */
.product-card {
    border: 1px solid #e0e0e0;
    padding: 15px;
    width: 250px;
    text-align: center;
    border-radius: 4px;
    transition: box-shadow 0.2s ease-in-out;
    background-color: white;
}

.product-card:hover { 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
}

.product-card img { 
    width: 100%; 
    height: auto; 
    margin-bottom: 15px; 
    object-fit: contain;
}

.product-name { 
    font-size: 14px; 
    font-weight: 400; 
    color: #212121; 
    margin-bottom: 10px; 
}

.rating { 
    background: #388e3c; 
    color: white; 
    display: inline-block; 
    padding: 2px 5px; 
    font-size: 12px; 
    border-radius: 3px; 
    font-weight: bold; 
    margin-bottom: 10px; 
}

.price { 
    font-size: 16px; 
    font-weight: 500; 
    color: #212121; 
    margin-bottom: 15px; 
}

.add-to-cart { 
    background: #ff9f00; 
    color: white; 
    border: none; 
    padding: 10px 15px; 
    width: 100%; 
    font-size: 14px; 
    font-weight: bold; 
    cursor: pointer; 
    border-radius: 2px; 
}

.add-to-cart:hover { 
    background: #f39700; 
}

/* =========================================
   Mobile Responsive Design (Mobile er jonno)
   ========================================= */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 15px 15px;
        align-items: flex-start; /* FSK STORE side-e niye ashar jonno */
        gap: 12px;
    }
    
    .navbar .logo {
        text-align: left; /* Side e kora holo */
        font-size: 18px; /* Lekha soto kora holo */
        width: 100%;
    }

    .navbar .search-bar {
        width: 100%;
        display: flex;
    }

    .navbar .search-bar input {
        width: 100%; 
        flex: 1; /* Input box-take beshi jayga (boro) dewa holo */
        padding: 10px 12px;
        font-size: 14px;
    }

    .navbar .search-bar button {
        padding: 8px 12px;
        font-size: 12px; /* Search lekha-ta soto kora holo */
    }

    .navbar .nav-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
    }

    /* Cart & Login/Register option guloke Box-er bhitore rakha holo */
    .navbar .nav-links a {
        margin-left: 0;
        font-size: 13px;
        background-color: rgba(255, 255, 255, 0.15); /* Box-er bhitore halka background */
        border: 1px solid #ffffff; /* Sadah border */
        padding: 8px 12px;
        border-radius: 4px; /* Box-er kon gulo ektu baka */
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    .product-grid {
        justify-content: space-between;
        gap: 10px;
    }

    .product-card {
        width: 48%; /* Mobile-e pasapasi 2 to product dekhabe */
        padding: 10px;
    }
    
    .product-card img {
        margin-bottom: 10px;
    }

    .add-to-cart {
        padding: 8px 10px;
        font-size: 12px;
    }
}