/* ==========================================================================
   LIME MART - 极简明绿亮风格 (Electric Lime Minimalist Design System)
   Pure CSS for Multi-Page Static E-Commerce
   ========================================================================== */

:root {
  --lime-50: #f0fdf4;
  --lime-100: #dcfce7;
  --lime-200: #bbf7d0;
  --lime-300: #86efac;
  --lime-400: #4ade80;
  --lime-500: #22c55e;
  --lime-600: #16a34a;
  --lime-primary: #00e676;
  --lime-bright: #05df72;
  --lime-electric: #ccff00;
  --lime-hover: #00c853;
  --lime-soft: #eafaf1;
  
  --dark-900: #0a0a0c;
  --dark-800: #121316;
  --dark-700: #1e2025;
  --dark-600: #2d3039;
  
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  
  --bg-page: #f8faf9;
  --bg-card: #ffffff;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-lime: 0 8px 20px -4px rgba(0, 230, 118, 0.35);
  --shadow-lime-sm: 0 4px 12px -2px rgba(0, 230, 118, 0.25);
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-page);
  color: var(--dark-800);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ==========================================================================
   Utility Container & Layout
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }

.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cols-5 { grid-template-columns: repeat(5, 1fr); }

/* ==========================================================================
   Header & Top Bar
   ========================================================================== */
.top-announcement {
  background-color: var(--dark-900);
  color: var(--lime-bright);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.5px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 12px;
  flex-wrap: nowrap;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--dark-900);
  min-width: 0;
  flex: 0 1 320px;
}

.logo-badge {
  background-color: var(--lime-primary);
  color: var(--dark-900);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  box-shadow: var(--shadow-lime-sm);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  min-width: 0;
}

.logo-title {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  line-height: 1.2;
  overflow: hidden;
  display: block;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.logo-sub {
  font-size: 10px;
  font-weight: 700;
  color: var(--lime-600);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Nav Links */
.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.1vw, 20px);
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.nav-link {
  font-size: clamp(13px, .95vw, 15px);
  font-weight: 600;
  color: var(--gray-700);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nav-link:hover, .nav-link.active {
  color: var(--dark-900);
}

.nav-link.active::after, .nav-link:hover::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--lime-primary);
  border-radius: 2px;
}

.nav-tag-hot {
  font-size: 10px;
  background: var(--lime-primary);
  color: var(--dark-900);
  font-weight: 800;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  margin-left: 4px;
}

/* Search Bar */
.search-form {
  position: relative;
  width: clamp(138px, 12vw, 190px);
  flex: 0 1 190px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 38px 0 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 14px;
  outline: none;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--lime-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
  width: 100%;
}

.search-btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--lime-primary);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark-900);
  transition: var(--transition);
}

.search-btn:hover {
  background: var(--lime-hover);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--dark-900);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  position: relative;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--dark-700);
  transform: translateY(-1px);
}

.cart-badge {
  background: var(--lime-primary);
  color: var(--dark-900);
  font-size: 12px;
  font-weight: 800;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.user-status-btn {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: var(--gray-100);
}

.user-status-btn:hover {
  background: var(--lime-soft);
  color: var(--lime-600);
}

/* ==========================================================================
   Buttons & UI Elements
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--lime-primary);
  color: var(--dark-900);
  border-color: var(--lime-primary);
  box-shadow: var(--shadow-lime-sm);
}

.btn-primary:hover {
  background: var(--lime-hover);
  border-color: var(--lime-hover);
  box-shadow: var(--shadow-lime);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--dark-900);
  color: #ffffff;
}

.btn-dark:hover {
  background: var(--dark-700);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--gray-800);
}

.btn-outline:hover {
  border-color: var(--dark-900);
  background: var(--gray-100);
}

.btn-outline-lime {
  background: #ffffff;
  border: 1.5px solid var(--lime-primary);
  color: var(--dark-900);
}

.btn-outline-lime:hover {
  background: var(--lime-soft);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: var(--radius-md);
}

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

.btn-full {
  width: 100%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.badge-lime {
  background: var(--lime-soft);
  color: var(--lime-600);
  border: 1px solid var(--lime-200);
}

.badge-bright {
  background: var(--lime-primary);
  color: var(--dark-900);
}

.badge-dark {
  background: var(--dark-900);
  color: #ffffff;
}

/* Section Header */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--lime-600);
}

