:root {
    --primary: #121212;
    --accent: #556b2f;
    --bg: #fdfdfd;
    --glass: rgba(255, 255, 255, 0.75);
    --border: rgba(0,0,0,0.08);
    --font-main: 'Inter', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: var(--font-main); }
body { background: var(--bg); color: var(--primary); overflow-x: hidden; }

/* Navigation */
.glass-nav {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: var(--glass); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 1.2rem 5%;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; letter-spacing: -1px; font-weight: 800; cursor: pointer; }
.logo span { color: var(--accent); }
.cart-trigger { cursor: pointer; font-weight: 600; font-size: 0.9rem; display: flex; gap: 8px; align-items: center; }
#cart-count { background: var(--primary); color: white; padding: 2px 8px; border-radius: 20px; font-size: 0.75rem; }

/* Hero Bento */
.hero-bento {
    display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.5rem;
    padding: 120px 5% 40px; min-height: 75vh;
}
.bento-item {
    position: relative; border-radius: 32px; overflow: hidden;
    display: flex; align-items: flex-end; padding: 3.5rem;
    background-size: cover; background-position: center;
}
.main-hero { background-image: url('https://images.unsplash.com/photo-1494438639946-1ebd1d20bf85?w=1200'); }
.sub-hero { background-image: url('https://images.unsplash.com/photo-1512436991641-6745cdb1723f?w=800'); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.4), transparent); }
.hero-content { position: relative; z-index: 2; color: white; }
.badge { background: rgba(255,255,255,0.2); padding: 6px 14px; border-radius: 50px; font-size: 0.7rem; text-transform: uppercase; backdrop-filter: blur(5px); display: inline-block; margin-bottom: 1rem; }

/* Buttons */
.btn-primary, .checkout-btn {
    background: var(--primary); color: white; padding: 16px 32px;
    border-radius: 50px; font-weight: 600; border: none; cursor: pointer;
    transition: 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0,0,0,0.1); }
.btn-secondary { background: rgba(255,255,255,0.2); backdrop-filter: blur(10px); color: white; padding: 10px 24px; border-radius: 50px; border: 1px solid rgba(255,255,255,0.3); cursor: pointer; }

/* Grid */
.container { padding: 4rem 5%; }
.section-header { margin-bottom: 3rem; }
.section-header h3 { font-size: 2.5rem; letter-spacing: -1px; margin-bottom: 0.5rem; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3rem; }
.product-card { cursor: pointer; }
.img-wrapper { background: #f5f5f7; height: 380px; border-radius: 24px; overflow: hidden; margin-bottom: 1.2rem; }
.img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.product-card:hover img { transform: scale(1.08); }
.card-info { display: flex; justify-content: space-between; align-items: flex-start; }
.add-mini { background: #eee; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: none; cursor: pointer; transition: 0.3s; }
.add-mini:hover { background: var(--primary); color: white; transform: rotate(90deg); }

/* Cart Drawer */
.cart-drawer {
    position: fixed; right: -100%; top: 0; width: 420px; height: 100%;
    background: white; z-index: 2000; transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2.5rem; display: flex; flex-direction: column;
}
.cart-drawer.active { right: 0; }
.cart-overlay.active { position: fixed; inset: 0; background: rgba(0,0,0,0.3); backdrop-filter: blur(12px); z-index: 1500; display: block; }
.cart-items { flex: 1; overflow-y: auto; margin: 2rem 0; }
.cart-footer { border-top: 1px solid #eee; padding-top: 1.5rem; }
.total-row { display: flex; justify-content: space-between; font-weight: 700; font-size: 1.2rem; margin-bottom: 1.5rem; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(12px); display: none; place-items: center; z-index: 3000; padding: 20px; }
.modal-overlay.active { display: grid; }
.modal-card { background: white; width: 100%; max-width: 900px; border-radius: 32px; position: relative; overflow: hidden; animation: modalIn 0.5s ease; }
.close-modal { position: absolute; top: 20px; right: 20px; background: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; z-index: 10; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

@keyframes modalIn { from { opacity: 0; transform: scale(0.9) translateY(20px); } to { opacity: 1; transform: scale(1) translateY(0); } }

/* Mobile */
@media (max-width: 992px) {
    .hero-bento { grid-template-columns: 1fr; height: auto; }
    .main-hero, .sub-hero { height: 400px; }
    .cart-drawer { width: 100%; }
}