/**
 * 蓝青蛙风格商城 - 全局样式
 */

/* ==================== CSS Reset & Variables ==================== */
:root {
  --primary: #2d7d46;
  --primary-hover: #236b37;
  --primary-light: #f0faf3;
  --secondary: #f5a623;
  --dark: #333;
  --text: #666;
  --light-text: #999;
  --border: #e8e8e8;
  --bg: #f5f5f5;
  --white: #fff;
  --success: #52c41a;
  --warning: #faad14;
  --info: #1890ff;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-sm: 4px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
  --max-width: 1200px;
  --header-height: 140px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
}

input, button, textarea, select {
  font-family: inherit;
  font-size: inherit;
  outline: none;
}

button {
  cursor: pointer;
  border: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 15px;
}

/* ==================== Header ==================== */
.header {
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-top {
  background: #f9f9f9;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  color: var(--light-text);
}

.header-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
}

.header-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-top-left a {
  color: var(--light-text);
  transition: var(--transition);
}

.header-top-left a:hover {
  color: var(--primary);
}

.header-top-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-top-right a, .header-top-right span {
  color: var(--light-text);
  cursor: pointer;
  transition: var(--transition);
}

.header-top-right a:hover, .header-top-right span:hover {
  color: var(--primary);
}

.header-top-right .separator {
  color: #ddd;
  cursor: default;
}

.header-top-right .username-highlight {
  color: var(--primary);
  font-weight: 600;
}

/* Header Main */
.header-main {
  padding: 15px 0;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  cursor: pointer;
}

.logo-icon {
  font-size: 36px;
}

.logo-text {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-sub {
  font-size: 12px;
  color: var(--primary);
  font-weight: 400;
  margin-left: 4px;
}

/* Search */
.search-box {
  flex: 1;
  max-width: 550px;
  display: flex;
  position: relative;
}

.search-box input {
  flex: 1;
  height: 42px;
  border: 2px solid var(--primary);
  border-right: none;
  border-radius: 20px 0 0 20px;
  padding: 0 20px;
  font-size: 14px;
  transition: var(--transition);
}

.search-box input:focus {
  border-color: var(--primary-hover);
}

.search-box button {
  width: 72px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border-radius: 0 20px 20px 0;
  font-size: 18px;
  font-weight: 600;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-box button:hover {
  background: var(--primary-hover);
}

.search-hot {
  position: absolute;
  bottom: -22px;
  left: 10px;
  font-size: 12px;
  color: var(--light-text);
  display: flex;
  gap: 10px;
}

.search-hot a {
  color: var(--light-text);
  transition: var(--transition);
}

.search-hot a:hover {
  color: var(--primary);
}

/* Header Cart */
.header-cart {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
  white-space: nowrap;
}

.header-cart:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.header-cart-icon {
  font-size: 22px;
  position: relative;
}

.header-cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* Navigation */
.header-nav {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
}

.header-nav .container {
  display: flex;
  align-items: center;
}

.categories-menu {
  position: relative;
}

.categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: var(--primary);
  color: var(--white);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  width: 220px;
  justify-content: center;
}

.categories-btn .hamburger {
  font-size: 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
}

.nav-list a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  transition: var(--transition);
  white-space: nowrap;
}

.nav-list a:hover, .nav-list a.active {
  color: var(--primary);
}

/* Categories Dropdown */
.categories-dropdown {
  position: absolute;
  top: 44px;
  left: 0;
  width: 220px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: none;
  box-shadow: var(--shadow-hover);
  z-index: 999;
  display: none;
}

.categories-menu:hover .categories-dropdown {
  display: block;
}

.categories-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 15px;
  font-size: 13px;
  color: var(--dark);
  transition: var(--transition);
  border-bottom: 1px solid #f5f5f5;
}

.categories-dropdown a:hover {
  background: #f0faf3;
  color: var(--primary);
}

.categories-dropdown .cat-icon {
  font-size: 16px;
  margin-right: 8px;
}

