* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-padding-top: 70px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
  background-color: #f8f8f8;
  letter-spacing: 0.5px;
}

.navbar-brand {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #e74c3c !important;
}

.nav-link {
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 1px;
  color: #333 !important;
}

.nav-link:hover {
  color: #e74c3c !important;
}

.carousel-item img {
  height: 500px;
  object-fit: cover;
}

.carousel-caption {
  background: rgba(0, 0, 0, 0.6);
  padding: 25px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
}

.carousel-caption h5 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.carousel-caption p {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2d2d2d;
  text-align: center;
  margin-bottom: 30px;
  letter-spacing: 3px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #e74c3c, #c0392b);
  border-radius: 2px;
}

.category-card {
  background: white;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  padding: 25px 15px;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(231, 76, 60, 0.1);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.category-name {
  font-size: 1rem;
  font-weight: 600;
  color: #2d2d2d;
  letter-spacing: 1px;
}

.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.product-image {
  position: relative;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
  transform: scale(1.08);
}

.product-tags {
  position: absolute;
  top: 12px;
  left: 12px;
}

.tag {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 6px;
  letter-spacing: 0.5px;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2d2d2d;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.product-desc {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.current-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #e74c3c;
  letter-spacing: 1px;
}

.original-price {
  font-size: 0.9rem;
  color: #999;
  text-decoration: line-through;
  margin-left: 10px;
}

.add-cart-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

.add-cart-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.review-card {
  background: white;
  border-radius: 12px;
  padding: 25px;
  transition: all 0.3s ease;
}

.review-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.review-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-right: 18px;
  object-fit: cover;
}

.review-name {
  font-weight: 600;
  color: #2d2d2d;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
}

.review-rating {
  color: #f39c12;
  font-size: 1rem;
}

.review-content {
  color: #555;
  line-height: 1.8;
  margin-bottom: 18px;
  font-size: 0.95rem;
  text-align: justify;
}

.review-product {
  display: flex;
  align-items: center;
  background: #fafafa;
  padding: 12px;
  border-radius: 10px;
}

.review-product-image {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: cover;
}

.review-product-name {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.about-section {
  padding: 24px 0;
  background: #fff;
}

.about-section .text-center {
  margin-bottom: 16px;
}

.about-section .text-center span {
  display: inline-block;
  padding: 6px 12px;
  background: #fef2f2;
  color: #dc2626;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.about-section .text-center h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
}

.about-section .flex {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.about-section .flex > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 10px;
  background: #fef2f2;
}

.about-section .flex > div:nth-child(2) {
  background: #fff7ed;
}

.about-section .flex > div:nth-child(3) {
  background: #f0fdf4;
}

.about-section .flex > div div:first-child {
  width: 40px;
  height: 40px;
  background: #fee2e2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-section .flex > div:nth-child(2) div:first-child {
  background: #ffedd5;
}

.about-section .flex > div:nth-child(3) div:first-child {
  background: #dcfce7;
}

.about-section .flex > div div:first-child i {
  color: #dc2626;
  font-size: 0.875rem;
}

.about-section .flex > div:nth-child(2) div:first-child i {
  color: #f97316;
}

.about-section .flex > div:nth-child(3) div:first-child i {
  color: #22c55e;
}

.about-section .flex > div div:last-child p:first-child {
  font-weight: 700;
  color: #1f2937;
  margin: 0;
}

.about-section .flex > div div:last-child p:last-child {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
}

footer {
  background: #1a1a1a;
  color: #b3b3b3;
  padding: 50px 0;
}

footer h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 1px;
  font-size: 1.1rem;
}

footer a {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 2;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #e74c3c;
}

footer ul {
  list-style: none;
  padding: 0;
}

footer ul li {
  margin-bottom: 8px;
}

.contact-info {
  margin-top: 20px;
}

.contact-info p {
  font-size: 0.95rem;
  line-height: 2;
  color: #b3b3b3;
}

.contact-info i {
  color: #e74c3c;
  margin-right: 10px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e74c3c;
  letter-spacing: 2px;
  margin-bottom: 10px;
}

.footer-slogan {
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #2a2a2a;
  color: #666;
  font-size: 0.9rem;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-item {
  display: flex;
  align-items: center;
  padding: 15px;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.payment-item:hover {
  border-color: #e74c3c;
  background-color: #fef8f8;
}

.payment-item.active {
  border-color: #e74c3c;
  background-color: #fef8f8;
}

.payment-item img {
  margin-right: 12px;
}

.payment-item i {
  margin-right: 12px;
}

.payment-item span {
  flex-grow: 1;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 18px;
  border-bottom: 1px solid #eee;
}

.cart-item-image {
  width: 85px;
  height: 85px;
  border-radius: 10px;
  margin-right: 18px;
  object-fit: cover;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2d2d2d;
  margin-bottom: 5px;
}

.cart-item-info p {
  font-size: 0.9rem;
  color: #666;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qty-btn {
  width: 34px;
  height: 34px;
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: #e74c3c;
  color: white;
}

.delete-btn {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 10px;
}

.delete-btn:hover {
  color: #e74c3c;
}

.empty-cart {
  padding: 60px 20px;
}

.empty-cart i {
  font-size: 5rem;
  color: #ddd;
  margin-bottom: 15px;
}

.empty-cart p {
  color: #999;
  font-size: 1rem;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  border: none;
  padding: 12px 30px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.btn-outline-danger {
  border-color: #e74c3c;
  color: #e74c3c;
  font-weight: 500;
  letter-spacing: 1px;
}

.btn-outline-danger:hover {
  background: #e74c3c;
}

@media (max-width: 768px) {
  .carousel-item img {
    height: 280px;
  }

  .carousel-caption h5 {
    font-size: 1.4rem;
  }

  .carousel-caption p {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .category-icon {
    font-size: 2.5rem;
  }

  .product-name {
    font-size: 1rem;
  }

  .current-price {
    font-size: 1.25rem;
  }

  footer h4 {
    margin-top: 25px;
  }
}

@media (max-width: 576px) {
  body {
    font-size: 15px;
  }

  .navbar-brand {
    font-size: 1.3rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .product-image img {
    height: 180px;
  }
}
