@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --primary-color: #ee4d2d;
  --primary-hover: #d73211;
  --primary-gradient: linear-gradient(135deg, #ee4d2d 0%, #ff7337 100%);
  --secondary-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  --accent-color: #ff9800;
  --bg-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 20px 30px -10px rgba(238, 77, 45, 0.2);
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
}

/* Navbar */
.navbar-custom {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  sticky: top;
  z-index: 1030;
}

.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.4rem;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Hero Section */
.hero-section {
  background: var(--secondary-gradient);
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  color: #ffffff;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(238,77,45,0.25) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-title {
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  color: #9ca3af;
  font-size: 1.15rem;
}

/* Filter Controls Box */
.filter-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(226, 232, 240, 0.8);
  margin-top: -35px;
  position: relative;
  z-index: 100;
}

.search-wrapper {
  position: relative;
}

.search-wrapper i.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.search-input {
  padding-left: 46px;
  padding-right: 40px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.search-input:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.12);
}

.clear-search {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  display: none;
}

/* Category Pills */
.category-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.category-pills::-webkit-scrollbar {
  height: 4px;
}

.category-pills::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

.pill-btn {
  padding: 8px 16px;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: #f1f5f9;
  color: #475569;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  background: #e2e8f0;
  color: var(--text-main);
}

.pill-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.3);
}

/* Custom Select Dropdowns */
.custom-select {
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid var(--border-color);
  font-weight: 500;
  font-size: 0.9rem;
  color: #334155;
  background-color: #fff;
  cursor: pointer;
}

.custom-select:focus {
  border-color: #ee4d2d;
  box-shadow: 0 0 0 4px rgba(238, 77, 45, 0.12);
}

/* Product Grid & Cards */
.product-card {
  background: var(--card-bg);
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(238, 77, 45, 0.3);
}

.product-img-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  background-color: #f8fafc;
  overflow: hidden;
}

.product-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

/* Badges */
.badge-commission {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(238, 77, 45, 0.4);
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.badge-shop {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px 8px;
  border-radius: 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Product Content */
.product-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  margin-bottom: 10px;
}

.product-title:hover {
  color: #ee4d2d;
}

.price-tag {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ee4d2d;
  letter-spacing: -0.01em;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.sales-count {
  background: #fef2f2;
  color: #dc2626;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.commission-amount {
  color: #059669;
  font-weight: 700;
}

/* CTA Button */
.btn-shopee {
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(238, 77, 45, 0.2);
}

.btn-shopee:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(238, 77, 45, 0.35);
}

/* Floating Chat Admin Button */
.floating-chat-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  text-decoration: none;
  z-index: 1050;
  transition: all 0.3s ease;
}

.floating-chat-btn:hover {
  color: #ffffff;
  transform: scale(1.05) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* Stats Pill */
.stats-badge {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* Pagination */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 3px;
  color: #475569;
  font-weight: 600;
  border: 1px solid var(--border-color);
}

.pagination .page-item.active .page-link {
  background: var(--primary-gradient);
  border-color: transparent;
  color: #fff;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  background: #fff;
  border-radius: 20px;
  border: 1px dashed var(--border-color);
}

.empty-icon {
  font-size: 4rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

/* Mobile Responsiveness */
@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }
  .filter-box {
    padding: 16px;
    margin-top: -20px;
  }
  .price-tag {
    font-size: 1.1rem;
  }
  .floating-chat-btn span {
    display: none;
  }
  .floating-chat-btn {
    padding: 14px;
    border-radius: 50%;
  }
}

/* FAQ Section */
.faq-section {
  background: #ffffff;
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-top: 4rem;
}

.faq-title {
  font-weight: 800;
  font-size: 2rem;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.faq-accordion .accordion-item {
  border: 1px solid var(--border-color);
  border-radius: 14px !important;
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.faq-accordion .accordion-button {
  font-weight: 700;
  font-size: 1rem;
  color: #1e293b;
  background-color: #f8fafc;
  padding: 18px 20px;
  box-shadow: none !important;
}

.faq-accordion .accordion-button:not(.collapsed) {
  color: #ee4d2d;
  background-color: #fff5f2;
}

.faq-accordion .accordion-button::after {
  background-size: 1.1rem;
}

.faq-accordion .accordion-body {
  font-size: 0.95rem;
  line-height: 1.65;
  color: #475569;
  background-color: #ffffff;
  padding: 18px 20px;
}

