:root {
  --primary-color: #ff6f00;
  --primary-hover: #e65a00;
  --text-primary: #333;
  --text-secondary: #666;
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 10px rgba(0, 0, 0, 0.2);
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --border-radius: 10px;
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl);
}

/* Header Styles */
.header-section {
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

.header-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  margin-top: var(--spacing-md); /* Thêm khoảng cách phía trên */
}


.header-description {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Product Grid */
.product-list {
  display: grid;
  gap: var(--spacing-lg);
}

.product-item {
  display: flex;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease-in-out;
  overflow: hidden;
}

.product-item:hover {
  box-shadow: var(--shadow-lg);
}

/* Product Image */
.product-image-container {
  flex: 0 0 300px;
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  border: 2px solid #ccc; /* Thêm viền 2px màu xám nhạt */
  border-radius: 5px; /* Tùy chọn, làm bo góc */
}


.product-item:hover .product-image {
  transform: scale(1.05);
}

/* Product Content */
.product-info {
  flex: 1;
  padding: var(--spacing-lg);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.product-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.product-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.promotion-tag {
  display: inline-block;
  background: #fff3e0;
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Buttons */
.show-more-button {
  color: #2196f3;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.875rem;
}

.buy-button {
  display: inline-block;
  background: #d0011b;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  transition: background-color 0.2s ease;
  align-self: flex-start;
}

.buy-button:hover {
  background: var(--primary-hover);
  color: white; /* Ensure the text color remains white on hover */
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--spacing-xl) 0;
}


.empty-state h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.empty-state p {
  color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 0.75rem;
  }

  .product-list {
    gap: 0.75rem;
  }

  .product-item {
    border-radius: 8px;
  }

  .product-image-container {
    flex: 0 0 120px;
    height: auto;
    min-height: 140px;
  }

  .product-info {
    padding: 0.75rem;
    gap: 0.5rem;
  }

  .product-title {
    font-size: 0.938rem;
    margin-bottom: 0;
  }

  .product-description {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .product-price {
    font-size: 1.125rem;
    margin: 0.25rem 0;
  }

  .promotion-tag {
    font-size: 0.80rem;
  }

  .buy-button {
    width: 100%;
    padding: 0.438rem 0.75rem;
    font-size: 0.813rem;
    border-radius: 6px;
  }

  .show-more-button {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.5rem;
  }

  .header-section {
    margin-bottom: 1rem;
  }

  .header-title {
    font-size: 1.25rem;
  }

  .header-description {
    font-size: 0.85rem;
  }

  .product-image-container {
    flex: 0 0 150px;
    min-height: 130px;
  }

  .product-list {
    gap: 0.5rem;
  }

  .product-info {
    padding: 0.5rem;
    gap: 0.375rem;
  }

  .product-title {
    font-size: 0.875rem;
  }

  .product-description {
    font-size: 0.80rem;
  }

  .product-price {
    font-size: 1rem;
  }
}