.section-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--dark-900);
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 14px;
  color: var(--gray-500);
}

.section-more-link {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-900);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-more-link:hover {
  color: var(--lime-600);
  transform: translateX(4px);
}

/* ==========================================================================
   Product Card Component
   ========================================================================== */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

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

.product-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-thumb img {
  transform: scale(1.06);
}

.product-tag-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--lime-primary);
  color: var(--dark-900);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-store-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  z-index: 2;
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.product-cat-name {
  font-size: 12px;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark-900);
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 42px;
}

.product-card-desc {
  font-size: 13px;
  color: var(--gray-500);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-currency {
  font-size: 14px;
  font-weight: 800;
  color: var(--dark-900);
}

.price-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--dark-900);
  letter-spacing: -0.5px;
}

.price-origin {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: line-through;
}

.add-cart-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dark-900);
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--lime-primary);
  transform: scale(1.1);
  box-shadow: var(--shadow-lime-sm);
}

/* ==========================================================================
   Home Hero Banner
   ========================================================================== */
.hero-banner-section {
  padding: 24px 0 40px;
}

.hero-box {
  background: var(--dark-900);
  border-radius: var(--radius-lg);
  color: #ffffff;
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--dark-700);
}

.hero-box::after {
  content: "";
  position: absolute;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.25) 0%, rgba(0, 230, 118, 0) 70%);
  top: -100px;
  right: -50px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: var(--lime-bright);
  font-size: 13px;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-title span {
  color: var(--lime-primary);
  text-decoration: underline;
  text-decoration-color: var(--lime-primary);
  text-underline-offset: 6px;
}

.hero-desc {
  font-size: 16px;
  color: var(--gray-300);
  margin-bottom: 28px;
  line-height: 1.6;
  max-width: 480px;
}

.hero-btn-group {
  display: flex;
  gap: 16px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--dark-700);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--lime-primary);
}

.stat-label {
  font-size: 12px;
  color: var(--gray-400);
}

.hero-image-wrap {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  border: 2px solid var(--dark-600);
}

.hero-image-wrap img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.hero-floating-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(18, 19, 22, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--lime-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-floating-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--lime-primary);
  color: var(--dark-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

/* Category Quick Bar */
.category-pills-bar {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 36px;
}

.cat-pill-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 14px;
  color: var(--gray-700);
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}

.cat-pill-btn:hover {
  border-color: var(--lime-primary);
  background: var(--lime-soft);
  color: var(--dark-900);
}

.cat-pill-btn.active {
  background: var(--dark-900);
  color: #ffffff;
  border-color: var(--dark-900);
}

.cat-pill-btn.active .cat-icon {
  background: var(--lime-primary);
  color: var(--dark-900);
}

.cat-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Category Feature Showcase Cards */
.cat-feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}

.cat-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.cat-feature-card:hover {
  border-color: var(--lime-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  background: #ffffff;
}

.cat-feature-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: 12px;
  background: var(--gray-100);
}

.cat-feature-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 4px;
}

.cat-feature-count {
  font-size: 12px;
  color: var(--lime-600);
  font-weight: 600;
}

/* Flash Deals Section Banner */
.flash-deal-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border: 1px solid var(--dark-600);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.countdown-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.time-digit {
  background: var(--lime-primary);
  color: var(--dark-900);
  font-weight: 900;
  font-size: 14px;
  padding: 2px 6px;
  border-radius: 4px;
  min-width: 24px;
  text-align: center;
}

/* Merchant Join Promo Strip */
.merchant-strip {
  background: var(--lime-primary);
  border-radius: var(--radius-lg);
  padding: 36px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 56px 0;
  box-shadow: var(--shadow-lime);
}

.merchant-strip-title {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark-900);
  margin-bottom: 6px;
}

.merchant-strip-desc {
  font-size: 15px;
  color: rgba(10, 10, 12, 0.85);
  font-weight: 500;
}

