/* DeepSeek. (2024). *DeepSeek latest version* [Large language model]. https://www.deepseek.com */
:root {
  --teal: #2a9d8f;
  --teal-dark: #1d6d63;
  --blue: #3a86ff;
  --blue-dark: #2667cc;
  --dark: #2d3436;
  --medium: #636e72;
  --light: #b2bec3;
  --extra-light: #dfe6e9;
  --white: #fff;
  --bg-light: #f8f9fa;
  --success: #00b894;
  --warning: #fdcb6e;
  --danger: #ff6b6b;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --transition: all 0.3s ease;
  --primary-color: #2a9d8f;
}

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

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark);
  background: var(--bg-light);
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

/* 页面切换动画 */
.page {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

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

/* 购物车hover效果覆盖物 */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  display: none;
}

.cart-overlay.active {
  display: block;
}

/* 加载指示器 */
#loading {
  display: none;
  text-align: center;
  padding: 50px;
}

#loading .fa-spinner {
  color: var(--primary-color);
}

#loading p {
  margin-top: 20px;
}

/* Top Bar */
.top-bar {
  background: linear-gradient(135deg, var(--dark), #3d4a5c);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.85rem;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info {
  display: flex;
  gap: 20px;
}

.top-bar-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.top-bar-links a {
  color: var(--white);
  opacity: 0.9;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-links a:hover {
  opacity: 1;
  color: #76c7ba;
}

/* Main Header */
.main-header {
  background: var(--white);
  padding: 20px 0;
  border-bottom: 1px solid var(--extra-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 32px;
  color: var(--teal);
}

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

.logo-main {
  font-size: 24px;
  font-weight: 700;
  color: var(--teal);
}

.logo-sub {
  font-size: 20px;
  font-weight: 600;
  color: var(--medium);
}

/* Search Bar */
.search-bar {
  flex: 1;
  max-width: 600px;
}

.search-wrapper {
  display: flex;
  border: 2px solid var(--teal);
  border-radius: 50px;
  overflow: hidden;
}

.search-wrapper input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  background: var(--teal);
  color: var(--white);
  border: none;
  padding: 0 30px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

/* Cart Section */
.cart-section {
  min-width: 120px;
}

.cart-hover-trigger {
  position: relative;
}

.cart-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.cart-toggle:hover {
  background: var(--bg-light);
}

.cart-icon-wrapper {
  position: relative;
}

.cart-icon-wrapper i {
  font-size: 24px;
  color: var(--dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}

.cart-text {
  display: flex;
  flex-direction: column;
}

.cart-label {
  font-weight: 600;
  font-size: 0.9rem;
}

.cart-total {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 700;
}

/* Category Navigation */
.category-nav {
  background: var(--white);
  border-bottom: 1px solid var(--extra-light);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
  z-index: 999;
}

.category-list {
  display: flex;
  gap: 1px;
  overflow-x: auto;
  padding: 0;
  margin: 0;
}

.category-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.category-list a:hover,
.category-list a.active {
  color: var(--teal);
  border-bottom-color: var(--teal);
  background: var(--bg-light);
}

.category-list i {
  font-size: 18px;
}

/* Breadcrumb */
.breadcrumb {
  background: var(--white);
  padding: 15px 0;
  border-bottom: 1px solid var(--extra-light);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.breadcrumb-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li:not(:last-child)::after {
  content: '>';
  margin-left: 8px;
  color: var(--light);
}

.breadcrumb-list a {
  color: var(--blue);
  transition: var(--transition);
}

.breadcrumb-list a:hover {
  color: var(--teal);
  text-decoration: underline;
}

/* Hero Banner */
.hero-banner {
  background: linear-gradient(135deg, #e3f2fd, #f0f9ff);
  padding: 60px 40px;
  border-radius: var(--radius-xl);
  margin: 30px 0;
  text-align: center;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--medium);
  margin-bottom: 30px;
}

/* Buttons */
.btn {
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Category Grid Section */
.category-grid-section {
  margin: 60px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 30px;
  text-align: center;
}

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

.category-card {
  background: var(--white);
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--extra-light);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--teal);
}

.category-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 28px;
}

.category-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
}

.category-card p {
  color: var(--medium);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.product-count {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  color: var(--teal);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Products Grid */
.featured-products {
  margin: 60px 0;
}

.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
}

.product-card {
  flex: 0 0 calc(25% - 24px);
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--extra-light);
  display: flex;
  flex-direction: column;
}

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

.product-image {
  height: 200px;
  overflow: hidden;
  background: var(--bg-light);
  cursor: pointer;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: var(--transition);
}

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

.product-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  margin-bottom: 8px;
  cursor: pointer;
}

.product-name h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
}

.product-description {
  color: var(--medium);
  font-size: 0.85rem;
  margin-bottom: 12px;
  flex: 1;
  height: 36px;
  overflow: hidden;
}

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

.current-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--teal);
}

.original-price {
  font-size: 0.9rem;
  color: var(--light);
  text-decoration: line-through;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: var(--warning);
  font-size: 0.9rem;
}

.rating-count {
  color: var(--light);
  font-size: 0.85rem;
}

.add-to-cart-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.add-to-cart-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Category Page */
.category-page-content {
  animation: fadeIn 0.3s ease;
}

.category-header {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}

.category-header h1 {
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.category-header p {
  color: var(--medium);
  margin-bottom: 20px;
}

.category-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.category-stats span {
  color: var(--light);
  font-size: 0.9rem;
}

.filter-toggle {
  cursor: pointer;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.filters-section {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  box-shadow: var(--shadow-sm);
  display: none;
}

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

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

.filter-group h4 {
  font-size: 1rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.price-range {
  padding: 10px 0;
}

.price-slider {
  width: 100%;
  margin: 10px 0;
}

.price-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--medium);
}

.sort-select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--extra-light);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--dark);
  font-family: inherit;
}

