* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f8f8f8;
    color: #333;
}

.header {
    background: white;
    padding: 18px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.logo {
    font-size: 22px;
    font-weight: bold;
}

nav a {
    text-decoration: none;
    color: #333;
    margin: 0 12px;
}

.cart-button,
.shop-button,
.checkout-button {
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    background: #111;
    color: white;
}

.hero {
    min-height: 400px;
    display: flex;
    align-items: center;
    padding: 50px 8%;
    background: linear-gradient(135deg, #ffe5ee, #fff);
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

.shop-button {
    display: inline-block;
    text-decoration: none;
}

.products-section {
    padding: 50px 6%;
}

.products-section h2 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 32px;
}

.search-box {
    text-align: center;
    margin-bottom: 30px;
}

.search-box input {
    width: 90%;
    max-width: 500px;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    padding-bottom: 20px;
}

.product-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.product-card h3,
.product-card p {
    padding: 8px 15px;
}

.price {
    font-weight: bold;
    font-size: 20px;
}

.add-button {
    margin: 10px 15px;
    width: calc(100% - 30px);
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #111;
    color: white;
}

.cart-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

.cart-content {
    background: white;
    width: 90%;
    max-width: 500px;
    margin: 60px auto;
    padding: 30px;
    border-radius: 12px;
}

.close {
    float: right;
    font-size: 28px;
    border: none;
    background: none;
    cursor: pointer;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

footer {
    text-align: center;
    background: #111;
    color: white;
    padding: 30px;
    margin-top: 50px;
}

@media (max-width: 700px) {

    .header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        display: flex;
        gap: 5px;
    }

    .hero h1 {
        font-size: 36px;
    }
}
#checkoutForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#checkoutForm label {
    font-weight: bold;
    margin-top: 8px;
}

#checkoutForm input,
#checkoutForm textarea,
#checkoutForm select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

#checkoutForm textarea {
    min-height: 80px;
    resize: vertical;
}