/* ==========================================================================
   ABANG SHOP 🛒 — Affiliate Marketplace & Recommendations Stylesheet
   Inherits design language, dark obsidian theme, glassmorphic UI, and typography
   from ABANGADEKGANTENG main ecosystem.
   ========================================================================== */

@import url("../css/variables.css");
@import url("../css/animation.css");

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background-color: var(--bg-primary, #070913);
  color: var(--text-primary, #f8fafc);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Background Ambient Glow Orbs */
.bg-ambient-glow {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.glow-orb-1 {
  position: absolute;
  top: 5%;
  left: 15%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
  filter: blur(60px);
}

.glow-orb-2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, rgba(59, 130, 246, 0) 70%);
  filter: blur(60px);
}

.glow-orb-3 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(236, 72, 153, 0.08) 0%, rgba(236, 72, 153, 0) 70%);
  filter: blur(80px);
}

/* Base Container */
.shop-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Header & Single Universal Hamburger Navigation
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 9, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  height: 70px;
  display: flex;
  align-items: center;
  transition: background var(--transition-fast, 0.2s ease), border-color var(--transition-fast, 0.2s ease);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary, #ffffff);
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  transition: opacity 0.2s ease;
}

.header-logo:hover {
  opacity: 0.9;
}

.logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent-gradient, linear-gradient(135deg, #a855f7 0%, #6366f1 50%, #3b82f6 100%));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

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

/* Hamburger Button */
.hamburger-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.hamburger-icon-wrapper {
  position: relative;
  width: 22px;
  height: 22px;
}

.icon-hamburger, .icon-close {
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
}

.icon-hamburger {
  opacity: 1;
  transform: rotate(0deg);
}

.icon-close {
  opacity: 0;
  transform: rotate(-90deg);
}

.hamburger-btn[aria-expanded="true"] .icon-hamburger {
  opacity: 0;
  transform: rotate(90deg);
}

.hamburger-btn[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

/* Nav Menu Backdrop & Panel */
.nav-menu-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-menu-backdrop.active,
.nav-menu-backdrop.open,
.modal-backdrop.active,
.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-menu-panel,
.nav-menu {
  position: fixed;
  top: 80px;
  right: 1.25rem;
  width: calc(100% - 2.5rem);
  max-width: 380px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  background: rgba(13, 18, 36, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(139, 92, 246, 0.15);
  z-index: 160;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu-panel.active,
.nav-menu-panel.open,
.nav-menu.active,
.nav-menu.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.nav-panel-inner,
.nav-menu-inner {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.nav-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-panel-title,
.nav-menu-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #94a3b8);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.nav-panel-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c084fc;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-panel-links,
.nav-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.nav-link-item,
.nav-menu-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  color: var(--text-secondary, #cbd5e1);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-link-item:hover,
.nav-menu-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateX(3px);
}

.nav-link-item.active,
.nav-menu-link.active {
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.4);
  color: #ffffff;
  font-weight: 600;
}

.nav-link-icon {
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.nav-link-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.nav-link-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.nav-link-desc {
  font-size: 0.75rem;
  color: #94a3b8;
}

.nav-link-content {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-link-arrow {
  color: var(--text-muted, #64748b);
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.nav-menu-link:hover .nav-link-arrow {
  transform: translateX(3px);
  color: #ffffff;
}

.nav-menu-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 0.85rem 0;
}

.nav-panel-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-open-settings,
.nav-menu-settings-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-open-settings:hover,
.nav-menu-settings-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.settings-badge {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.2);
  color: #c084fc;
}

.nav-menu-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-top: 0.35rem;
}

.secondary-nav-link {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.secondary-nav-link:hover {
  color: #ffffff;
}

.secondary-dot {
  color: var(--text-muted, #64748b);
  font-size: 0.75rem;
}

/* ==========================================================================
   Hero Section & Profile Banner
   ========================================================================== */
.shop-hero {
  padding: 3rem 0 2rem 0;
  text-align: center;
}

.shop-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 9999px;
  color: #c084fc;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: pulseAnimation 2s infinite ease-in-out;
}

@keyframes pulseAnimation {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.shop-hero-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(2rem, 1.6rem + 2.2vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 40%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.shop-hero-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  color: var(--text-secondary, #94a3b8);
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.6;
}

/* Marketplace Disclaimer Notice Banner */
.marketplace-notice-banner {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  max-width: 800px;
  margin: 0 auto 2rem auto;
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  text-align: left;
}

.notice-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.notice-body {
  font-size: 0.875rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.55;
}

.notice-body strong {
  color: #ffffff;
}

/* Affiliate Profile Hero Banner Card */
.affiliate-profile-banner {
  background: linear-gradient(135deg, rgba(238, 77, 45, 0.12) 0%, rgba(139, 92, 246, 0.15) 50%, rgba(59, 130, 246, 0.12) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(238, 77, 45, 0.35);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(238, 77, 45, 0.15);
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .affiliate-profile-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.25rem;
  }
}

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

.profile-avatar-box {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff7337 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 0 20px rgba(238, 77, 45, 0.4);
  flex-shrink: 0;
}

.profile-text-content {
  text-align: left;
}

.profile-badge-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.profile-badge-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: rgba(238, 77, 45, 0.25);
  color: #ff7a59;
  border: 1px solid rgba(238, 77, 45, 0.4);
}

.profile-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.2rem;
}

.profile-desc {
  font-size: 0.875rem;
  color: var(--text-secondary, #94a3b8);
}

.profile-actions-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-shopee-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #ee4d2d 0%, #f05d40 100%);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(238, 77, 45, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-shopee-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(238, 77, 45, 0.5);
}

.btn-webview-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-webview-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   Filter, Search & Controls Toolbar
   ========================================================================== */
.shop-toolbar-card {
  background: rgba(13, 18, 36, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.search-sort-row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .search-sort-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-input-wrap {
  position: relative;
  flex: 1;
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted, #64748b);
  pointer-events: none;
}

.shop-search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: rgba(7, 9, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #ffffff;
  font-size: 0.9375rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.shop-search-input:focus {
  border-color: var(--accent-primary, #8b5cf6);
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.25);
}

.shop-search-input::placeholder {
  color: var(--text-muted, #64748b);
}

.sort-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(7, 9, 19, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0 0.85rem;
  height: 44px;
}

.sort-label {
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  white-space: nowrap;
}

.shop-sort-select {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  cursor: pointer;
  padding: 0.5rem 0;
}

.shop-sort-select option {
  background: #0d1224;
  color: #ffffff;
}

/* Category Filter Chips */
.category-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

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

.category-chips-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.filter-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-chip-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.filter-chip-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.2);
}

.filter-chip-count {
  font-size: 0.75rem;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
}

.filter-chip-btn.active .filter-chip-count {
  background: rgba(139, 92, 246, 0.4);
  color: #ffffff;
}

/* ==========================================================================
   Product Cards Grid
   Responsive: 1 col (mobile), 2 col (tablet), 3-4 col (desktop)
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Product Card */
.product-card {
  background: rgba(13, 18, 36, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(238, 77, 45, 0.4);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(238, 77, 45, 0.15);
}

.product-card-top {
  margin-bottom: 1.25rem;
}

.product-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.product-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.product-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
}

.product-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.35;
}

.product-category-label {
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  margin-bottom: 0.75rem;
}

.product-recommendation-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.product-recommendation-note span {
  color: #10b981;
}

.product-card-bottom {
  margin-top: 1rem;
}

.btn-view-product {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background: rgba(238, 77, 45, 0.15);
  border: 1px solid rgba(238, 77, 45, 0.35);
  color: #ff7a59;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-product:hover {
  background: #ee4d2d;
  border-color: #ee4d2d;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(238, 77, 45, 0.4);
}

/* Empty Search Results */
.no-results-box {
  background: rgba(13, 18, 36, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 3.5rem 1.5rem;
  text-align: center;
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 3.5rem;
}

.no-results-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.no-results-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Affiliate Disclosure & Marketplace FAQ
   ========================================================================== */
.shop-disclosure-card {
  background: rgba(13, 18, 36, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 2rem;
  margin-bottom: 3.5rem;
}

.disclosure-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.disclosure-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.disclosure-body {
  font-size: 0.875rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.7;
}

.disclosure-body p {
  margin-bottom: 0.75rem;
}

.disclosure-body p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: rgba(7, 9, 19, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3.5rem 0 2rem 0;
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.footer-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-main,
.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .footer-main,
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .footer-main {
    grid-template-columns: 1.8fr 1fr 1.2fr;
  }
  .footer-top-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand-col,
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: #ffffff;
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.footer-tagline,
.footer-bio {
  font-size: 0.875rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.6;
  max-width: 360px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-heading,
.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.footer-link-list,
.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-link-list a,
.footer-links-list a {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link-list a:hover,
.footer-links-list a:hover {
  color: #ffffff;
}

.footer-brand-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.footer-brand-tagline {
  font-size: 0.875rem;
  color: #c084fc;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.footer-disclosure-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
  line-height: 1.5;
  margin-bottom: 2rem;
}

.footer-bottom,
.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
  color: var(--text-muted, #64748b);
}

@media (min-width: 640px) {
  .footer-bottom,
  .footer-bottom-bar {
    flex-direction: row;
  }
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal-links a {
  color: var(--text-muted, #64748b);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-legal-links a:hover {
  color: #ffffff;
}

/* ==========================================================================
   Global Settings Modal
   ========================================================================== */
.settings-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.settings-modal-backdrop.active,
.settings-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.settings-modal-card,
.settings-modal-dialog {
  width: 100%;
  max-width: 440px;
  background: rgba(13, 18, 36, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
  transform: translateY(10px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  z-index: 210;
}

.settings-modal-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.96);
  opacity: 0;
  pointer-events: none;
}

.settings-modal-backdrop.active .settings-modal-card,
.settings-modal-backdrop.open .settings-modal-card {
  transform: translateY(0) scale(1);
}

.settings-modal-dialog.active,
.settings-modal-dialog.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.settings-modal-header,
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.settings-modal-title,
.modal-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
}

.settings-modal-close-btn,
.btn-close-settings {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.settings-modal-close-btn:hover,
.btn-close-settings:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.modal-body {
  display: flex;
  flex-direction: column;
}

.setting-group {
  margin-bottom: 1rem;
}

.setting-label,
.settings-group-label {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #94a3b8);
  margin-bottom: 0.65rem;
  font-weight: 600;
  display: block;
}

.theme-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.theme-option-btn {
  padding: 0.65rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.theme-option-btn.active {
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.5);
  color: #ffffff;
  font-weight: 600;
}

.accent-options-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.accent-option-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.25rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.accent-swatch-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent-swatch);
}

.accent-option-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  font-weight: 600;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(13, 18, 36, 0.95);
  border: 1px solid rgba(139, 92, 246, 0.4);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 300;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-container.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ==========================================================================
   Product Detail Page Styles
   ========================================================================== */
.product-detail-section {
  padding-top: 1.5rem;
  padding-bottom: 3.5rem;
}

.breadcrumb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-secondary, #94a3b8);
  list-style: none;
}

.breadcrumb-item a {
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
  color: #ffffff;
}

.breadcrumb-separator {
  color: #64748b;
  font-size: 0.75rem;
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 500;
}

.btn-back-shop {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #94a3b8);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.btn-back-shop:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.product-detail-card {
  background: rgba(13, 18, 36, 0.75);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.6);
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
}

@media (min-width: 768px) {
  .product-detail-card {
    padding: 2.5rem;
  }
}

.product-detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(238, 77, 45, 0.6), rgba(168, 85, 247, 0.6), transparent);
}

.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 880px) {
  .product-detail-layout {
    grid-template-columns: 380px 1fr;
    gap: 3rem;
  }
}

@media (min-width: 1080px) {
  .product-detail-layout {
    grid-template-columns: 440px 1fr;
    gap: 3.5rem;
  }
}

/* Product Image Area */
.product-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
  border-radius: 20px;
  background: radial-gradient(circle at 50% 40%, rgba(238, 77, 45, 0.12) 0%, rgba(15, 23, 42, 0.8) 75%);
  border: 1px solid rgba(238, 77, 45, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6), 0 0 30px rgba(238, 77, 45, 0.1);
  padding: 2rem;
}

.product-image-ambient {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238, 77, 45, 0.35) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}

.product-image-icon {
  font-size: clamp(4.5rem, 4rem + 2vw, 6rem);
  line-height: 1;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.6));
  animation: floatAnimation 4s ease-in-out infinite;
}

@keyframes floatAnimation {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.product-image-badge-tag {
  position: absolute;
  bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(7, 9, 19, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

/* Product Info Column */
.product-info-column {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.product-detail-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
}

.badge-affiliate-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(238, 77, 45, 0.2);
  border: 1px solid rgba(238, 77, 45, 0.45);
  color: #ff7a59;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.badge-category-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary, #94a3b8);
  font-size: 0.75rem;
  font-weight: 500;
}

.product-detail-title {
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.product-detail-category-subtitle {
  font-size: 0.9375rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.product-detail-notice-box {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(238, 77, 45, 0.25);
  border-left: 3px solid #ee4d2d;
  border-radius: 12px;
  padding: 0.875rem 1.15rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.product-detail-notice-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.product-detail-notice-text {
  font-size: 0.8125rem;
  color: #cbd5e1;
  line-height: 1.5;
}

.product-detail-notice-text strong {
  color: #ffffff;
}

.product-detail-desc {
  font-size: 0.95rem;
  color: var(--text-secondary, #94a3b8);
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* Main Shopee View Button */
.btn-view-on-shopee {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1rem 2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #ee4d2d 0%, #ff5733 100%);
  color: #ffffff;
  font-size: 1.0625rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 25px rgba(238, 77, 45, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 320px;
}

.btn-view-on-shopee:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(238, 77, 45, 0.6);
}

.btn-view-on-shopee:active {
  transform: translateY(0);
}

.shopee-security-disclaimer {
  margin-top: 0.875rem;
  font-size: 0.75rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Related Recommendations Section */
.related-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.related-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.see-all-link {
  font-size: 0.875rem;
  color: #ff7a59;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.see-all-link:hover {
  color: #ffffff;
}