/* Product Detail Page */
.product-detail-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin: 40px 0;
  animation: fadeIn 0.3s ease;
}

.product-images {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.main-image {
  height: 400px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

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

.thumbnail-images {
  display: flex;
  gap: 10px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  border: 2px solid var(--extra-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.thumbnail.active,
.thumbnail:hover {
  border-color: var(--teal);
}

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

.product-info-detail {
  background: var(--white);
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.product-info-detail h1 {
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 16px;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--extra-light);
}

.product-rating-large {
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-rating-large .stars {
  color: var(--warning);
}

.rating-text {
  font-size: 0.9rem;
  color: var(--medium);
}

.sku {
  font-size: 0.85rem;
  color: var(--light);
  padding: 4px 8px;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.availability {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
  font-weight: 600;
}

.price-section {
  margin-bottom: 30px;
}

.current-price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--teal);
}

.original-price-large {
  font-size: 1.2rem;
  color: var(--light);
  text-decoration: line-through;
  margin: 8px 0;
}

.save-amount {
  color: var(--success);
  font-weight: 600;
}

.product-description-detail {
  margin-bottom: 30px;
}

.product-description-detail h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.product-description-detail p {
  color: var(--medium);
  line-height: 1.8;
  margin-bottom: 20px;
}

.features {
  margin-top: 20px;
}

.features h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--dark);
}

.features ul {
  list-style-type: disc;
  padding-left: 20px;
}

.features li {
  margin-bottom: 8px;
  color: var(--medium);
}

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

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

.option-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.option-group select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--extra-light);
  border-radius: var(--radius-md);
  background: var(--white);
  color: var(--dark);
}

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

.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--extra-light);
  background: var(--white);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  background: var(--bg-light);
  border-color: var(--teal);
}

.qty-input {
  width: 50px;
  height: 30px;
  text-align: center;
  border: 1px solid var(--extra-light);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.quantity-selector input {
  width: 60px;
  height: 40px;
  text-align: center;
  border: 1px solid var(--extra-light);
  border-radius: var(--radius-md);
}

.product-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.add-to-cart-large {
  flex: 1;
  min-width: 150px;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
}

.add-to-cart-large:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.shipping-info {
  background: var(--bg-light);
  padding: 20px;
  border-radius: var(--radius-md);
  margin-bottom: 30px;
}

.shipping-info h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--dark);
}

.shipping-info p {
  color: var(--medium);
  line-height: 1.6;
}

/* Shopping Cart Sidebar */
.shopping-cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 420px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.shopping-cart-sidebar.active {
  right: 0;
}

@media (min-width: 992px) {

  .cart-hover-trigger:hover .shopping-cart-sidebar,
  .shopping-cart-sidebar:hover {
    right: 0;
  }
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--extra-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
}

.cart-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
}

.cart-count-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.close-cart {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
}

.cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.empty-cart {
  text-align: center;
  padding: 60px 20px;
}

.empty-cart-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--bg-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-size: 36px;
}

.empty-cart h4 {
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.empty-cart p {
  color: var(--light);
  margin-bottom: 24px;
}

.cart-items {
  display: none;
}

.cart-items.active {
  display: block;
}

.cart-item {
  display: flex;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid var(--extra-light);
  align-items: center;
}

.cart-item-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-light);
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-item-price {
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 8px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-quantity label {
  color: var(--medium);
  font-size: 0.9rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 5px;
}

.remove-btn {
  width: 30px;
  height: 30px;
  border: none;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.remove-btn:hover {
  background: #ff5252;
  transform: scale(1.1);
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--extra-light);
  background: var(--bg-light);
}

.cart-summary {
  margin-bottom: 24px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
}

.subtotal,
.total-amount {
  color: var(--teal);
  font-weight: 600;
}

.shipping {
  color: var(--medium);
  font-size: 0.9rem;
}

.summary-row.total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--teal);
  border-top: 2px solid var(--extra-light);
  margin-top: 12px;
  padding-top: 16px;
}

.cart-action-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.update-cart-btn {
  width: 100%;
  padding: 12px;
  background: var(--warning);
  color: var(--dark);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.update-cart-btn:hover {
  background: #f9c74f;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.checkout-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.checkout-btn:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cart-note {
  text-align: center;
  color: var(--light);
  font-size: 0.85rem;
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, var(--dark), #3d4a5c);
  color: var(--white);
  padding: 60px 0 0;
  margin-top: 80px;
}

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

.footer-section h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
}

.footer-section ul li {
  margin-bottom: 12px;
}

.footer-section ul li a {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.footer-section ul li a:hover {
  color: var(--white);
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 16px;
}

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

.social-links a:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* 通知样式 */
.notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--success);
  color: white;
  padding: 15px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

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

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 1200px) {
  .product-card {
    flex: 0 0 calc(33.333% - 24px);
  }
}

@media (max-width: 992px) {
  .main-header .container {
    flex-wrap: wrap;
  }

  .logo {
    order: 1;
  }

  .cart-section {
    order: 2;
  }

  .search-bar {
    order: 3;
    width: 100%;
    margin-top: 20px;
  }

  .product-detail-container {
    grid-template-columns: 1fr;
  }

  .shopping-cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

@media (max-width: 768px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-card {
    flex: 0 0 calc(50% - 24px);
  }

  .hero-banner {
    padding: 40px 20px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }
}

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

  .product-card {
    flex: 0 0 100%;
  }

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

  .add-to-cart-large {
    width: 100%;
  }

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


.hidden {
  display: none;
}
/* 空状态提示 */
.empty-message { text-align: center; grid-column: 1 / -1; }
