/* ============================================================
   NEME Laboratory Consultancy — Main Stylesheet
   ============================================================ */

:root {
  --blue:       #1E3A8A;
  --navy:       #0A1F5C;
  --blue-light: #2563EB;
  --red:        #DC2626;
  --red-dark:   #b91c1c;
  --green:      #16a34a;
  --yellow:     #d97706;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-900:   #111827;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md:  0 4px 16px rgba(30,58,138,.1);
  --shadow-lg:  0 10px 30px rgba(30,58,138,.15);
  --radius:     12px;
  --radius-sm:  8px;
  --gradient:   linear-gradient(135deg, #0A1F5C 0%, #1E3A8A 60%, #2563EB 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  background: #fff;
  line-height: 1.6;
}

h1,h2,h3,h4,h5 {
  font-family: 'Poppins', sans-serif;
  color: var(--gray-900);
  line-height: 1.25;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-light); }
img { max-width: 100%; height: auto; display: block; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--navy);
  color: #93c5fd;
  font-size: 12px;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar-left  { display: flex; gap: 20px; flex-wrap: wrap; }

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--gray-100);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.navbar-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon {
  width: 42px; height: 42px;
  background: var(--blue);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.brand-name { display: block; font-family: 'Poppins',sans-serif; font-weight: 700; font-size: 14px; color: var(--blue); line-height: 1; }
.brand-sub  { display: block; font-size: 11px; color: var(--gray-400); margin-top: 2px; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link  {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--blue); background: var(--gray-50); }

.navbar-actions { display: flex; align-items: center; gap: 8px; }

.btn-cart {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  background: var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 600;
  color: var(--gray-700);
  transition: background .2s;
}
.btn-cart:hover { background: var(--gray-200); color: var(--gray-900); }
.cart-count {
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--gray-700); border-radius: 2px; transition: .3s; }

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: #fff;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .2s, transform .1s;
  text-decoration: none;
}
.btn-primary:hover { background: #162d6e; color: #fff; }
.btn-primary:active { transform: scale(.98); }

.btn-red {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--red); color: #fff;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  border: none; cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.btn-red:hover { background: var(--red-dark); color: #fff; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--blue);
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  border: 2px solid var(--blue); cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.btn-white-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: #fff;
  padding: 12px 28px; border-radius: var(--radius-sm);
  font-size: 15px; font-weight: 600;
  border: 2px solid rgba(255,255,255,.7); cursor: pointer;
  transition: all .2s; text-decoration: none;
}
.btn-white-outline:hover { background: #fff; color: var(--blue); }

.btn-sm {
  padding: 6px 14px !important;
  font-size: 12px !important;
}

/* ─── BADGES ─────────────────────────────────────────────── */
.badge-green  { display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:700;background:#d1fae5;color:#065f46; }
.badge-red    { display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:700;background:#fee2e2;color:#991b1b; }
.badge-yellow { display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:700;background:#fef3c7;color:#92400e; }
.badge-blue   { display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:700;background:#dbeafe;color:#1e3a8a; }
.badge-gray   { display:inline-flex;align-items:center;padding:2px 10px;border-radius:999px;font-size:11px;font-weight:700;background:#f3f4f6;color:#4b5563; }

/* ─── SECTION HELPERS ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-gray { background: var(--gray-50); }

.section-eyebrow {
  color: var(--red); font-weight: 700; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px;
  display: block;
}
.section-title { font-size: clamp(24px, 3vw, 36px); margin-bottom: 16px; }
.section-subtitle { color: var(--gray-500); font-size: 16px; max-width: 600px; }

/* ─── CARDS ───────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card-hover { transition: transform .3s, box-shadow .3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ─── PRODUCT CARD ────────────────────────────────────────── */
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product-card-img {
  height: 200px;
  background: var(--gray-50);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-card-img img { width:100%; height:100%; object-fit: contain; padding: 16px; }
.product-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: 11px; font-weight: 600; color: var(--blue); text-transform: uppercase; letter-spacing:.05em; margin-bottom: 6px; }
.product-name { font-family: 'Poppins',sans-serif; font-size: 14px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; line-height: 1.3; }
.product-brand { font-size: 12px; color: var(--gray-400); margin-bottom: 8px; }
.product-desc { font-size: 12px; color: var(--gray-500); margin-bottom: 12px; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price { font-family: 'Poppins',sans-serif; font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 12px; }
.product-actions { display: flex; gap: 8px; }
.product-actions .btn-primary { flex: 1; font-size: 12px; padding: 8px 10px; }
.product-actions .btn-outline  { font-size: 12px; padding: 8px 12px; }

/* ─── GRID SYSTEMS ────────────────────────────────────────── */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.grid-cats { display: grid; grid-template-columns: repeat(7,1fr); gap: 16px; }

/* ─── HERO ─────────────────────────────────────────────────── */
.hero {
  background: var(--gradient);
  min-height: 90vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding: 80px 0;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 80L1440 80L1440 40C1320 10 1200 0 1080 5C960 10 840 40 720 40C600 40 480 10 360 5C240 0 120 20 0 40Z' fill='white'/%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 100%;
}
.hero-content { position: relative; z-index: 1; max-width: 700px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  color: #bfdbfe; font-size: 13px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  margin-bottom: 28px;
}
.hero h1 { font-size: clamp(32px,5vw,60px); color: #fff; font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: #fca5a5; display: block; }
.hero-sub { font-size: 18px; color: #bfdbfe; margin-bottom: 36px; line-height: 1.7; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-feature {
  display: flex; align-items: center; gap: 10px;
  color: #bfdbfe; font-size: 13px; font-weight: 500;
}
.hero-feature-icon {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

/* ─── CATEGORY GRID ───────────────────────────────────────── */
.cat-card {
  border-radius: var(--radius);
  color: #fff; padding: 20px 16px;
  text-align: center; cursor: pointer;
  transition: transform .3s;
  text-decoration: none;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.cat-card:hover { transform: scale(1.05); color: #fff; }
.cat-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.cat-name { font-weight: 700; font-size: 13px; }
.cat-count { font-size: 11px; opacity: .75; }

/* ─── STATS ───────────────────────────────────────────────── */
.stats-section { background: var(--gradient); padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 40px; text-align: center; }
.stat-icon {
  width: 56px; height: 56px;
  background: rgba(255,255,255,.1);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
}
.stat-value { font-size: 48px; font-weight: 800; color: #fff; font-family: 'Poppins',sans-serif; line-height: 1; margin-bottom: 8px; }
.stat-label { color: #bfdbfe; font-size: 14px; }

/* ─── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px; font-family: inherit;
  color: var(--gray-900);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30,58,138,.1);
}
.form-textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ─── ALERTS ──────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 20px; }
.alert-success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.alert-error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }

/* ─── PAGINATION ──────────────────────────────────────────── */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; flex-wrap: wrap; }
.page-btn {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600;
  color: var(--gray-600); cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.page-btn:hover, .page-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ─── TABLE ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--gray-50); border-bottom: 2px solid var(--gray-100); }
th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing:.05em; white-space: nowrap; }
td { padding: 14px 16px; font-size: 13px; color: var(--gray-700); border-bottom: 1px solid var(--gray-50); vertical-align: middle; }
tr:hover td { background: var(--gray-50); }

/* ─── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--navy); color: #fff; padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 16px; }
.footer-about { color: #93c5fd; font-size: 14px; line-height: 1.7; margin-bottom: 24px; }
.social-links { display: flex; gap: 8px; }
.social-link {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: #fff;
  transition: background .2s; text-decoration: none;
}
.social-link:hover { background: rgba(255,255,255,.2); color: #fff; }
.footer-heading { font-size: 14px; font-weight: 700; margin-bottom: 16px; color: #fff; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #93c5fd; font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-contact { list-style: none; display: flex; flex-direction: column; gap: 10px; color: #93c5fd; font-size: 13px; }
.footer-contact a { color: #93c5fd; }
.footer-contact a:hover { color: #fff; }
.mt-20 { margin-top: 20px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; }
.newsletter-form input { flex: 1; padding: 10px 14px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-sm); color: #fff; font-size: 13px; outline: none; }
.newsletter-form input::placeholder { color: #93c5fd; }
.newsletter-form button { padding: 10px 16px; background: var(--red); color: #fff; border: none; border-radius: var(--radius-sm); cursor: pointer; font-size: 16px; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding: 20px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #93c5fd; }

/* ─── WHATSAPP FLOAT ──────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366; color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37,211,102,.5);
  z-index: 999;
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.1); color: #fff; }

/* ─── ADMIN SIDEBAR ───────────────────────────────────────── */
.admin-layout { display: flex; height: 100vh; overflow: hidden; background: var(--gray-50); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #fff;
  border-right: 1px solid var(--gray-100);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.sidebar-section { padding: 12px 12px 0; }
.sidebar-label { font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; padding: 0 12px; margin-bottom: 4px; }
.sidebar-nav { list-style: none; margin-bottom: 16px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 13px; font-weight: 500;
  color: var(--gray-600); text-decoration: none;
  transition: all .2s; margin-bottom: 2px;
}
.sidebar-link:hover { background: var(--gray-50); color: var(--blue); }
.sidebar-link.active { background: #dbeafe; color: var(--blue); font-weight: 700; }
.sidebar-link .badge-count { margin-left: auto; font-size: 10px; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 999px; }
.sidebar-footer { margin-top: auto; padding: 12px; border-top: 1px solid var(--gray-100); }
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar {
  background: #fff; border-bottom: 1px solid var(--gray-100);
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: flex-end; gap: 12px;
}
.admin-user { display: flex; align-items: center; gap: 10px; }
.admin-avatar { width: 36px; height: 36px; background: var(--blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 14px; }
.admin-content { flex: 1; overflow-y: auto; padding: 28px; }

/* ─── ADMIN STATS CARDS ───────────────────────────────────── */
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px;
}
.stat-card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 14px;
}
.stat-card-value { font-size: 32px; font-weight: 800; color: var(--gray-900); font-family: 'Poppins',sans-serif; line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 13px; font-weight: 600; color: var(--gray-600); }
.stat-card-sub   { font-size: 11px; color: var(--gray-400); margin-top: 2px; }

/* ─── PAGE HEADER ─────────────────────────────────────────── */
.page-header { background: var(--gradient); padding: 60px 0; margin-bottom: 0; }
.page-header h1 { color: #fff; font-size: clamp(28px,4vw,42px); margin-bottom: 8px; }
.page-header p  { color: #bfdbfe; font-size: 16px; }

/* ─── BREADCRUMB ──────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #93c5fd; padding-top: 16px; }
.breadcrumb a { color: #93c5fd; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { opacity: .5; }

/* ─── UTILS ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mt-8  { margin-top: 32px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.mb-8  { margin-bottom: 32px; }
.gap-4 { gap: 16px; }
.flex  { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-1 { flex: 1; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-clamp-2 { display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.line-clamp-3 { display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }

/* ─── PRODUCT FILTERS SIDEBAR ─────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; }
.filter-card { background:#fff; border-radius:var(--radius); border:1px solid var(--gray-100); box-shadow:var(--shadow); padding:20px; position:sticky; top:96px; }
.filter-heading { font-size:13px; font-weight:700; color:var(--gray-700); margin-bottom:12px; padding-bottom:8px; border-bottom:1px solid var(--gray-100); }
.filter-list { list-style:none; display:flex; flex-direction:column; gap:2px; }
.filter-link { display:block; padding:8px 10px; border-radius:6px; font-size:13px; color:var(--gray-600); transition:all .2s; }
.filter-link:hover, .filter-link.active { background:var(--gray-50); color:var(--blue); font-weight:600; }
.filter-count { float:right; font-size:11px; color:var(--gray-400); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4   { grid-template-columns: repeat(2,1fr); }
  .grid-cats { grid-template-columns: repeat(4,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-cards { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 200px 1fr; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--gray-100); box-shadow: var(--shadow-md); z-index: 99; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .btn-primary:not(.always-show) { display: none; }
  .hero { min-height: 70vh; }
  .hero h1 { font-size: 32px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-cats { grid-template-columns: repeat(3,1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .shop-layout { grid-template-columns: 1fr; }
  .filter-card { position: static; }
  .admin-sidebar { display: none; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-cats { grid-template-columns: repeat(2,1fr); }
  .hero-features { flex-direction: column; gap: 10px; }
  .stat-cards { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
