/* Copy đè vào style.css */
:root { --primary: #ee4d2d; --bg: #f5f5f5; --white: #fff; }
* { margin:0; padding:0; box-sizing:border-box; font-family:'Inter', sans-serif; }
body { background: var(--bg); padding-bottom: 50px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Header & General */
.header { background: linear-gradient(-180deg, #f53d2d, #f63); padding: 15px 0; position: sticky; top:0; z-index:99; }
.main-header { display: flex; justify-content: space-between; align-items: center; }
.logo a { font-size: 28px; font-weight: 800; color: white; text-decoration: none; }
.search-box { display: flex; background: white; padding: 4px; border-radius: 4px; width: 60%; }
.search-box input { width: 100%; border: none; outline: none; padding: 0 10px; }
.search-box button { background: var(--primary); color: white; border: none; width: 60px; cursor: pointer; }
#cart-count { position: absolute; top: -8px; right: -8px; background: white; color: var(--primary); padding: 2px 6px; border-radius: 50%; font-size: 12px; font-weight: bold; }

/* Product Grid */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 20px; }
.product-card { background: white; border: 1px solid transparent; cursor: pointer; position: relative; transition: 0.2s; }
.product-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.img-container { width: 100%; padding-top: 100%; position: relative; overflow: hidden; }
.product-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.p-details { padding: 10px; }
.p-title { font-size: 14px; margin-bottom: 5px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.p-price { color: var(--primary); font-size: 16px; font-weight: bold; }
.p-old-price { font-size: 12px; text-decoration: line-through; color: #999; margin-left: 5px; }
.badge-sale { position: absolute; top: 0; right: 0; background: rgba(255,212,36,0.95); padding: 2px 4px; font-size: 10px; text-align: center; color: #eb5757; font-weight: bold; z-index: 2; }
.banner { height: 250px; background: #333; margin-top: 20px; border-radius: 8px; position: relative; background-image: url('https://images.unsplash.com/photo-1607082348824-0a96f2a4b9da?auto=format&fit=crop&w=1200&q=80'); background-size: cover; background-position: center; }
.banner-content { position: absolute; bottom: 30px; left: 30px; color: white; }
.banner-btn { padding: 10px 20px; border: none; background: white; color: var(--primary); font-weight: bold; cursor: pointer; margin-top: 10px; }

/* ADMIN STYLES */
#admin-trigger { position: fixed; bottom: 20px; left: 20px; background: #333; color: white; padding: 12px 20px; border: none; border-radius: 30px; cursor: pointer; z-index: 999; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.admin-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; justify-content: center; align-items: center; }
.admin-modal.open { display: flex; }
.admin-content { background: white; width: 400px; padding: 25px; border-radius: 8px; }
.admin-header { display: flex; justify-content: space-between; margin-bottom: 20px; font-weight: bold; }
.close-modal { cursor: pointer; font-size: 24px; }
.form-group { margin-bottom: 15px; } .form-group input { width: 100%; padding: 8px; border: 1px solid #ddd; }
.form-row { display: flex; gap: 10px; }
.btn-save { width: 100%; padding: 10px; background: var(--primary); color: white; border: none; margin-top: 10px; cursor: pointer; }
.btn-reset { width: 100%; padding: 10px; background: #555; color: white; border: none; margin-top: 10px; cursor: pointer; }

/* Nút xóa sản phẩm (chỉ hiện khi admin-mode active) */
.btn-delete-card { position: absolute; top: 5px; left: 5px; background: red; color: white; border: none; font-size: 11px; padding: 4px 8px; cursor: pointer; display: none; z-index: 10; border-radius: 4px; }
body.admin-mode .btn-delete-card { display: block; }
body.admin-mode .product-card { border: 1px dashed red; }

/* Cart Page */
.cart-page-layout { display: flex; gap: 20px; margin-top: 20px; }
.cart-item-row { display: flex; align-items: center; padding: 15px 0; border-bottom: 1px solid #eee; }
.btn-checkout-page { background: var(--primary); color: white; padding: 15px; width: 100%; border: none; font-weight: bold; cursor: pointer; }
@media(max-width: 768px) { .cart-page-layout { flex-direction: column; } .search-box { display: none; } }
