/* ===== SoundWave - Premium TWS Earphone Store ===== */
/* WordPress / WooCommerce inspired clean design */

:root {
  --white: #ffffff;
  --off-white: #f8f9fa;
  --light-gray: #f1f3f5;
  --border: #e9ecef;
  --border-dark: #dee2e6;
  --text: #212529;
  --text-secondary: #6c757d;
  --text-muted: #adb5bd;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #dbeafe;
  --accent: #f59e0b;
  --sale: #dc2626;
  --success: #10b981;
  --star: #f59e0b;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.25s ease;
}

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

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', -apple-system, sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
}

/* ===== Top Bar ===== */
.topbar {
  background: var(--text);
  color: var(--white);
  font-size: 12px;
  padding: 8px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  position: relative;
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex: 1;
}

.topbar-right {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.lang-toggle {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s;
  white-space: nowrap;
  font-family: 'Inter', 'PingFang SC', -apple-system, sans-serif;
}
.lang-toggle:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.4);
}

.topbar-inner span { white-space: nowrap; }
.topbar-inner i { margin-right: 4px; }

@keyframes topbarScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Header ===== */
.header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.brand-text { display: flex; flex-direction: column; }
.brand-name { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.brand-tagline { font-size: 11px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 2px; }

.header-search {
  flex: 1;
  max-width: 500px;
  display: flex;
  border: 2px solid var(--border);
  border-radius: 25px;
  overflow: hidden;
  transition: var(--transition);
}

.header-search:focus-within { border-color: var(--primary); }

.header-search input {
  flex: 1;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  background: transparent;
  color: var(--text);
}

.header-search button {
  background: var(--primary);
  border: none;
  color: white;
  padding: 10px 20px;
  cursor: pointer;
  transition: var(--transition);
}

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

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.header-action {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  position: relative;
  font-size: 18px;
}

.header-action:hover { background: var(--light-gray); color: var(--primary); }

.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--sale);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* ===== Navigation ===== */
.main-nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.main-nav .nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 32px;
}

.main-nav a {
  padding: 14px 0;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active { color: var(--text); border-bottom-color: var(--primary); }

.nav-badge-sale {
  background: var(--sale);
  color: white;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 4px;
  font-weight: 700;
}

/* ===== Hero Section ===== */
.hero {
  margin: 0;
  position: relative;
  height: 480px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1a1a2e 100%);
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.carousel-slide:nth-child(1) {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #1e40af 100%);
}

.carousel-slide:nth-child(2) {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f766e 100%);
}

.carousel-slide:nth-child(3) {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #7c3aed 100%);
}

.slide-content {
  text-align: center;
  z-index: 2;
  padding: 40px;
  animation: slideIn 0.8s ease;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-badge {
  display: inline-block;
  background: rgba(37, 99, 235, 0.2);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #93c5fd;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.slide-title {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 16px;
  color: white;
  line-height: 1.1;
}

.slide-desc {
  font-size: 18px;
  color: #94a3b8;
  max-width: 500px;
  margin: 0 auto 32px;
}

.slide-btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.slide-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

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

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

.carousel-dot.active { background: var(--primary); width: 28px; border-radius: 5px; }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: white;
  font-size: 16px;
  cursor: pointer;
  z-index: 3;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-arrow:hover { background: rgba(255,255,255,0.2); }
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }

/* ===== Trust Badges ===== */
.trust-badges {
  max-width: 1280px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

.trust-item {
  text-align: center;
  padding: 16px;
}

.trust-icon {
  font-size: 28px;
  margin-bottom: 10px;
  color: var(--primary);
}

.trust-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}

.trust-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

/* ===== Sections ===== */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  color: var(--text);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--border);
  padding-bottom: 16px;
  margin-bottom: 32px;
}

.section-header-bar h2 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 800;
}

.countdown {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--sale);
  font-weight: 600;
}

.countdown-block {
  background: var(--sale);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 800;
  min-width: 32px;
  text-align: center;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

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

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.badge-sale { background: var(--sale); color: white; }
.badge-new { background: var(--primary); color: white; }
.badge-hot { background: var(--accent); color: var(--text); }

.product-image-wrap {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

.product-image-wrap img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.product-image-wrap .img-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.product-info {
  padding: 16px;
}

.product-category {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.product-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
  line-height: 1.4;
}

.product-colors {
  display: flex;
  gap: 5px;
  margin-bottom: 10px;
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--border);
  transition: var(--transition);
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--star);
}

.stars span { margin-left: 4px; color: var(--text-muted); font-size: 11px; }

.product-price-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.product-price-original {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Dual currency pricing */
.dual-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-cny {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.price-usd {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}
.price-usd-inline {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
}
.detail-main-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-save {
  font-size: 12px;
  color: var(--sale);
  font-weight: 700;
}

.product-shipping {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
}

.product-shipping i { font-size: 11px; }

/* ===== Product Detail ===== */
.detail-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
}

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

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 100px;
}

.detail-main-image {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.detail-main-image img {
  max-width: 85%;
  max-height: 85%;
  object-fit: contain;
}

.detail-main-image .img-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
}

.detail-info { }

.detail-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.detail-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
  line-height: 1.2;
}

.detail-model {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.detail-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 14px;
}

