:root {
  --color-primary: #1a1a1a;
  --color-secondary: #f5f5f5;
  --color-accent: #c5a47e;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-white: #ffffff;
  --color-border: #e0e0e0;
  --color-hover: #f8f8f8;
}

.product-hero {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  /* margin-top: 80px; */
}

.hero-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--color-white);
  z-index: 10;
  width: 90%;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 15px;
  letter-spacing: 5px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.9;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  opacity: 0.8;
}

.breadcrumb a {
  color: var(--color-white);
  transition: opacity 0.3s ease;
}

.breadcrumb a:hover {
  opacity: 1;
}

.breadcrumb .separator {
  opacity: 0.6;
}

.product-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 4%;
}

.filter-section {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 40px;
}

.filter-group {
  display: flex;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.filter-group:last-of-type {
  border-bottom: none;
}
.filter-group:first-of-type {
  padding-top: 0;
}

.filter-label {
  min-width: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-primary);
  padding-top: 8px;
}

.filter-options {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.filter-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-btn.active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.filter-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  margin-top: 10px;
}

.btn-reset {
  padding: 10px 25px;
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.btn-reset:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.result-count {
  font-size: 14px;
  color: var(--color-text-light);
}

.result-count span {
  color: var(--color-accent);
  font-weight: 600;
  font-size: 16px;
}

.product-list-section {
  position: relative;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.product-card {
  background-color: var(--color-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
}

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

.product-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background-color: var(--color-secondary);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-view-detail {
  padding: 10px 25px;
  background-color: var(--color-white);
  color: var(--color-primary);
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.btn-view-detail:hover {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.product-info {
  padding: 20px;
}

.product-series {
  font-size: 12px;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}

.product-color {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-text-light);
}

.color-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
}

.loading-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 15px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-more span {
  font-size: 14px;
  color: var(--color-text-light);
}

.no-more-data {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-text-light);
  font-size: 14px;
}

.no-more-data span {
  position: relative;
  display: inline-block;
  padding: 0 20px;
}

.no-more-data span::before,
.no-more-data span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 60px;
  height: 1px;
  background-color: var(--color-border);
}

.no-more-data span::before {
  right: 100%;
}

.no-more-data span::after {
  left: 100%;
}

.nav-link.active {
  color: var(--color-accent);
}

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
  }

  .filter-group {
    flex-direction: column;
    gap: 15px;
  }

  .filter-label {
    min-width: auto;
    padding-top: 0;
  }
}

@media (max-width: 768px) {
  .product-hero {
    height: 300px;
    /* margin-top: 60px; */
  }

  .hero-content h1 {
    font-size: 2rem;
    letter-spacing: 3px;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .filter-section {
    padding: 20px;
  }

  .filter-options {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 14px;
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 15px;
  }

  .product-image {
    height: 200px;
  }

  .product-info {
    padding: 15px;
  }

  .product-name {
    font-size: 14px;
  }

  .filter-actions {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .product-hero {
    height: 250px;
  }

  .hero-content h1 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .breadcrumb {
    font-size: 12px;
  }

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

  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 12px;
  }

  .product-series {
    font-size: 11px;
  }

  .product-name {
    font-size: 13px;
  }

  .product-color {
    font-size: 12px;
  }

  .color-dot {
    width: 12px;
    height: 12px;
  }
}

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

.ani[data-animate="fadeInUp"] {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.ani[data-animate="fadeInUp"][data-delay="0.2s"] {
  animation-delay: 0.2s;
}

.ani[data-animate="fadeInUp"][data-delay="0.4s"] {
  animation-delay: 0.4s;
}
