/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

/* BODY */
body {
    background-color: #f4f4f4;
    color: #333;
}

/* HEADER */
header {
    background: #111;
    color: #fff;
    padding: 20px;
    text-align: center;
}

header h1 {
    letter-spacing: 2px;
    margin-bottom: 10px;
}

/* NAV */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 25px;
}

nav a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: gold;
}

/* SECTIONS */
section {
    padding: 50px 20px;
}

section h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    color: #111;
}

/* PRODUCT GRID */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

/* PRODUCT CARD */
.product {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* IMAGE */
.product img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 10px;
}

/* PRODUCT TITLE */
.product h3 {
    margin: 15px 0 5px;
    font-size: 18px;
}

/* PRICE */
.price {
    color: gold;
    font-weight: bold;
    margin-bottom: 10px;
}

/* DESCRIPTION */
.product p {
    font-size: 14px;
    margin-bottom: 10px;
}

/* BUTTON */
.product button {
    background: gold;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    font-weight: bold;
    transition: 0.3s;
}

.product button:hover {
    background: #111;
    color: #fff;
}

/* CART */
.cart {
    position: fixed;
    right: 20px;
    top: 100px;
    width: 260px;
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.cart h3 {
    margin-bottom: 10px;
}

#cart-items {
    list-style: none;
    margin-bottom: 10px;
}

#cart-items li {
    font-size: 14px;
    margin-bottom: 5px;
}

/* FOOTER */
footer {
    background: #111;
    color: #fff;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .cart {
        position: static;
        margin: 20px auto;
    }
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
}

.modal-content {
    background: #fff;
    padding: 20px;
    margin: 10% auto;
    width: 300px;
    border-radius: 10px;
    text-align: center;
}

.modal input, .modal select {
    width: 100%;
    margin: 10px 0;
    padding: 8px;
}

#close-modal {
    float: right;
    cursor: pointer;
    font-size: 20px;
}

#checkout-btn {
    width: 100%;
    padding: 10px;
    background: green;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}