/* ==========================================================================
   Page Breadcrumbs & Header
   ========================================================================= */
.page-breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--gray-500);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-breadcrumb a:hover {
  color: var(--lime-600);
}

.page-breadcrumb .sep {
  color: var(--gray-400);
}

.page-breadcrumb .current {
  color: var(--dark-900);
  font-weight: 600;
}

.page-title-banner {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-title-main {
  font-size: 28px;
  font-weight: 900;
  color: var(--dark-900);
  margin-bottom: 6px;
}

/* ==========================================================================
   Product List Page Layout
   ========================================================================== */
.list-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  margin-bottom: 60px;
}

.filter-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.filter-group {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-100);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--dark-900);
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-item-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-item-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.filter-item-btn:hover {
  background: var(--gray-100);
  color: var(--dark-900);
}

.filter-item-btn.active {
  background: var(--lime-soft);
  color: var(--lime-600);
  font-weight: 700;
  border-color: var(--lime-200);
}

.filter-count-badge {
  font-size: 11px;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.price-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.price-input {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
}

.price-input:focus {
  border-color: var(--lime-primary);
}

/* List Top Filter Bar */
.list-top-bar {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sort-tabs {
  display: flex;
  gap: 8px;
}

.sort-tab-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.sort-tab-btn:hover {
  color: var(--dark-900);
}

.sort-tab-btn.active {
  background: var(--dark-900);
  color: var(--lime-bright);
}

.result-count-text {
  font-size: 13px;
  color: var(--gray-500);
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 40px;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.main-image-frame {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  position: relative;
}

.main-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.thumb-item {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  background: var(--gray-100);
  transition: var(--transition);
}

.thumb-item.active, .thumb-item:hover {
  border-color: var(--lime-primary);
  transform: translateY(-2px);
}

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

/* Detail Info Column */
.detail-info {
  display: flex;
  flex-direction: column;
}

.detail-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--lime-600);
  background: var(--lime-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  width: fit-content;
}

.detail-product-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--dark-900);
  line-height: 1.3;
  margin-bottom: 12px;
}

.detail-product-subtitle {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 20px;
  line-height: 1.5;
}

.detail-price-box {
  background: var(--gray-50);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid var(--gray-200);
}

.detail-main-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

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

.spec-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 10px;
}

.spec-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-pill-btn {
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--gray-200);
  background: var(--bg-card);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.spec-pill-btn:hover {
  border-color: var(--lime-primary);
}

.spec-pill-btn.active {
  border-color: var(--dark-900);
  background: var(--dark-900);
  color: var(--lime-bright);
}

.quantity-stepper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  width: fit-content;
  overflow: hidden;
  background: #ffffff;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border: none;
  background: var(--gray-50);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--gray-200);
}

.qty-input {
  width: 50px;
  height: 38px;
  border: none;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  outline: none;
}

.detail-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.detail-service-promises {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}

.service-promise-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--gray-600);
  font-weight: 600;
}

/* Detail Tabs Section */
.detail-tabs-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 60px;
}

.detail-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--gray-200);
  background: var(--gray-50);
}

.tab-nav-btn {
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-600);
  background: transparent;
  border: none;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
}

.tab-nav-btn:hover {
  color: var(--dark-900);
}

.tab-nav-btn.active {
  color: var(--dark-900);
  background: #ffffff;
  border-bottom-color: var(--lime-primary);
}

.tab-pane {
  padding: 36px;
  display: none;
}

.tab-pane.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
}

.spec-table th,
.spec-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 14px;
  text-align: left;
  vertical-align: top;
  line-height: 1.75;
}

.spec-table th {
  width: 200px;
  font-weight: 600;
  color: var(--gray-500);
  background: var(--gray-50);
}

.spec-table td {
  color: var(--dark-800);
  overflow-wrap: anywhere;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.shop-f-spec-panel {
  max-width: 920px;
  margin: 0 auto;
}

/* ==========================================================================
   Shopping Cart Page
   ========================================================================== */
.cart-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-bottom: 60px;
}

