/* Products Section */
.products-section {
  padding: 80px 0;
  background: #f8fafc;
}

.products-intro {
  text-align: center;
  margin-bottom: 60px;
}

.products-intro h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.products-intro p {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Product Categories */
.product-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 80px;
}

.category-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.category-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.category-icon i {
  font-size: 2rem;
  color: white;
}

.category-card h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.category-card p {
  color: #64748b;
  margin-bottom: 1.5rem;
}

.category-products {
  list-style: none;
}

.category-products li {
  padding: 0.5rem 0;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
}

.category-products li:before {
  content: "✓";
  color: #2563eb;
  font-weight: bold;
  margin-right: 0.5rem;
}

.category-products li:last-child {
  border-bottom: none;
}

.category-btn {
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}

.category-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* Category Products Display */
.category-products-display {
  grid-column: 1 / -1;
  background: white;
  border-radius: 16px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.category-products-display.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.category-header {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #f1f5f9;
}

.category-header h3 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.category-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.individual-product {
  background: white;
  border-radius: 12px;
  padding: 0;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  overflow: hidden;
  text-align: center;
}

.individual-product:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.15);
}

.product-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

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

.product-image i {
  font-size: 3rem;
  color: #64748b;
}

.individual-product:hover .product-image img {
  transform: scale(1.1);
}

.individual-product:hover .product-image i {
  transform: scale(1.1);
}

.product-info {
  padding: 1.5rem;
}

.product-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.product-detail-btn {
  background: #2563eb;
  color: white;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 100%;
}

.product-detail-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.close-category-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.2rem;
  color: #64748b;
}

.close-category-btn:hover {
  background: #e2e8f0;
  color: #374151;
}

/* Featured Products */
.featured-products {
  background: white;
  padding: 80px 0;
}

.featured-title {
  text-align: center;
  margin-bottom: 60px;
}

.featured-title h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e2e8f0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

.product-card .product-image {
  height: 200px;
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card .product-image i {
  font-size: 4rem;
  color: #64748b;
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #2563eb;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-content {
  padding: 1.5rem;
}

.product-content h4 {
  font-size: 1.25rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.product-content p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.product-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.product-features li {
  font-size: 0.85rem;
  color: #475569;
  padding: 0.25rem 0;
}

.product-features li:before {
  content: "•";
  color: #2563eb;
  margin-right: 0.5rem;
}

.product-btn {
  background: #2563eb;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.product-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 768px) {
  .products-intro h2,
  .featured-title h2,
  .cta-section h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 200px;
    text-align: center;
  }

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

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

/* Clickable Products */
.clickable-product {
  cursor: pointer;
  transition: all 0.3s ease;
}

.clickable-product:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.2);
}

.product-features {
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.feature-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.product-action {
  margin-top: auto;
}

.btn-detail {
  margin-top: 20px;
  background: #2563eb;
  color: white;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-detail:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

/* Product Detail Page */
.product-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.product-detail-content {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.product-detail-header {
  background: #f8fafc;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #64748b;
}

.breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #1d4ed8;
}

.breadcrumb span {
  color: #94a3b8;
}

.product-detail-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem 2rem;
}

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

.product-main-image {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  text-align: center;
}

.image-placeholder i {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.image-placeholder p {
  font-size: 1.1rem;
  margin: 0;
}

.product-info-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.product-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-header h1 {
  font-size: 2.5rem;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.product-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #dbeafe;
  color: #1e40af;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  width: fit-content;
}

.product-description h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.product-description p {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  margin: 0;
}

.product-features h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #475569;
  font-size: 1rem;
}

.features-list li i {
  color: #10b981;
  font-size: 1.1rem;
}

.product-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-primary,
.btn-secondary {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-size: 1rem;
}

.btn-primary {
  background: #2563eb;
  color: white;
}

.btn-primary:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* Product Additional Info */
.product-additional-info {
  border-top: 1px solid #e2e8f0;
  padding: 2rem;
}

.info-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #e2e8f0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #64748b;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
}

.tab-btn.active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

.tab-btn:hover {
  color: #2563eb;
}

.tab-content {
  min-height: 300px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane h3 {
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.tab-pane p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.specs-grid {
  display: grid;
  gap: 1rem;
}

.spec-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.spec-label {
  font-weight: 600;
  color: #475569;
}

.spec-value {
  color: #1e293b;
}

.support-info {
  display: grid;
  gap: 1.5rem;
}

.support-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
}

.support-item i {
  font-size: 2rem;
  color: #2563eb;
}

.support-item h4 {
  margin: 0 0 0.5rem 0;
  color: #1e293b;
  font-size: 1.1rem;
}

.support-item p {
  margin: 0;
  color: #64748b;
}

.back-to-products {
  padding: 2rem;
  text-align: center;
  border-top: 1px solid #e2e8f0;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  color: #475569;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-back:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
}

/* Product Not Found */
.product-not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.not-found-content {
  text-align: center;
  max-width: 400px;
}

.not-found-content i {
  font-size: 4rem;
  color: #f59e0b;
  margin-bottom: 1rem;
}

.not-found-content h2 {
  font-size: 2rem;
  color: #1e293b;
  margin-bottom: 1rem;
}

.not-found-content p {
  color: #64748b;
  margin-bottom: 2rem;
}

/* Responsive Design for Detail Page */
@media (max-width: 768px) {
  .product-detail-main {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }

  .product-header h1 {
    font-size: 2rem;
  }

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

  .info-tabs {
    flex-direction: column;
  }

  .tab-btn {
    text-align: left;
  }

  .spec-item {
    grid-template-columns: 1fr;
  }

  .support-item {
    flex-direction: column;
    text-align: center;
  }
}

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.produk-page .product-description {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.produk-detail-page .product-description {
  font-size: 1.1rem;
  color: #64748b;
  line-height: 1.6;
  display: block;
  overflow: visible;
}
