:root {
  --primary: #2B6EF2;
  --primary-hover: #1E4FD8;
  --accent: #22C55E;
  --bg: #F9FAFB;
  --card-bg: #FFFFFF;
  --border: #E5E7EB;
  --text-main: #111827;
  --text-secondary: #6B7280;
  --danger: #EF4444;
  --radius-sm: 8px;
  --radius-md: 12px;
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 20px rgba(0,0,0,0.06);
  --transition: 0.18s ease;
}

* { box-sizing: border-box; }
body { font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, 'Helvetica Neue', Arial; background: var(--bg); color: var(--text-main); }

/* Navbar */
.site-header { width: 100%; background: #ffffff; box-shadow: 0 4px 12px rgba(0,0,0,0.05); position: relative; z-index: 100; }
.navbar-container { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display:flex; align-items:center; justify-content:space-between; }
.logo { font-size: 20px; font-weight:700; color:var(--primary); text-decoration:none; }
.logo span { color:var(--accent); }
.navbar-center { display:flex; gap:12px; align-items:center; }
.navbar-center a { color:var(--text-main); text-decoration:none; font-weight:500; padding:6px 8px; border-radius:8px; }
.navbar-center a:hover { color:var(--primary); }
.navbar-right { display:flex; gap:10px; align-items:center; }
.nav-search { padding:6px 12px; border-radius:20px; border:1px solid var(--border); width:200px; }
.nav-icon { position:relative; font-size:18px; background:none; border:none; cursor:pointer; }
.badge { position:absolute; top:-6px; right:-8px; background:var(--danger); color:white; font-size:11px; padding:2px 6px; border-radius:10px; }
.hamburger { display:none; font-size:22px; background:none; border:none; cursor:pointer; }
.mobile-nav { display:none !important; background:var(--card-bg); border-top:1px solid var(--border); padding:10px; position:relative; z-index:999; }
.mobile-nav a { display:block; padding:10px; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text-main); }

/* Mobile */
@media (max-width:768px) {
  .navbar-center, .nav-search, .btn { display:none; }
  .hamburger { display:block; }
  .mobile-nav { display:none; background:var(--card-bg); border-top:1px solid var(--border); padding:10px; position:relative; z-index:999; }
}

/* Card + Buttons enhancements */
.card { background:var(--card-bg); border:1px solid var(--border); border-radius:var(--radius-md); padding:16px; box-shadow:var(--shadow-sm); transition:transform var(--transition), box-shadow var(--transition); }
.card:hover { transform:translateY(-3px); box-shadow:var(--shadow-md); }
.btn { padding:10px 14px; border-radius:10px; font-weight:600; cursor:pointer; border:none; }
.btn-primary { background:var(--primary); color:white; }
.btn-primary:hover { background:var(--primary-hover); }
.btn-outline { background:white; border:1px solid var(--border); }

.product-card { background:var(--card-bg); border-radius:14px; border:1px solid var(--border); padding:12px; transition:box-shadow var(--transition), transform var(--transition); }
.product-card:hover { box-shadow:var(--shadow-md); transform:translateY(-4px); }
.product-image { width:100%; height:auto; border-radius:10px; display:block; }

.filter-btn { width:100%; margin-bottom:10px; }
.filter-drawer { position:fixed; bottom:0; left:0; width:100%; height:80%; background:white; border-radius:16px 16px 0 0; box-shadow:0 -8px 20px rgba(0,0,0,0.15); transform:translateY(100%); transition:0.3s; overflow-y:auto; z-index:9999; }
.filter-drawer.active { transform:translateY(0); }

.loading { text-align:center; padding:40px; color:var(--text-secondary); }

/* Product grid and card polish */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; padding: 12px 0; }
.product-card { display: flex; flex-direction: column; position: relative; overflow: visible; }
.product-image-container { position: relative; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01)); }
.product-image { width: 100%; height: 180px; object-fit: cover; display:block; }

.product-info { padding: 12px 4px 4px; display:flex; flex-direction:column; gap:8px; }
.product-name { font-size: 14px; font-weight: 600; color: var(--text-main); margin: 0; line-height:1.2; min-height: 2.4em; }
.product-price { display:flex; align-items:baseline; gap:8px; }
.product-current-price { color: var(--primary); font-weight:700; font-size: 1rem; }
.product-original-price { color: var(--text-secondary); text-decoration: line-through; font-size: 0.875rem; }
.product-discount { color: var(--danger); font-weight:700; font-size: 0.75rem; }

.product-rating { color: var(--text-secondary); font-size: 13px; display:flex; gap:6px; align-items:center; }

.product-badge, .out-of-stock-badge { position:absolute; top:10px; left:10px; padding:6px 8px; border-radius:10px; font-weight:700; font-size:12px; z-index:5; }
.product-badge { background: var(--accent); color: white; }
.out-of-stock-badge { background: var(--danger); color: white; }

.wishlist-icon { position:absolute; top:10px; right:10px; font-size:18px; color:var(--text-secondary); cursor:pointer; background: rgba(255,255,255,0.9); padding:6px; border-radius:10px; z-index:6; }

.product-actions { display:flex; gap:8px; margin-top:8px; }
.btn { display:inline-flex; align-items:center; justify-content:center; }
.btn-primary { padding:8px 10px; border-radius:10px; }
.btn-outline { padding:8px 10px; border-radius:10px; }
.quick-view-btn { border:1px solid var(--border); background:var(--card-bg); padding:8px 10px; border-radius:10px; }

.quantity-selector { display:flex; gap:8px; align-items:center; }
.quantity-btn { background:var(--card-bg); border:1px solid var(--border); padding:6px 8px; border-radius:8px; cursor:pointer; }
.quantity-btn:disabled { opacity:0.6; cursor:not-allowed; }
.quantity-input { width:56px; text-align:center; padding:6px; border-radius:8px; border:1px solid var(--border); }

/* Site Header */
.site-header { background: linear-gradient(90deg, #F9FAFB 0%, #FFFFFF 100%); box-shadow: 0 2px 8px rgba(0,0,0,0.08); position: sticky; top: 0; z-index: 100; }

/* Hover polish */
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card:focus-within { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }

@media (max-width: 768px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-image { height: 150px; }
}