.detail-rating .stars i { color: var(--star); font-size: 13px; }
.detail-rating .review-count { color: var(--text-muted); font-size: 13px; }

.detail-price-block {
  margin-bottom: 8px;
}

.detail-price {
  font-size: 38px;
  font-weight: 900;
  color: var(--text);
}

.detail-price-currency { font-size: 20px; color: var(--text-secondary); }
.detail-price-original { font-size: 18px; color: var(--text-muted); text-decoration: line-through; margin-left: 10px; }
.detail-save { font-size: 14px; color: var(--sale); font-weight: 700; margin-left: 10px; }
.detail-tax { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.detail-colors {
  display: flex;
  gap: 10px;
  margin: 20px 0;
  align-items: center;
}

.detail-colors-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-right: 4px;
}

.detail-color-option {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.detail-color-option:hover,
.detail-color-option.active {
  border-color: var(--primary);
  transform: scale(1.15);
}

.detail-divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

.detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.spec-item {
  background: var(--off-white);
  padding: 10px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.spec-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}

.spec-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.detail-qty {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.qty-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

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

.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--off-white);
  border: none;
  color: var(--text);
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: var(--primary); color: white; }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-input {
  width: 50px;
  height: 36px;
  background: white;
  border: none;
  border-left: 2px solid var(--border);
  border-right: 2px solid var(--border);
  color: var(--text);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
}

.qty-input:focus { outline: none; }

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

.btn {
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-dark);
}

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

.btn-dark {
  background: var(--text);
  color: white;
}

.btn-dark:hover {
  background: #374151;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-large { padding: 16px 36px; font-size: 16px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== Checkout Page ===== */
.checkout-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

.checkout-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -1px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 32px;
}

.checkout-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
}

.checkout-section h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

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

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.form-input {
  width: 100%;
  height: 44px;
  background: var(--white);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
  border-color: var(--sale);
  animation: shake 0.4s ease;
}

.form-input.success {
  border-color: var(--success);
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

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

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.cc-input-wrapper { position: relative; }
.cc-type-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  opacity: 0.3;
  transition: var(--transition);
}

.cc-input-wrapper input:focus + .cc-type-icon,
.cc-input-wrapper input:valid + .cc-type-icon { opacity: 1; }

/* ===== Order Summary ===== */
.order-summary { position: sticky; top: 120px; }

.summary-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.summary-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.summary-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.summary-item-img {
  width: 50px;
  height: 50px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--off-white);
}

.summary-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.summary-item-details { flex: 1; min-width: 0; }

.summary-item-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.summary-item-price {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
}

.summary-totals { padding-top: 14px; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.summary-row.total {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  padding-top: 12px;
  border-top: 2px solid var(--border);
  margin-top: 8px;
}

.summary-row.total .amount { color: var(--primary); }

.btn-checkout {
  width: 100%;
  margin-top: 18px;
  padding: 16px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.success { border: 2px solid var(--success); }
.toast.error { border: 2px solid var(--sale); }

/* ===== Modals ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close:hover { background: var(--light-gray); color: var(--text); }

.modal-box h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 16px;
}

.modal-box p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.7; font-size: 14px; }

.modal-stats {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.stat-box {
  flex: 1;
  background: var(--off-white);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--border);
}

.stat-number { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--off-white);
  border-radius: var(--radius);
  margin-bottom: 10px;
  border: 1px solid var(--border);
}

.contact-icon {
  font-size: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.contact-text .c-title { font-weight: 600; font-size: 14px; }
.contact-text .c-value { font-size: 13px; color: var(--text-secondary); }

/* ===== Empty Cart ===== */
.empty-cart {
  text-align: center;
  padding: 80px 24px;
}

.empty-cart-icon { font-size: 64px; margin-bottom: 16px; }
.empty-cart h2 { font-size: 24px; margin-bottom: 8px; }
.empty-cart p { color: var(--text-secondary); margin-bottom: 24px; }

/* ===== Footer ===== */
.footer {
  background: #1a1a2e;
  color: #94a3b8;
  padding: 60px 24px 30px;
  margin-top: 40px;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-col p { font-size: 13px; line-height: 1.8; margin-bottom: 8px; }
.footer-col a {
  display: block;
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.footer-col a:hover { color: white; }

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  transition: var(--transition);
}

.footer-social a:hover { background: var(--primary); }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
}

.footer-col .fas,
.footer-col .fa-map-marker-alt,
.footer-col .fa-phone,
.footer-col .fa-envelope { margin-right: 6px; font-size: 12px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .trust-badges { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .header-search { display: none; }
  .header-inner { gap: 12px; padding: 12px 16px; }
  .main-nav .nav-inner { gap: 16px; overflow-x: auto; }
  .main-nav a { font-size: 12px; white-space: nowrap; }
  .detail-grid { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .hero { height: 320px; }
  .slide-title { font-size: 30px; }
  .slide-desc { font-size: 14px; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .product-image-wrap { height: 180px; }
  .product-name { font-size: 13px; }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .trust-item { padding: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .detail-main-image { height: 300px; }
  .detail-main-image .img-placeholder { width: 140px; height: 140px; font-size: 16px; }
  .detail-specs { grid-template-columns: 1fr; }
  .detail-actions { flex-direction: column; }
  .carousel-arrow { display: none; }
}
