/* ============================================
   ChinaB2Ethiopia - B2B Electronics Wholesale
   ============================================ */

:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #e94560;
  --accent-hover: #d63850;
  --accent-light: #ff6b81;
  --success: #0f9b0f;
  --warning: #e6a700;
  --danger: #dc3545;
  --bg: #ffffff;
  --bg-gray: #f8f9fa;
  --bg-dark: #0f0f1a;
  --text: #2d3436;
  --text-light: #636e72;
  --border: #e0e0e0;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== TYPOGRAPHY ========== */

h1 { font-size: 2.5rem; font-weight: 800; line-height: 1.2; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

.text-accent { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.price-value { color: var(--accent); font-weight: 700; font-size: 1.1rem; }

/* ========== BUTTONS ========== */

.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  border: 2px solid transparent;
  text-align: center;
  font-family: inherit;
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }

.btn-accent {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover { background: var(--accent); color: white; }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #c82333; }

/* ========== NAVBAR ========== */

.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
}

.logo-icon { font-size: 1.6rem; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-link {
  text-decoration: none;
  font-size: 1.2rem;
  position: relative;
}

.cart-badge {
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 1px 6px;
  border-radius: 10px;
  position: absolute;
  top: -8px;
  right: -12px;
  font-weight: 600;
}

.nav-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

.user-menu { position: relative; }

.user-btn {
  background: none;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}

.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  min-width: 200px;
  padding: 0.5rem;
  z-index: 100;
}

.user-menu:hover .user-dropdown { display: block; }

.user-dropdown .dropdown-header {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.3rem;
}

.user-dropdown a {
  display: block;
  padding: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 6px;
}

.user-dropdown a:hover { background: var(--bg-gray); color: var(--accent); }

.user-dropdown hr { margin: 0.3rem 0; border: none; border-top: 1px solid var(--border); }

/* ========== BADGES ========== */

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.badge-bronze { background: #cd7f32; color: white; }
.badge-silver { background: #c0c0c0; color: #333; }
.badge-gold { background: #ffd700; color: #333; }
.badge-platinum { background: #e5e4e2; color: #333; border: 1px solid #ffd700; }

.status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; text-transform: capitalize; }
.status-pending { background: #fff3cd; color: #856404; }
.status-confirmed { background: #cce5ff; color: #004085; }
.status-processing { background: #d1ecf1; color: #0c5460; }
.status-shipped { background: #d4edda; color: #155724; }
.status-delivered { background: #28a745; color: white; }
.status-cancelled { background: #f8d7da; color: #721c24; }
.status-paid { background: #d4edda; color: #155724; }
.status-new { background: #dc3545; color: white; }
.status-read { background: #cce5ff; color: #004085; }
.status-replied { background: #d4edda; color: #155724; }

/* ========== HERO ========== */

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #1a1a3e 100%);
  color: white;
  padding: 5rem 0;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 { font-size: 3rem; margin-bottom: 1.5rem; line-height: 1.15; }

.hero-text p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 2rem;
  max-width: 500px;
  line-height: 1.7;
}

.hero-badges { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 2rem; }

.hero-badge {
  background: rgba(233,69,96,0.2);
  border: 1px solid rgba(233,69,96,0.4);
  padding: 0.3rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--accent-light);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions .btn-outline { color: white; border-color: rgba(255,255,255,0.4); }
.hero-actions .btn-outline:hover { background: rgba(255,255,255,0.1); }

.hero-image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-image-item {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  aspect-ratio: 1;
  transition: transform 0.3s;
}

.hero-image-item:hover { transform: scale(1.05); background: rgba(233,69,96,0.1); }

/* ========== SECTIONS ========== */

.section { padding: 4rem 0; }
.section-gray { background: var(--bg-gray); }

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 { margin-bottom: 0.5rem; color: var(--primary); }
.section-header p { color: var(--text-light); font-size: 1.05rem; }

.section-actions { text-align: center; margin-top: 2rem; }

/* ========== CATEGORIES ========== */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all 0.3s;
  text-align: center;
}

.category-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.category-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.category-card h3 { font-size: 0.95rem; }
.category-zh { color: var(--text-light); font-size: 0.8rem; margin-top: 0.2rem; }

/* ========== CONTENT PAGE ========== */

.content-page { max-width: 800px; margin: 0 auto; }

.content-page h2 { margin-bottom: 1rem; }

.about-intro {
  margin-bottom: 3rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

.about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.about-card h3 { margin-bottom: 0.75rem; }
.about-card p { color: var(--text-light); line-height: 1.6; }

/* ========== PRODUCTS ========== */

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s;
}

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

.product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-gray);
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-card:hover .product-card-image img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-factory { background: var(--accent); color: white; }
.badge-partner { background: #6c5ce7; color: white; }
.badge-canada-header {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 1.2rem;
  vertical-align: middle;
  margin-left: 0.5rem;
  line-height: 1;
}

.product-card-body {
  padding: 1.25rem;
}

.product-category {
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.3rem;
}

.product-card-body h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.product-card-body h3 a {
  text-decoration: none;
  color: var(--primary);
}
.product-card-body h3 a:hover { color: var(--accent); }

.product-pricing { margin-bottom: 1rem; }

.price-from {
  font-size: 0.9rem;
  color: var(--text-light);
}
.price-from strong { color: var(--accent); font-size: 1.1rem; }

.price-bulk {
  font-size: 0.8rem;
  color: var(--success);
  margin-top: 0.2rem;
}

.product-card-actions {
  display: flex;
  gap: 0.5rem;
}

/* ========== FEATURES ========== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.3s;
}

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

.feature-icon { font-size: 2.5rem; margin-bottom: 1rem; }

.feature-card h3 { margin-bottom: 0.75rem; }

.feature-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========== CTA ========== */

.cta-section {
  background: linear-gradient(135deg, var(--accent), #ff6b81);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.cta-content h2 { font-size: 2rem; margin-bottom: 1rem; }
.cta-content p { font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.9; }
.cta-content .btn-outline { color: white; border-color: white; }
.cta-content .btn-outline:hover { background: white; color: var(--accent); }

/* ========== FOOTER ========== */

.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.8);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col h4 { color: white; margin-bottom: 1rem; font-size: 1.1rem; }
.footer-col p { font-size: 0.9rem; margin-bottom: 0.5rem; color: rgba(255,255,255,0.6); }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--accent-light); }

.footer-contact p { display: flex; align-items: center; gap: 0.5rem; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}

.footer-canada {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.5px;
}

.footer-canada strong {
  color: var(--accent-light);
}

.hero-badge-canada {
  background: rgba(255,255,255,0.15) !important;
  border-color: rgba(255,255,255,0.5) !important;
  transition: all 0.3s;
}

.hero-badge-canada:hover {
  background: rgba(233,69,96,0.15) !important;
  border-color: var(--accent-light) !important;
  transform: scale(1.05);
}

/* ========== FLASH MESSAGES ========== */

.flash {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  font-size: 0.95rem;
}

.flash-success { background: #d4edda; color: #155724; border-bottom: 2px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border-bottom: 2px solid #f5c6cb; }

.flash button {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
}

/* ========== ALERTS ========== */

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ========== AUTH ========== */

.auth-card {
  max-width: 520px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}

.auth-card h2 { margin-bottom: 0.5rem; }
.auth-card > p { color: var(--text-light); margin-bottom: 1.5rem; }

.auth-alt { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--text-light); }
.auth-alt a { color: var(--accent); text-decoration: none; }

/* ========== FORMS ========== */

.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: 0.4rem; font-weight: 500; font-size: 0.9rem; }

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(233,69,96,0.1);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ========== PAGE HEADER ========== */

.page-header {
  background: var(--bg-gray);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

.page-header h1 { font-size: 1.8rem; }
.page-header p { color: var(--text-light); margin-top: 0.3rem; }

/* ========== PRODUCT LAYOUT ========== */

.products-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
}

.filter-sidebar { position: sticky; top: 90px; align-self: start; }

.filter-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent);
}

.filter-list { list-style: none; }

.filter-list li { margin-bottom: 0.3rem; }

.filter-list a {
  display: block;
  padding: 0.4rem 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.2s;
}

.filter-list a:hover,
.filter-list a.active {
  background: rgba(233,69,96,0.08);
  color: var(--accent);
}

.products-toolbar {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ========== PRODUCT DETAIL ========== */

.product-detail-section { padding: 2rem 0 4rem; }

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 2rem;
  color: var(--text-light);
}

.breadcrumb a { color: var(--text-light); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.product-detail-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-gray);
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-detail-info h1 { font-size: 1.6rem; margin-bottom: 0.5rem; }
.product-name-zh { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }

.product-description {
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.pricing-table-section { margin-bottom: 2rem; }

.pricing-table-section h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.pricing-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-row:last-child { border-bottom: none; }
.pricing-header { background: var(--bg-gray); font-weight: 600; }
.pricing-row.highlight { background: rgba(233,69,96,0.05); }

.pricing-note { font-size: 0.8rem; color: var(--text-light); margin-top: 0.5rem; }

.product-actions { margin-bottom: 1.5rem; }

.qty-selector {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.qty-selector label { font-weight: 500; font-size: 0.9rem; }

.qty-controls {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-controls button {
  padding: 0.4rem 0.8rem;
  border: none;
  background: var(--bg-gray);
  cursor: pointer;
  font-size: 1.1rem;
  transition: background 0.2s;
}

.qty-controls button:hover { background: #e0e0e0; }

.qty-controls input {
  width: 60px;
  text-align: center;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0.4rem;
  font-size: 0.95rem;
}

.action-buttons { display: flex; gap: 0.75rem; }

.product-meta { font-size: 0.9rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

.product-meta h4 { margin: 1rem 0 0.5rem; }

.product-specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.3rem 1rem;
}

.product-specs dt { font-weight: 500; color: var(--text-light); }
.product-specs dd { color: var(--text); }

/* ========== MODAL ========== */

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-content {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 500px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--text-light);
}

/* ========== CART ========== */

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}

.cart-header-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-light);
}

.cart-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 40px;
  gap: 1rem;
  padding: 1rem;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.cart-item-product { display: flex; align-items: center; gap: 1rem; }
.cart-item-product img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; }
.cart-item-product h4 { font-size: 0.95rem; }

.cart-qty-input {
  width: 60px;
  padding: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-align: center;
}

.cart-remove {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--danger);
  opacity: 0.5;
  transition: opacity 0.2s;
}

.cart-remove:hover { opacity: 1; }

.cart-summary {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.cart-summary h3 { margin-bottom: 1rem; }

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.summary-total { font-size: 1.15rem; font-weight: 700; color: var(--accent); }
.cart-summary hr { margin: 0.75rem 0; border: none; border-top: 1px solid var(--border); }
.cart-summary .btn-block { margin-bottom: 0.5rem; }

/* ========== CHECKOUT ========== */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 2rem;
  align-items: start;
}

.checkout-summary {
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: sticky;
  top: 90px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.checkout-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 6px;
}

.checkout-item > span { margin-left: auto; font-weight: 600; }

.payment-options { margin-bottom: 1.5rem; }

.payment-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-option:hover,
.payment-option:has(input:checked) {
  border-color: var(--accent);
  background: rgba(233,69,96,0.05);
}

.payment-option input { margin-top: 0.2rem; }
.payment-option strong { display: block; margin-bottom: 0.2rem; }
.payment-option p { font-size: 0.85rem; color: var(--text-light); }

/* ========== ORDERS ========== */

.order-list { display: flex; flex-direction: column; gap: 1rem; }

.order-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}

.order-id { font-weight: 600; }
.order-date { font-size: 0.85rem; color: var(--text-light); }

.order-body { padding: 1rem 1.25rem; font-size: 0.9rem; }
.order-footer { padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); }

.order-detail-card {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.order-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.order-detail-section { margin-bottom: 1.5rem; }

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

.order-table th,
.order-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.order-table th { background: var(--bg-gray); font-weight: 600; }

.order-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.order-total-bar {
  padding: 1rem;
  background: var(--bg-gray);
  border-radius: var(--radius-sm);
  text-align: right;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.order-notes {
  background: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1rem;
}

/* ========== CONTACT ========== */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-content: start; }

.contact-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.contact-card p { font-size: 0.9rem; color: var(--text-light); }

.contact-form-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ========== INQUIRIES ========== */

.inquiries-list { display: flex; flex-direction: column; gap: 1rem; }

.inquiry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.inquiry-body {
  padding: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.inquiry-body p { margin-bottom: 0.5rem; }

.inquiry-replies {
  padding: 0.75rem 1rem;
  background: #f0f8ff;
  border-top: 1px solid var(--border);
}

.reply-bubble {
  padding: 0.5rem 0.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.inquiry-reply-form {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--border);
}

.inquiry-reply-form textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  margin-bottom: 0.5rem;
}

/* ========== ADMIN ========== */

.admin-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.admin-nav-link {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-nav-link:hover,
.admin-nav-link.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.25rem;
}

.admin-section { margin-bottom: 2rem; }
.admin-section h2 { font-size: 1.3rem; margin-bottom: 1rem; }

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.admin-table th {
  background: var(--bg-gray);
  font-weight: 600;
  white-space: nowrap;
}

.admin-table tr:hover { background: #fafafa; }

.admin-form-card {
  max-width: 700px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  align-items: start;
}

.filter-tabs {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.filter-tabs a {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.filter-tabs a:hover,
.filter-tabs a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== PAGINATION ========== */

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.page-link {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.page-link:hover,
.page-link.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== EMPTY STATE ========== */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
}

.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h2 { margin-bottom: 0.5rem; }
.empty-state p { color: var(--text-light); margin-bottom: 1.5rem; }

/* ========== SEARCH ========== */

.search-bar {
  display: flex;
  gap: 0;
  max-width: 500px;
}

.search-bar input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 2px solid var(--border);
  border-right: none;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}

.search-bar input:focus { outline: none; border-color: var(--accent); }

.search-bar button {
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: white;
  border: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-size: 0.95rem;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1024px) {
  .product-detail { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { grid-template-columns: 1fr; gap: 2rem; }
  .hero-text h1 { font-size: 2.2rem; }
  .hero-image-grid { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.active { display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem; box-shadow: var(--shadow); }
  
  .products-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  
  .cart-layout { grid-template-columns: 1fr; }
  .checkout-layout { grid-template-columns: 1fr; }
  
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr 1fr; }
  
  .about-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero-text h1 { font-size: 1.8rem; }
  
  .form-row { grid-template-columns: 1fr; }
  
  .cart-header-row, .cart-item {
    grid-template-columns: 1fr 80px 80px 80px 30px;
    font-size: 0.85rem;
    gap: 0.5rem;
  }
  
  .order-detail-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .nav-actions .btn { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image-grid { grid-template-columns: 1fr 1fr; }
}

/* Page header with actions */
.page-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}