body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    min-height: 80vh;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 1.8em;
}

nav {
    display: flex;
    gap: 20px;
}

nav a, .btn {
    color: white;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 4px;
    background-color: #3498db;
    transition: background-color 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

nav a:hover, .btn:hover {
    background-color: #2980b9;
}

.products-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.product-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    position: relative;
}

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

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
}

.product-card h3 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.product-card p.description {
    color: #7f8c8d;
    margin-bottom: 10px;
    height: 60px;
    overflow: hidden;
}

.product-card .price {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.product-card .stock {
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #7f8c8d;
}

.product-card .stock.available {
    color: #27ae60;
}

.product-card .stock.unavailable {
    color: #e74c3c;
}

.product-details {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.product-details .product-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.product-details img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

.product-details .product-info {
    flex: 1;
}

.product-details h2 {
    margin-top: 0;
    color: #2c3e50;
}

.product-details .description {
    margin: 20px 0;
    color: #7f8c8d;
}

.product-details .price {
    font-size: 1.5em;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 20px;
}

.order-form {
    margin-top: 30px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.order-form h3 {
    margin-top: 0;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #2c3e50;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.form-group textarea {
    height: 100px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.quantity-selector button {
    width: 30px;
    height: 30px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    margin: 0 10px;
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.login-form {
    max-width: 400px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.admin-panel {
    padding: 20px;
}

.admin-panel h2 {
    margin-top: 0;
    color: #2c3e50;
}

.tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
}

.tab.active {
    background-color: white;
    border-color: #ddd;
    border-bottom: 1px solid white;
    margin-bottom: -1px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

table th, table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

table th {
    background-color: #f4f4f4;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.btn-success {
    background-color: #27ae60;
}

.btn-success:hover {
    background-color: #219355;
}

.btn-danger {
    background-color: #e74c3c;
}

.btn-danger:hover {
    background-color: #c44133;
}

.message {
    padding: 10px;
    margin: 10px 0;
    border-radius: 4px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.message.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.hidden {
    display: none;
} 