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

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: #1b2a41;
    background: #f5f7fa;
    line-height: 1.6;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 40px;
    background: #0e6ba8;
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo { font-size: 1.4rem; font-weight: bold; }
header nav a { color: white; text-decoration: none; margin: 0 12px; font-weight: 500; }
header nav a:hover { text-decoration: underline; }
.cart-info { font-weight: bold; }

.hero {
    background: linear-gradient(135deg, #0e6ba8, #0a9396);
    color: white;
    text-align: center;
    padding: 60px 20px;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 10px; }

section { padding: 40px; max-width: 1200px; margin: auto; }
h2 { margin-bottom: 20px; color: #0e6ba8; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }

.card .img {
    height: 160px;
    background: #e6f0f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
}

.card-body { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.card h3 { font-size: 1.05rem; margin-bottom: 5px; }
.card .price { color: #0a9396; font-weight: bold; margin: 8px 0; font-size: 1.1rem; }
.card .desc { font-size: .88rem; color: #555; flex: 1; }

.card button {
    margin-top: 10px;
    padding: 10px;
    background: #0e6ba8;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: .95rem;
}
.card button:hover { background: #0a9396; }

#cart-list { list-style: none; margin-bottom: 20px; }
#cart-list li {
    background: white;
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
#cart-list button {
    background: #d90429;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

#checkout-btn {
    padding: 12px 28px;
    background: #0a9396;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}
#checkout-btn:hover { background: #087f82; }

footer {
    text-align: center;
    padding: 20px;
    background: #1b2a41;
    color: #ccc;
    margin-top: 40px;
}

@media (max-width: 700px) {
    header { flex-direction: column; gap: 10px; }
    section { padding: 25px 15px; }
}