/* ==========================================================================
   TOKO ONLINE ISPARMO - DESIGN SYSTEM & STYLESHEET
   Clean Modern Tech Aesthetic | Dominant White, Black & Vibrant Orange
   Light & Dark Mode Support | Responsive Mobile-First
   ========================================================================== */

:root {
  /* Color Palette - Light Mode */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8F9FA;
  --bg-tertiary: #F1F3F5;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFFFF;
  --bg-overlay: rgba(15, 17, 21, 0.7);

  --text-primary: #121316;
  --text-secondary: #4A505A;
  --text-muted: #7E8695;
  --text-inverse: #FFFFFF;

  /* Brand Accents - Vibrant Orange */
  --brand-orange: #FF6B00;
  --brand-orange-hover: #E65A00;
  --brand-orange-light: #FFF0E6;
  --brand-orange-border: rgba(255, 107, 0, 0.25);
  --brand-orange-glow: rgba(255, 107, 0, 0.18);

  /* Neutrals & Borders */
  --border-light: #E5E7EB;
  --border-subtle: #ECEEF2;
  --border-accent: rgba(255, 107, 0, 0.4);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 14px 34px rgba(0, 0, 0, 0.09);
  --shadow-orange: 0 8px 24px rgba(255, 107, 0, 0.22);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);

  /* Typography & Layout */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --container-max: 1200px;
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-primary: #0C0D10;
  --bg-secondary: #14161B;
  --bg-tertiary: #1A1D24;
  --bg-card: #16181F;
  --bg-card-hover: #1C1F27;
  --bg-overlay: rgba(0, 0, 0, 0.85);

  --text-primary: #F8F9FA;
  --text-secondary: #A6ADB9;
  --text-muted: #6B7280;
  --text-inverse: #0C0D10;

  --brand-orange: #FF7A00;
  --brand-orange-hover: #FF8D24;
  --brand-orange-light: rgba(255, 122, 0, 0.12);
  --brand-orange-border: rgba(255, 122, 0, 0.35);
  --brand-orange-glow: rgba(255, 122, 0, 0.25);

  --border-light: #242832;
  --border-subtle: #1C2029;
  --border-accent: rgba(255, 122, 0, 0.5);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
  --shadow-orange: 0 8px 26px rgba(255, 122, 0, 0.28);
  --shadow-card: 0 4px 14px rgba(0, 0, 0, 0.3);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

[data-theme="dark"] .site-header {
  background-color: rgba(12, 13, 16, 0.88);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-orange) 0%, #D84315 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: 0 4px 12px var(--brand-orange-glow);
}

.brand-name {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--text-primary);
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--brand-orange);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--brand-orange);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--brand-orange-border);
  color: var(--brand-orange);
  transform: translateY(-1px);
}

.theme-icon-light,
.theme-icon-dark {
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

[data-theme="dark"] .theme-icon-light {
  display: block;
}
[data-theme="dark"] .theme-icon-dark {
  display: none;
}
[data-theme="light"] .theme-icon-light {
  display: none;
}
[data-theme="light"] .theme-icon-dark {
  display: block;
}

/* Header Buttons */
.btn-affiliate-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  border: 1px solid var(--brand-orange-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.btn-affiliate-nav:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
  transform: translateY(-1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 107, 0, 0.32);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-light);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--bg-tertiary);
  border-color: var(--brand-orange-border);
  color: var(--brand-orange);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(circle at 50% 0%, var(--brand-orange-light) 0%, transparent 60%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--brand-orange-border);
  border-radius: var(--radius-pill);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  background: var(--brand-orange);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--brand-orange);
}

.hero-badge-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero-title .highlight {
  color: var(--brand-orange);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 580px;
}

/* Dedicated Hero Search Bar & Dropdown */
.hero-search-wrapper {
  position: relative;
  width: 100%;
  max-width: 580px;
  margin: 0.6rem 0 0.4rem;
}

.hero-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.45rem 0.35rem 1.25rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.hero-search-bar:focus-within {
  border-color: var(--brand-orange);
  box-shadow: 0 8px 24px var(--brand-orange-glow);
}

.search-bar-icon {
  color: var(--brand-orange);
  font-size: 1.15rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-bar-input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  min-width: 0;
}

.search-clear-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.search-clear-btn:hover {
  color: var(--brand-orange);
}

.search-bar-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  background: var(--brand-orange);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.92rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.search-bar-submit-btn:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--brand-orange-glow);
}

/* Live Dropdown Results */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 80;
  max-height: 420px;
  overflow-y: auto;
  display: none;
  padding: 0.5rem;
}

.search-dropdown.open {
  display: block;
  animation: dropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 0.5rem 0.75rem 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
  cursor: pointer;
}

.dropdown-item:hover {
  background: var(--bg-secondary);
}

.dropdown-item-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-tertiary);
}

.dropdown-item-placeholder {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.dropdown-item-info {
  flex: 1;
  min-width: 0;
}

.dropdown-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.dropdown-item-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.76rem;
}

.dropdown-item-price {
  font-weight: 800;
  color: var(--brand-orange);
}

.dropdown-item-cat {
  color: var(--text-muted);
}

.dropdown-item-btn {
  padding: 0.35rem 0.75rem;
  background: var(--brand-orange);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
}

.dropdown-item-btn:hover {
  background: var(--brand-orange-hover);
}

.dropdown-footer {
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.dropdown-footer-btn {
  color: var(--brand-orange);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dropdown-footer-btn:hover {
  text-decoration: underline;
}

.dropdown-no-results {
  padding: 1.75rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.hero-search-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-top: 0.65rem;
}

.tags-label {
  color: var(--text-muted);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-right: 0.2rem;
}

.tags-label i {
  color: var(--brand-orange);
}

.quick-tag-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-tag-btn:hover {
  background: var(--brand-orange-light);
  color: var(--brand-orange);
  border-color: var(--brand-orange-border);
}

.hero-affiliate-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1.2rem;
  background: var(--brand-orange-light);
  border-left: 4px solid var(--brand-orange);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--text-primary);
}