/* ==================== Footer ==================== */
.footer {
  background: #2d2d2d;
  color: #bbb;
  margin-top: 40px;
}

.footer-service {
  background: #333;
  padding: 25px 0;
}

.footer-service .container {
  display: flex;
  justify-content: space-around;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: #ddd;
}

.service-item .service-icon {
  font-size: 28px;
}

.footer-main {
  padding: 30px 0 20px;
}

.footer-main .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
}

.footer-col h4 {
  color: #ddd;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: #999;
  font-size: 12px;
  line-height: 2;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
  color: #777;
}

.footer-bottom .links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.footer-bottom .links a {
  color: #999;
  transition: var(--transition);
}

.footer-bottom .links a:hover {
  color: var(--white);
}

/* ==================== Buttons ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(228, 57, 60, 0.3);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-light);
}

.btn-lg {
  padding: 14px 40px;
  font-size: 16px;
  font-weight: 600;
}

.btn-sm {
  padding: 6px 16px;
  font-size: 12px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  background: #ff4d4f;
  color: var(--white);
}

.btn-danger:hover {
  background: #ff7875;
}

/* ==================== Cards ==================== */
.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* ==================== Product Grid ==================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  border: 1px solid transparent;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
  border-color: var(--primary);
}

.product-card .product-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  background: #fafafa;
  position: relative;
  overflow: hidden;
}

.product-card .product-tags {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-card .product-tag {
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--white);
}

.tag-self {
  background: var(--primary);
}

.tag-hot {
  background: #ff6b35;
}

.tag-new {
  background: #1890ff;
}

.product-card .product-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: var(--transition);
}

.product-card .product-fav:hover {
  transform: scale(1.2);
}

.product-card .product-fav.active {
  color: var(--primary);
}

.product-card .product-info {
  padding: 12px;
}

.product-card .product-name {
  font-size: 13px;
  color: var(--dark);
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 8px;
  min-height: 36px;
}

.product-card .product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}

.product-card .product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
}

.product-card .product-price::before {
  content: '¥';
  font-size: 13px;
  font-weight: 500;
}

.product-card .product-original-price {
  font-size: 12px;
  color: var(--light-text);
  text-decoration: line-through;
}

.product-card .product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--light-text);
}

.product-card .product-sales {
  color: var(--light-text);
}

.product-card .product-rating {
  color: var(--secondary);
}

.product-card .product-add-cart {
  margin-top: 8px;
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.product-card .product-add-cart:hover {
  background: var(--primary-hover);
}

/* ==================== Section ==================== */
.section {
  margin: 20px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

.section-title .title-icon {
  font-size: 26px;
  color: var(--primary);
}

.section-title .title-decor {
  width: 4px;
  height: 22px;
  background: var(--primary);
  border-radius: 2px;
}

.section-more {
  font-size: 13px;
  color: var(--light-text);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.section-more:hover {
  color: var(--primary);
}

/* ==================== Banner ==================== */
.banner-carousel {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 340px;
  margin-bottom: 20px;
}

.banner-carousel .banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease;
  display: flex;
  align-items: center;
  padding: 0 60px;
  cursor: pointer;
}

.banner-carousel .banner-slide.active {
  opacity: 1;
}

.banner-content {
  color: var(--white);
  max-width: 500px;
}

.banner-icon {
  font-size: 64px;
  margin-bottom: 15px;
}

.banner-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banner-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 20px;
}

.banner-btn {
  display: inline-block;
  padding: 12px 32px;
  background: rgba(255,255,255,0.25);
  color: var(--white);
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3);
  transition: var(--transition);
}

.banner-btn:hover {
  background: rgba(255,255,255,0.4);
  transform: scale(1.05);
}

.banner-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.banner-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.banner-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 5px;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.banner-arrow:hover {
  background: rgba(255,255,255,0.4);
}

.banner-arrow.prev { left: 15px; }
.banner-arrow.next { right: 15px; }

/* ==================== Quick Nav ==================== */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.quick-nav-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px 8px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}

.quick-nav-item:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.quick-nav-icon {
  font-size: 32px;
  display: block;
  margin-bottom: 8px;
}

