/* Google Color Palette */
:root {
  --google-blue: #4285F4;
  --google-red: #DB4437;
  --google-yellow: #F4B400;
  --google-green: #0F9D58;
  --google-blue-light: #5A9CF8;
  --google-red-light: #E57373;
  --google-yellow-light: #FFD54F;
  --google-green-light: #4CAF50;
}

/* Main Container */
.catalog-container {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-green) 100%);
  color: #1a1a1a;
}

/* Header Styles */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 0.5rem 1rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header with dropdown menu */
.header-left {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.brand {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--google-blue);
  margin: 0;
  letter-spacing: 1px;
}

.brand-tagline {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.main-nav {
  display: flex;
  gap: 2rem;
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--google-blue);
  background: rgba(66, 133, 244, 0.1);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--google-blue);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

/* Dropdown menu */
.nav-item {
  position: relative;
  display: inline-block;
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  padding: 1rem 0;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.nav-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-dropdown a:hover {
  background: rgba(66, 133, 244, 0.1);
  color: var(--google-blue);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-button {
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #666;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.icon-button:hover {
  color: var(--google-blue);
  background: rgba(66, 133, 244, 0.1);
}

.admin-button {
  background: var(--google-blue);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.admin-button:hover {
  background: var(--google-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

/* Mobile Navigation - Improved */
.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: #1a1a1a;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-line.active:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-line.active:nth-child(2) {
  opacity: 0;
}

.hamburger-line.active:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Default mobile nav: sembunyi */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%; /* keluar tepat di bawah header */
  left: 0;
  right: 0;
  background: #fff;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  z-index: 2000; /* di atas main-header */
}

/* Saat hamburger diklik */
.mobile-nav.active {
  display: flex;
}

.mobile-nav .nav-link {
  padding: 1rem 0;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  transition: color 0.3s ease;
}

.mobile-nav .nav-link:hover {
  color: var(--google-blue);
}

.mobile-nav .admin-button {
  margin-top: 1rem;
  justify-content: center;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 6rem 2rem 4rem; /* tambah top padding agar tidak tertutup header */
  background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-green) 50%, var(--google-yellow) 100%);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-green) 50%, var(--google-yellow) 100%);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: inline-block;
  backdrop-filter: blur(10px);
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-description {
  font-size: 1.3rem;
  margin: 0 0 2rem 0;
  opacity: 0.9;
  line-height: 1.6;
}

.hero-cta {
  background: white;
  color: var(--google-blue);
  border: none;
  padding: 1rem 2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Catalog Section - More spacing */
.catalog-section {
  padding: 5rem 2rem;
  background: white;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h1 {
  font-size: 3rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
}

.section-header p {
  font-size: 1.3rem;
  color: #666;
  margin: 0 0 3rem 0;
}

.search-bar {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 1.25rem 1.25rem 1.25rem 3.5rem;
  padding-right: 4rem;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.search-input:focus {
  outline: none;
  border-color: var(--google-blue);
  box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.1);
  background: white;
}

.search-icon {
  position: absolute;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  font-size: 1.2rem;
}

.search-btn {
  position: absolute;
  right: 0.5rem;
  top: 20%;
  transform: translateY(-50%);
  background: var(--google-blue);
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-btn:hover {
  background: var(--google-blue-light);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* UMKM Grid - Larger and more spacious */
.umkm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}

.umkm-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e5e7eb;
  position: relative;
  min-height: 500px;
}

.umkm-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.category-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  margin-top: 20px;
}

.feature-filter-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.category-btn {
  background: #f2f2f2;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.category-btn.active, .category-btn:hover {
  background: var(--google-blue);
  color: #fff;
}

.feature-btn {
  background: #f2f2f2;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feature-btn.active, .feature-btn:hover {
  background: var(--google-green);
  color: #fff;
}

.best-seller-label {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--google-yellow);
  color: #fff;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.95em;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  z-index: 2;
  letter-spacing: 1px;
}

.card-image-container {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: #f8fafc;
  border-radius: 12px 12px 0 0;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.3s ease;
}

.umkm-card:hover .card-image-container img {
  transform: scale(1.08);
}

/* Slider styles */
.slider {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
}

.slider-prev { left: 10px; }
.slider-next { right: 10px; }


/* Card Content - Larger and more spacious */
.card-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 280px);
}

.umkm-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.umkm-description {
  color: #666;
  margin: 0 0 2rem 0;
  line-height: 1.6;
  font-size: 1.1rem;
  flex-grow: 1;
}

.umkm-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #666;
  font-size: 1.1rem;
}

.detail-icon {
  color: var(--google-blue);
  font-size: 1.2rem;
}