.hero-affiliate-alert i {
  color: var(--brand-orange);
  font-size: 1.1rem;
  margin-top: 2px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.stat-number span {
  color: var(--brand-orange);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Hero Media / Banner */
.hero-media {
  position: relative;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  transition: transform var(--transition-normal);
}

.hero-banner-card:hover {
  transform: translateY(-4px);
}

.hero-banner-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.hero-floating-badge {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(18, 19, 22, 0.88);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-floating-badge i {
  color: var(--brand-orange);
}

/* ==========================================================================
   AFFILIATE PROMO CALLOUT
   ========================================================================== */
.affiliate-banner-section {
  padding: 1.75rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.affiliate-banner-box {
  background: linear-gradient(135deg, #181A20 0%, #0F1115 100%);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 107, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.affiliate-banner-box::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: var(--brand-orange);
  filter: blur(80px);
  opacity: 0.35;
  border-radius: 50%;
  pointer-events: none;
}

.affiliate-info {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.affiliate-icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid var(--brand-orange);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.affiliate-text h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #FFFFFF;
}

.affiliate-text p {
  font-size: 0.9rem;
  color: #CBD5E1;
}

.affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--brand-orange);
  color: #FFFFFF;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.35);
}

.affiliate-btn:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.45);
}

/* ==========================================================================
   PRODUCTS SECTION & CONTROLS
   ========================================================================== */
.products-section {
  padding: 4rem 0 5rem;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

/* Filter & Search Bar Controls */
.catalog-controls {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.search-and-sort {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 260px;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  outline: none;
  transition: all var(--transition-fast);
}

.search-input:focus {
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-glow);
}

.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sort-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

.sort-select {
  padding: 0.7rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  outline: none;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
}

.sort-select:focus {
  border-color: var(--brand-orange);
}

/* Category Filter Tabs */
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.filter-btn.active {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
  box-shadow: 0 4px 12px var(--brand-orange-glow);
}

.filter-count {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.08);
}

.filter-btn.active .filter-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Product Card */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--brand-orange-border);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--brand-orange-glow);
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.img-fallback-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--brand-orange);
  gap: 0.5rem;
}

.img-fallback-placeholder i {
  font-size: 3.5rem;
  opacity: 0.85;
}

.img-fallback-placeholder span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.card-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: inline-flex;
  align-items: center;
}

.card-badge.badge-featured {
  background: var(--brand-orange);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 107, 0, 0.35);
}

.card-badge.badge-category {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-light);
}

[data-theme="dark"] .card-badge.badge-category {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-color: var(--border-light);
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.6rem;
}

.card-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-orange);
  background: var(--brand-orange-light);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-box {
  display: flex;
  flex-direction: column;
}

.price-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.btn-buy-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 1.15rem;
  background: var(--brand-orange);
  color: #FFFFFF;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px var(--brand-orange-glow);
  white-space: nowrap;
}

.btn-buy-card:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 107, 0, 0.35);
}

.btn-affiliate-card {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.btn-affiliate-card:hover {
  color: var(--brand-orange);
}

/* Empty State */
.empty-catalog {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-light);
}

.empty-catalog i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.empty-catalog h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.empty-catalog p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   ABOUT & CREATOR BRANDING SECTION
   ========================================================================== */
.creator-section {
  padding: 4.5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.creator-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 3.5rem;
}

.creator-card-box {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.creator-avatar-wrap {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  border: 3px solid var(--brand-orange);
  padding: 3px;
  background: var(--bg-card);
  box-shadow: 0 6px 18px var(--brand-orange-glow);
  overflow: hidden;
}

.creator-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 15%;
}

.creator-name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.creator-handle {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--brand-orange);
  margin-bottom: 0.75rem;
}

.creator-role {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  list-style: none;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  border: 1px solid var(--border-light);
}

.social-btn:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
  transform: translateY(-2px);
}

.creator-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.creator-tag {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.creator-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.2;
}

.creator-desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.creator-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 0.5rem;
}

.feature-box {
  background: var(--bg-card);
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feature-box i {
  color: var(--brand-orange);
  font-size: 1.25rem;
  margin-top: 2px;
}

.feature-box strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.feature-box span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ==========================================================================
   AEO & FAQ SECTION
   ========================================================================== */
.faq-section {
  padding: 4.5rem 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: var(--brand-orange-border);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--brand-orange);
}

.faq-question i {
  color: var(--brand-orange);
  font-size: 0.9rem;
  transition: transform var(--transition-normal);
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  padding: 0 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 350px;
  padding: 0 1.5rem 1.5rem;
}

/* ==========================================================================
   HOW TO BUY & AFFILIATE GUIDE MODAL / MODAL WINDOW
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-backdrop.open {
  display: flex;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
}

.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.step-num {
  width: 28px;
  height: 28px;
  background: var(--brand-orange);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.step-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.step-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 0.9fr 0.9fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-col ul a:hover {
  color: var(--brand-orange);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--brand-orange);
  font-weight: 600;
}

/* ==========================================================================
   FLOATING ACTION BUTTONS
   ========================================================================== */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 99;
}

.btn-float-wa {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
}

.btn-float-wa:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  color: #FFFFFF;
}

.btn-back-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.btn-back-top.show {
  opacity: 1;
  visibility: visible;
}

.btn-back-top:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
  transform: translateY(-2px);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .creator-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hero-section {
    padding: 3rem 0 2rem;
  }
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .affiliate-banner-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .creator-features {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .floating-actions {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}
