/* Modern Flipkart-like Design */

/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f1f3f6;
    margin: 0;
    padding: 0;
}

/* Header */
.header {
    background-color: #2874f0;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .logo {
    font-size: 24px;
    font-weight: bold;
}
.header .search-bar {
    flex: 1;
    margin: 0 20px;
}
.header .search-bar input {
    width: 100%;
    padding: 8px;
    border: none;
    border-radius: 4px;
}
.header .user-options {
    display: flex;
    gap: 15px;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 20px;
}
.product-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px;
    text-align: center;
}
.product-card img {
    max-width: 100%;
    border-radius: 8px;
}
.product-card .product-name {
    font-size: 16px;
    margin: 10px 0;
}
.product-card .product-price {
    color: #388e3c;
    font-weight: bold;
}
.product-card .add-to-cart {
    background-color: #ff9f00;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Cart Page */
.cart-item {
    display: flex;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 15px;
}
.cart-item img {
    max-width: 100px;
    margin-right: 20px;
}
.cart-item .item-details {
    flex: 1;
}
.cart-item .item-actions {
    text-align: right;
}

/* Checkout Page */
.checkout-section {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}
.checkout-section h3 {
    margin-top: 0;
}

/* Buttons */
.btn-primary {
    background-color: #2874f0;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}
.btn-primary:hover {
    background-color: #2367d1;
}
