/* 组件样式文件 - 支持重构后的页面 */

/* ===== 页面加载动画 ===== */
.page-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.preloader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3C2807;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

.preloader-text {
  color: #3C2807;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  direction: rtl;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* ===== CSS变量定义 ===== */
:root {
  --primary-color: #3C2807;
  /* 深褐色 - 主色调 */
  --secondary-color: #FDF6E0;
  /* 米白色 - 辅助色 */
  --accent-color: #8B7355;
  /* 中等褐色 - 强调色 */
  --text-dark: #2D1810;
  /* 深色文字 */
  --text-light: #6B4E3A;
  /* 浅色文字 */
  --border-color: #D4C4A8;
  /* 边框色 */
  --shadow-light: 0 2px 8px rgba(60, 40, 7, 0.1);
  --shadow-medium: 0 4px 16px rgba(60, 40, 7, 0.15);
  --shadow-heavy: 0 8px 32px rgba(60, 40, 7, 0.2);
  --brand-primary: #3C2807;
  --brand-secondary: #FDF6E0;
  --brand-accent: #8B7355;
  --brand-accent-hover: #2a1c05;
}

/* ===== 通知组件 ===== */
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  background: var(--secondary-color);
  border-radius: 8px;
  box-shadow: var(--shadow-medium);
  padding: 16px 20px;
  min-width: 300px;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.3s ease;
  border-right: 4px solid var(--primary-color);
}

.notification.show {
  transform: translateX(0);
  opacity: 1;
}

.notification--success {
  border-color: #10b981;
  background: #f0fdf4;
}

.notification--error {
  border-color: #ef4444;
  background: #fef2f2;
}

.notification__content {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dark);
}

.notification__content i {
  font-size: 20px;
}

.notification--success .notification__content i {
  color: #10b981;
}

.notification--error .notification__content i {
  color: #ef4444;
}

.notification__close {
  position: absolute;
  top: 8px;
  left: 8px;
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.notification__close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

/* ===== 页面加载动画 ===== */
.main {
  opacity: 1;
  transform: translateY(0);
  padding-left: 20px;
  padding-right: 20px;
  /* max-width: 1400px; */
  margin: 0 auto;
}

/* ===== 容器样式 ===== */
.container {
  /* max-width: 1200px; */
  margin: 0 auto;
  /* padding: 0 20px; */
}

/* ===== 页面头部样式 ===== */
.page-header {
  padding: 60px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f5f0e6 100%);
  text-align: center;
  margin-bottom: 40px;
}

.page-header__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 16px;
}

.page-header__breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-light);
}

.page-header__breadcrumb a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-header__breadcrumb a:hover {
  color: var(--accent-color);
}

.breadcrumb-separator {
  color: var(--border-color);
}

.animate-in {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== About页面样式 ===== */
.about-hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #f5f0e6 100%);
}

/* MODIFIED: 标题居中显示样式 */
.about-hero__header {
  text-align: center;
  margin-bottom: 60px;
}

.about-hero__title--centered {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
  text-align: center;
}

.about-hero__description--centered {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 0;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* MODIFIED: 底部区域分为图片和文案两部分，文案右对齐 */
.about-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about-hero__image {
  text-align: center;
}

.about-hero__img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* MODIFIED: 文案右对齐样式 */
.about-hero__text--right-aligned {
  text-align: right;
  direction: rtl;
}

.about-hero__subtitle {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 16px;
  margin-top: 32px;
}

.about-hero__subtitle:first-child {
  margin-top: 0;
}

.about-hero__content-description {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 24px;
}

/* 保持原有样式兼容性 */
.about-hero__title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 24px;
}

.about-hero__description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-light);
  margin-bottom: 32px;
}

.about-story {
  padding: 80px 0;
}

.about-story__title {
  font-size: 2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 24px;
}

.about-story__description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 20px;
}

.about-values {
  padding: 80px 0;
  background: var(--secondary-color);
}

.about-values__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 48px;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.about-value {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-light);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
}

.about-value:hover {
  transform: translateY(-8px);
}

.about-value__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
}

.about-value__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.about-value__description {
  color: #64748b;
  line-height: 1.6;
}

/* ===== Contact页面样式 ===== */
.contact {
  padding: 80px 0;
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.contact__info-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 32px;
}

.contact__info-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact__info-icon {
  width: 48px;
  height: 48px;
  background: #3C2807;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.contact__info-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.contact__info-content p {
  color: #64748b;
  line-height: 1.6;
}



.contact__form {
  padding-left: 20px;
}

.contact__form-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-label {
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #3C2807;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
}

.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 4px;
  min-height: 20px;
}