.quick-nav-name {
  font-size: 12px;
  color: var(--dark);
  font-weight: 500;
}

/* ==================== Seckill ==================== */
.seckill-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
}

.seckill-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.seckill-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.seckill-countdown {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: var(--dark);
}

.seckill-countdown .time-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--dark);
  color: var(--white);
  border-radius: 4px;
  font-weight: 700;
  font-size: 14px;
}

.seckill-products {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.seckill-item {
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  padding: 10px;
  border-radius: var(--radius);
}

.seckill-item:hover {
  background: #f0faf3;
}

.seckill-item-image {
  font-size: 48px;
  margin-bottom: 8px;
}

.seckill-item-name {
  font-size: 12px;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
}

.seckill-item-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.seckill-item-original {
  font-size: 11px;
  color: var(--light-text);
  text-decoration: line-through;
  margin-bottom: 6px;
}

.seckill-progress {
  height: 6px;
  background: #fee;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}

.seckill-progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
  transition: width 1s ease;
}

/* ==================== Category Section ==================== */
.category-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 15px;
}

.category-banner-item {
  height: 120px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  overflow: hidden;
  position: relative;
}

.category-banner-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.category-banner-icon {
  font-size: 56px;
  margin-right: 20px;
}

.category-banner-text h3 {
  color: var(--white);
  font-size: 18px;
  margin-bottom: 5px;
}

.category-banner-text p {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
}

/* ==================== Dual Column Layout ==================== */
.dual-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.dual-col-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.dual-col-section .section-header {
  padding: 16px 20px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  background: #fafafa;
}

.dual-col-section .section-body {
  padding: 16px 20px;
}

/* Assessment product grid (2 cols within half-width) */
.dual-col-section .product-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* News list styles */
.news-list-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: background 0.2s;
}

.news-list-item:hover {
  color: var(--primary);
}

.news-list-item:last-child {
  border-bottom: none;
}

.news-list-item .news-icon {
  font-size: 20px;
  margin-right: 10px;
  flex-shrink: 0;
}

.news-list-item .news-info {
  flex: 1;
  min-width: 0;
}

.news-list-item .news-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.news-list-item .news-meta {
  font-size: 11px;
  color: var(--light-text);
  margin-top: 2px;
}

.news-list-item .news-tag {
  font-size: 10px;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 8px;
}

@media (max-width: 900px) {
  .dual-col {
    grid-template-columns: 1fr;
  }
}

/* ==================== Auth Pages ==================== */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f0faf3 0%, #e8f4fd 100%);
  padding: 20px;
}

.auth-container {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 40px rgba(0,0,0,0.12);
  width: 420px;
  overflow: hidden;
}

.auth-header {
  background: var(--primary);
  padding: 30px;
  text-align: center;
  color: var(--white);
}

.auth-logo {
  font-size: 48px;
  margin-bottom: 10px;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
}

.auth-subtitle {
  font-size: 13px;
  opacity: 0.85;
  margin-top: 5px;
}

.auth-body {
  padding: 30px;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 14px;
  font-size: 14px;
  transition: var(--transition);
  background: #fafafa;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(228, 57, 60, 0.1);
  background: var(--white);
}

.form-input.error {
  border-color: #ff4d4f;
}

.form-error {
  font-size: 12px;
  color: #ff4d4f;
  margin-top: 4px;
  display: none;
}

.form-error.show {
  display: block;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  font-size: 13px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text);
}

.form-link {
  color: var(--primary);
  cursor: pointer;
}

.form-link:hover {
  text-decoration: underline;
}

.auth-footer {
  text-align: center;
  padding: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

/* ==================== Product Detail ==================== */
.product-detail {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  gap: 40px;
  margin: 20px 0;
}

.product-detail-image {
  width: 400px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 160px;
  background: #fafafa;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.product-detail-info {
  flex: 1;
}

.product-detail-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 15px;
}

