/* --------------------------------------------------
   GLOBAL RESET & BASE
-------------------------------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    padding-bottom: 50px;
}

a {
    color: #1a73e8;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --------------------------------------------------
   HEADER & NAVIGATION
-------------------------------------------------- */
header {
    background: #2d6a4f;
    color: #fff;
    padding: 20px;
    margin-bottom: 30px;
}

header h1 {
    margin-bottom: 10px;
}

nav a {
    margin-right: 20px;
    color: #d8f3dc;
    font-weight: 500;
}

nav a:hover {
    color: #fff;
}

/* --------------------------------------------------
   LAYOUT HELPERS
-------------------------------------------------- */
main {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

.card,
.form-card {
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* --------------------------------------------------
   FORMS
-------------------------------------------------- */
form label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    margin-top: 5px;
    font-size: 15px;
}

button {
    background: #2d6a4f;
    color: #fff;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: 0.2s;
}

button:hover {
    background: #1b4332;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* --------------------------------------------------
   ALERTS
-------------------------------------------------- */
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert-error {
    background: #f8d7da;
    color: #842029;
}

/* --------------------------------------------------
   PRODUCT GRID
-------------------------------------------------- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.product-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.product-card h2 {
    margin-bottom: 10px;
}

.product-card .producer {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
}

.product-card .price {
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.product-card .stock {
    font-size: 14px;
    margin-bottom: 10px;
}

.out-of-stock {
    color: #b91c1c;
    font-weight: bold;
}

/* --------------------------------------------------
   TABLES
-------------------------------------------------- */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
}

.table th {
    background: #e9f5ee;
    font-weight: 700;
}

.table tr:hover {
    background: #f1f5f9;
}

/* --------------------------------------------------
   FOOTER (OPTIONAL)
-------------------------------------------------- */
footer {
    text-align: center;
    padding: 20px;
    color: #666;
    margin-top: 40px;
}
