/* ========== Dr Tool 五金工具电子目录 全局样式 ========== */
:root {
  --primary: #005ba2;
  --primary-dark: #004a8a;
  --primary-light: #d6e9f8;
  --secondary: #0d2b4a;
  --accent: #e8a817;
  --success: #27ae60;
  --info: #2980b9;
  --warning: #e8a817;
  --danger: #005ba2;
  --bg: #f5f6fa;
  --bg-white: #ffffff;
  --text: #0d2b4a;
  --text-light: #7f8c8d;
  --text-muted: #bdc3c7;
  --border: #e1e4e8;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-sm: 4px;
  --transition: all 0.3s ease;
  --header-height: 64px;
  --max-width: 1280px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

/* ========== Header ========== */
.header {
  background: var(--bg-white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--primary);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
}

.logo-img {
  height: 40px;
  width: auto;
  border-radius: 4px;
}

.search-box {
  flex: 1;
  max-width: 520px;
  margin: 0 40px;
  display: flex;
  position: relative;
}

.search-box input {
  flex: 1;
  height: 40px;
  padding: 0 16px;
  border: 2px solid var(--border);
  border-left: none;
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary);
}

.search-type-select {
  height: 40px;
  padding: 0 8px;
  border: 2px solid var(--border);
  border-radius: 20px 0 0 20px;
  background: #fff;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  min-width: 100px;
  transition: var(--transition);
}

.search-type-select:focus {
  border-color: var(--primary);
}