.cart-table-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cart-header-row {
  display: grid;
  grid-template-columns: 50px 2.5fr 1fr 1fr 1fr 60px;
  padding: 16px 20px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  align-items: center;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 50px 2.5fr 1fr 1fr 1fr 60px;
  padding: 20px;
  border-bottom: 1px solid var(--gray-100);
  align-items: center;
  transition: var(--transition);
}

.cart-item-row:hover {
  background: var(--gray-50);
}

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

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--gray-100);
}

.cart-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 4px;
}

.cart-item-spec {
  font-size: 12px;
  color: var(--gray-500);
}

.cart-delete-btn {
  background: transparent;
  border: none;
  color: var(--gray-400);
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.cart-delete-btn:hover {
  color: #ef4444;
}

.cart-summary-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 96px;
}

.summary-title {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark-900);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: var(--gray-600);
  margin-bottom: 12px;
}

.summary-line.total {
  font-size: 18px;
  font-weight: 900;
  color: var(--dark-900);
  padding-top: 14px;
  border-top: 1.5px dashed var(--gray-200);
  margin-top: 16px;
}

.summary-line.total .price-val {
  color: var(--dark-900);
  font-size: 24px;
}

.coupon-input-wrap {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}

.empty-cart-state {
  text-align: center;
  padding: 64px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
}

.empty-icon {
  width: 64px;
  height: 64px;
  background: var(--lime-soft);
  color: var(--lime-600);
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Merchant Onboarding Page (商家入驻)
   ========================================================================== */
.merchant-hero {
  background: var(--dark-900);
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.merchant-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 250px;
  background: radial-gradient(ellipse, rgba(0, 230, 118, 0.2) 0%, rgba(0, 230, 118, 0) 70%);
  pointer-events: none;
}

.wizard-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-400);
}

.wizard-step.active {
  color: var(--dark-900);
}

.step-circle {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--gray-200);
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.wizard-step.active .step-circle {
  background: var(--lime-primary);
  color: var(--dark-900);
  box-shadow: var(--shadow-lime-sm);
}

.wizard-step.completed .step-circle {
  background: var(--dark-900);
  color: var(--lime-bright);
}

.wizard-line {
  width: 40px;
  height: 2px;
  background: var(--gray-200);
}

.merchant-form-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 780px;
  margin: 0 auto 60px;
  box-shadow: var(--shadow-sm);
}

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

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--dark-900);
  margin-bottom: 8px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 14px;
  outline: none;
  background: var(--gray-50);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--lime-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 230, 118, 0.2);
}

.file-dropzone {
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  background: var(--gray-50);
  cursor: pointer;
  transition: var(--transition);
}

.file-dropzone:hover {
  border-color: var(--lime-primary);
  background: var(--lime-soft);
}

/* ==========================================================================
   Merchant Store Detail Page (商家店铺主页)
   ========================================================================== */
.store-header-banner {
  background: var(--dark-900);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  border: 1px solid var(--dark-700);
  position: relative;
}

.store-header-note {
  color: rgba(255, 255, 255, .74);
  font-size: 13px;
  line-height: 1.7;
  text-align: right;
  max-width: 240px;
}

.store-profile {
  display: flex;
  align-items: center;
  gap: 20px;
}

.store-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 3px solid var(--lime-primary);
}

.store-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.store-title {
  font-size: 24px;
  font-weight: 900;
}

.store-meta-tags {
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: var(--gray-300);
}

.store-meta-tags span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-coupon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.store-coupon-card {
  background: var(--lime-soft);
  border: 1.5px dashed var(--lime-400);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.coupon-amount {
  font-size: 24px;
  font-weight: 900;
  color: var(--lime-600);
}

.coupon-cond {
  font-size: 12px;
  color: var(--gray-600);
}

/* ==========================================================================
   Auth (Login & Register) Pages
   ========================================================================== */
.auth-page-wrap {
  min-height: calc(100vh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-lg);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--dark-900);
  margin-bottom: 6px;
}

.auth-sub {
  font-size: 13px;
  color: var(--gray-500);
}

.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 24px;
}

