/* Archive Products Page Styles */
.products-archive-page {
  background: #0a0a0a;
  color: #fff;
  min-height: 100vh;
}

/* Container with proper margins */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Hero Section */
.archive-hero {
  height: 50vh;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.7)),
    url("../images/hero-bg.jpg") center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  margin-top: 90px;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05),
    rgba(0, 0, 0, 0.3)
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-breadcrumb {
  font-family: "Rajdhani", sans-serif;
  margin-bottom: 20px;
  color: #ccc;
  font-size: 1rem;
}

.hero-breadcrumb a {
  color: #e0e0e0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.hero-breadcrumb a:hover {
  color: #fff;
}

.hero-breadcrumb span {
  margin: 0 10px;
  color: #666;
}

.hero-title {
  font-family: "Orbitron", monospace;
  font-size: 3.5rem;
  font-weight: 900;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 3px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background: linear-gradient(135deg, #ffffff, #e0e0e0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: "Exo 2", sans-serif;
  font-size: 1.3rem;
  color: #e0e0e0;
  margin-bottom: 15px;
  font-weight: 500;
  letter-spacing: 1px;
}

.hero-description {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.6;
}

/* Filters Section */
.products-filters-section {
  background: rgba(255, 255, 255, 0.03);
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-title {
  font-family: "Exo 2", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.category-filters,
.tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #ccc;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 18px;
  border-radius: 25px;
  font-family: "Rajdhani", sans-serif;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #333333, #555555);
  color: #fff;
  border-color: #666666;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.3);
}

/* Products Header */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.products-count {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  color: #ccc;
  font-weight: 600;
}

.products-count #showing-count {
  color: #e0e0e0;
  font-weight: 700;
  font-size: 1.3rem;
}

.sort-select {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 10px 15px;
  border-radius: 8px;
  font-family: "Rajdhani", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.sort-select:focus {
  outline: none;
  border-color: #666666;
  background: rgba(255, 255, 255, 0.12);
}

.sort-select option {
  background: #333;
  color: #fff;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.product-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.5s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.product-image {
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  height: 300px;
}

.image-gallery {
  position: relative;
  height: 100%;
}

.main-image {
  width: 100%;
  height: 100%;
}

.gallery-main {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card:hover .gallery-main {
  transform: scale(1.1);
}

.image-thumbnails {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 5px;
}

.thumbnail {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.thumbnail.active,
.thumbnail:hover {
  opacity: 1;
  border-color: #e0e0e0;
  transform: scale(1.1);
}

/* Product Content */
.product-content {
  padding: 30px;
}

.product-title {
  font-family: "Exo 2", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-title a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.product-title a:hover {
  color: #e0e0e0;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 15px;
}

.price-label {
  font-family: "Rajdhani", sans-serif;
  font-size: 0.9rem;
  color: #ccc;
}

.price-amount {
  font-family: "Orbitron", monospace;
  font-size: 1.8rem;
  font-weight: 900;
  color: #e0e0e0;
  letter-spacing: 1px;
}

.product-description {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.1rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
}

.product-features ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
}

.product-features li {
  font-family: "Rajdhani", sans-serif;
  font-size: 1rem;
  color: #ccc;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product-features i {
  color: #25d366;
  font-size: 0.9rem;
  width: 12px;
}

/* Product Actions */
.product-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.buy-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Exo 2", sans-serif;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.3s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  flex: 1;
}

.btn-outline:hover {
  background: linear-gradient(135deg, #333333, #555555);
  color: #fff;
  border-color: #666666;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-shopee {
  background: linear-gradient(135deg, #ee4d2d, #ff6547);
  color: #fff;
  flex: 1;
}

.btn-shopee:hover {
  background: linear-gradient(135deg, #ff6547, #ee4d2d);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(238, 77, 45, 0.4);
}

.btn-tokopedia {
  background: linear-gradient(135deg, #42b883, #5ed9a7);
  color: #fff;
  flex: 1;
}

.btn-tokopedia:hover {
  background: linear-gradient(135deg, #5ed9a7, #42b883);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 184, 131, 0.4);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  flex: 1;
}

.btn-whatsapp:hover {
  background: linear-gradient(135deg, #128c7e, #25d366);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Pagination */
.products-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 40px 0;
  font-family: "Rajdhani", sans-serif;
}

.products-pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 5px;
}

.products-pagination .page-numbers a,
.products-pagination .page-numbers span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 45px;
  height: 45px;
  padding: 8px 15px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.products-pagination .page-numbers a {
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
}

.products-pagination .page-numbers a:hover {
  background: linear-gradient(135deg, #333333, #555555);
  color: #fff;
  border-color: #666666;
  transform: translateY(-2px);
}

.products-pagination .page-numbers .current {
  background: linear-gradient(135deg, #333333, #555555);
  color: #fff;
  border-color: #666666;
}

/* No Products */
.no-products {
  text-align: center;
  padding: 80px 20px;
  color: #ccc;
}

.no-products i {
  font-size: 4rem;
  color: #666;
  margin-bottom: 20px;
}

.no-products h3 {
  font-family: "Exo 2", sans-serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 15px;
}

.no-products p {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Newsletter Section */
.newsletter-section {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.03),
    rgba(0, 0, 0, 0.1)
  );
  padding: 80px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.newsletter-title {
  font-family: "Orbitron", monospace;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.newsletter-description {
  font-family: "Rajdhani", sans-serif;
  font-size: 1.2rem;
  color: #ccc;
  line-height: 1.8;
  margin-bottom: 40px;
}

.newsletter-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-primary {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border-color: #25d366;
}

.btn-primary:hover {
  background: transparent;
  color: #25d366;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border-color: #666;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #333333, #555555);
  color: #fff;
  border-color: #666666;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hidden state for filtering */
.product-card.hidden {
  display: none !important;
}

.product-card.filtering {
  opacity: 0.3;
  transform: scale(0.95);
  pointer-events: none;
}

/* Loading state */
.products-loading {
  position: relative;
}

.products-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid #e0e0e0;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .archive-hero {
    height: 40vh;
    margin-top: 70px;
  }

  .hero-title {
    font-size: 2.5rem;
    letter-spacing: 2px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-description {
    font-size: 1.1rem;
  }

  .products-filters-section {
    padding: 30px 0;
  }

  .category-filters,
  .tag-filters {
    gap: 8px;
  }

  .filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }

  .filter-btn i {
    display: none;
  }

  .products-header {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .sort-select {
    width: 100%;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .buy-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .newsletter-title {
    font-size: 2rem;
  }

  .newsletter-actions {
    flex-direction: column;
    align-items: center;
  }

  .newsletter-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .products-pagination .page-numbers a,
  .products-pagination .page-numbers span {
    padding: 10px 12px;
    font-size: 14px;
  }

  .container {
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .newsletter-title {
    font-size: 1.8rem;
  }

  .filter-group {
    margin-bottom: 20px;
  }

  .filter-title {
    font-size: 1rem;
    margin-bottom: 10px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .filter-count {
    display: none;
  }

  .product-content {
    padding: 25px 20px;
  }

  .product-title {
    font-size: 1.2rem;
  }

  .price-amount {
    font-size: 1.5rem;
  }

  .buy-buttons {
    flex-direction: column;
  }

  .container {
    padding: 0 15px;
  }
}
