* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f5f6f8;
    color: #222;
}

.site-header {
    background: #1f2937;
    color: white;
}

.header-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 0;
}

.logo {
    color: white;
    text-decoration: none;
    font-size: 26px;
    font-weight: bold;
}

.main-navigation {
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: white;
    text-decoration: none;
}

.main-navigation a:hover {
    text-decoration: underline;
}

.main-content {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
}

.hero {
    background: white;
    padding: 40px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.hero h1 {
    margin-top: 0;
    font-size: 36px;
}

.hero p {
    color: #666;
}

.search-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.search-form {
    display: flex;
    gap: 10px;
}

.search-form input,
.search-form select {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.search-form input {
    flex: 1;
}

button,
.btn {
    border: none;
    border-radius: 6px;
    padding: 12px 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-secondary {
    background: #e5e7eb;
    color: #111;
}

.products {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(250px, 1fr));

    gap: 25px;
}

.product-card {
    background: white;
    border-radius: 10px;
    padding: 20px;

    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-card h2 {
    margin-top: 0;
}

.product-category {
    color: #777;
    font-size: 14px;
}

.product-description {
    color: #555;
    min-height: 50px;
}

.product-price {
    font-size: 20px;
    font-weight: bold;
}

.product-stock {
    margin-bottom: 15px;
}

.out-of-stock {
    color: #dc2626;
    font-weight: bold;
}

.in-stock {
    color: #16a34a;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.site-footer {
    margin-top: 50px;
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 25px;
}


.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 40px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.success-message {
    background: #dcfce7;
    color: #166534;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
}