.auth-tab-btn {
  flex: 1;
  padding: 8px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-600);
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn.active {
  background: #ffffff;
  color: var(--dark-900);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Toast Notification & Modal
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--dark-900);
  color: #ffffff;
  border: 1px solid var(--lime-primary);
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: toastIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.toast-icon-lime {
  color: var(--lime-bright);
  font-size: 18px;
}

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

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 12, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  padding: 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--gray-400);
}

.modal-close-btn:hover {
  color: var(--dark-900);
}

/* ==========================================================================
   Premium Stores Page (优质店铺专区样式)
   ========================================================================== */
.stores-hero {
  background: linear-gradient(135deg, #0a0a0c 0%, #17181c 60%, #1f2320 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stores-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 230, 118, 0.18) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.stores-hero-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 1;
}

.stores-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.15);
  border: 1px solid rgba(0, 230, 118, 0.35);
  color: var(--lime-bright);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
}

.stores-hero-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
  line-height: 1.2;
}

.stores-hero-desc {
  font-size: 15px;
  color: var(--gray-300);
  max-width: 620px;
  line-height: 1.6;
}

.stores-stat-pills {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.stores-stat-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.stores-stat-num {
  font-size: 22px;
  font-weight: 900;
  color: var(--lime-bright);
}

.stores-stat-lbl {
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 2px;
}

/* 筛选与搜索工具栏 */
.stores-toolbar {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.stores-cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.stores-cat-btn {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--gray-50);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stores-cat-btn:hover {
  border-color: var(--dark-900);
  color: var(--dark-900);
  background: #ffffff;
}

.stores-cat-btn.active {
  background: var(--dark-900);
  color: var(--lime-bright);
  border-color: var(--dark-900);
}

.stores-search-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stores-search-input {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  width: 220px;
  outline: none;
  transition: var(--transition);
}

.stores-search-input:focus {
  border-color: var(--dark-900);
  box-shadow: 0 0 0 3px var(--lime-soft);
}

.stores-sort-select {
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

/* 优质店铺卡片网格 */
.stores-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.store-card-banner {
  height: 120px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--dark-900);
}

.store-card-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s ease;
}

.store-card:hover .store-card-banner img {
  transform: scale(1.05);
}

.store-card-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(10, 10, 12, 0.75);
  backdrop-filter: blur(6px);
  color: var(--lime-bright);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(0, 230, 118, 0.3);
}

.store-card-content {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.store-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: -36px;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.store-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  border: 3px solid #ffffff;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  background: #ffffff;
}

.store-card-title-wrap {
  flex: 1;
  padding-top: 18px;
}

.store-card-title {
  font-size: 17px;
  font-weight: 900;
  color: var(--dark-900);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.store-card-title a:hover {
  color: var(--lime-600);
}

.store-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-500);
}

.store-card-slogan {
  font-size: 13px;
  color: var(--dark-700);
  font-style: italic;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.store-card-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.store-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* 店铺精选商品橱窗 */
.store-showcase-box {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-bottom: 18px;
}

.store-showcase-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.store-showcase-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.store-showcase-item {
  background: #ffffff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.store-showcase-item:hover {
  border-color: var(--lime-primary);
  transform: translateY(-2px);
}

.store-showcase-img {
  width: 100%;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}

.store-showcase-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--dark-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.store-showcase-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--dark-900);
}

.store-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--gray-200);
}

.store-coupon-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--lime-soft);
  color: var(--lime-600);
  border: 1px solid var(--lime-300);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
}

/* 优质店铺推荐横幅 */
.stores-join-cta {
  background: linear-gradient(135deg, var(--lime-soft) 0%, #ffffff 100%);
  border: 2px dashed var(--lime-primary);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--dark-900);
  color: #ffffff;
  padding: 60px 0 24px;
  margin-top: 80px;
  border-top: 2px solid var(--lime-primary);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 40px;
  margin-bottom: 48px;
}

.shop-f-footer-brand .logo-title {
  color: #ffffff;
}

.shop-f-footer-description {
  margin-top: 18px;
  max-width: 360px;
  color: var(--gray-400);
  font-size: 13px;
  line-height: 1.8;
}

.shop-f-footer-contact li,
.shop-f-footer-remark {
  color: var(--gray-400);
  font-size: 13px;
  line-height: 1.8;
}

