body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

nav{
    background-color: #4caf50;
    /* background-color: #0084ff;   */
    /* background-color: #ff0000; */
    /* background-color: #FDDA0D; */
    /* background-color: #ff58d3; */
    /* background-color: #333; */
    /* background-color: #8800ff; */
    /* background-color: #ff8800; */
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

nav h1 {
    margin: 0;
    color: white; 
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 18px;
}

nav a:hover {
    text-decoration: none;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
    margin-top: 20px;
}

.product-card {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px); 
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-card h3 {
    font-size: 18px;
    margin: 10px 0;
}

.product-card p {
    font-size: 16px;
    color: #555;
}

.price {
    color: red;
    font-weight: bold;
}

button {
    padding: 10px 18px; 
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px; 
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

.product-details-container {
    padding: 20px;
}

.product-image {
    width: 280px;
    height: auto;
    margin-bottom: 20px;
}

.review-card {
    background-color: #f9f9f9;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.back-button {
    padding: 12px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.back-button:hover {
    background-color: #45a049;
}
.btn-div{
    margin-bottom: 20px;
    text-align: center;
}
.a{
    text-decoration: none;
}
.a:hover{
    text-decoration: none;
}

.cart-container {
    padding: 20px;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cart-item-info {
    flex: 1;
    padding-left: 20px;
}

.product-image {
    width: 150px;
    height: auto;
    border-radius: 8px;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.remove-button {
    padding: 10px 20px;
    background-color: #d33;
    color: white;
    border: none;
    border-radius: 5px;
    margin-top: 15px;
    cursor: pointer;
}
.remove-button:hover {
    background-color: #c1351d;
}

.plus-minus-btn {
    background-color: #f0f0f0;
    color: #333; 
    border: 1px solid #e8e7e7; 
    padding: 7px 10px;
    border-radius: 7px;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin: 0 5px;
}
.plus-minus-btn:hover {
    background-color: #e0e0e0; 
}
.plus-minus-btn:active {
    background-color: #d0d0d0;
}


.continue-shopping {
    background-color: #4CAF50;
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    width: 35%;
}

.clear-cart {
    background-color: red; 
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    width: 35%;
}
.clear-cart:hover{
    background-color: rgb(255, 73, 73);
}

.checkout-button {
    background-color: rgb(0, 162, 255); 
    color: white;
    border-radius: 8px;
    text-align: center;
    font-size: 15px;
    font-weight: 500;
    width: 60%;
}
.checkout-button:hover {
    background-color: rgb(79, 190, 255); 
    color: white;
}

.buttoon{
    background-color: rgb(183, 183, 183);
    color: #333;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    cursor: auto;
    width: 80%;
}
.buttoon:hover{
    background-color: #b7b7b7; 
    cursor: auto;
}
.buttoon:active{
    background-color: rgb(183, 183, 183);
    cursor: auto;
}

.first-side{
    display: flex;
    flex-direction: column;
    margin: 10px 30px 15px;
    justify-content: center;
    align-items: center;
    background-color: #e4e4e4;
    padding: 10px 3px 15px;
    border-radius: 30px;
}

.second-side{
    display: flex;
    margin: 30px 30px 15px;
    justify-content: space-evenly;
    flex-wrap: wrap;
}


/* Responsive Design */

@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column; 
        align-items: center; 
    }
}
@media (max-width: 768px) {
    .cart-item {
        flex-direction: column;
        align-items: center;
        text-align: center
    }

    .cart-item img.product-image {
        width: 120px;
        margin-right: 0;
        margin-bottom: 10px;
    }

    .cart-item-info {
        padding-left: 0;
    }

    .cart-item-controls {
        flex-direction: column;
        margin-top: 10px;
    }

    .remove-button {
        width: 100%;
    }
    .second-side{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .continue-shopping, .clear-cart{
        font-size: 13px;
    }
}
@media (max-width: 768px) {
    .cart-actions {
        flex-direction: column;
        align-items: center
    }
}


nav {
    /* background-color: #4caf50; */
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

nav h1 {
    margin: 0;
    color: white;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 20px;
    font-size: 18px;
}

nav a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .products-container {
        padding: 10px;
    }

    .product-card {
        padding: 15px;
        margin: 10px 0;
    }

    .product-card h3 {
        font-size: 16px;
    }

    .product-card p {
        font-size: 14px;
    }

    .price {
        font-size: 16px;
    }

    button {
        font-size: 14px;
        padding: 8px 15px;
    }

    .product-image {
        width: 100%;
        height: auto;
    }
}