/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #fff8e7 0%, #ffefd0 100%);
    min-height: 100vh;
    color: #5c3e1f;
}

/* Header */
.header {
    background: #ffffffdd;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    padding: 15px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 3px solid #ffd966;
}

.logo h1 {
    color: #c98a1a;
    font-size: 28px;
    text-shadow: 2px 2px 0 #ffe0a3;
}

.nav a, .user-menu a {
    margin: 0 12px;
    text-decoration: none;
    color: #b87c2e;
    font-weight: 600;
    transition: 0.3s;
}

.nav a:hover, .user-menu a:hover {
    color: #f5a623;
}

/* Container chính */
.container {
    max-width: 1300px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Banner */
.banner {
    background: url('../images/banner-gunny.jpg') center/cover;
    height: 300px;
    border-radius: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Thông báo chạy */
.marquee {
    background: #fffaec;
    border: 1px solid #ffe1a0;
    border-radius: 50px;
    padding: 10px 20px;
    margin-bottom: 20px;
    color: #b85c00;
}

/* Grid sản phẩm */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.product-card {
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #ffecb3;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.product-img {
    height: 180px;
    background: #fdf3e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
}

.product-info {
    padding: 15px;
}

.product-price {
    color: #f5a623;
    font-size: 20px;
    font-weight: bold;
}

.btn-buy {
    background: #ffd966;
    border: none;
    padding: 8px 20px;
    border-radius: 40px;
    font-weight: bold;
    color: #5c3e1f;
    cursor: pointer;
    transition: 0.2s;
}

.btn-buy:hover {
    background: #ffc107;
    transform: scale(1.02);
}

/* Flash sale badge */
.flash-badge {
    background: red;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 12px;
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Admin panel */
.admin-sidebar {
    background: white;
    width: 260px;
    border-radius: 20px;
    padding: 20px;
}

.admin-content {
    flex: 1;
}

/* Form */
input, select, textarea {
    padding: 10px 15px;
    border: 1px solid #ffdeae;
    border-radius: 30px;
    background: #fffdf7;
    width: 100%;
    margin: 8px 0;
}

button, .btn-gold {
    background: #f5a623;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 40px;
    cursor: pointer;
    font-weight: bold;
}

/* Auth box */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}
.auth-box {
    background: white;
    border-radius: 40px;
    padding: 40px;
    width: 400px;
    box-shadow: 0 20px 35px rgba(0,0,0,0.1);
    text-align: center;
}
.alert {
    padding: 10px;
    border-radius: 20px;
    margin: 10px 0;
}
.error { background: #ffe0e0; color: red; }
.success { background: #e0ffe0; color: green; }

/* Responsive */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 10px;
    }
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }
}