.form-submit {
  background: #3C2807;
  color: #fff;
  border: none;
  padding: 16px 32px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.form-submit:hover {
  background: #2a1c05;
}

.form-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.submit-loading {
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-placeholder {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.map-image {
  width: 100%;
  height: auto;
  display: block;
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-info {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.map-info h3 {
  color: #1e293b;
  margin-bottom: 8px;
}

.map-info p {
  color: #64748b;
  margin-bottom: 16px;
}

.map-directions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #3C2807;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s ease;
}

.map-directions:hover {
  background: #2a1c05;
}

/* ===== Shop页面样式 ===== */
.shop {
  padding: 60px 0;
}

.shop__content {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.shop__sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar__widget {
  margin-bottom: 32px;
}

.sidebar__widget:last-child {
  margin-bottom: 0;
}

.sidebar__widget-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e2e8f0;
}

.sidebar__search {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
}

.search-button {
  padding: 10px 12px;
  background: #3C2807;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-button:hover {
  background: #2a1c05;
}

.sidebar__filter select {
  width: 100%;
  padding: 10px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
  background: #fff;
}

.rating-filters,
.feature-filters {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rating-filter,
.feature-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.rating-filter input,
.feature-filter input {
  margin: 0;
}

.rating-label,
.feature-label {
  font-size: 0.9rem;
  color: #374151;
}

.clear-filters-btn {
  width: 100%;
  padding: 12px 16px;
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.clear-filters-btn:hover {
  background: #dc2626;
}

.shop__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 20px 0;
  border-bottom: 1px solid #e2e8f0;
}

.shop__results {
  color: #64748b;
}

.shop__controls {
  display: flex;
  align-items: center;
  gap: 24px;
}

.shop__view-toggle {
  display: flex;
  gap: 4px;
}

.view-toggle-btn {
  padding: 8px 12px;
  background: #f1f5f9;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-toggle-btn.active {
  background: #3C2807;
  color: #fff;
}

.view-toggle-btn:hover:not(.active) {
  background: #e2e8f0;
}

.shop__sort {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop__sort label {
  font-size: 0.9rem;
  color: #64748b;
}

.sort-select {
  padding: 8px 12px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  font-size: 0.9rem;
}

.products-grid {
  display: grid;
  gap: 24px;
}

.products-grid--4-cols {
  /* MODIFIED: 桌面端4个商品/行，移动端2个商品/行 */
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* MODIFIED: 响应式商品网格布局 - 商品页PC端4个商品 */
@media (min-width: 1024px) {
  .products-grid--4-cols {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1023px) and (min-width: 768px) {
  .products-grid--4-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .products-grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

.products-grid--list {
  grid-template-columns: 1fr;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* MODIFIED: 确保商品卡片等高对齐 */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  /* MODIFIED: 确保图片容器响应式 */
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  /* 4:3 宽高比 */
}

.product-card__img {
  /* MODIFIED: 修复商品界面图片无法随窗口缩放的问题 */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

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

.product-card__discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-card__actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.product-card__action {
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card__action:hover {
  background: #3C2807;
  color: #fff;
}

.product-card__content {
  padding: 20px;
  /* MODIFIED: 确保内容区域填充剩余空间 */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card__brand {
  color: #3C2807;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-card__title a {
  color: inherit;
  text-decoration: none;
}

.product-card__title a:hover {
  color: #3C2807;
}

.product-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.rating-stars {
  color: #fbbf24;
}

.rating-count {
  font-size: 0.8rem;
  color: #64748b;
}

.product-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  direction: rtl !important;
}

.product-card__price--original {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.product-card__price--current {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.feature-tag {
  background: #f1f5f9;
  color: #64748b;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.product-card__stock {
  margin-bottom: 16px;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.stock-status.in-stock {
  color: #10b981;
}

.stock-status.out-of-stock {
  color: #ef4444;
}

.product-card__buttons {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: var(--brand-primary) !important;
  color: white !important;
  border-color: var(--brand-primary) !important;
}

.btn-primary:hover {
  background: #3db8b0 !important;
  border-color: #3db8b0 !important;
}

.btn-primary:active {
  background: #2da49c !important;
  border-color: #2da49c !important;
}

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

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

.btn--large {
  padding: 12px 24px;
  font-size: 1rem;
}

.loading-state,
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.empty-state i {
  font-size: 48px;
  color: #9ca3af;
  margin-bottom: 16px;
}

.empty-state h3 {
  color: #374151;
  margin-bottom: 8px;
}

.shop__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid #e2e8f0;
}

.pagination-btn,
.pagination-page {
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pagination-btn:hover,
.pagination-page:hover {
  background: var(--secondary-color);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.pagination-page--current {
  background: var(--primary-color);
  color: var(--secondary-color);
  border-color: var(--primary-color);
}

.pagination-ellipsis {
  padding: 8px 12px;
  color: #9ca3af;
}

.newsletter {
  padding: 80px 0;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #fff;
}

.newsletter__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.newsletter__description {
  font-size: 1.1rem;
  margin-bottom: 32px;
  opacity: 0.9;
}

.newsletter__form {
  display: flex;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.newsletter__input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
}

.newsletter__button {
  padding: 12px 24px;
  background: #3C2807;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.newsletter__button:hover {
  background: #2a1c05;
}

/* ===== 商品详情页样式 ===== */
.product-detail {
  padding: 60px 0;
}

.product-breadcrumb {
  margin-bottom: 32px;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.product-breadcrumb a {
  color: #3C2807;
  text-decoration: none;
}

.product-breadcrumb a:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 12px;
  color: #9ca3af;
}

.product-detail__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-detail__images {
  position: sticky;
  top: 20px;
}

.product-main-image {
  position: relative;
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
}

.product-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-image-zoom {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-image-zoom:hover {
  background: #fff;
  transform: scale(1.1);
}

.product-thumbnails {
  display: flex;
  gap: 12px;
}

.product-thumbnail {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.product-thumbnail.active {
  border-color: #3C2807;
}

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

.product-detail__info {
  padding: 20px 0;
}

.product-brand {
  color: #3C2807;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.rating-stars {
  color: #fbbf24;
  font-size: 1.1rem;
}

.rating-count {
  color: #64748b;
  font-size: 0.9rem;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.product-price--original,
.price-original {
  /* MODIFIED: 为原价金额添加删除线样式 */
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 1.1rem;
  font-weight: 500;
}

.product-price--discount {
  background: #ef4444;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.product-price--current,
.price-current {
  /* MODIFIED: 当前价格样式 */
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
}

.product-description {
  margin-bottom: 24px;
}

.product-description p {
  color: #64748b;
  line-height: 1.7;
  font-size: 1.1rem;
}

.product-features {
  margin-bottom: 32px;
}

.product-features h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  margin-bottom: 8px;
  font-size: 1rem;
}

.features-list i {
  color: #10b981;
  font-size: 0.9rem;
}

.product-options {
  margin-bottom: 32px;
}

.product-option {
  margin-bottom: 24px;
}

.option-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 12px;
}

.color-options {
  display: flex;
  gap: 12px;
}

.color-option {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-option.active {
  border-color: #3C2807;
  transform: scale(1.1);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-btn:hover {
  border-color: #3C2807;
  color: #3C2807;
}

.quantity-input {
  width: 48px;
  height: 32px;
  text-align: center;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.product-stock {
  margin-bottom: 24px;
}

.stock-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.stock-status.in-stock {
  color: #10b981;
}

.stock-status.out-of-stock {
  color: #ef4444;
}

.product-policies {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.policy-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.policy-item i {
  color: #3C2807;
  width: 16px;
}

.related-products {
  padding: 80px 0;
  background: #f8fafc;
}

.related-products__title {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 48px;
}

.related-products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.related-product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.related-product-card:hover {
  transform: translateY(-8px);
}

.related-product-image {
  height: 200px;
  overflow: hidden;
  display: flex;
}

.related-product-image img {
  margin: 0 auto;
  width: auto;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.related-product-info {
  padding: 20px;
}

.related-product-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.related-product-title a {
  color: inherit;
  text-decoration: none;
}

.related-product-title a:hover {
  color: #3C2807;
}

.related-product-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
  direction: rtl !important;
  text-align: right !important;
}

.related-product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 0.8rem;
}

.related-product-rating .rating-stars {
  font-size: 0.8rem;
}

/* ===== 首页商品卡片样式 ===== */
.featured-products,
.new-arrivals {
  padding: 80px 0;
}

.featured-products__header,
.new-arrivals__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.featured-products__title,
.new-arrivals__title {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
}

.featured-products__view-all,
.new-arrivals__view-all {
  color: #3C2807;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.featured-products__view-all:hover,
.new-arrivals__view-all:hover {
  color: #2a1c05;
}

.featured-products__grid,
.new-arrivals__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.loading-text {
  text-align: center;
  color: #64748b;
  font-size: 1.1rem;
  padding: 40px;
}

/* 首页商品卡片样式 */
.featured-products .product-card,
.new-arrivals .product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  /* MODIFIED: 确保商品卡片等高对齐 */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-products .product-card:hover,
.new-arrivals .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.featured-products .product-card__image,
.new-arrivals .product-card__image {
  position: relative;
  overflow: hidden;
}

.featured-products .product-card__img,
.new-arrivals .product-card__img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.featured-products .product-card:hover .product-card__img,
.new-arrivals .product-card:hover .product-card__img {
  transform: scale(1.05);
}

.featured-products .product-card__discount,
.new-arrivals .product-card__discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.featured-products .product-card__actions,
.new-arrivals .product-card__actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.featured-products .product-card:hover .product-card__actions,
.new-arrivals .product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.featured-products .product-card__action,
.new-arrivals .product-card__action {
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-products .product-card__action:hover,
.new-arrivals .product-card__action:hover {
  background: #3C2807;
  color: #fff;
}

.featured-products .product-card__content,
.new-arrivals .product-card__content {
  padding: 20px;
  /* MODIFIED: 确保内容区域填充剩余空间 */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-products .product-card__brand,
.new-arrivals .product-card__brand {
  color: #3C2807;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.featured-products .product-card__title,
.new-arrivals .product-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.featured-products .product-card__title a,
.new-arrivals .product-card__title a {
  color: inherit;
  text-decoration: none;
}

.featured-products .product-card__title a:hover,
.new-arrivals .product-card__title a:hover {
  color: #3C2807;
}

.featured-products .product-card__rating,
.new-arrivals .product-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.featured-products .rating-stars,
.new-arrivals .rating-stars {
  color: #fbbf24;
}

.featured-products .rating-count,
.new-arrivals .rating-count {
  font-size: 0.8rem;
  color: #64748b;
}

.featured-products .product-card__price,
.new-arrivals .product-card__price {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.featured-products .product-card__price--original,
.new-arrivals .product-card__price--original {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.featured-products .product-card__price--current,
.new-arrivals .product-card__price--current {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.featured-products .product-card__buttons,
.new-arrivals .product-card__buttons {
  display: flex;
  gap: 8px;
}

.featured-products .btn,
.new-arrivals .btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.featured-products .btn-primary,
.new-arrivals .btn-primary {
  background: #3C2807;
  color: #fff;
}

.featured-products .btn-primary:hover,
.new-arrivals .btn-primary:hover {
  background: #2a1c05;
}

/* ===== 商品详情页新增功能样式 ===== */

/* 规格表格样式 */
.product-specifications {
  margin-bottom: 32px;
}

.product-specifications h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: #f8fafc;
  border-radius: 8px;
  border-left: 4px solid #3C2807;
}

.spec-label {
  font-weight: 600;
  color: #374151;
}

.spec-value {
  color: #64748b;
}

/* 尺寸选择器样式 */
.size-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.size-option {
  padding: 8px 16px;
  border: 2px solid #e5e7eb;
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
}

.size-option:hover {
  border-color: #3C2807;
  color: #3C2807;
}

.size-option.active {
  border-color: #3C2807;
  background: #3C2807;
  color: #fff;
}

/* 保修信息样式 */
.product-warranty {
  margin-bottom: 32px;
  padding: 24px;
  background: #f8fafc;
  border-radius: 12px;
  border-left: 4px solid #10b981;
}

.product-warranty h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
}

.warranty-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.warranty-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 0.95rem;
}

.warranty-item i {
  color: #10b981;
  width: 16px;
}

/* 配件推荐样式 */
.related-accessories {
  padding: 60px 0;
  background: #f8fafc;
}

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

.related-accessories__title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 32px;
}

.accessories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.accessory-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.accessory-card:hover {
  transform: translateY(-8px);
}

.accessory-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.accessory-info {
  padding: 20px;
}

.accessory-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  line-height: 1.4;
}

.accessory-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
}

.btn--small {
  padding: 8px 16px;
  font-size: 0.85rem;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .shop__content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .shop__sidebar {
    position: static;
    order: 2;
  }

  .shop__main {
    order: 1;
  }

  .product-detail__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .product-detail__images {
    position: static;
  }
}

@media (max-width: 768px) {
  .main {
    padding-left: 15px;
    padding-right: 15px;
  }

  .container {
    padding: 0 15px;
  }

  .about-hero__content,
  .contact__content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-hero__title,
  .about-values__title,
  .about-team__title,
  .contact-map__title,
  .related-products__title {
    font-size: 1.75rem;
  }

  .shop__header {
    flex-direction: column;
    gap: 20px;
    align-items: stretch;
  }

  .shop__controls {
    justify-content: space-between;
  }

  .products-grid--4-cols {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .newsletter__form {
    flex-direction: column;
    max-width: 100%;
  }

  .product-actions {
    flex-direction: column;
  }

  .related-products__grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .featured-products__header,
  .new-arrivals__header {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .featured-products__title,
  .new-arrivals__title {
    font-size: 1.75rem;
  }

  .featured-products__grid,
  .new-arrivals__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 480px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .container {
    padding: 0 10px;
  }

  .about-hero,
  .about-story,
  .about-values,
  .contact,
  .shop,
  .product-detail,
  .related-products {
    padding: 40px 0;
  }

  .about-hero__title,
  .about-values__title,
  .about-team__title,
  .contact-map__title,
  .related-products__title {
    font-size: 1.5rem;
  }

  /* 商品页移动端：每行显示2个商品 */
  .products-grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .product-card__content {
    padding: 16px;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .product-price--current {
    font-size: 1.5rem;
  }

  .featured-products,
  .new-arrivals {
    padding: 40px 0;
  }

  .featured-products__title,
  .new-arrivals__title {
    font-size: 1.5rem;
  }

  .featured-products__grid,
  .new-arrivals__grid {
    grid-template-columns: 1fr;
  }

  .featured-products .product-card__content,
  .new-arrivals .product-card__content {
    padding: 16px;
  }
}

@media (max-width: 768px) {
  .specs-grid {
    grid-template-columns: 1fr;
  }

  .size-options {
    justify-content: center;
  }

  .accessories-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .related-accessories__title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .spec-item {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .size-option {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .accessories-grid {
    grid-template-columns: 1fr;
  }

  .accessory-info {
    padding: 16px;
  }
}

/* 图片占位符样式 */
.image-placeholder {
  position: relative;
  background: linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  border: 2px dashed #ccc;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.image-placeholder:hover {
  border-color: #999;
  background-color: #f8f8f8;
  transform: scale(1.02);
}

.image-placeholder::before {
  content: "🖼️";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0.7;
  z-index: 1;
}

.image-placeholder::after {
  content: "صورة مؤقتة";
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* 首页商品滑动块样式 */
.featured-products-swiper,
.new-arrivals-swiper {
  position: relative;
  padding: 0 40px;
  margin: 0 -20px;
  overflow: hidden;
  /* 隐藏超出容器的内容 */
}

.featured-products-swiper .swiper-wrapper,
.new-arrivals-swiper .swiper-wrapper {
  padding: 20px 0;
}

.featured-products-swiper .swiper-slide,
.new-arrivals-swiper .swiper-slide {
  height: auto;
  display: flex;
  width: auto;
  /* 让slide宽度自适应 */
}

/* 确保商品卡片在滑动块中正确显示 */
.featured-products-swiper .product-card,
.new-arrivals-swiper .product-card {
  width: 100%;
  min-width: 0;
  /* 防止内容溢出 */
  height: 100%;
  /* 确保所有卡片高度一致 */
}

/* 优化5列布局下的商品卡片显示 */
@media (min-width: 1024px) {

  .featured-products-swiper .swiper-slide,
  .new-arrivals-swiper .swiper-slide {
    flex: 0 0 calc(20% - 24px);
    /* 5列布局，减去间距 */
    max-width: calc(20% - 24px);
  }

  .featured-products-swiper .product-card,
  .new-arrivals-swiper .product-card {
    margin: 0 auto;
    max-width: 100%;
    font-size: 0.9rem;
    /* 稍微减小字体以适应5列布局 */
  }

  .featured-products-swiper .product-card__title,
  .new-arrivals-swiper .product-card__title {
    font-size: 1rem;
    /* 调整标题字体大小 */
    line-height: 1.3;
  }

  .featured-products-swiper .product-card__img,
  .new-arrivals-swiper .product-card__img {
    height: 200px;
    /* 调整图片高度以适应5列布局 */
  }
}

.featured-products-swiper-button,
.new-arrivals-swiper-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.featured-products-swiper-button:hover,
.new-arrivals-swiper-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-50%) scale(1.1);
}

.featured-products-swiper-button--next,
.new-arrivals-swiper-button--next {
  right: 0;
}

.featured-products-swiper-button--prev,
.new-arrivals-swiper-button--prev {
  left: 0;
}

.featured-products-swiper-pagination,
.new-arrivals-swiper-pagination {
  position: relative;
  margin-top: 20px;
  text-align: center;
}

.featured-products-swiper-pagination .swiper-pagination-bullet,
.new-arrivals-swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: var(--color-border);
  opacity: 0.5;
  transition: all 0.3s ease;
}

.featured-products-swiper-pagination .swiper-pagination-bullet-active,
.new-arrivals-swiper-pagination .swiper-pagination-bullet-active {
  background: var(--color-primary);
  opacity: 1;
  transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 1023px) and (min-width: 768px) {

  .featured-products-swiper .swiper-slide,
  .new-arrivals-swiper .swiper-slide {
    flex: 0 0 calc(33.333% - 20px);
    /* 3列布局 */
    max-width: calc(33.333% - 20px);
  }

  .featured-products-swiper .product-card__img,
  .new-arrivals-swiper .product-card__img {
    height: 220px;
    /* 3列布局下的图片高度 */
  }
}

@media (max-width: 767px) and (min-width: 640px) {

  .featured-products-swiper .swiper-slide,
  .new-arrivals-swiper .swiper-slide {
    flex: 0 0 calc(50% - 10px);
    /* 2列布局 */
    max-width: calc(50% - 10px);
  }

  .featured-products-swiper .product-card__img,
  .new-arrivals-swiper .product-card__img {
    height: 240px;
    /* 2列布局下的图片高度 */
  }
}

@media (max-width: 768px) {

  .featured-products-swiper,
  .new-arrivals-swiper {
    padding: 0 30px;
    margin: 0 -15px;
  }

  .featured-products-swiper-button,
  .new-arrivals-swiper-button {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {

  .featured-products-swiper,
  .new-arrivals-swiper {
    padding: 0 20px;
    margin: 0 -10px;
  }

  .featured-products-swiper-button,
  .new-arrivals-swiper-button {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .featured-products-swiper .swiper-slide,
  .new-arrivals-swiper .swiper-slide {
    flex: 0 0 calc(50% - 8px);
    /* 保持2列布局，减小间距 */
    max-width: calc(50% - 8px);
  }

  .featured-products-swiper .product-card__img,
  .new-arrivals-swiper .product-card__img {
    height: 180px;
    /* 小屏幕下的图片高度 */
  }
}

/* ===== 购物车页面样式 ===== */
.cart-content {
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
}

.cart-content>div {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.cart-loading {
  text-align: center;
  padding: 3rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3C2807;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.cart-empty,
.cart-error {
  text-align: center;
  padding: 3rem;
}

.cart-empty__icon,
.cart-error__icon {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1rem;
}

/* 确保购物车图标和心愿单图标大小一致 */
.cart-empty .fa-shopping-cart,
.empty-cart .fa-shopping-cart {
  font-size: 4rem;
}

.cart-error__icon {
  color: #dc3545;
}

/* 空购物车样式 */
.empty-cart {
  text-align: center;
  padding: 3rem;
  width: 100%;
}

.cart-empty__title,
.cart-error__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3C2807;
}

.cart-empty__message,
.cart-error__message {
  color: #666;
  margin-bottom: 2rem;
}

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

.cart-items__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.cart-items__title {
  font-size: 1.25rem;
  color: #3C2807;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 1rem;
  background: white;
}

.cart-item__image img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item__title {
  font-size: 1.1rem;
  color: #3C2807;
  margin: 0;
}

.cart-item__price {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  direction: rtl !important;
}

.cart-item__price--original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.cart-item__price--current {
  font-weight: 600;
  color: #3C2807;
}

.cart-item__quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.quantity-selector {
  display: flex;
  align-items: center;
  overflow: hidden;
}

.quantity-btn {
  padding: 0.5rem;
  border: none;
  background: #f8f9fa;
  cursor: pointer;
  transition: background 0.3s ease;
}

.quantity-btn:hover {
  background: #e9ecef;
}

.quantity-input {
  width: 60px;
  text-align: center;
  border: none;
  padding: 0.5rem;
  outline: none;
}

.cart-item__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #3C2807;
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
  height: fit-content;
  position: sticky;
  top: 2rem;
}

.cart-summary__title {
  font-size: 1.25rem;
  color: #3C2807;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f8f9fa;
}

.summary-row--total {
  font-weight: 600;
  font-size: 1.1rem;
  color: #3C2807;
  border-bottom: none;
  border-top: 2px solid #eee;
  margin-top: 1rem;
  padding-top: 1rem;
}

.summary-row--discount {
  color: #28a745;
}

.cart-summary__actions {
  margin: 1.5rem 0;
}

.auth-required {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 4px;
  margin-top: 1rem;
}

.auth-required p {
  margin-bottom: 1rem;
  color: #666;
}

.cart-summary__info {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  color: #666;
  font-size: 0.9rem;
}

/* ===== 愿望清单页面样式 ===== */
.wishlist-content {
  padding: 2rem 0;
}

.wishlist-loading {
  text-align: center;
  padding: 3rem;
}

.wishlist-empty,
.wishlist-error {
  text-align: center;
  padding: 3rem;
}

.wishlist-empty__icon,
.wishlist-error__icon {
  font-size: 4rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.wishlist-error__icon {
  color: #dc3545;
}

.wishlist-empty__title,
.wishlist-error__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3C2807;
}

.wishlist-empty__message,
.wishlist-error__message {
  color: #666;
  margin-bottom: 2rem;
}

.wishlist-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.wishlist-header__title {
  font-size: 1.5rem;
  color: #3C2807;
  margin: 0;
}

.wishlist-header__subtitle {
  color: #666;
  margin: 0.5rem 0 0 0;
}

.wishlist-items {
  display: grid;
  /* grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); */
  gap: 1.5rem;
}

.wishlist-item {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.wishlist-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wishlist-item__image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.wishlist-item__content {
  padding: 1rem;
}

.wishlist-item__title {
  font-size: 1.1rem;
  color: #3C2807;
  margin: 0 0 0.5rem 0;
}

.wishlist-item__brand {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.wishlist-item__price {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 1rem;
}

.wishlist-item__price--original {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.wishlist-item__price--current {
  font-weight: 600;
  color: #3C2807;
}

.wishlist-item__actions {
  display: flex;
  gap: 0.5rem;
}

.wishlist-summary {
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 1.5rem;
}

.wishlist-summary__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.summary-info {
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.wishlist-summary__actions {
  text-align: center;
}

/* ===== 响应式设计 ===== */
@media (max-width: 768px) {
  .cart-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
  }

  .cart-item__image img {
    height: 80px;
  }

  .cart-item__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
  }

  .wishlist-items {
    grid-template-columns: 1fr;
  }

  .wishlist-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cart-item__image img {
    height: 150px;
    width: 150px;
    margin: 0 auto;
  }

  .quantity-selector {
    justify-content: center;
  }
}

/* ===== Profile Page Styles ===== */
.profile-content {
  padding: 2rem 0;
}

.profile-loading {
  text-align: center;
  padding: 4rem 2rem;
}

.profile-login-required,
.profile-error {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 500px;
  margin: 0 auto;
}

.profile-login-required__icon,
.profile-error__icon {
  font-size: 4rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.profile-login-required__title,
.profile-error__title {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 1rem;
}

.profile-login-required__message,
.profile-error__message {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.profile-login-required__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.profile-layout {
  max-width: 800px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem;
  background: var(--secondary-color);
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.profile-avatar__placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
}

.profile-name {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.profile-email {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.profile-join-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.profile-sections {
  display: grid;
  gap: 2rem;
}

.profile-section {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.profile-section__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.profile-section__title i {
  color: var(--primary-color);
}

.profile-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-group input[readonly] {
  background: var(--border-light);
  cursor: not-allowed;
}

.form-group small {
  color: var(--text-light);
  font-size: 0.875rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.profile-actions {
  display: grid;
  gap: 1.5rem;
}

.profile-action {
  padding: 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  transition: border-color 0.3s ease;
}

.profile-action:hover {
  border-color: var(--primary-color);
}

.profile-action h4 {
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.profile-action p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.btn-danger {
  background: #dc3545;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-danger:hover {
  background: #c82333;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal {
  background: var(--secondary-color);
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 2px solid var(--border-color);
}

.modal-header h3 {
  color: var(--text-color);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

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

.modal-form {
  padding: 1.5rem;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 1.5rem;
}

/* Profile Page Responsive Design */
@media (max-width: 768px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar__placeholder {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }

  .profile-section {
    padding: 1.5rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .modal {
    margin: 1rem;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* ===== 品牌主题色按钮样式 ===== */
.btn-brand-primary {
  background: var(--brand-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-brand-primary:hover {
  background: #3db8b0;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-brand-primary:active {
  background: #2da49c;
  transform: translateY(0);
}

.btn-brand-secondary {
  background: var(--brand-secondary);
  color: var(--text-dark);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-brand-secondary:hover {
  background: #8fd1d8;
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-brand-secondary:active {
  background: #7bc0c7;
  transform: translateY(0);
}

.btn-brand-accent {
  background: var(--brand-accent);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-brand-accent:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-medium);
}

.btn-brand-accent:active {
  background: #d44a4a;
  transform: translateY(0);
}

/* 替换所有蓝色按钮为品牌主题色 */
.btn-primary {
  background: var(--brand-primary) !important;
  color: white !important;
  border-color: var(--brand-primary) !important;
}

.btn-primary:hover {
  background: #3db8b0 !important;
  border-color: #3db8b0 !important;
}

.btn-primary:active {
  background: #2da49c !important;
  border-color: #2da49c !important;
}

.btn-info {
  background: var(--brand-secondary) !important;
  color: var(--text-dark) !important;
  border-color: var(--brand-secondary) !important;
}

.btn-info:hover {
  background: #8fd1d8 !important;
  border-color: #8fd1d8 !important;
}

.btn-info:active {
  background: #7bc0c7 !important;
  border-color: #7bc0c7 !important;
}

/* 响应式按钮样式 */
@media (max-width: 768px) {

  .btn-brand-primary,
  .btn-brand-secondary,
  .btn-brand-accent {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* 移动端容器优化 - 确保滑动块不会溢出 */
@media (max-width: 768px) {

  .featured-products__container,
  .new-arrivals__container {
    overflow: hidden;
    padding: 0 10px;
  }

  .featured-products__header,
  .new-arrivals__header {
    padding: 0 5px;
    margin-bottom: 1rem;
  }

  /* 确保移动端滑动块导航按钮可见 */
  .featured-products-swiper-button,
  .new-arrivals-swiper-button {
    opacity: 0.9;
    background: rgba(60, 40, 7, 0.9);
  }

  .featured-products-swiper-button:hover,
  .new-arrivals-swiper-button:hover {
    opacity: 1;
    background: var(--color-primary);
  }

  /* 优化移动端分页器 */
  .featured-products-swiper-pagination,
  .new-arrivals-swiper-pagination {
    margin-top: 15px;
  }

  .featured-products-swiper-pagination .swiper-pagination-bullet,
  .new-arrivals-swiper-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 3px;
  }
}

/* 确保所有移动端断点都保持2列布局 */
@media (max-width: 767px) {

  .featured-products-swiper .swiper-slide,
  .new-arrivals-swiper .swiper-slide {
    flex: 0 0 calc(50% - 10px) !important;
    max-width: calc(50% - 10px) !important;
  }
}

/* 超小屏幕保持2列但优化间距 */
@media (max-width: 480px) {

  .featured-products-swiper .swiper-slide,
  .new-arrivals-swiper .swiper-slide {
    flex: 0 0 calc(50% - 8px) !important;
    max-width: calc(50% - 8px) !important;
  }

  .featured-products-swiper .product-card__img,
  .new-arrivals-swiper .product-card__img {
    height: 180px;
    /* 小屏幕下的图片高度 */
  }

  /* 进一步优化超小屏幕的显示 */
  .featured-products-swiper .product-card__title,
  .new-arrivals-swiper .product-card__title {
    font-size: 0.8rem;
    line-height: 1.1;
  }

  .featured-products-swiper .product-card__brand,
  .new-arrivals-swiper .product-card__brand {
    font-size: 0.75rem;
  }

  .featured-products-swiper .product-card__add-to-cart,
  .new-arrivals-swiper .product-card__add-to-cart {
    padding: 0.4rem;
    font-size: 0.75rem;
  }

  /* 确保移动端标题和按钮不会重叠 */
  .featured-products__header,
  .new-arrivals__header {
    margin-bottom: 1rem;
    padding: 0 5px;
  }

  .featured-products__title,
  .new-arrivals__title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .featured-products__view-all,
  .new-arrivals__view-all {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* 确保移动端商品卡片内容不会溢出 */
@media (max-width: 767px) {

  .featured-products-swiper .product-card,
  .new-arrivals-swiper .product-card {
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
  }

  .featured-products-swiper .product-card__content,
  .new-arrivals-swiper .product-card__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
  }

  .featured-products-swiper .product-card__buttons,
  .new-arrivals-swiper .product-card__buttons {
    margin-top: auto;
    padding-top: 0.5rem;
  }

  /* 确保图片容器不会变形 */
  .featured-products-swiper .product-card__image,
  .new-arrivals-swiper .product-card__image {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
  }

  /* 优化移动端评分显示 */
  .featured-products-swiper .product-card__rating,
  .new-arrivals-swiper .product-card__rating {
    margin-bottom: 0.5rem;
  }

  .featured-products-swiper .rating-stars,
  .new-arrivals-swiper .rating-stars {
    font-size: 0.75rem;
  }

  .featured-products-swiper .rating-count,
  .new-arrivals-swiper .rating-count {
    font-size: 0.7rem;
  }

  /* 确保滑动块在移动端正确显示 */
  .featured-products-swiper .swiper-wrapper,
  .new-arrivals-swiper .swiper-wrapper {
    display: flex;
    align-items: stretch;
  }

  .featured-products-swiper .swiper-slide,
  .new-arrivals-swiper .swiper-slide {
    height: auto;
    display: flex;
  }
}

/* 首页专门的移动端样式修复 */
@media (max-width: 768px) {

  /* 确保首页容器不会溢出 */
  .main {
    overflow-x: hidden;
    width: 100%;
  }

  /* Hero部分移动端优化 */
  .hero {
    overflow: hidden;
    padding: 2rem 0;
  }

  .hero__container {
    padding: 0 1rem;
    overflow: hidden;
  }

  .hero__swiper {
    border-radius: 8px;
  }

  .hero__slide {
    height: 350px;
  }

  .hero__slide-content {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 1.5rem;
  }

  .hero__slide-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .hero__slide-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero__slide-button {
    margin-top: 3rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  /* 分类部分移动端优化 */
  .categories {
    padding: 2rem 0;
    overflow: hidden;
  }

  .categories__container {
    padding: 0 1rem;
  }

  .categories__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .category-card__title {
    font-size: 1rem;
  }

  .category-card__description {
    font-size: 0.8rem;
  }

  /* 商品滑动块移动端优化 */
  .featured-products,
  .new-arrivals {
    padding: 2rem 0;
    overflow: hidden;
  }

  .featured-products__container,
  .new-arrivals__container {
    padding: 0 1rem;
    overflow: hidden;
  }

  .featured-products__header,
  .new-arrivals__header {
    padding: 0 1rem;
    margin-bottom: 1rem;
  }

  .featured-products__title,
  .new-arrivals__title {
    font-size: 1.5rem;
  }

  .featured-products__view-all,
  .new-arrivals__view-all {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

@media (max-width: 480px) {
  .hero__slide {
    height: 300px;
  }

  .hero__slide-content {
    padding: 1rem;
  }

  .hero__slide-title {
    font-size: 1.25rem;
  }

  .hero__slide-description {
    font-size: 0.9rem;
  }

  .hero__slide-button {
    margin-top: 3rem;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .categories__grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .featured-products,
  .new-arrivals {
    padding: 1.5rem 0;
  }

  .featured-products__container,
  .new-arrivals__container {
    padding: 0 0.75rem;
  }

  .featured-products__title,
  .new-arrivals__title {
    font-size: 1.25rem;
  }
}

/* ===== 商品颜色样式 ===== */
.color-swatch {
  display: inline-block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-left: 8px;
  vertical-align: middle;
}

.cart-item__color,
.wishlist-item__color,
.order-item__color {
  display: flex;
  align-items: center;
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

.cart-item__size,
.wishlist-item__size,
.order-item__size {
  margin: 8px 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* 购物车项目颜色样式 */
.cart-item__details .cart-item__color,
.cart-item__details .cart-item__size {
  margin: 4px 0;
}

/* 心愿单项目颜色样式 */
.wishlist-item__details .wishlist-item__color,
.wishlist-item__details .wishlist-item__size {
  margin: 4px 0;
}

/* 订单项目颜色样式 */
.order-item__details .order-item__color,
.order-item__details .order-item__size {
  margin: 4px 0;
}

/* ===== 登录页面样式 ===== */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #fff 100%);
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-heavy);
  padding: 2.5rem;
  width: 100%;
  max-width: 500px;
  border: 1px solid var(--border-color);
}

.auth-header {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-header h1 {
  color: var(--primary-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.auth-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.auth-tabs {
  display: flex;
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 0.25rem;
  margin-bottom: 2rem;
}

.auth-tab {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: var(--text-light);
  font-size: 1rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.auth-tab.active {
  background: var(--primary-color);
  color: #fff;
  box-shadow: var(--shadow-light);
}

.auth-tab:hover:not(.active) {
  color: var(--primary-color);
}

.auth-content {
  display: none;
}

.auth-content.active {
  display: block;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  right: 1rem;
  color: var(--text-light);
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 1rem 3rem 1rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fff;
}

.input-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(60, 40, 7, 0.1);
}

.password-toggle {
  position: absolute;
  left: 1rem;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: var(--primary-color);
}

.form-error {
  color: #ef4444;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-light);
}

.checkbox-wrapper input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkmark {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.checkbox-wrapper input[type="checkbox"]:checked+.checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
}

.terms-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.terms-link:hover {
  text-decoration: underline;
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .auth-card {
    padding: 2rem 1.5rem;
    margin: 1rem;
  }

  .auth-header h1 {
    font-size: 1.75rem;
  }

  .auth-tabs {
    flex-direction: column;
    gap: 0.25rem;
  }

  .auth-tab {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 1rem 0.5rem;
  }

  .auth-card {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
  }

  .auth-header h1 {
    font-size: 1.5rem;
  }

  .btn--large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

/* ===== 用户信息页面样式 ===== */
.account-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

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

.account-header h1 {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.account-header p {
  color: var(--text-light);
  font-size: 1.1rem;
}

.account-loading {
  text-align: center;
  padding: 3rem 0;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.account-unauth {
  text-align: center;
  padding: 3rem 0;
}

.unauth-icon {
  font-size: 4rem;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.unauth-icon i {
  color: var(--accent-color);
}

.account-unauth h2 {
  color: var(--text-dark);
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.account-unauth p {
  color: var(--text-light);
  margin-bottom: 2rem;
}

.unauth-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.account-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

.account-sidebar {
  background: var(--secondary-color);
  padding: 2rem;
}

.user-profile {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1rem;
}

.user-name {
  color: var(--text-dark);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-email {
  color: var(--text-light);
  font-size: 0.9rem;
}

.account-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(60, 40, 7, 0.1);
  color: var(--primary-color);
}

.nav-link.active {
  background: var(--primary-color);
  color: #fff;
}

.nav-link i {
  width: 20px;
}

.account-main {
  padding: 2rem;
}

.account-section {
  display: none;
}

.account-section.active {
  display: block;
}

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

.section-header h2 {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--secondary-color);
  border-radius: 8px;
}

.info-row label {
  font-weight: 600;
  color: var(--text-dark);
}

.info-row span {
  color: var(--text-light);
}

.profile-form {
  background: var(--secondary-color);
  padding: 2rem;
  border-radius: 12px;
}

.profile-form .form-group {
  margin-bottom: 1.5rem;
}

.profile-form label {
  display: block;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.profile-form input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.profile-form input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.orders-grid {
  display: grid;
  gap: 1rem;
}

.order-item {
  background: var(--secondary-color);
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.order-header h4 {
  color: var(--text-dark);
  margin: 0;
}

.order-date {
  color: var(--text-light);
  font-size: 0.9rem;
}

.order-total {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.1rem;
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-processing {
  background: #dbeafe;
  color: #1e40af;
}

.status-shipped {
  background: #d1fae5;
  color: #065f46;
}

.status-delivered {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.empty-orders,
.empty-wishlist {
  text-align: center;
  padding: 3rem 0;
}

.empty-orders i,
.empty-wishlist i {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.empty-orders h3,
.empty-wishlist h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.empty-orders p,
.empty-wishlist p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
}

.wishlist-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.wishlist-preview-item {
  background: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.wishlist-preview-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.item-info {
  padding: 1rem;
}

.item-info h5 {
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
}

.item-price {
  color: var(--primary-color);
  font-weight: 600;
  margin: 0;
}

.wishlist-preview-footer {
  text-align: center;
}

.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: var(--secondary-color);
  border-radius: 12px;
  border: 1px solid var(--border-color);
}

.setting-info h4 {
  color: var(--text-dark);
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.setting-info p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.9rem;
}

.btn--danger {
  background: #ef4444;
  color: #fff;
  border: 2px solid #ef4444;
}

.btn--danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-header h3 {
  color: var(--text-dark);
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-light);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
  .account-grid {
    grid-template-columns: 1fr;
  }

  .account-sidebar {
    order: 2;
  }

  .account-main {
    order: 1;
  }

  .account-header h1 {
    font-size: 2rem;
  }

  .section-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .form-actions {
    flex-direction: column;
  }

  .setting-item {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .unauth-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .account-container {
    padding: 1rem 0.5rem;
  }

  .account-header h1 {
    font-size: 1.75rem;
  }

  .account-main,
  .account-sidebar {
    padding: 1rem;
  }

  .modal {
    padding: 1.5rem;
    margin: 1rem;
  }
}

/* MODIFIED: 结账页面移动端滚动修复 */
.checkout {
  min-height: 100vh;
  padding: 2rem 0;
}

.checkout__content {
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.checkout__form {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.checkout__summary {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  height: fit-content;
  position: sticky;
  top: 2rem;
}

/* 移动端结账页面优化 */
@media (max-width: 768px) {
  .checkout {
    padding: 1rem 0;
    min-height: auto;
  }

  .checkout__content {
    gap: 1rem;
    padding: 0 0.5rem;
  }

  .checkout__form,
  .checkout__summary {
    padding: 1rem;
    border-radius: 8px;
  }

  .checkout__summary {
    position: static;
    order: -1;
  }

  /* 确保移动端可以正常滚动 */
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .main {
    overflow-x: hidden;
    overflow-y: auto;
  }
}

/* ===== 首页Banner图响应式优化 ===== */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.hero__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.hero__swiper {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.hero__slide {
  position: relative;
  width: 100%;
  height: 60vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slide-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  justify-content: center;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__slide-text {
  z-index: 2;
  position: relative;
}

.hero__slide-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__slide-description {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.hero__slide-button {
  position: absolute;
  bottom: 200px;
  right: 200px;
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(60, 40, 7, 0.3);
  z-index: 10;
}

.hero__slide-button:hover {
  background: var(--brand-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(60, 40, 7, 0.4);
}

.hero__slide-image {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__slide-img {
  height: 90%;
  object-position: center;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.hero__slide:hover .hero__slide-img {
  transform: scale(1.02);
}

/* Swiper按钮样式 */
.hero__swiper-button {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero__swiper-button:hover {
  background: var(--primary-color);
  color: #fff;
  transform: scale(1.1);
}

.hero__swiper-button::after {
  font-size: 18px;
  font-weight: 600;
}

.hero__swiper-pagination {
  bottom: 20px;
}

.hero__swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  transition: all 0.3s ease;
}

.hero__swiper-pagination .swiper-pagination-bullet-active {
  background: var(--primary-color);
  transform: scale(1.2);
}

/* 平板设备响应式 (768px - 1024px) */
@media (max-width: 1024px) {
  .hero__slide {
    min-height: 450px;
    height: 55vh;
  }

  .hero__slide-content {
    gap: 1.5rem;
    padding: 0 1.5rem;
  }

  .hero__slide-title {
    font-size: 2.5rem;
  }

  .hero__slide-description {
    font-size: 1.1rem;
  }
}

/* 移动端响应式 (≤768px) */
@media (max-width: 768px) {
  .hero {
    min-height: 50vh;
  }

  .hero__slide {
    height: 50vh;
    /* min-height: 400px; */
  }

  .hero__slide-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1rem;
    padding: 0 1rem;
  }

  .hero__slide-text {
    order: 2;
    padding: 1rem 0;
  }

  .hero__slide-image {
    order: 1;
    height: 250px;
  }

  .hero__slide-img {
    height: 100%;
    width: 100%;
  }

  .hero__slide-title {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }

  .hero__slide-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero__slide-button {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
  }

  .hero__swiper-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero__swiper-button::after {
    font-size: 14px;
  }
}

/* 小屏幕设备 (≤480px) */
@media (max-width: 480px) {
  .hero {
    min-height: 45vh;
  }

  .hero__slide {
    height: 45vh;
    min-height: 350px;
  }

  .hero__slide-content {
    padding: 2rem 0.5rem;
  }

  .hero__slide-image {
    height: 200px;
  }

  .hero__slide-title {
    font-size: 1.8rem;
  }

  .hero__slide-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .hero__slide-button {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .hero__swiper-button {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

/* 超小屏幕 (≤360px) */
@media (max-width: 360px) {
  .hero__slide {
    min-height: 320px;
  }

  .hero__slide-image {
    height: 180px;
  }

  .hero__slide-title {
    font-size: 1.5rem;
  }

  .hero__slide-description {
    font-size: 0.85rem;
  }

  .hero__slide-button {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

/* ===== 首页商品区域样式 ===== */
.products-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.products-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.products-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #3C2807;
  margin-bottom: 1rem;
  position: relative;
}

.products-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #3C2807, #8B4513);
  border-radius: 2px;
}

.products-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 0;
}

/* 商品板块样式 */
.product-block {
  margin-bottom: 4rem;
}

.product-block:last-child {
  margin-bottom: 0;
}

.product-block-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #3C2807;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

.product-block-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #3C2807, #8B4513);
  border-radius: 2px;
}

.products-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
  grid-template-columns: repeat(5, 1fr);
  /* 桌面端默认5列 */
}

/* 平板端适配 */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

/* 移动端适配 - 显示2个商品 */
@media (max-width: 768px) {
  .products-section {
    padding: 2rem 0;
  }

  .products-container {
    padding: 0 1rem;
  }

  .products-title {
    font-size: 2rem;
  }

  .product-block {
    margin-bottom: 3rem;
  }

  .product-block-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .products-title {
    font-size: 1.75rem;
  }
}

/* 确保商品卡片在网格中正确显示 */
.products-grid .product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.products-grid .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.products-grid .product-card__image {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 0;
  padding-bottom: 75%;
  /* 4:3 宽高比 */
}

.products-grid .product-card__img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.products-grid .product-card:hover .product-card__img {
  transform: scale(1.05);
}

.products-grid .product-card__content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.products-grid .product-card__brand {
  color: #3C2807;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.products-grid .product-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.products-grid .product-card__title a {
  color: inherit;
  text-decoration: none;
}

.products-grid .product-card__title a:hover {
  color: #3C2807;
}

.products-grid .product-card__rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.products-grid .rating-count {
  font-size: 0.8rem;
  color: #64748b;
}

.products-grid .product-card__price {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  direction: rtl !important;
}

.products-grid .product-card__price--original {
  color: #9ca3af;
  text-decoration: line-through;
  font-size: 0.9rem;
}

.products-grid .product-card__price--current {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.products-grid .product-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.products-grid .feature-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.products-grid .product-card__stock {
  margin-bottom: 16px;
}

.products-grid .stock-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
}

.products-grid .stock-status.in-stock {
  color: #10b981;
}

.products-grid .stock-status.out-of-stock {
  color: #ef4444;
}

.products-grid .product-card__buttons {
  display: flex;
  gap: 8px;
}

.products-grid .btn {
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.products-grid .btn-primary {
  background: #3C2807;
  color: white;
  flex: 1;
}

.products-grid .btn-primary:hover {
  background: #2a1d05;
  transform: translateY(-1px);
}

.products-grid .product-card__discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ef4444;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.products-grid .product-card__actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.products-grid .product-card:hover .product-card__actions {
  opacity: 1;
  transform: translateX(0);
}

.products-grid .product-card__action {
  width: 36px;
  height: 36px;
  background: #fff;
  border: none;
  border-radius: 50%;
  color: #6c757d;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.products-grid .product-card__action:hover {
  background: #3C2807;
  color: #fff;
  transform: scale(1.1);
}

.products-grid .product-card__action.active {
  background: #3C2807;
  color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .products-grid .product-card__content {
    padding: 16px;
  }

  .products-grid .product-card__title {
    font-size: 1rem;
  }

  .products-grid .product-card__price--current {
    font-size: 1.1rem;
  }

  .products-grid .btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
}