/* ===== BarafuCool — Ice Theme ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --primary-light: #e0f2fe;
  --accent: #f97316;
  --danger: #ef4444;
  --success: #22c55e;
  --bg: #f0f9ff;
  --surface: #ffffff;
  --border: #e0f2fe;
  --text: #0f172a;
  --muted: #64748b;
  --shadow: 0 2px 12px rgba(14,165,233,0.10);
  --shadow-lg: 0 8px 32px rgba(14,165,233,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

img { display: block; max-width: 100%; }

/* ===== TOP BAR ===== */
.topbar {
  background: var(--primary-dark);
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: #bae6fd; }
.topbar a:hover { color: #fff; }

/* ===== HEADER ===== */
.site-header {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  letter-spacing: -0.5px;
}
.brand span { color: var(--primary-dark); }

.search-bar {
  flex: 1;
  display: flex;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  transition: border-color .2s;
}
.search-bar:focus-within { border-color: var(--primary); }
.search-bar input {
  flex: 1;
  padding: 10px 18px;
  border: none;
  background: transparent;
  font-size: 0.95rem;
  outline: none;
  color: var(--text);
}
.search-bar button {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 1rem;
  transition: background .2s;
}
.search-bar button:hover { background: var(--primary-dark); }

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

.btn-icon {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.btn-icon.ghost { background: transparent; color: var(--muted); }
.btn-icon.ghost:hover { background: var(--primary-light); color: var(--primary); }
.btn-icon.primary { background: var(--primary); color: #fff; }
.btn-icon.primary:hover { background: var(--primary-dark); }

.cart-badge {
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  width: 18px; height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== NAV ===== */
.site-nav {
  background: var(--primary);
  color: #fff;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
}
.nav-inner a {
  color: #e0f2fe;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s;
}
.nav-inner a:hover, .nav-inner a.active { color: #fff; border-bottom-color: #fff; }

/* ===== FLASH MESSAGES ===== */
.flash-msg {
  max-width: 1280px;
  margin: 12px auto 0;
  padding: 0 24px;
}
.flash-msg .alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.alert-error { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-info { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #bae6fd; }

/* ===== MAIN CONTENT ===== */
main { flex: 1; }
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px;
}

/* ===== HERO BANNER ===== */
.hero {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #38bdf8 100%);
  color: #fff;
  padding: 48px 24px;
  text-align: center;
  margin-bottom: 32px;
}
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: 0.9; margin-bottom: 24px; }
.hero .btn-hero {
  background: #fff;
  color: var(--primary-dark);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  display: inline-block;
  transition: transform .2s, box-shadow .2s;
}
.hero .btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ===== CATEGORY CHIPS ===== */
.category-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}
.category-bar .chip {
  padding: 7px 18px;
  border-radius: 50px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.category-bar .chip:hover, .category-bar .chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ===== SECTION TITLE ===== */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 4px;
}

/* ===== PRODUCT GRID ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.product-card .badges {
  position: absolute;
  top: 10px; left: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.badge-sale { background: var(--danger); color: #fff; }
.badge-flash { background: var(--accent); color: #fff; }
.badge-new { background: var(--success); color: #fff; }
.badge-out { background: #94a3b8; color: #fff; }

.product-card .wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 2;
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .2s;
  backdrop-filter: blur(4px);
}
.wishlist-btn:hover { background: #fff; transform: scale(1.1); }
.wishlist-btn.wishlisted { color: var(--danger); }

.product-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: var(--bg);
}
.card-img-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--primary);
}

.card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-cat {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.price-now { font-size: 1.1rem; font-weight: 800; color: var(--primary-dark); }
.price-orig { font-size: 0.82rem; color: var(--muted); text-decoration: line-through; }
.price-off { font-size: 0.78rem; font-weight: 700; color: var(--danger); background: #fee2e2; padding: 2px 7px; border-radius: 50px; }

.stars { color: #f59e0b; font-size: 0.82rem; margin-bottom: 4px; }
.stars span { color: var(--muted); margin-left: 4px; }

.card-footer {
  padding: 10px 14px 14px;
  display: flex;
  gap: 8px;
}
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 18px; border-radius: var(--radius-sm); font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer; transition: all .2s; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #16a34a; }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== PRODUCT DETAIL ===== */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media(max-width:768px){ .product-detail-layout { grid-template-columns: 1fr; } }

.product-gallery { position: sticky; top: 80px; }
.gallery-main {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--bg);
  margin-bottom: 12px;
}
.gallery-main-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.product-info .product-title { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; line-height: 1.2; }
.product-info .product-cat { font-size: 0.85rem; color: var(--primary); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 12px; }
.product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 0.9rem; color: var(--muted); }
.product-rating .stars { font-size: 1rem; }

.price-block { background: var(--primary-light); border-radius: var(--radius); padding: 18px; margin-bottom: 20px; }
.price-block .price-now { font-size: 2rem; }
.price-block .price-orig { font-size: 1rem; }

.specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.spec-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.spec-item .spec-label { font-size: 0.75rem; color: var(--muted); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.spec-item .spec-value { font-size: 0.92rem; font-weight: 700; color: var(--text); }

.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.stock-in { background: #dcfce7; color: #15803d; }
.stock-low { background: #fef9c3; color: #92400e; }
.stock-out { background: #fee2e2; color: #991b1b; }

.qty-control { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; margin-bottom: 16px; }
.qty-control button { background: var(--bg); border: none; padding: 10px 16px; font-size: 1.1rem; cursor: pointer; transition: background .2s; }
.qty-control button:hover { background: var(--primary-light); }
.qty-control input { width: 56px; text-align: center; border: none; border-left: 2px solid var(--border); border-right: 2px solid var(--border); padding: 10px 0; font-size: 1rem; font-weight: 700; outline: none; }

.flash-countdown {
  background: linear-gradient(90deg, var(--accent), #f59e0b);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ===== REVIEWS ===== */
.reviews-section { margin-top: 48px; }
.review-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
}
.review-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.reviewer-name { font-weight: 700; font-size: 0.95rem; }
.review-date { font-size: 0.78rem; color: var(--muted); }
.review-text { color: var(--muted); font-size: 0.9rem; line-height: 1.5; }

.review-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 20px;
}
.review-form h3 { margin-bottom: 16px; font-size: 1.1rem; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media(max-width:600px){ .form-row { grid-template-columns: 1fr; } }

.form-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  max-width: 480px;
  margin: 40px auto;
}
.form-box h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 8px; color: var(--primary-dark); }
.form-box .subtitle { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }

/* ===== CART ===== */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media(max-width:900px){ .cart-layout { grid-template-columns: 1fr; } }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { padding: 12px 16px; text-align: left; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); border-bottom: 2px solid var(--border); }
.cart-table td { padding: 16px; vertical-align: middle; border-bottom: 1px solid var(--border); }
.cart-table tr:last-child td { border-bottom: none; }

.cart-product { display: flex; align-items: center; gap: 14px; }
.cart-product img { width: 70px; height: 70px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }
.cart-product .cart-product-name { font-weight: 700; font-size: 0.92rem; margin-bottom: 2px; }
.cart-product .cart-product-cat { font-size: 0.78rem; color: var(--muted); }

.cart-qty { display: flex; align-items: center; gap: 0; border: 2px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; width: fit-content; }
.cart-qty button { background: var(--bg); border: none; padding: 6px 12px; cursor: pointer; font-size: 1rem; transition: background .2s; }
.cart-qty button:hover { background: var(--primary-light); }
.cart-qty input { width: 44px; text-align: center; border: none; border-left: 2px solid var(--border); border-right: 2px solid var(--border); padding: 6px 0; font-size: 0.9rem; font-weight: 700; outline: none; }

.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.summary-box h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 20px; color: var(--primary-dark); }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.summary-row:last-of-type { border-bottom: none; }
.summary-row.total { font-weight: 800; font-size: 1.05rem; color: var(--text); padding-top: 14px; margin-top: 4px; border-top: 2px solid var(--border); }

/* ===== CHECKOUT ===== */
.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media(max-width:960px){ .checkout-layout { grid-template-columns: 1fr; } }

.checkout-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.checkout-section h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; color: var(--primary-dark); }

.delivery-options { display: flex; flex-direction: column; gap: 12px; }
.delivery-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all .2s;
}
.delivery-option:hover { border-color: var(--primary); background: var(--primary-light); }
.delivery-option input[type=radio] { accent-color: var(--primary); width: 18px; height: 18px; }
.delivery-option.selected { border-color: var(--primary); background: var(--primary-light); }
.delivery-option .d-title { font-weight: 700; font-size: 0.92rem; }
.delivery-option .d-desc { font-size: 0.8rem; color: var(--muted); }
.delivery-option .d-price { margin-left: auto; font-weight: 700; color: var(--primary-dark); white-space: nowrap; }

/* ===== ORDER HISTORY ===== */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.order-id { font-weight: 800; font-size: 1rem; color: var(--primary-dark); }
.order-date { font-size: 0.82rem; color: var(--muted); }
.order-status {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
}
.status-pending { background: #fef9c3; color: #92400e; }
.status-processing { background: #e0f2fe; color: var(--primary-dark); }
.status-shipped { background: #ede9fe; color: #7c3aed; }
.status-delivered { background: #dcfce7; color: #15803d; }
.status-cancelled { background: #fee2e2; color: #991b1b; }

/* ===== ADMIN ===== */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 240px;
  background: var(--primary-dark);
  color: #fff;
  flex-shrink: 0;
  padding: 24px 0;
}
.admin-sidebar .sidebar-brand {
  padding: 0 20px 20px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 16px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  color: #bae6fd;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all .2s;
}
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-nav .nav-section { padding: 12px 20px 4px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,0.4); font-weight: 700; }

.admin-main { flex: 1; background: #f8fafc; overflow-x: auto; }
.admin-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.admin-header h1 { font-size: 1.25rem; font-weight: 800; color: var(--text); }
.admin-content { padding: 28px; }

.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.stat-card .stat-label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card .stat-sub { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 10px; }

.data-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table th { padding: 13px 16px; text-align: left; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); background: var(--bg); border-bottom: 2px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg); }

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

.product-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); }

/* ===== WISHLIST ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
.empty-state .empty-icon { font-size: 4rem; margin-bottom: 16px; opacity: 0.4; }
.empty-state h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.empty-state p { margin-bottom: 24px; }

/* ===== PAGINATION ===== */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: all .2s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .current { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); }
.breadcrumb .sep { color: var(--border); }

/* ===== FOOTER ===== */
.site-footer { background: var(--primary-dark); color: #bae6fd; margin-top: auto; }
.footer-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px 24px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
@media(max-width:768px){ .footer-main { grid-template-columns: 1fr 1fr; } }
@media(max-width:500px){ .footer-main { grid-template-columns: 1fr; } }

.footer-brand { font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: 10px; }
.footer-desc { font-size: 0.85rem; line-height: 1.6; }
.footer-heading { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: #fff; margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #bae6fd; font-size: 0.88rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 8px;
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.text-primary { color: var(--primary); }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 16px; } .justify-between { justify-content: space-between; }
.font-bold { font-weight: 700; } .font-800 { font-weight: 800; }
.hidden { display: none; }
.card-surface { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ===== RESPONSIVE ===== */
@media(max-width:768px){
  .header-inner { flex-wrap: wrap; }
  .brand { flex: none; }
  .search-bar { order: 3; flex: 0 0 100%; }
  .hero h1 { font-size: 1.7rem; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-card .card-img, .card-img-placeholder { height: 150px; }
  .container { padding: 16px; }
}
