* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3a5c;
    --secondary: #c9a03d;
    --accent: #2c5f8a;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --success: #27ae60;
    --error: #e74c3c;
    --text: #333;
    --text-light: #666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header-top {
    background: var(--primary);
    color: white;
    padding: 8px 0;
    font-size: 13px;
    text-align: center;
}

.header-main {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-main .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.logo h1 {
    color: var(--primary);
    font-size: 24px;
    letter-spacing: 2px;
}

.logo span {
    font-size: 12px;
    color: var(--secondary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--secondary);
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.login-btn, .register-btn, .logout-btn, .admin-link {
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 5px;
    transition: all 0.3s;
}

.login-btn {
    color: var(--primary);
    border: 1px solid var(--primary);
}

.register-btn {
    background: var(--secondary);
    color: white;
}

.logout-btn {
    background: var(--error);
    color: white;
}

.admin-link {
    background: var(--accent);
    color: white;
}

.cart-icon {
    text-decoration: none;
    font-size: 22px;
    position: relative;
    color: var(--dark);
}

#cartCount {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--secondary);
    color: white;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #b8891a;
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary);
}

/* Featured Products */
.section-title {
    text-align: center;
    font-size: 32px;
    margin: 50px 0 30px;
    color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.product-image {
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
}

.product-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.product-brand {
    color: var(--text-light);
    font-size: 13px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    color: var(--secondary);
    font-weight: bold;
    margin: 10px 0;
}

.product-price span {
    font-size: 12px;
    color: var(--text-light);
}

.add-to-cart {
    width: 100%;
    padding: 10px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: var(--accent);
}

/* Cart Page */
.cart-container {
    padding: 40px 0;
}

.cart-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.cart-table th {
    background: var(--primary);
    color: white;
}

.cart-summary {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: right;
}

.cart-total {
    font-size: 24px;
    font-weight: bold;
    margin: 15px 0;
}

.checkout-btn {
    background: var(--success);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

/* Forms */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 50px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
}

/* Responsive */
@media (max-width: 768px) {
    .header-main .container {
        flex-direction: column;
    }

    nav ul {
        justify-content: center;
    }

    .hero h2 {
        font-size: 32px;
    }

    .cart-table {
        font-size: 12px;
    }

    .cart-table th, .cart-table td {
        padding: 8px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 50px 0;
    background: white;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.faq-question {
    font-weight: bold;
    cursor: pointer;
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding-top: 10px;
    color: var(--text-light);
}

/* Messages */
.success-msg {
    background: var(--success);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.error-msg {
    background: var(--error);
    color: white;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
}
