/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --primary: #111;
    --accent: #d4af37; /* Gold Accent */
    --bg: #fff;
    --text: #333;
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-head: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-main); color: var(--text); background: var(--bg); overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- ANIMATIONS --- */
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }

.fade-in { animation: fadeIn 0.8s ease forwards; }

/* --- NAVBAR --- */
nav {
    position: fixed; top: 0; width: 100%; height: 80px; z-index: 1000;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 5%; border-bottom: 1px solid #eee;
}
.logo { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--accent); }

/* --- SEARCH & CART --- */
.nav-icons { display: flex; gap: 20px; align-items: center; }
.search-form { display: flex; align-items: center; background: #f5f5f5; padding: 5px 15px; border-radius: 30px; }
.search-form input { border: none; background: transparent; outline: none; width: 150px; font-family: inherit; }
.cart-btn { position: relative; cursor: pointer; font-size: 1.2rem; }
.cart-badge { position: absolute; top: -5px; right: -8px; background: var(--primary); color: white; font-size: 10px; padding: 2px 6px; border-radius: 50%; }

/* --- HERO SECTION --- */
.hero {
    height: 90vh; display: flex; align-items: center; justify-content: center; text-align: center; color: white;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?q=80&w=2070') center/cover;
    background-attachment: fixed;
}
.hero h1 { font-family: var(--font-head); font-size: 4rem; margin-bottom: 20px; text-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.btn { padding: 15px 40px; background: white; color: black; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; border: none; cursor: pointer; transition: 0.3s; }
.btn:hover { background: var(--primary); color: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

/* --- PRODUCTS GRID --- */
.section { padding: 80px 5%; }
.section-title { text-align: center; font-family: var(--font-head); font-size: 2.5rem; margin-bottom: 50px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }

.card { border-radius: 8px; overflow: hidden; transition: 0.3s; cursor: pointer; position: relative; }
.card:hover { transform: translateY(-10px); box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
.card img { width: 100%; height: 350px; object-fit: cover; transition: 0.5s; }
.card:hover img { transform: scale(1.05); }
.card-info { padding: 15px; background: white; }
.card h3 { font-size: 1rem; margin-bottom: 5px; }
.card p { color: #666; font-size: 0.9rem; }

/* --- CART DRAWER --- */
/* --- FIXED CART DRAWER --- */
.cart-drawer {
    position: fixed; top: 0; right: -100%; width: 100%; max-width: 400px; height: 100%;
    background: white; z-index: 2000; transition: 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1); display: flex; flex-direction: column;
}
.cart-drawer.active { right: 0; }

/* FIX: Header Alignment */
.cart-header {
    padding: 20px; border-bottom: 1px solid #eee; background: #fff;
    display: flex; justify-content: space-between; /* Pushes items to edges */
    align-items: center; /* Vertically centers them */
}
.cart-header h2 { font-family: var(--font-head); margin: 0; font-size: 1.5rem; }
.cart-header i { 
    font-size: 1.5rem; cursor: pointer; color: #333; transition: 0.3s; 
    padding: 5px; /* Bigger touch area */
}
.cart-header i:hover { color: red; transform: rotate(90deg); }

.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-footer { padding: 20px; border-top: 1px solid #eee; background: #f9f9f9; }

/* --- ADMIN CHART LAYOUT --- */
.chart-container {
    background: white; padding: 20px; border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-top: 20px;
}
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 20px; }{ width: 60px; height: 80px; object-fit: cover; border-radius: 4px; }