/* Variables & Reset */
:root {
    --primary: #2c3e50;
    --accent: #d4a373;
    --bg: #ffffff;
    --text: #333;
    --gray: #f4f4f4;
}
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', sans-serif; }
a { text-decoration: none; color: inherit; }
body { color: var(--text); background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; }

/* Components */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.btn { background: var(--primary); color: white; padding: 10px 20px; display: inline-block; transition: 0.3s; border: none; cursor: pointer; }
.btn:hover { background: var(--accent); }
.btn-sm { padding: 5px 10px; background: var(--accent); color: white; font-size: 0.9rem; }
.section { padding: 40px 0; }

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 1px 50px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.logo { font-size: 1.5rem; font-weight: bold; }
.nav-links { display: flex; list-style: none; gap: 20px; }
.nav-icons { display: flex; gap: 15px; }

/* Hero */
.hero { background: url('../images/hero-bg.jpg') center/cover no-repeat; height: 60vh; display: flex; align-items: center; justify-content: center; text-align: center; background-color: #ddd; }
.hero-text { background: rgba(255,255,255,0.9); padding: 40px; border-radius: 5px; }

/* Grids */
.category-grid, .product-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 20px; }
.cat-card { background: var(--gray); padding: 40px; text-align: center; transition: 0.3s; }
.cat-card:hover { transform: translateY(-5px); }

/* Product Card */
.product-card { border: 1px solid #eee; padding: 15px; text-align: center; transition: 0.3s; }
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 200px; object-fit: cover; margin-bottom: 10px; }

/* Product Details */
.product-detail { display: flex; gap: 40px; }
.img-box { flex: 1; }
.img-box img { width: 100%; }
.details-box { flex: 1; }

/* Admin Panel */
.admin-container { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: var(--primary); color: white; padding: 20px; }
.sidebar a { display: block; color: #ccc; padding: 10px 0; }
.sidebar a.active, .sidebar a:hover { color: white; font-weight: bold; }
.content { flex: 1; padding: 30px; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: white; padding: 20px; border-radius: 5px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.data-table { width: 100%; border-collapse: collapse; margin-top: 20px; background: white; }
.data-table th, .data-table td { padding: 12px; border-bottom: 1px solid #eee; text-align: left; }

/* Forms */
.auth-form { max-width: 400px; margin: 50px auto; text-align: center; }
input, textarea, select { width: 100%; padding: 10px; margin: 10px 0; border: 1px solid #ddd; }