.search-box button {
  height: 40px;
  padding: 0 24px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.search-box button:hover {
  background: var(--primary-dark);
}

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

.header-actions a, .header-actions .lang-switch {
  color: var(--text);
  font-size: 14px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-actions a:hover, .header-actions .lang-switch:hover {
  background: var(--bg);
  color: var(--primary);
}

.cart-count {
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-left: 4px;
}

.lang-switch {
  background: none;
  border: 1px solid var(--border);
}

/* ========== Layout ========== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--secondary);
}

/* ========== Carousel ========== */
.carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: #ddd;
  height: 380px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-item .carousel-caption {
  position: absolute;
  bottom: 40px;
  left: 60px;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.carousel-caption h2 {
  font-size: 32px;
  margin-bottom: 8px;
}

.carousel-caption p {
  font-size: 16px;
  opacity: 0.9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
  color: var(--text);
}

.carousel-btn:hover { background: #fff; }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dot.active { background: #fff; }

/* ========== Category Tree ========== */
.category-tree {
  margin-bottom: 32px;
}

.category-tree h3, .section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.cat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
}

.cat-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.cat-card .cat-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.cat-card .cat-name {
  font-weight: 600;
  font-size: 14px;
}

.cat-card .cat-sub {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 4px;
}

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

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-card .product-img {
  height: 220px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card .product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .product-img .placeholder-img {
  font-size: 48px;
  color: #ccc;
}

.product-card .product-info {
  padding: 16px;
}

.product-card .product-name {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.product-card .product-sku {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.product-card .product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.product-card .product-price .original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 8px;
  font-weight: 400;
}

.product-card .product-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary { background: var(--secondary); color: #fff; }
.btn-secondary:hover { background: #1a252f; }

.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }

.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }

.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-lg { padding: 12px 32px; font-size: 16px; }
.btn-block { width: 100%; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== Leaderboard ========== */
.leaderboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.leaderboard-item:hover { background: var(--bg); }

.leaderboard-rank {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
}

.leaderboard-rank.r1 { background: #005ba2; }
.leaderboard-rank.r2 { background: #e8a817; }
.leaderboard-rank.r3 { background: #3498db; }
.leaderboard-rank.rn { background: #95a5a6; }

.leaderboard-img {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.leaderboard-img img { width: 100%; height: 100%; object-fit: cover; }

.leaderboard-info { flex: 1; min-width: 0; }
.leaderboard-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leaderboard-price { color: var(--primary); font-weight: 600; font-size: 14px; }
.leaderboard-sold { font-size: 12px; color: var(--text-light); }

/* ========== Section ========== */
.section { margin-bottom: 40px; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 20px;
  font-weight: 700;
}

/* ========== Product Detail ========== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-gallery .main-img {
  width: 100%;
  height: 400px;
  background: #f0f0f0;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  margin-bottom: 12px;
}

.product-gallery .main-img img { width: 100%; height: 100%; object-fit: cover; }

.thumb-list {
  display: flex;
  gap: 8px;
}

.thumb-list .thumb {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  background: #f0f0f0;
  display: flex; align-items: center; justify-content: center;
}

.thumb-list .thumb.active { border-color: var(--primary); }

.thumb-list .thumb img { width: 100%; height: 100%; object-fit: cover; }

.product-info-detail h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.product-meta {
  color: var(--text-light);
  font-size: 14px;
  margin-bottom: 16px;
}

.product-price-detail {
  background: var(--primary-light);
  padding: 16px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.product-price-detail .current {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.product-price-detail .vip {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

.spec-section { margin-bottom: 24px; }

.spec-section h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}

.spec-options { display: flex; gap: 8px; flex-wrap: wrap; }

.spec-option {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: var(--transition);
  background: var(--bg-white);
}

.spec-option:hover { border-color: var(--primary); }
.spec-option.active {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 600;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}

.quantity-control button {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}

.quantity-control button:hover { background: var(--bg); }
.quantity-control button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.quantity-control button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.quantity-control input {
  width: 60px; height: 36px;
  text-align: center;
  border: 1px solid var(--border);
  border-left: none; border-right: none;
  font-size: 14px;
  outline: none;
}

.detail-actions { display: flex; gap: 12px; }

.stock-info {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.stock-info.low { color: var(--warning); }
.stock-info.out { color: var(--danger); }

/* ========== Product Description ========== */
.product-desc {
  margin-top: 32px;
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.product-desc h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.product-desc-content {
  line-height: 1.8;
  color: #555;
}

.product-desc-content img {
  max-width: 100%;
  margin: 16px 0;
  border-radius: var(--radius);
}

/* ========== Cart ========== */
.cart-table {
  width: 100%;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.cart-table table { width: 100%; border-collapse: collapse; }

.cart-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: middle;
}

.cart-item-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-img {
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  background: #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.cart-item-img img { width: 100%; height: 100%; object-fit: cover; }

.cart-summary {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  padding: 20px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-top: 16px;
}

.cart-total { font-size: 18px; font-weight: 600; }
.cart-total .price { color: var(--primary); font-size: 24px; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
}

.empty-state .icon { font-size: 64px; margin-bottom: 16px; }
.empty-state p { font-size: 16px; margin-bottom: 16px; }

/* ========== Order ========== */
.order-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
}

.order-tab {
  padding: 10px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.order-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.order-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 16px;
}

.order-header {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
  font-size: 14px;
}

.order-status {
  font-weight: 600;
}

.order-status.completed { color: var(--success); }
.order-status.cancelled { color: var(--text-muted); }
.order-status.processing { color: var(--info); }
.order-status.reviewing { color: var(--warning); }

.order-product {
  display: flex;
  align-items: center;
  gap: 12px;
}

.order-product-img {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: #f0f0f0;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}

.order-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.order-total { font-weight: 600; font-size: 15px; color: var(--primary); }

/* ========== Forms ========== */
.form-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-height) - 40px);
}

.form-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  width: 100%;
  max-width: 440px;
}

.form-card h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 8px;
}

.form-card .subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 24px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  height: auto;
  padding: 12px;
  resize: vertical;
}

.captcha-row {
  display: flex;
  gap: 12px;
}

.captcha-row input { flex: 1; }

.captcha-img {
  width: 120px; height: 42px;
  background: #f0f0f0;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  cursor: pointer;
  user-select: none;
  color: #666;
  font-style: italic;
}

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 14px;
}

/* ========== Search Results ========== */
.search-highlight {
  background: #d6e9f8;
  color: var(--accent);
  padding: 1px 2px;
  border-radius: 2px;
  font-weight: 600;
}

.search-header {
  margin-bottom: 20px;
}

.search-keyword {
  color: var(--primary);
  font-weight: 700;
}

.search-suggestions {
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--text-light);
}

.search-suggestions span {
  color: var(--info);
  cursor: pointer;
  margin: 0 4px;
}

.search-suggestions span:hover { text-decoration: underline; }

/* ========== About ========== */
.about-page {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}

.about-page h1 { font-size: 28px; margin-bottom: 24px; }
.about-page h2 { font-size: 20px; margin: 24px 0 12px; color: var(--secondary); }
.about-page p { margin-bottom: 12px; color: #555; }

/* ========== Footer ========== */
.footer {
  background: var(--secondary);
  color: #bdc3c7;
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 12px;
}

.footer-col p, .footer-col a {
  font-size: 14px;
  color: #bdc3c7;
  display: block;
  margin-bottom: 8px;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  margin-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease;
  max-width: 360px;
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }
.toast.info { background: var(--info); }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.modal h3 { margin-bottom: 16px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 20px; }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; padding: 0 12px; }
  .search-box { order: 3; max-width: 100%; margin: 8px 0; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; padding: 16px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card { font-size: 12px; }
  .carousel { height: 180px; }
  .carousel-caption h2 { font-size: 16px; }
  .carousel-caption p { font-size: 11px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .form-card { padding: 20px 16px; }
  .about-page { padding: 20px; }
  .cart-table { overflow-x: auto; }
  .cart-table table { min-width: 600px; }
  .order-header { flex-direction: column; align-items: flex-start; gap: 8px; }
  .leaderboard-item { padding: 8px 12px; }
  .order-tabs { overflow-x: auto; white-space: nowrap; }
  .container { padding: 12px; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; display: flex; overflow-x: auto; }
  .admin-sidebar .sidebar-title { display: none; }
  .admin-sidebar .nav-item { flex-shrink: 0; border-left: none; border-bottom: 3px solid transparent; }
  .admin-sidebar .nav-item.active { border-left: none; border-bottom-color: #005ba2; }
}

/* ========== Price Badge ========== */
.vip-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 6px;
}

.vip-badge.vip1 { background: #dfe6e9; color: #636e72; }
.vip-badge.vip2 { background: #ffeaa7; color: #d68910; }
.vip-badge.vip3 { background: #fab1a0; color: #004a8a; }

.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.badge-success { background: #d5f5e3; color: #27ae60; }
.badge-warning { background: #fdebd0; color: #e67e22; }
.badge-secondary { background: #eaecee; color: #7f8c8d; }

/* ========== Pagination ========== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination button {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition);
}

.pagination button:hover { border-color: var(--primary); }
.pagination button.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
