/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #2ecc71;
  --primary-dark: #27ae60;
  --primary-light: #d4efdf;
  --accent: #e67e22;
  --danger: #e74c3c;
  --text-main: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #f8fafb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .2s ease;
  --font: 'Inter', system-ui, sans-serif;
}
body { font-family: var(--font); background: var(--bg); color: var(--text-main); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ===== UTILITIES ===== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-header h2 { font-size: 1.75rem; font-weight: 700; }
.view-all { color: var(--primary-dark); font-weight: 600; font-size: .95rem; transition: var(--transition); }
.view-all:hover { color: var(--accent); }
.gradient-text { background: linear-gradient(135deg,#2ecc71,#27ae60,#16a085); -webkit-background-clip:text; -webkit-text-fill-color:transparent; }
.flex { display: flex; } .flex-col { flex-direction: column; }
.gap-2 { gap: 8px; } .gap-4 { gap: 16px; }
.hidden { display: none !important; }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--primary); color: #fff; border-radius: var(--radius-sm);
  padding: 12px 28px; font-weight: 600; font-size: .95rem;
  transition: var(--transition); display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(46,204,113,.35); }
.btn-primary-sm { background: var(--primary); color: #fff; border-radius: 8px; padding: 8px 20px; font-weight: 600; font-size:.875rem; transition: var(--transition); }
.btn-primary-sm:hover { background: var(--primary-dark); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); border-radius: var(--radius-sm); padding: 12px 28px; font-weight: 600; transition: var(--transition); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; border-radius: 8px; padding: 8px 16px; font-size: .875rem; font-weight:600; transition: var(--transition); }
.full-width { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 20px; height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.logo-text { font-size: 1.3rem; font-weight: 800; color: var(--primary-dark); }
.nav-search {
  flex: 1; display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--border); border-radius: 50px;
  overflow: hidden; max-width: 560px; transition: var(--transition);
}
.nav-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,204,113,.15); }
.nav-search input { flex:1; padding: 10px 18px; border: none; background: transparent; font-size: .95rem; outline: none; }
.search-btn { padding: 10px 16px; background: var(--primary); color: #fff; transition: var(--transition); }
.search-btn:hover { background: var(--primary-dark); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-icon-btn { position: relative; display: flex; align-items: center; padding: 8px; border-radius: 8px; transition: var(--transition); color: var(--text-main); }
.nav-icon-btn:hover { background: var(--primary-light); color: var(--primary-dark); }
.badge {
  position: absolute; top: 0; right: 0; min-width: 18px; height: 18px;
  background: var(--danger); color: #fff; border-radius: 50%; font-size: .7rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 3px;
}
.hamburger { display: none; font-size: 1.5rem; background: none; padding: 8px; }
.mobile-menu { background: #fff; border-top: 1px solid var(--border); padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu a { font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--border); }
#user-info { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.user-name { font-weight: 600; font-size: .9rem; }
.logout-btn { background: none; color: var(--danger); font-size: .85rem; font-weight: 600; padding: 4px 8px; border-radius: 4px; }

/* ===== HERO ===== */
.hero-section {
  background: linear-gradient(135deg, #f0fff4 0%, #ddf5e4 50%, #f0f9ff 100%);
  padding: 64px 0;
}
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; gap: 60px; align-items: center; }
.hero-text { flex: 1; }
.hero-text h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.hero-text p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 28px; max-width: 440px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.deals-slider { flex: 1; min-height: 280px; border-radius: var(--radius); overflow: hidden; }

/* Slider */
.slider-wrapper { position: relative; overflow: hidden; border-radius: var(--radius); }
.slider-track { display: flex; transition: transform .4s ease; }
.slider-item { min-width: 100%; }
.slider-item img { width: 100%; height: 260px; object-fit: cover; }
.slider-item .slide-content {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; padding: 32px; border-radius: var(--radius); min-height: 260px;
  display: flex; flex-direction: column; justify-content: center;
}
.slide-content h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.slide-content .deal-badge { background: rgba(255,255,255,.2); padding: 4px 12px; border-radius: 50px; font-size: .85rem; font-weight: 600; width: fit-content; margin-bottom: 12px; }
.slide-content .deal-price { font-size: 2rem; font-weight: 800; }
.slide-content .deal-orig { text-decoration: line-through; opacity: .7; font-size: .9rem; }
.slider-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
.slider-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.8); border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-sm); transition: var(--transition); }
.slider-nav:hover { background: #fff; box-shadow: var(--shadow-md); }
.slider-nav.prev { left: 10px; }
.slider-nav.next { right: 10px; }

/* ===== CATEGORIES ===== */
.categories-section { background: #fff; }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 16px; }
.category-card {
  background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 20px 16px; text-align: center; cursor: pointer; transition: var(--transition);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.category-card:hover { border-color: var(--primary); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.category-card img { width: 56px; height: 56px; object-fit: cover; border-radius: 50%; }
.cat-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.category-card span { font-weight: 600; font-size: .875rem; color: var(--text-main); }
.category-card small { color: var(--text-muted); font-size: .75rem; }

/* ===== PRODUCTS ===== */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 20px; }
.product-card {
  background: var(--bg-card); border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition); cursor: pointer;
  display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--primary); }
.product-img-wrap { position: relative; background: #f4f4f4; aspect-ratio: 1; overflow: hidden; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }
.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 8px; border-radius: 50px;
}
.product-body { padding: 14px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.product-name { font-weight: 600; font-size: .9rem; line-height: 1.4; }
.product-meta { color: var(--text-muted); font-size: .8rem; }
.product-pricing { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.product-price { font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); }
.product-orig { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; }
.product-actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.add-cart-btn {
  flex: 1; background: var(--primary); color: #fff; border-radius: 8px;
  padding: 9px; font-weight: 600; font-size: .85rem; transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.add-cart-btn:hover { background: var(--primary-dark); }
.wishlist-btn { background: var(--bg); border: 1.5px solid var(--border); border-radius: 8px; padding: 9px 11px; transition: var(--transition); }
.wishlist-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ===== DEALS ===== */
.deals-section { background: linear-gradient(135deg, #fff9f0, #fff); }
.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.deal-card {
  background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; gap: 0; transition: var(--transition); cursor: pointer;
}
.deal-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent); }
.deal-img { width: 110px; flex-shrink: 0; }
.deal-img img { width: 100%; height: 100%; object-fit: cover; }
.deal-body { padding: 16px; flex: 1; }
.deal-discount { background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; width: fit-content; margin-bottom: 8px; }
.deal-name { font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
.deal-price-row { display: flex; align-items: center; gap: 8px; }
.deal-price { font-size: 1.1rem; font-weight: 700; color: var(--accent); }
.deal-orig { font-size: .8rem; color: var(--text-muted); text-decoration: line-through; }

/* ===== SKELETONS ===== */
.skeleton { background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }
.cat-skeleton { height: 120px; }
.prod-skeleton { height: 280px; }
.deal-skeleton { height: 140px; }
.skeleton-banner { height: 260px; border-radius: var(--radius); background: linear-gradient(90deg,#e8e8e8 25%,#d0d0d0 50%,#e8e8e8 75%); background-size:200% 100%; animation: shimmer 1.5s infinite; }

/* ===== FOOTER ===== */
.footer { background: var(--text-main); color: #a0aec0; margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 60px 24px 40px; max-width: 1280px; margin: 0 auto; }
.footer-col h4 { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
.footer-col p { font-size: .875rem; line-height: 1.8; }
.footer-col a { display: block; font-size: .875rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 20px; font-size: .8rem; }

/* ===== MODALS ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
.modal {
  background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg);
  position: relative; animation: slideUp .25s ease;
}
@keyframes slideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.modal-close { position: absolute; top: 14px; right: 14px; background: var(--bg); border-radius: 50%; width: 32px; height: 32px; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: var(--transition); }
.modal-close:hover { background: var(--border); color: var(--text-main); }

/* Login Modal */
.login-modal-box { width: 100%; max-width: 420px; padding: 40px; }
.modal-logo { text-align: center; margin-bottom: 28px; }
.modal-icon { font-size: 2.5rem; margin-bottom: 8px; }
.modal-logo h2 { font-size: 1.5rem; font-weight: 700; }
.modal-logo p { color: var(--text-muted); font-size: .9rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--text-main); }
.form-group input, .form-group select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .95rem; transition: var(--transition); outline: none;
}
.form-group input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46,204,113,.15); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; font-size: 1rem; }
.error-msg { background: #fff5f5; border: 1px solid #fed7d7; color: var(--danger); padding: 10px 14px; border-radius: 8px; font-size: .85rem; margin-bottom: 14px; }
.success-msg { background: #f0fff4; border: 1px solid #c6f6d5; color: var(--primary-dark); padding: 10px 14px; border-radius: 8px; font-size: .85rem; margin-bottom: 14px; }
.modal-footer-text { text-align: center; margin-top: 20px; font-size: .875rem; color: var(--text-muted); }
.modal-footer-text a { color: var(--primary-dark); font-weight: 600; }

/* Product Modal */
.product-modal-box { width: 100%; max-width: 700px; padding: 32px; max-height: 85vh; overflow-y: auto; }
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.product-detail-img { border-radius: var(--radius); overflow: hidden; background: #f4f4f4; }
.product-detail-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail-info { display: flex; flex-direction: column; gap: 12px; }
.product-detail-info h2 { font-size: 1.3rem; font-weight: 700; }
.product-detail-price { font-size: 1.8rem; font-weight: 800; color: var(--primary-dark); }
.product-detail-desc { color: var(--text-muted); font-size: .9rem; line-height: 1.7; }
.qty-selector { display: flex; align-items: center; gap: 12px; }
.qty-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--border); background: #fff; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { border-color: var(--primary); color: var(--primary); }
.qty-num { font-size: 1.1rem; font-weight: 700; min-width: 28px; text-align: center; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  background: #1a1a2e; color: #fff; padding: 12px 24px; border-radius: 50px;
  font-size: .9rem; font-weight: 500; z-index: 9999; box-shadow: var(--shadow-lg);
  animation: toastIn .3s ease;
}
@keyframes toastIn { from{opacity:0;transform:translateX(-50%) translateY(20px)} to{opacity:1;transform:translateX(-50%) translateY(0)} }
.toast.success { background: var(--primary-dark); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--accent); }

/* ===== PRODUCTS PAGE ===== */
.page-header { background: var(--primary-light); padding: 40px 0; }
.page-header h1 { font-size: 2rem; font-weight: 800; }
.page-header p { color: var(--text-muted); }
.products-page-layout { display: flex; gap: 28px; align-items: flex-start; }
.sidebar { width: 240px; flex-shrink: 0; background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; }
.sidebar h3 { font-weight: 700; margin-bottom: 14px; }
.filter-group { margin-bottom: 20px; }
.filter-group label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 8px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
.filter-group select { width: 100%; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; outline: none; }
.filter-group select:focus { border-color: var(--primary); }
.products-main { flex: 1; }
.results-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.results-bar p { color: var(--text-muted); font-size: .9rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn { width: 38px; height: 38px; border-radius: 8px; border: 1.5px solid var(--border); background: #fff; font-size: .875rem; transition: var(--transition); }
.page-btn:hover, .page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== CART PAGE ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: flex-start; }
.cart-items { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); }
.cart-item { display: flex; gap: 16px; padding: 20px; border-bottom: 1px solid var(--border); align-items: center; }
.cart-item:last-child { border-bottom: none; }
.cart-item-img { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; background: #f4f4f4; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; margin-bottom: 4px; }
.cart-item-meta { color: var(--text-muted); font-size: .85rem; }
.cart-item-price { font-weight: 700; color: var(--primary-dark); font-size: 1.05rem; }
.order-summary { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; position: sticky; top: 88px; }
.order-summary h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: .9rem; }
.summary-row.total { font-weight: 700; font-size: 1.05rem; border-top: 1px solid var(--border); padding-top: 12px; margin-top: 8px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .emoji { font-size: 3rem; margin-bottom: 16px; }
.empty-state h3 { font-size: 1.25rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }

/* ===== ADMIN STYLES (used in admin subpages) ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px; background: #1a1a2e; color: #a0aec0; flex-shrink: 0;
  display: flex; flex-direction: column;
}
.admin-sidebar-logo { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-sidebar-logo h2 { color: #fff; font-size: 1.1rem; font-weight: 800; }
.admin-sidebar-logo p { font-size: .75rem; color: #4a5568; }
.admin-nav { flex: 1; padding: 16px 0; overflow-y: auto; }
.admin-nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; font-size: .875rem; font-weight: 500; cursor: pointer;
  transition: var(--transition); border-left: 3px solid transparent;
}
.admin-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-nav-item.active { background: rgba(46,204,113,.12); color: var(--primary); border-left-color: var(--primary); }
.admin-nav-item .icon { font-size: 1.1rem; }
.admin-main { flex: 1; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 60px; display: flex; align-items: center;
  justify-content: space-between; flex-shrink: 0;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; }
.admin-content { flex: 1; overflow-y: auto; padding: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px,1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 20px; }
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; }
.stat-card .stat-icon { font-size: 1.5rem; margin-bottom: 8px; }
.data-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.data-table-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.data-table-header h3 { font-size: 1rem; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--bg); padding: 12px 16px; text-align: left; font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
tbody td { padding: 14px 16px; font-size: .875rem; border-bottom: 1px solid var(--border); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--bg); }
.status-badge { padding: 3px 10px; border-radius: 50px; font-size: .75rem; font-weight: 600; }
.status-badge.success { background: #d4efdf; color: #155724; }
.status-badge.warning { background: #fff3cd; color: #856404; }
.status-badge.danger { background: #f8d7da; color: #842029; }
.status-badge.info { background: #cce5ff; color: #004085; }
.search-bar { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; }
.search-bar input { flex:1; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .9rem; outline: none; }
.search-bar input:focus { border-color: var(--primary); }
.api-config-panel { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); padding: 24px; margin-bottom: 24px; }
.api-config-panel h3 { margin-bottom: 16px; font-weight: 700; }
.config-row { display: flex; gap: 16px; margin-bottom: 12px; align-items: center; }
.config-row label { width: 160px; flex-shrink: 0; font-size: .85rem; font-weight: 600; }
.config-row input { flex:1; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-size: .875rem; outline: none; }
.config-row input:focus { border-color: var(--primary); }
.config-row .copy-btn { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 9px 12px; font-size: .8rem; color: var(--text-muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .products-page-layout { flex-direction: column; }
  .sidebar { width: 100%; }
  .admin-sidebar { width: 200px; }
}
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; gap: 32px; }
  .hero-text h1 { font-size: 2rem; }
  .deals-slider { width: 100%; }
  .hamburger { display: flex; }
  .nav-search, .nav-actions .btn-primary-sm { display: none; }
  .categories-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .product-detail-grid { grid-template-columns: 1fr; }
  .admin-sidebar { width: 56px; }
  .admin-nav-item span { display: none; }
  .admin-sidebar-logo p, .admin-sidebar-logo h2 { display: none; }
}
@media (max-width: 480px) {
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.6rem; }
}
