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

body {
    font-family: Arial, sans-serif;
    background: #f7f7f7;
    color: #222;
    line-height: 1.6;
}

/* Header */

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

header h1 {
    color: #f5c542;
    font-size: 28px;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s;
}

nav a:hover {
    color: #f5c542;
}

/* Hero */

.hero {
    background: linear-gradient(135deg, #111, #333);
    color: white;
    text-align: center;
    padding: 85px 20px;
}

.hero h2 {
    font-size: 34px;
    margin-bottom: 15px;
}

.hero p {
    color: #ddd;
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    background: #f5c542;
    color: #111;
    padding: 13px 28px;
    border-radius: 7px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #e5b52e;
}

/* Products */

main {
    padding: 45px 6%;
    text-align: center;
}

main h2 {
    margin-bottom: 30px;
    font-size: 28px;
}

#product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    background: transparent;
    padding: 0;
}

.product-card {
    background: white;
    border-radius: 14px;
    overflow: hidden;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.product-card img {
    width: 100%;
    height: 230px;
    object-fit: contain;
    background: white;
    display: block;
}

.product-card h3 {
    margin: 15px 12px 8px;
    font-size: 19px;
}

.price {
    color: #b58b18;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.description {
    color: #666;
    font-size: 14px;
    padding: 0 15px;
    margin-bottom: 15px;
}

.product-card button {
    background: #111;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 7px;
    cursor: pointer;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.product-card button:hover {
    background: #d5a91f;
    color: #111;
}

/* Footer */

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

/* Admin */

.admin-form {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.admin-form input {
    display: block;
    width: 100%;
    padding: 13px;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 7px;
    font-size: 16px;
}

.admin-form button {
    background: #111;
    color: white;
    padding: 13px 25px;
    border: none;
    border-radius: 7px;
    cursor: pointer;
}

#admin-products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Mobile */

@media (max-width: 600px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 18px 15px;
    }

    nav a {
        margin: 0 6px;
        font-size: 14px;
    }

    .hero {
        padding: 65px 15px;
    }

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

    main {
        padding: 30px 15px;
    }

    main h2 {
        font-size: 24px;
    }

    #product-list {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        margin: 0 auto;
        gap: 12px;
    }

    .product-card img {
        height: 230px;
        object-fit: contain;
    }

    .product-card h3 {
        font-size: 16px;
    }

    .price {
        font-size: 17px;
    }

    .product-card button {
        padding: 10px 15px;
        font-size: 13px;
    }
    }