.product-detail-desc {
  font-size: 14px;
  color: var(--light-text);
  line-height: 1.6;
  margin-bottom: 20px;
  padding: 12px;
  background: #f0faf3;
  border-radius: var(--radius-sm);
}

.product-detail-price-box {
  background: #f0faf3;
  padding: 15px;
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.product-detail-price-label {
  font-size: 12px;
  color: var(--light-text);
  margin-bottom: 5px;
}

.product-detail-price {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
}

.product-detail-price .unit {
  font-size: 16px;
  font-weight: 500;
  margin-right: 4px;
}

.product-detail-original {
  font-size: 14px;
  color: var(--light-text);
  text-decoration: line-through;
  margin-left: 10px;
}

.product-detail-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 13px;
  color: var(--text);
}

.product-detail-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-detail-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.quantity-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.quantity-control button {
  width: 36px;
  height: 44px;
  background: #f5f5f5;
  border: none;
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-control button:hover {
  background: #e8e8e8;
}

.quantity-control input {
  width: 60px;
  height: 44px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

/* Product Tabs */
.product-tabs {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin: 20px 0;
  overflow: hidden;
}

.tab-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.tab-nav-item {
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
}

.tab-nav-item.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-nav-item:hover {
  color: var(--primary);
}

.tab-content {
  padding: 20px 30px;
  display: none;
}

.tab-content.active {
  display: block;
}

/* Reviews */
.review-item {
  padding: 15px 0;
  border-bottom: 1px solid #f5f5f5;
}

.review-item:last-child {
  border-bottom: none;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.review-user {
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}

.review-date {
  font-size: 12px;
  color: var(--light-text);
  margin-left: auto;
}

.review-stars {
  color: var(--secondary);
  font-size: 13px;
  margin-bottom: 6px;
}

.review-content {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
}

.review-spec {
  font-size: 12px;
  color: var(--light-text);
  margin-top: 6px;
}

.review-likes {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--light-text);
  margin-top: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.review-likes:hover {
  color: var(--primary);
}

/* ==================== Cart Page ==================== */
.cart-page .container {
  max-width: 1000px;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
}

.cart-title {
  font-size: 24px;
  font-weight: 700;
}

.cart-table {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.cart-table-header {
  display: grid;
  grid-template-columns: 50px 1fr 110px 140px 130px 80px;
  padding: 15px 20px;
  background: #fafafa;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.cart-item {
  display: grid;
  grid-template-columns: 50px 1fr 110px 140px 130px 80px;
  padding: 20px;
  align-items: center;
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.cart-item:hover {
  background: #fafafa;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item-img {
  font-size: 60px;
  text-align: center;
}

.cart-item-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  cursor: pointer;
}

.cart-item-name:hover {
  color: var(--primary);
}

.cart-item-price {
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  text-align: center;
}

.cart-item-subtotal {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
}

.cart-item-remove {
  color: var(--light-text);
  cursor: pointer;
  font-size: 13px;
  text-align: center;
  transition: var(--transition);
}

.cart-item-remove:hover {
  color: var(--primary);
}

.cart-footer {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.cart-total {
  text-align: right;
}

.cart-total-label {
  font-size: 13px;
  color: var(--text);
}

.cart-total-price {
  font-size: 26px;
  font-weight: 700;
  color: var(--primary);
}

.cart-total-price .unit {
  font-size: 14px;
  font-weight: 500;
}

.cart-empty {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 80px;
  text-align: center;
}

.cart-empty-icon {
  font-size: 80px;
  margin-bottom: 20px;
}

.cart-empty-text {
  font-size: 16px;
  color: var(--light-text);
  margin-bottom: 20px;
}

/* ==================== Checkout Page ==================== */
.checkout-page .container {
  max-width: 1000px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  margin: 20px 0;
}

.checkout-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 15px;
}

.checkout-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.address-card {
  padding: 15px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  background: var(--primary-light);
  cursor: pointer;
}

.address-card .address-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 5px;
}

.address-card .address-phone {
  color: var(--text);
  font-size: 13px;
}

.address-card .address-detail {
  color: var(--text);
  font-size: 13px;
  margin-top: 3px;
}

.checkout-items {
  margin-bottom: 15px;
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item-img {
  font-size: 40px;
  width: 60px;
  text-align: center;
}

.checkout-item-name {
  flex: 1;
  font-size: 13px;
  color: var(--dark);
}

.checkout-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  white-space: nowrap;
}

.checkout-summary {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 160px;
}

.checkout-summary-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text);
}

.checkout-summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--border);
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.checkout-summary-total .total-price {
  font-size: 24px;
  color: var(--primary);
}

