body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    padding: 30px;
}

.product-card {
    width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.product-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.price {
    font-size: 24px;
    font-weight: bold;
}

button {
    background-color: #222;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

button:hover {
    transform: scale(1.08);
}

header {
    background-color: #222;
    color: white;
    padding: 20px 30px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
}

nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 16px;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #ffd700;
}

.hero {
    text-align: center;
    padding: 120px 20px;

    background-image:
        linear-gradient(rgba(0, 0, 0, 0.45),
            rgba(0, 0, 0, 0.45)),
        url("images/hero-store.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: white;
}

.hero h2 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.shop-button {
    display: inline-block;
    background-color: #222;
    color: white;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.shop-button:hover {
    transform: scale(1.08);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 300px));
    gap: 30px;
    justify-content: center;
    padding: 30px;
}

/* Tablet */
@media (max-width: 1000px) {

    .product-grid {
        grid-template-columns: repeat(2, 300px);
    }

}

/* Mobile */
@media (max-width: 700px) {


    .product-grid {
        grid-template-columns: 300px;
    }

    header {
        flex-direction: column;
        gap: 15px;
    }

    nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px 18px;
    }

    nav a {
        margin: 0;
        white-space: nowrap;
    }

    .hero h2 {
        font-size: 30px;
    }
}

.cart {
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.cart h2 {
    margin-top: 0;
}

#cart-items p {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

#cart-items button {
    padding: 5px 10px;
    font-size: 14px;
}

#cart-items button:first-of-type {
    margin-left: auto;
}

.cart h3 {
    text-align: right;
}

.clear-cart {
    display: block;
    margin: 10px 0 0 auto;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}

.about,
.contact {
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.about h2,
.contact h2 {
    margin-top: 0;
}

.about p,
.contact p {
    line-height: 1.6;
}

footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 50px;
}

footer p {
    margin: 5px 0;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);

    justify-content: center;
    align-items: center;

    z-index: 1000;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    padding: 30px;

    background: white;
    border-radius: 15px;
    text-align: center;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 18px;

    font-size: 30px;
    cursor: pointer;
}

#cart-notification {
    position: fixed;
    bottom: 30px;
    right: 30px;

    background: #222;
    color: white;

    padding: 12px 20px;
    border-radius: 8px;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.3s ease;

    z-index: 2000;
}

#cart-notification.show {
    opacity: 1;
}

.checkout-button {
    display: block;
    margin: 15px 0 10px auto;
    padding: 12px 20px;
    font-size: 16px;
    cursor: pointer;
}

.checkout {
    display: none;
    max-width: 900px;
    margin: 40px auto;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

#checkout-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#checkout-form input,
#checkout-form textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 7px;
}

#checkout-form textarea {
    min-height: 100px;
    resize: vertical;
}

#checkout-form button {
    margin-top: 10px;
    padding: 12px;
    font-size: 16px;
}

#order-summary {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

#summary-items p {
    padding: 8px 0;
    margin: 0;
}

#order-summary h3:last-child {
    text-align: right;
}

#order-confirmation {
    display: none;
    margin-top: 30px;
    padding: 25px;
    text-align: center;
    background: #f5f5f5;
    border-radius: 12px;
}

.brand-subtitle {
    margin: 2px 0 0;
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

.brand {
    display: flex;
    flex-direction: column;
}

.brand h1 {
    margin: 0;
}

.brand-subtitle {
    margin: 2px 0 0;
    font-size: 14px;
    font-style: italic;
    opacity: 0.8;
}

#products {
    text-align: center;
    font-size: 30px;
    margin: 35px 0 30px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid #555;
    outline-offset: 3px;
}