
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    color: #222;
}

header {
    background: #142b46;
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

header input {
    padding: 12px;
    width: 40%;
    border: none;
    border-radius: 5px;
}

button {
    padding: 11px 16px;
    background: #ff9800;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #e68900;
}

.hero {
    background: #193e63;
    color: white;
    text-align: center;
    padding: 55px 15px;
}

.hero h1 {
    margin-bottom: 12px;
}

.categories {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
}

main {
    padding: 25px;
}

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

.product {
    background: white;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 2px 8px #ddd;
}

.product img {
    width: 100%;
    height: 150px;
    object-fit: contain;
    margin-bottom: 12px;
}

.product h3 {
    margin-bottom: 8px;
}

.product p {
    margin: 8px 0;
}

.product button {
    width: 100%;
    margin-top: 10px;
}

.cart-section {
    background: white;
    margin: 25px;
    padding: 22px;
    border-radius: 10px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
}

.cart-item button {
    padding: 7px 12px;
}

.cart-section h3 {
    margin: 18px 0;
}

@media(max-width: 600px) {
    header input {
        width: 100%;
    }

    main {
        padding: 15px;
    }

    .cart-section {
        margin: 15px;
    }
}