.shop-f-footer-remark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.shop-f-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 18px;
}

.shop-f-footer-legal a {
  color: var(--gray-400);
}

.shop-f-footer-legal a:hover {
  color: var(--lime-bright);
}

.shop-f-auth-footer {
  padding: 8px 24px 28px;
  color: var(--gray-500);
  font-size: 12px;
  text-align: center;
}

.shop-f-auth-footer-meta,
.shop-f-auth-footer-remark,
.shop-f-auth-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 16px;
  line-height: 1.8;
}

.shop-f-auth-footer-remark,
.shop-f-auth-footer-links {
  margin-top: 4px;
}

.shop-f-auth-footer a {
  color: var(--gray-600);
}

.shop-f-auth-footer a:hover {
  color: var(--lime-600);
}

.footer-col-title {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  position: relative;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--lime-primary);
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 13px;
  color: var(--gray-400);
  transition: var(--transition);
}

.footer-link:hover {
  color: var(--lime-bright);
  padding-left: 4px;
}

.footer-newsletter-box {
  display: flex;
  margin-top: 12px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--dark-700);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
  .search-form { display: none; }
  .logo-link { flex-basis: 260px; }
  .main-nav { justify-content: flex-start; gap: 12px; }
  .shop-f-merchant-card { grid-template-columns: 1fr; }
  .shop-f-merchant-actions { justify-content: flex-start; }
  .hero-box { grid-template-columns: 1fr; padding: 32px; }
  .hero-image-wrap { display: none; }
  .cat-feature-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .list-layout { grid-template-columns: 1fr; }
  .filter-sidebar { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1280px) {
  .header-inner { gap: 8px; }
  .logo-link { flex-basis: 260px; }
  .search-form { width: 150px; flex-basis: 150px; }
  .main-nav { justify-content: flex-start; }
  .header-actions { gap: 8px; }
}

@media (max-width: 1240px) {
  #shop-main-nav > .nav-link:nth-child(4),
  #shop-main-nav > .nav-link:nth-child(5) { display: none; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .logo-link { flex-basis: min(56vw, 360px); }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .search-form { display: none; }
  .cat-feature-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: 1fr; }
  .hero-title { font-size: 32px; }
  .merchant-strip { flex-direction: column; text-align: center; gap: 20px; }
  .store-header-banner { flex-direction: column; gap: 20px; align-items: flex-start; }
  .store-header-note { max-width: none; text-align: left; }
  .store-coupon-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 12px; }
  .shop-f-footer-legal { justify-content: flex-start; }
}

/* Runtime commerce states. These selectors are scoped to shop_f additions and
   intentionally leave the original template layout and visual tokens intact. */