/* Modern feature badges - larger and more prominent */
.umkm-features-modern {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.feature-badge-modern {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  color: var(--google-blue);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 18px;
  padding: 0.5rem 1.2rem;
  box-shadow: 0 2px 8px rgba(66,133,244,0.08);
  letter-spacing: 0.3px;
  border: 1px solid #e5e7eb;
  white-space: nowrap; /* Mencegah text wrapping */
}

.feature-badge-modern .feature-icon {
  font-size: 1.2rem;
  color: var(--google-green);
}

.feature-badge-modern:last-child .feature-icon {
  color: var(--google-yellow);
}

/* Modern card actions: larger icon buttons */
.umkm-actions-modern {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.60rem; /* Mengurangi gap antara tombol */
  z-index: 2;
}

.wa-icon-btn, .maps-icon-btn {
  width: 48px; /* Sedikit lebih kecil */
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

/* Media query untuk responsif */
@media (max-width: 768px) {
  .umkm-actions-modern {
    bottom: 1rem;
    right: 1rem;
  }
  
  .wa-icon-btn, .maps-icon-btn {
    width: 44px;
    height: 44px;
    font-size: 1.3rem;
  }
}

.wa-icon-btn {
  background: var(--google-green);
  color: #fff;
}

.wa-icon-btn:hover {
  background: var(--google-green-light);
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(15, 157, 88, 0.3);
}

.maps-icon-btn {
  background: #f1f5f9;
  color: var(--google-blue);
}

.maps-icon-btn:hover {
  background: var(--google-blue-light);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

/* Footer */
.main-footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  padding: 4rem 2rem 2rem;
  position: relative;
  overflow: hidden;
}

.main-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--google-blue), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

.footer-brand h2 {
  color: #ffff;
  margin: 0 0 0.75rem 0;
  font-size: 1.8rem;
  font-weight: 700;
}

.footer-brand p {
  color: #ccc;
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
}

.footer-links a:hover {
  color: var(--google-blue);
  transform: translateY(-2px);
}

.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffff;
  transition: width 0.3s ease;
}

.footer-links a:hover::after {
  width: 100%;
}

.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 2rem;
  text-align: center;
  color: #999;
  font-size: 0.95rem;
  position: relative;
  z-index: 2;
}

.footer-bottom p {
  margin: 0 0 1rem 0;
  color: #ccc;
}

.powered-by {
  margin-top: 1rem;
  color: var(--google-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-weight: 500;
}

.powered-by img {
  height: 35px;
  width: auto;
  display: inline-block;
  margin-right: 0;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.powered-by img:hover {
  opacity: 1;
  transform: scale(1.05);
}

.powered-by strong {
  color: var(--google-blue);
  font-weight: 600;
}

/* Loading */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--google-blue) 0%, var(--google-green) 100%);
  color: white;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Pagination Styles */
.pagination-container {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

..pagination-container nav {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  padding: 0.75rem 1rem;
}

.pagination-container nav ul,
.pagination-container nav div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pagination-container nav a,
.pagination-container nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  color: #374151;
  text-decoration: none;
  font-weight: 600;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.pagination-container nav a:hover {
  background: var(--google-blue);
  color: #fff;
  border-color: var(--google-blue);
  transform: translateY(-1px);
}

.pagination-container nav span[aria-current="page"],
.pagination-container nav span.active {
  background: var(--google-blue);
  color: #fff;
  border-color: var(--google-blue);
}

.pagination-container nav span[aria-disabled="true"],
.pagination-container nav .disabled > span,
.pagination-container nav .disabled > a {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn {
  background: var(--google-blue);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--google-blue-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.pagination-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  opacity: 0.6;
}

.page-numbers {
  display: flex;
  gap: 0.5rem;
}

.page-number {
  background: #f8fafc;
  color: #666;
  border: 1px solid #e5e7eb;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  min-width: 40px;
  text-align: center;
}

.page-number:hover {
  background: var(--google-blue);
  color: white;
  border-color: var(--google-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.2);
}

.page-number.active {
  background: var(--google-blue);
  color: white;
  border-color: var(--google-blue);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .header-content {
    padding: 0 1rem;
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-left {
    gap: 1rem;
    flex-direction: column;
    text-align: center;
    width: 100%;
  }
  
  .brand-name {
    font-size: 1.3rem;
    text-align: center;
  }
  
  .brand-tagline {
    font-size: 0.85rem;
    text-align: center;
  }
  
  .main-nav {
    display: none;
  }
  
  .hamburger-menu {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-description {
    font-size: 1.1rem;
  }
  
  .catalog-section {
    padding: 2rem 1rem;
  }
  
  .umkm-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .card-content {
    padding: 2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .footer-links {
    justify-content: center;
    gap: 2rem;
  }
  
  .powered-by {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
  
  .powered-by img {
    height: 30px;
  }
  
  /* Mobile Pagination */
  .pagination {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }
  
  .page-numbers {
    order: -1;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .pagination-btn {
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 600px) {
  .brand-name {
    font-size: 1.2rem;
  }
  
  .brand-tagline {
    font-size: 0.8rem;
  }
  
  .umkm-card {
    min-height: 450px;
  }
  
  .card-content {
    padding: 1.5rem;
  }
  
  .umkm-name {
    font-size: 1.4rem;
  }
  
  .umkm-description {
    font-size: 1rem;
  }
  
  /* Small mobile pagination */
  .pagination {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  
  .page-number {
    padding: 0.5rem 0.75rem;
    min-width: 35px;
    font-size: 0.9rem;
  }
  
  .pagination-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .mobile-nav {
    top: 70px;
    padding: 1.5rem;
  }
  
  .mobile-nav .nav-link {
    font-size: 1rem;
    padding: 0.75rem 0;
  }
  
  .page-numbers {
    gap: 0.25rem;
  }
  
  .page-number {
    min-width: 30px;
    padding: 0.5rem;
    font-size: 0.85rem;
  }
}