/* ==================== Order Page ==================== */
.order-filter {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.order-filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--white);
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}

.order-filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.order-card {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 15px;
  overflow: hidden;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #fafafa;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.order-no {
  font-weight: 600;
  color: var(--dark);
}

.order-status {
  color: var(--primary);
  font-weight: 500;
}

.order-items {
  padding: 15px 20px;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
}

.order-item:last-child {
  border-bottom: none;
}

.order-item-img {
  font-size: 48px;
  width: 80px;
  text-align: center;
}

.order-item-name {
  flex: 1;
  font-size: 14px;
}

.order-item-price {
  font-size: 14px;
  font-weight: 600;
}

.order-item-qty {
  font-size: 13px;
  color: var(--light-text);
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid var(--border);
}

.order-total {
  font-size: 14px;
}

.order-total-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-left: 8px;
}

.order-actions {
  display: flex;
  gap: 10px;
}

/* ==================== Profile Page ==================== */
.profile-page .container {
  max-width: 1000px;
}

.profile-header-card {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b6b 100%);
  border-radius: var(--radius-lg);
  padding: 30px;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  border: 3px solid rgba(255,255,255,0.5);
}

.profile-info h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

.profile-info p {
  font-size: 13px;
  opacity: 0.9;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 20px 0;
}

.profile-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.profile-stat-card:hover {
  box-shadow: var(--shadow-hover);
}

.profile-stat-icon {
  font-size: 32px;
  margin-bottom: 8px;
}

.profile-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.profile-stat-label {
  font-size: 13px;
  color: var(--text);
  margin-top: 4px;
}

/* ==================== Toast ==================== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 12px 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.3s ease, toastOut 0.3s ease 2.7s forwards;
  max-width: 400px;
}

.toast.success { border-left: 4px solid var(--success); }
.toast.error { border-left: 4px solid #ff4d4f; }
.toast.warning { border-left: 4px solid var(--warning); }
.toast.info { border-left: 4px solid var(--info); }

@keyframes toastIn {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(100%); }
}

/* ==================== Modal ==================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: scaleIn 0.2s ease;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-title {
  font-size: 17px;
  font-weight: 600;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition);
}

.modal-close:hover {
  background: #e8e8e8;
}

.modal-body {
  padding: 20px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ==================== Empty State ==================== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-state-icon {
  font-size: 72px;
  margin-bottom: 15px;
}

.empty-state-text {
  font-size: 15px;
  color: var(--light-text);
  margin-bottom: 20px;
}

/* ==================== Responsive ==================== */
@media (max-width: 1200px) {
  .product-grid { grid-template-columns: repeat(4, 1fr); }
  .seckill-products { grid-template-columns: repeat(4, 1fr); }
  .quick-nav { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .seckill-products { grid-template-columns: repeat(3, 1fr); }
  .product-detail { flex-direction: column; }
  .product-detail-image { width: 100%; height: 300px; font-size: 120px; }
  .cart-table-header, .cart-item {
    grid-template-columns: 40px 1fr 80px 100px 100px 60px;
    font-size: 12px;
    padding: 10px;
  }
}

@media (max-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .seckill-products { grid-template-columns: repeat(2, 1fr); }
  .quick-nav { grid-template-columns: repeat(4, 1fr); }
  .header-main .container { flex-wrap: wrap; gap: 10px; }
  .search-box { order: 3; max-width: 100%; }
  .nav-list { overflow-x: auto; }
  .category-banner { grid-template-columns: 1fr; }
}