.shop-f-runtime-toast {
  position: fixed;
  left: 50%;
  top: 24px;
  z-index: 9999;
  max-width: min(88vw, 420px);
  padding: 11px 18px;
  border: 1px solid var(--dark-700);
  border-radius: var(--radius-sm);
  background: var(--dark-900);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translate(-50%, -12px);
  transition: var(--transition);
}
.shop-f-runtime-toast.show { opacity: 1; transform: translate(-50%, 0); }
.shop-f-runtime-toast.success { border-color: var(--lime-primary); }
.shop-f-runtime-toast.error { border-color: #ef4444; }
.shop-f-runtime-state {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  color: var(--gray-500);
  text-align: center;
}
.shop-f-runtime-spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--lime-600);
  border-radius: 50%;
  animation: shop-f-spin .7s linear infinite;
}
@keyframes shop-f-spin { to { transform: rotate(360deg); } }
.shop-f-runtime-empty { border: 1px dashed var(--gray-200); border-radius: var(--radius-md); }
.shop-f-logout-btn {
  border: 0;
  background: transparent;
  color: var(--gray-500);
  font-size: 12px;
  cursor: pointer;
}
.shop-f-merchant-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  padding: 22px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  overflow: hidden;
}
.shop-f-merchant-main {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  min-width: 0;
}
.shop-f-merchant-avatar {
  flex: 0 0 60px;
  width: 60px;
  height: 60px;
  border: 2px solid var(--lime-primary);
  border-radius: var(--radius-md);
  object-fit: cover;
}
.shop-f-merchant-content {
  min-width: 0;
  flex: 1 1 auto;
}
.shop-f-merchant-name {
  color: var(--dark-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.shop-f-merchant-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.shop-f-merchant-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-50);
}
.shop-f-merchant-info > div { display: flex; gap: 12px; min-width: 0; }
.shop-f-merchant-info span { flex: 0 0 64px; color: var(--gray-500); }
.shop-f-merchant-info strong { overflow-wrap: anywhere; }
.shop-f-detail-copy { color: var(--gray-700); line-height: 1.9; }
.shop-f-detail-copy img { display: block; max-width: 100%; height: auto; margin: 16px auto; border-radius: var(--radius-sm); }
.shop-f-detail-copy p { margin: 0 0 14px; }
.shop-f-detail-object { display: grid; gap: 0; border: 1px solid var(--gray-200); border-radius: var(--radius-sm); overflow: hidden; }
.shop-f-detail-object > div { display: grid; grid-template-columns: minmax(110px, .3fr) 1fr; border-bottom: 1px solid var(--gray-100); }
.shop-f-detail-object > div:last-child { border-bottom: 0; }
.shop-f-detail-object dt, .shop-f-detail-object dd { margin: 0; padding: 12px 14px; overflow-wrap: anywhere; }
.shop-f-detail-object dt { background: var(--gray-50); font-weight: 700; }
.shop-f-store-intro { margin-top: 6px; color: var(--gray-500); font-size: 12px; line-height: 1.6; }
.shop-f-store-letter { display: grid; place-items: center; color: var(--dark-900); font-size: 20px; font-weight: 900; background: var(--lime-soft); }
.shop-f-footer-brand { color: #fff; margin-bottom: 16px; }
.shop-f-footer-description { font-size: 13px; color: var(--gray-400); line-height: 1.7; }
.shop-f-footer-contact { color: var(--gray-400); font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }
.shop-f-footer-remark { display: grid; gap: 8px; color: var(--gray-400); font-size: 12px; line-height: 1.7; }
.shop-f-footer-legal { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 18px; }
.shop-f-footer-legal a { color: var(--gray-400); }
.shop-f-footer-legal a:hover { color: var(--lime-bright); }
.shop-f-order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin: 24px 0 64px;
}
.shop-f-order-card,
.shop-f-payment-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding: 28px;
}
.shop-f-order-card h2 { margin-bottom: 20px; font-size: 20px; }
.shop-f-address-list,
.shop-f-address-form,
.shop-f-payment-methods { display: grid; gap: 12px; }
.shop-f-address-form { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--gray-100); }
.shop-f-address-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  text-align: left;
  cursor: pointer;
}
.shop-f-address-card.active { border-color: var(--lime-600); background: var(--lime-soft); }
.shop-f-address-card span { color: var(--gray-500); font-size: 12px; line-height: 1.6; }
.shop-f-checkout-item,
.shop-f-payment-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
}
.shop-f-order-total { margin: 20px 0; text-align: right; font-size: 16px; }
.shop-f-order-total strong { color: var(--lime-700); font-size: 26px; }
.shop-f-payment-card { max-width: 680px; margin: 36px auto 80px; text-align: center; }
.shop-f-payment-card h1 { margin: 10px 0 6px; }
.shop-f-payment-card > p { margin-bottom: 20px; color: var(--gray-500); }
.shop-f-payment-info { grid-template-columns: 1fr auto; text-align: left; }
.shop-f-payment-methods { grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 22px 0; }
.shop-f-payment-method {
  min-height: 52px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: #fff;
  font-weight: 700;
  cursor: pointer;
}
.shop-f-payment-method.active { border-color: var(--lime-600); background: var(--lime-soft); }
@media (max-width: 768px) {
  .shop-f-order-layout,
  .shop-f-merchant-info { grid-template-columns: 1fr; }
  .shop-f-checkout-item { grid-template-columns: 1fr auto; }
  .shop-f-checkout-item b { grid-column: 2; }
  .shop-f-payment-methods { grid-template-columns: 1fr; }
}
