/* ================================================
   BESTARCHERYGEAR - OPTIMIZED CSS FOR gear.html
   ================================================ */

/* ===================== THEME & BASE ===================== */
:root {
  --bg: #f7fafc;
  --text: #1f2937;
  --text-rgb: 31, 41, 55;
  --card: #ffffff;
  --card-bg: #ffffff;
  --border-color: #e5e7eb;
  --muted: #6b7280;
  --shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.12);
  --emerald-200: #a7f3d0;
  --emerald-700: #046c4e;
  --emerald-800: #022c22;
  --emerald-900: #014634;
  --amber-500: #f59e0b;
  --amber-600: #d97706;
  --white: #ffffff;
  --transition: all 0.25s ease;
  --radius: 12px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Orbitron", serif;
  --input-bg: #ffffff;
  --safe-area-inset-top: env(safe-area-inset-top, 0px);
  --safe-area-inset-right: env(safe-area-inset-right, 0px);
  --safe-area-inset-bottom: env(safe-area-inset-bottom, 0px);
  --safe-area-inset-left: env(safe-area-inset-left, 0px);
}

[data-theme="dark"] {
  --bg: #0f172a;
  --text: #f1f5f9;
  --text-rgb: 241, 245, 249;
  --card: #1e293b;
  --card-bg: #1e293b;
  --border-color: #334155;
  --muted: #94a3b8;
  --shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.4);
  --emerald-200: #065f46;
  --emerald-700: #10b981;
  --emerald-900: #065f46;
  --input-bg: #1e293b;
}

/* ===================== BASE RESET ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Utility class untuk padding safe area */
.safe-padding {
  padding-top: var(--safe-area-inset-top);
  padding-right: var(--safe-area-inset-right);
  padding-bottom: var(--safe-area-inset-bottom);
  padding-left: var(--safe-area-inset-left);
}

.safe-padding-bottom {
  padding-bottom: var(--safe-area-inset-bottom);
}

/* ===================== LOADING SCREEN ===================== */
.loader {
  position: fixed;
  inset: 0;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-text {
  font-weight: 600;
  color: var(--emerald-700);
  font-size: 1.1rem;
}

.checkout-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===================== NAVBAR ===================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 99997;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] .site-nav {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.site-nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .site-nav.scrolled {
  background: rgba(15, 23, 42, 0.97);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  padding: 0 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--emerald-700);
  text-decoration: none;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.site-title .accent {
  color: var(--amber-500);
  font-weight: 900;
}

.site-title:hover {
  transform: translateY(-1px);
  text-shadow: 0 2px 10px rgba(4, 108, 78, 0.3);
}

[data-theme="dark"] .site-title {
  color: var(--emerald-300);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .site-title .accent {
  color: #fbbf24;
}

[data-theme="dark"] .site-title:hover {
  text-shadow: 0 2px 12px rgba(16, 185, 129, 0.6);
}

/* ===================== HAMBURGER MENU ===================== */
.nav-toggle {
  position: relative;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  width: 50px;
  height: 50px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-toggle {
  background: rgba(241, 245, 249, 0.15); /* Perbaikan: tambahkan rgba() */
  border: 1px solid rgba(255, 255, 255, 0.25); /* Perbaikan: border lebih terang */
}

.nav-toggle:hover {
  background: rgba(223, 30, 30, 0.3);
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-toggle:hover {
  background: rgba(241, 245, 249, 0.25); /* Gunakan warna yang sama dengan base */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.35); /* Border lebih terang saat hover */
}

.nav-toggle[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.4);
}

[data-theme="dark"] .nav-toggle[aria-expanded="true"] {
  background: rgba(241, 245, 249, 0.3); /* Lebih terang saat expanded */
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Hamburger Icon */
.hamburger {
  width: 24px;
  height: 18px;
  position: relative;
  transform: rotate(0deg);
  transition: .5s ease-in-out;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2),
.hamburger span:nth-child(3) { top: 8px; }
.hamburger span:nth-child(4) { top: 16px; }

.hamburger.active span:nth-child(1) {
  top: 8px;
  width: 0%;
  left: 50%;
}

.hamburger.active span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
}

.hamburger.active span:nth-child(4) {
  top: 8px;
  width: 0%;
  left: 50%;
}

/* ===================== NAV LINKS ===================== */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(4, 108, 78, 0.1), rgba(245, 158, 11, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav-link:hover::before {
  opacity: 1;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(4, 108, 78, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .nav-link {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

[data-theme="dark"] .nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-link.active {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-800));
  color: white;
  border-color: var(--emerald-700);
  box-shadow: 0 4px 20px rgba(4, 108, 78, 0.3);
}

[data-theme="dark"] .nav-link.active {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}

.nav-link svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: all 0.3s ease;
}

.nav-link:hover svg {
  transform: scale(1.1);
  stroke: var(--emerald-700);
}

[data-theme="dark"] .nav-link:hover svg {
  stroke: var(--emerald-300);
}

.nav-link.active svg {
  stroke: white;
}

/* ===================== ACTION BUTTONS ===================== */
.nav-action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 12px;
}

.nav-action-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .nav-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-action-btn svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  transition: all 0.3s ease;
}

.nav-action-btn:hover svg {
  transform: scale(1.1);
  stroke: var(--emerald-700);
}

[data-theme="dark"] .nav-action-btn:hover svg {
  stroke: var(--emerald-300);
}

/* Specific button colors */
#wishlistBtn svg { stroke: #ec4899; }
#cartBtn svg { stroke: #f59e0b; }
#themeToggle svg { stroke: #8b5cf6; }

[data-theme="dark"] #wishlistBtn svg { stroke: #f472b6 !important; }
[data-theme="dark"] #cartBtn svg { stroke: #fbbf24 !important; }
[data-theme="dark"] #themeToggle svg { stroke: #a78bfa !important; }

#wishlistBtn:hover { background: rgba(236, 72, 153, 0.1); border-color: rgba(236, 72, 153, 0.3); }
#cartBtn:hover { background: rgba(245, 158, 11, 0.1); border-color: rgba(245, 158, 11, 0.3); }
#themeToggle:hover { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.3); }

[data-theme="dark"] #wishlistBtn:hover { background: rgba(236, 72, 153, 0.2); border-color: rgba(236, 72, 153, 0.4); }
[data-theme="dark"] #cartBtn:hover { background: rgba(245, 158, 11, 0.2); border-color: rgba(245, 158, 11, 0.4); }
[data-theme="dark"] #themeToggle:hover { background: rgba(139, 92, 246, 0.2); border-color: rgba(139, 92, 246, 0.4); }

#themeToggle {
  background: linear-gradient(135deg, rgba(4, 108, 78, 0.1), rgba(245, 158, 11, 0.1));
  border: 1px solid rgba(4, 108, 78, 0.2);
}

[data-theme="dark"] #themeToggle {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(251, 191, 36, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.nav-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-size: 10px;
  font-weight: 900;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid var(--card);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
  z-index: 2;
}

[data-theme="dark"] .nav-badge {
  background: linear-gradient(135deg, #f87171, #ef4444);
  border: 2px solid rgba(15, 23, 42, 0.95);
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.6);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ===================== USER INFO ===================== */
#userInfoNav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] #userInfoNav {
  border-left-color: rgba(255, 255, 255, 0.1);
}

#userNameDisplay {
  font-weight: 600;
  color: var(--emerald-700);
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  border: 1px solid rgba(4, 108, 78, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

[data-theme="dark"] #userNameDisplay {
  color: var(--emerald-300);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(16, 185, 129, 0.2);
}

#logoutBtnNav {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #ef4444;
  padding: 8px 20px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

#logoutBtnNav:hover {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

[data-theme="dark"] #logoutBtnNav {
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ===================== MOBILE RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .nav-toggle {
    display: flex !important;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    width: 320px;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.15);
    padding: 30px 24px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow-y: auto;
  }

  [data-theme="dark"] .nav-links {
    background: rgba(15, 23, 42, 0.95);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .menu-content {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
    padding: 16px 24px;
    font-size: 1rem;
    margin-bottom: 4px;
    background: rgba(255, 255, 255, 0.2);
  }

  [data-theme="dark"] .nav-link {
    background: rgba(255, 255, 255, 0.05);
  }

  .nav-action-buttons {
    margin: 24px 0 0 0;
    justify-content: center;
    gap: 16px;
  }

  .nav-action-btn {
    width: 60px;
    height: 60px;
  }

  .nav-action-btn svg {
    width: 26px;
    height: 26px;
  }

  .desktop-only {
    display: none;
  }

  #userInfoNav {
    margin: 24px 0 0 0;
    padding: 24px 0 0 0;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-direction: column;
    gap: 16px;
    width: 100%;
  }

  [data-theme="dark"] #userInfoNav {
    border-top-color: rgba(255, 255, 255, 0.1);
  }

  #userNameDisplay {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  #logoutBtnNav {
    width: 100%;
    padding: 12px;
  }
}

@media (min-width: 1025px) {
  .nav-toggle {
    display: none !important;
  }

  .nav-links {
    position: static !important;
    transform: none !important;
    height: auto !important;
    width: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  .menu-content {
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
  }

  .nav-link {
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
  }

  .nav-action-buttons {
    margin-left: 12px !important;
  }

  .desktop-only {
    display: flex !important;
  }
}

.nav-overlay {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ===================== TOAST STYLES ===================== */
.toast-message {
  position: fixed !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: #10b981 !important;
  color: white !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  animation: toast 3s ease forwards !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.toast-error {
  background: #ef4444 !important;
}

.toast-info {
  background: #3b82f6 !important;
}

.toast-success {
  background: #10b981 !important;
}

@keyframes toast {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  10% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  90% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* ===================== HERO CAROUSEL ===================== */
.hero-carousel {
  position: relative;
  height: 560px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1.125rem;
  margin-bottom: 24px;
}

.btn-primary {
  background: var(--amber-500);
  color: white;
  padding: 12px 28px;
  border-radius: 9999px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary:hover {
  background: var(--amber-600);
  transform: translateY(-2px);
}

.carousel-prev,
.carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: 0.3s;
}

.carousel-dot.active {
  background: #fbbf24;
  width: 36px;
  border-radius: 6px;
}

/* ===================== SEARCH BAR ===================== */
.search-wrapper {
  position: sticky;
  top: 70px;
  z-index: 990;
  padding: 28px 0;
  background: var(--card);
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

[data-theme="dark"] .search-wrapper {
  background: rgba(15, 23, 42, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-container {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 16px 56px 16px 20px;
  border: 2px solid #d1d5db;
  border-radius: 9999px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.search-input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

[data-theme="dark"] .search-input::placeholder {
  color: #94a3b8;
}

.search-input:focus {
  border-color: var(--amber-500);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.2);
  transform: scale(1.005);
}

.search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  color: #6b7280;
  pointer-events: auto;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.search-icon:hover {
  color: var(--amber-500);
  transform: translateY(-50%) scale(1.15);
}

.search-history {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  max-height: 220px;
  overflow-y: auto;
  z-index: 99996;
  display: none;
  margin-top: 8px;
  border: 1px solid var(--border-color);
  padding: 8px 0;
}

.search-history.show {
  display: block;
}

.search-history-item {
  padding: 12px 20px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s ease;
}

.search-history-item:hover {
  background: #f8fafc;
  color: var(--emerald-700);
  padding-left: 24px;
}

[data-theme="dark"] .search-history-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ===================== PRODUCT SECTIONS ===================== */
.section-products {
  padding: 64px 0;
  background: var(--bg);
}

.section-title {
  text-align: center;
  color: var(--emerald-700);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

.text-center.text-muted {
  color: var(--muted) !important;
  text-align: center;
  font-size: 1.1rem;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin: 2.5rem 0 1.5rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--emerald-200);
  text-align: left;
}

/* ===================== PRODUCT GRID ===================== */
#featured .product-grid,
#products .product-grid,
#promoProductsModal .product-grid,
#categoryProductsModal .product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px; /* Standard: 8px untuk mobile */
  padding: 8px; /* Standard: 8px padding frame untuk mobile */
}

/* Tablet: ≥ 768px (Standard Tablet) */
@media (min-width: 768px) {
  #featured .product-grid,
  #products .product-grid,
  #promoProductsModal .product-grid,
  #categoryProductsModal .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    padding: 12px;
  }
}

/* Desktop: ≥ 1280px (Standard Desktop) */
@media (min-width: 1280px) {
  #featured .product-grid,
  #products .product-grid,
  #promoProductsModal .product-grid,
  #categoryProductsModal .product-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    padding: 16px;
  }
}

/* ===================== FEATURED HORIZONTAL SCROLL ===================== */
/* Featured Products Horizontal Scroll - Match with products section */
.featured-scroll-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px; /* Same as products section */
  margin: 0 auto;
  padding: 10px 0;
}

.featured-horizontal-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(25% - 15px); /* 4 cards per row, same as products grid */
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
  padding: 10px;
  width: 100%;
}

.featured-horizontal-grid::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Scroll buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.scroll-btn:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn-left {
  left: -20px;
}

.scroll-btn-right {
  right: -20px;
}

/* Adjust product card size for horizontal grid */
.featured-horizontal-grid .product-card {
  width: 100%;
  min-width: 0; /* Allow shrinking */
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.featured-horizontal-grid .card-image-wrapper {
  height: 180px; /* Match with products section */
}

.featured-horizontal-grid .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 12px;
}

.featured-horizontal-grid .card-title {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.3;
}

.featured-horizontal-grid .card-price {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.featured-horizontal-grid .card-actions-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* Responsive adjustments */
/* ===================== FEATURED PRODUCTS HORIZONTAL GRID ===================== */
.featured-scroll-container {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.featured-horizontal-grid {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 8px;
    gap: 8px;
    will-change: transform;
}

.featured-horizontal-grid::-webkit-scrollbar {
    display: none;
}

.featured-horizontal-grid .product-card {
    flex: 0 0 auto;
    width: calc(50% - 4px);
    margin: 0;
}

@media (min-width: 1024px) {
    .featured-horizontal-grid {
        padding: 16px;
        gap: 16px;
    }
    
    .featured-horizontal-grid .product-card {
        width: calc(25% - 12px);
    }
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0.8;
}

.scroll-btn:hover {
    opacity: 1;
    background: var(--primary-color);
    color: white;
}

.scroll-btn-left { left: 10px; }
.scroll-btn-right { right: 10px; }

@media (max-width: 768px) {
    .scroll-btn { display: none; }
}

/* Product cards in horizontal grid - SAME AS PRODUCTS GRID */
.featured-horizontal-grid .product-card {
  flex: 0 0 auto;
  width: calc(50% - 4px); /* 2 cards per row on mobile, minus half gap */
  scroll-snap-align: start;
  margin: 0;
}

/* Desktop: ≥ 1024px */
@media (min-width: 1024px) {
  .featured-horizontal-grid {
    padding: 16px;
    gap: 16px;
  }
  
  .featured-horizontal-grid .product-card {
    width: calc(25% - 12px); /* 4 cards per row on desktop, minus three-quarters gap */
  }
  
  .scroll-btn-left {
    left: 20px;
  }
  
  .scroll-btn-right {
    right: 20px;
  }
}

/* Large Desktop: ≥ 1280px */
@media (min-width: 1280px) {
  .featured-horizontal-grid .product-card {
    width: calc(20% - 16px); /* 5 cards per row on large desktop, minus four-fifths gap */
  }
}
/* ===================== PRODUCT GRID SYNCED ===================== */
/* Menggunakan definisi di atas agar konsisten */

/* Hide scroll buttons on mobile */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }
}

/* Infinite scroll animation */
@keyframes infiniteScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Match with products section styling */
#featured .section-title {
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

#featured .text-center.text-muted.mb-6 {
  margin-bottom: 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Product card consistency */
.product-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-image-wrapper {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.5s ease;
}

.product-card:hover .card-image {
  transform: scale(1.05);
}

.icon-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-action-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-add-to-cart-card {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-add-to-cart-card:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

/* ===================== PRODUCT CARD ===================== */
.product-card {
  background: var(--card-bg, #ffffff);
  border-radius: 8px; /* Standard: 8px (Shopee/Tokopedia) */
  overflow: hidden; /* Diubah dari visible ke hidden */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); /* Shadow lebih subtle */
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color, #e5e7eb); /* Border lebih tipis */
  height: 100%;
}

.icon-action-btn {
  background: rgba(var(--text-rgb), 0.08) !important;
  color: var(--muted) !important;
  border: 1px solid rgba(var(--text-rgb), 0.1) !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  flex-shrink: 0;
  position: relative;
}

[data-theme="dark"] .icon-action-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

.icon-action-btn:hover {
  background: rgba(var(--text-rgb), 0.15) !important;
  border-color: rgba(var(--text-rgb), 0.2) !important;
  transform: translateY(-2px) scale(1.05) !important;
  color: var(--text) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .icon-action-btn:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
}

.card-image {
  width: 100%;
  aspect-ratio: 1/1;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s ease;
  border-radius: 12px 12px 0 0;
}

.product-card:hover .card-image {
  transform: scale(1.05);
}

.product-category {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(4, 108, 78, 0.9);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.card-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text);
  min-height: 2.6em;
}

[data-theme="dark"] .card-title {
  color: #f1f5f9;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.card-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--emerald-600);
  margin-bottom: 12px;
}

[data-theme="dark"] .card-price {
  color: var(--emerald-400);
}

.card-actions-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 5;
}

.btn-share-open {
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  background: var(--bg-secondary, #f8f9fa) !important;
  border: 1px solid var(--border-color, #e0e0e0) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex-shrink: 0 !important;
  color: var(--text-secondary, #555) !important;
  position: relative !important;
  z-index: 20 !important;
}

.btn-share-open:hover {
  background: var(--bg-hover, #e9ecef) !important;
  transform: translateY(-1px) !important;
  border-color: var(--emerald-400) !important;
}

.btn-share-open.active-share-btn {
  background: var(--emerald-100) !important;
  border-color: var(--emerald-500) !important;
  color: var(--emerald-700) !important;
}

.btn-add-to-cart-card {
  flex-grow: 1;
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-800) 100%);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.3px;
  font-family: inherit;
}

[data-theme="light"] .btn-add-to-cart-card {
  background: linear-gradient(135deg, #046c4e 0%, #03573f 100%);
  border-color: #03573f;
  box-shadow: 0 4px 12px rgba(4, 108, 78, 0.3);
}

[data-theme="dark"] .btn-add-to-cart-card {
  background: linear-gradient(135deg, #10b981 0%, #0da271 100%);
  color: #ffffff;
  border-color: #34d399;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-add-to-cart-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(4, 108, 78, 0.5);
}

[data-theme="dark"] .btn-add-to-cart-card:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  border-color: #6ee7b7;
  box-shadow: 0 6px 25px rgba(16, 185, 129, 0.6), 0 0 0 2px rgba(52, 211, 153, 0.3);
  transform: translateY(-3px) scale(1.02);
}

.btn-add-to-cart-card svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.btn-add-to-cart-card:hover svg {
  transform: translateX(2px) scale(1.1);
}

/* ===================== SHARE MENU ===================== */
.share-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 9999;
  display: none;
}

.share-menu-overlay.active {
  display: block;
}

.card-share-menu {
  position: fixed !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  border-radius: 12px !important;
  padding: 12px !important;
  display: none !important;
  gap: 10px !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
  z-index: 10000 !important;
  animation: shareMenuFadeIn 0.2s ease-out !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
}

.card-share-menu.active {
  display: flex !important;
}

@keyframes shareMenuFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.card-share-menu button {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: var(--card-bg) !important;
  border: 1px solid var(--border-color) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  color: var(--text-color) !important;
  padding: 0 !important;
  margin: 0 !important;
}

.card-share-menu button:hover {
  transform: scale(1.1) !important;
  border-color: transparent !important;
}

.whatsapp-share { color: #25D366 !important; }
.facebook-share { color: #1877F2 !important; }
.copy-link { color: #6b7280 !important; }

.whatsapp-share:hover { background: #25D366 !important; color: white !important; }
.facebook-share:hover { background: #1877F2 !important; color: white !important; }
.copy-link:hover { background: var(--emerald-600) !important; color: white !important; }

/* ===================== CART SIDEBAR ===================== */
.cart-sidebar {
  position: fixed;
  right: 0;
  top: 0;
  /* Gunakan 100% bukan 100vh untuk menghindari masalah mobile browser */
  height: 100%;
  width: 420px;
  max-width: 95vw;
  min-width: 320px;
  background: rgba(var(--card-rgb, 255, 255, 255), 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: -8px 0 40px rgba(15, 23, 42, 0.15);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 99998;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  max-height: 100vh;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

[data-theme="dark"] .cart-sidebar {
  background: rgba(30, 41, 59, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-sidebar {
  /* Untuk Android Chrome */
  height: var(--viewport-height, 100%);
}

/* Atau gunakan 100dvh yang lebih modern (tapi support terbatas) */
@supports (height: 100dvh) {
  .cart-sidebar {
    height: 100dvh;
  }
}

.cart-sidebar.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  background: transparent;
  position: relative;
  z-index: 10;
  padding-top: max(20px, env(safe-area-inset-top, 20px));
}

.cart-scrollable-content {
  flex: 1 1 auto;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
}

.cart-scrollable-content::-webkit-scrollbar {
  width: 6px;
}

.cart-scrollable-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.cart-scrollable-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 10px;
}

.cart-scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

[data-theme="dark"] .cart-scrollable-content::-webkit-scrollbar-track {
  background: #374151;
}

[data-theme="dark"] .cart-scrollable-content::-webkit-scrollbar-thumb {
  background: #6b7280;
}

[data-theme="dark"] .cart-scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

.cart-items-section {
  flex-shrink: 0;
}

.cart-total-section {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--card);
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-label {
  font-size: 16px;
  color: var(--text);
}

.cart-total-amount {
  font-size: 20px;
  color: var(--primary);
  font-weight: 600;
}

.cart-form-section {
  flex-shrink: 0;
  border-top: 1px solid var(--border-color);
  padding: 20px 24px;
}

/* PERBAIKAN UTAMA: Checkout Button Container */
.checkout-button-container {
  padding: 16px 24px;
  background: rgba(var(--card-rgb, 255, 255, 255), 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-color);
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
  z-index: 100;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

[data-theme="dark"] .checkout-button-container {
  background: rgba(30, 41, 59, 0.5);
  border-top-color: var(--border-color);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
}

/* Style untuk tombol checkout */
.btn-checkout {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  position: relative;
  overflow: hidden;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb, 59, 130, 246), 0.4);
}

.btn-checkout:active:not(:disabled) {
  transform: translateY(0);
}

.btn-checkout:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--muted);
}

.checkout-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hidden {
  display: none !important;
}

.cart-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-content:has(.cart-empty-state) .cart-scrollable-content {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.cart-sidebar:has(.cart-empty-state) .cart-form-section,
.cart-sidebar:has(.cart-empty-state) .checkout-button-container,
.cart-sidebar:has(.cart-empty-state) .cart-total-section {
  display: none !important;
}

/* ==================== MEDIA QUERIES MOBILE ==================== */
@media (max-width: 768px) {
  .cart-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 100%;
    /* Pastikan tinggi sesuai viewport mobile */
    height: 100%;
  }
  
  .cart-header {
    padding: 16px 20px;
    padding-top: max(16px, env(safe-area-inset-top, 16px));
  }
  
  .cart-scrollable-content {
    /* Atur tinggi maksimal untuk konten scrollable */
    flex: 1;
    min-height: 0;
    max-height: none;
  }
  
  .cart-form-section,
  .cart-total-section {
    padding: 16px 20px;
  }
  
  .checkout-button-container {
    padding: 12px 20px;
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
    /* Tambahkan background blur untuk efek glass di iOS */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }
  
  .btn-checkout {
    padding: 14px;
    font-size: 15px;
    min-height: 48px;
    border-radius: 10px;
  }
}

/* Fix untuk perangkat Android khusus */
@supports (-webkit-touch-callout: none) {
  /* iOS & Safari */
  .cart-sidebar {
    height: -webkit-fill-available;
  }
}

/* Untuk device dengan navigation bar dinamis */
@media (max-height: 600px) {
  .cart-header {
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top, 12px));
  }
  
  .checkout-button-container {
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
  }
  
  .btn-checkout {
    padding: 12px;
    min-height: 44px;
    font-size: 14px;
  }
}

/* Pastikan form elements terlihat baik di mobile */
.input-field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.input-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb, 59, 130, 246), 0.1);
}

/* Payment options */
.payment-option {
  display: flex;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.payment-option:hover {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb, 59, 130, 246), 0.05);
}

/* ===================== SKELETON LOADING ===================== */
.skeleton {
  background: #e2e8f0;
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s infinite linear;
  border-radius: 8px;
}

[data-theme="dark"] .skeleton {
  background: #1e293b;
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-card {
  height: 400px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.skeleton-img {
  height: 200px;
  border-radius: 20px 20px 0 0;
}

.skeleton-content {
  padding: 15px;
  flex-grow: 1;
}

.skeleton-title {
  height: 20px;
  width: 80%;
  margin-bottom: 12px;
}

.skeleton-price {
  height: 24px;
  width: 40%;
  margin-bottom: 15px;
}

.skeleton-btn {
  height: 40px;
  width: 100%;
  border-radius: 20px;
}

/* ===================== CART ANIMATIONS ===================== */
@keyframes cart-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2) rotate(-5deg); }
}

.animate-cart {
  animation: cart-bounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes count-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); background-color: #ef4444; }
  100% { transform: scale(1); }
}

.pulse-count {
  animation: count-pulse 0.4s ease-out;
}


.payment-option input[type="radio"]:checked ~ .payment-check {
  opacity: 1;
}

/* ===================== CART ITEM ===================== */
.cart-item-card {
  background: var(--card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  gap: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cart-item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

[data-theme="dark"] .cart-item-card {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .cart-item-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  min-width: 80px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 12px;
  background-color: #f3f4f6;
}

[data-theme="dark"] .cart-item-image {
  background-color: #374151;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cart-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0;
}

.cart-item-unit-price {
  font-size: 0.85rem;
  color: var(--muted);
}

.cart-item-total-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald-700);
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

/* ===================== QUANTITY CONTROL ===================== */
.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f3f4f6;
  border-radius: 12px;
  padding: 4px;
  border: 1px solid #e5e7eb;
}

[data-theme="dark"] .qty-control {
  background: #374151;
  border-color: #4b5563;
}

.qty-btn {
  width: 32px;
  height: 32px;
  background: white;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.qty-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--text);
}

.qty-btn:hover:not(:disabled) {
  background: var(--emerald-700);
}

.qty-btn:hover:not(:disabled) svg {
  stroke: white;
}

.qty-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

[data-theme="dark"] .qty-btn {
  background: #1e293b;
}

[data-theme="dark"] .qty-btn:hover:not(:disabled) {
  background: var(--emerald-700);
}

.qty-value {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.btn-remove-item {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 0;
}

.btn-remove-item svg {
  width: 18px;
  height: 18px;
}

.btn-remove-item:hover {
  background: #dc2626;
  color: white;
  border-color: #dc2626;
  transform: scale(1.05);
}

[data-theme="dark"] .btn-remove-item {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="dark"] .btn-remove-item:hover {
  background: #dc2626;
  border-color: #dc2626;
}

/* ===================== PAYMENT SECTION ===================== */
.payment-section {
  padding: 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .payment-section {
  background: #0f172a;
}

.delivery-form {
  padding: 20px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border-color);
}

.payment-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.payment-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 14px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--card);
  position: relative;
}

.payment-option:hover {
  border-color: var(--amber-500);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .payment-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.payment-option input[type="radio"] {
  display: none;
}

.payment-label {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  cursor: pointer;
}

.payment-icon {
  font-size: 1.5rem;
  width: 40px;
  text-align: center;
}

.payment-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.payment-text strong {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.payment-text small {
  font-size: 0.8rem;
  color: var(--muted);
}

.payment-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  background: transparent;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.payment-option input[type="radio"]:checked + .payment-label {
  font-weight: 600;
}

.payment-option input[type="radio"]:checked ~ .payment-check {
  background: var(--emerald-700);
  border-color: var(--emerald-700);
}

.payment-option:has(input[type="radio"]:checked) {
  border-color: var(--emerald-700);
  background: rgba(4, 108, 78, 0.05);
}

[data-theme="dark"] .payment-option:has(input[type="radio"]:checked) {
  background: rgba(16, 185, 129, 0.1);
}

/* ===================== DELIVERY FORM ===================== */
.input-group {
  position: relative;
  margin-bottom: 16px;
}

.input-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.input-field {
  padding: 12px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--card);
  color: var(--text);
  transition: all 0.3s ease;
  outline: none;
  width: 100%;
  font-family: inherit;
}

.input-field:focus {
  border-color: var(--emerald-700);
  box-shadow: 0 0 0 4px rgba(4, 108, 78, 0.1);
}

.input-field::placeholder {
  color: var(--muted);
  opacity: 0.7;
}

.error-text {
  font-size: 0.8rem;
  margin-top: 6px;
  display: block;
  color: #ef4444;
  font-weight: 500;
}

.error-text.hidden {
  display: none;
}

/* ===================== CART TOTAL ===================== */
.cart-total-section {
  padding: 20px 24px;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bbf7d0;
}

[data-theme="dark"] .cart-total-section {
  background: linear-gradient(135deg, rgba(4, 108, 78, 0.1) 0%, rgba(4, 108, 78, 0.15) 100%);
  border-color: rgba(4, 108, 78, 0.3);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-total-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.cart-total-amount {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--emerald-700);
  letter-spacing: -0.5px;
}

/* ===================== CHECKOUT BUTTON ===================== */
.btn-checkout {
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-900) 100%);
  color: white;
  border: none;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  width: 100%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 8px 20px rgba(4, 108, 78, 0.3);
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  position: relative;
  overflow: hidden;
  opacity: 1 !important;
  visibility: visible !important;
  min-height: 48px;
}

.btn-checkout:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(4, 108, 78, 0.4);
}

.btn-checkout:disabled {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .btn-checkout {
  box-shadow: 0 8px 20px rgba(4, 108, 78, 0.4);
}

[data-theme="dark"] .btn-checkout:hover:not(:disabled) {
  box-shadow: 0 12px 25px rgba(4, 108, 78, 0.5);
}

/* ===================== WISHLIST SIDEBAR ===================== */
.wishlist-empty-state {
  text-align: center;
  padding: 40px 20px;
}

.wishlist-empty-state .empty-icon {
  margin-bottom: 20px;
  color: #ec4899;
  opacity: 0.7;
}

.wishlist-empty-state h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-color);
}

.wishlist-empty-state p {
  color: var(--muted);
  margin-bottom: 16px;
}

.wishlist-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.wishlist-header h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-clear-wishlist {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-clear-wishlist:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.wishlist-items-container {
  padding: 16px;
  max-height: 60vh;
  overflow-y: auto;
}

/* ===================== WISHLIST FOOTER ===================== */
.wishlist-footer {
  display: flex;
  justify-content: center; /* Posisi horizontal tengah */
  align-items: center; /* Posisi vertikal tengah */
  padding: 20px;
  border-top: 1px solid var(--border-color);
  background: var(--card-bg);
  position: sticky;
  bottom: 0;
  z-index: 10;
}

.wishlist-footer .btn-primary {
  min-width: 180px; /* Lebar minimum untuk tombol */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
  color: rgb(255, 255, 255);
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(4, 108, 78, 0.3);
}

.wishlist-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 108, 78, 0.4);
  background: linear-gradient(135deg, var(--amber-600), var(--amber-500));
}

[data-theme="dark"] .wishlist-footer .btn-primary {
  background: linear-gradient(135deg, var(--emerald-500), var(--emerald-600));
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

[data-theme="dark"] .wishlist-footer .btn-primary:hover {
  background: linear-gradient(135deg, var(--emerald-400), var(--emerald-500));
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* ===================== WISHLIST ITEM ===================== */
.wishlist-item-enhanced {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  grid-template-rows: auto auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  margin-bottom: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.3s ease;
  animation: wishlistItemAppear 0.3s ease-out;
}

.wishlist-item-enhanced:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--emerald-400);
}

[data-theme="dark"] .wishlist-item-enhanced {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

[data-theme="dark"] .wishlist-item-enhanced:hover {
  border-color: var(--emerald-500) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

.wishlist-item-image-container {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.wishlist-item-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.wishlist-item-image:hover {
  transform: scale(1.05);
}

.wishlist-item-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
}

.wishlist-category-badge {
  background: var(--emerald-600);
  color: white;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.wishlist-item-details {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.wishlist-item-name {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
  max-height: 2.8em;
}

.wishlist-item-name:hover {
  color: var(--emerald-500);
}

.wishlist-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--emerald-600);
  margin-bottom: 6px;
}

.wishlist-item-stock {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stock-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.stock-badge.in-stock {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.wishlist-item-actions {
  grid-column: 3;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 36px;
  align-items: center;
}

.btn-add-to-cart-from-wishlist {
  background: var(--emerald-600);
  color: white;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  padding: 0;
}

[data-theme="light"] .btn-add-to-cart-from-wishlist {
  background: #10b981 !important;
  color: white !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

[data-theme="light"] .btn-add-to-cart-from-wishlist:hover {
  background: #0ea271 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

[data-theme="dark"] .btn-add-to-cart-from-wishlist {
  background: var(--emerald-500) !important;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
}

[data-theme="dark"] .btn-add-to-cart-from-wishlist:hover {
  background: var(--emerald-400) !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important;
}

.btn-add-to-cart-from-wishlist svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s ease;
}

.btn-add-to-cart-from-wishlist:hover svg {
  transform: scale(1.1);
}

.btn-remove-from-wishlist {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
}

.btn-remove-from-wishlist:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
}

.wishlist-item-badges-container {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .wishlist-item-badges-container {
  border-top-color: rgba(255, 255, 255, 0.05) !important;
}

@keyframes wishlistItemAppear {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* QRIS MODAL STYLES */
.qris-container {
  padding: 20px;
  text-align: center;
}

.qris-code {
  width: 280px;
  height: 280px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  margin: 0 auto 20px;
  background: white;
}

[data-theme="dark"] .qris-code {
  background: #1e293b;
  border-color: #374151;
}

.qris-info {
  margin-bottom: 24px;
}

.qris-info h3 {
  color: var(--emerald-700);
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.total-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-700);
  margin: 16px 0;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 8px;
}

.payment-steps {
  text-align: left;
  margin: 24px 0;
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
}

[data-theme="dark"] .payment-steps {
  background: #1e293b;
}

.payment-steps h4 {
  margin-bottom: 12px;
  color: var(--emerald-700);
  font-weight: 600;
}

.steps-list {
  margin-left: 20px;
  color: var(--muted);
}

.steps-list li {
  margin-bottom: 8px;
  line-height: 1.4;
}

.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.action-buttons .btn-primary,
.action-buttons .btn-outline {
  flex: 1;
  padding: 14px;
  font-weight: 600;
  border: none;
}

/* BANK SELECTION STYLES */
.bank-selection {
  padding: 10px;
}

.bank-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.bank-option {
  display: flex;
  align-items: center;
  padding: 16px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background: white;
}

.bank-option.active {
  border-color: var(--emerald-700);
  background: #f0fdf4;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.bank-option:hover:not(.active) {
  border-color: var(--amber-500);
  background: #fffbeb;
}

[data-theme="dark"] .bank-option {
  background: #1e293b;
}

[data-theme="dark"] .bank-option.active {
  background: rgba(16, 185, 129, 0.1);
}

.bank-logo {
  font-size: 2rem;
  margin-right: 16px;
  width: 50px;
  text-align: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.bank-info {
  flex: 1;
}

.bank-name {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.bank-number {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--emerald-700);
  font-size: 1.1rem;
  letter-spacing: 1px;
  background: #f8fafc;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
  margin: 4px 0;
}

.bank-holder {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 2px;
}

.bank-check {
  color: var(--emerald-700);
  font-weight: bold;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.bank-option.active .bank-check {
  opacity: 1;
}

/* Selected Bank Details */
.selected-bank-details {
  background: #f8fafc;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

[data-theme="dark"] .selected-bank-details {
  background: #1e293b;
  border-color: #374151;
}

.selected-bank-details h4 {
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

.bank-detail-card {
  text-align: center;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.bank-detail-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

.bank-logo-large {
  font-size: 3.5rem;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.bank-name-large {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.bank-number-large {
  font-family: 'Courier New', monospace;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--emerald-700);
  letter-spacing: 2px;
  background: white;
  padding: 12px 20px;
  border-radius: 12px;
  border: 2px dashed var(--emerald-700);
  margin: 16px 0;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .bank-number-large,
[data-theme="dark"] .bank-holder-large {
  background: #0f172a;
}

.bank-holder-large {
  font-size: 1.1rem;
  color: var(--muted);
  font-weight: 600;
  background: white;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
}

/* Bank-specific colors */
.bank-bca .bank-detail-card {
  background: linear-gradient(135deg, #e6f3ff 0%, #f0f8ff 100%);
  border: 2px solid #0066b1;
}

.bank-bca .bank-number-large {
  border-color: #0066b1;
  color: #0066b1;
}

.bank-mandiri .bank-detail-card {
  background: linear-gradient(135deg, #e6f7f7 0%, #f0fdfd 100%);
  border: 2px solid #00a2a2;
}

.bank-mandiri .bank-number-large {
  border-color: #00a2a2;
  color: #00a2a2;
}

/* ===================== MODAL ===================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.modal-content {
  position: relative;
  background: var(--card-bg, #fff);
  border-radius: var(--radius, 12px);
  max-width: 800px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg, 0 8px 24px rgba(0,0,0,0.25));
  z-index: 100000;
  transform: translateY(30px) scale(0.95);
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal.open .modal-content {
  transform: translateY(0) scale(1);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  position: sticky;
  top: 0;
  background: var(--card-bg, #fff);
  z-index: 1;
}

[data-theme="dark"] .modal-header {
  background: var(--card-bg, #1e293b);
  border-bottom: 1px solid var(--border-color, #334155);
}

.modal-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-heading, "Orbitron", serif);
  color: var(--emerald-700);
}

[data-theme="dark"] .modal-title {
  color: var(--emerald-400);
}

.modal-close {
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted, #666);
  padding: 4px 8px;
  border-radius: 4px;
  transition: background 0.2s ease, color 0.2s ease;
}

.modal-close:hover {
  background: var(--bg-hover, #f3f4f6);
  color: var(--text-primary, #1a1a1a);
}

[data-theme="dark"] .modal-close:hover {
  background: var(--bg-hover, #374151);
  color: var(--text-primary, #f3f4f6);
}

.modal-body {
  padding: 24px;
}

.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 767px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== PRODUCT MODAL ===================== */
.modal-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--bg-secondary, #f9fafb);
  border-radius: var(--radius, 12px);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-detail-image {
  width: 100%;
  height: 360px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 16px;
  margin-bottom: 16px;
  background-color: rgba(248, 250, 252, 0.9);
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .product-detail-image {
  background-color: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

#modalProductCategory {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 12px;
  background: var(--emerald-600, #046c4e);
  color: #fff;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  height: fit-content;
  line-height: 1;
  max-width: 150px;
}

[data-theme="dark"] #modalProductCategory {
  background: var(--emerald-500, #10b981);
  color: #0f172a;
}

.product-gallery-images {
  display: none;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 12px;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  opacity: 0.8;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-thumb:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.gallery-thumb.active {
  border-color: var(--accent, #046c4e);
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 6px 20px rgba(4, 108, 78, 0.35);
}

.modal-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 8px;
  margin-bottom: 16px;
}

.modal-price strong {
  font-size: 1.25rem;
  color: var(--emerald-700);
}

.modal-specs h4 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  color: var(--text-primary, #1a1a1a);
  font-weight: 600;
}

[data-theme="dark"] .modal-specs h4 {
  color: var(--emerald-300);
}

.modal-specs p {
  margin: 0;
  color: var(--muted, #666);
  line-height: 1.6;
  font-size: 0.9rem;
}

[data-theme="dark"] .modal-specs p {
  color: var(--slate-300);
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-amber {
  background: var(--amber-500);
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-amber:hover {
  background: var(--amber-600);
}

/* ===================== LOGIN MODAL ===================== */
#loginModal .modal-content {
  max-width: 440px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(40px) !important;
  -webkit-backdrop-filter: blur(40px) !important;
  border-radius: 24px !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
  overflow: hidden !important;
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

#loginModal.modal.open .modal-content {
  transform: scale(1);
  opacity: 1;
  animation: modalEntrance 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes modalEntrance {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

[data-theme="dark"] #loginModal .modal-content {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#loginModal .modal-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%) !important;
  backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  padding: 28px 32px 24px !important;
  border-radius: 24px 24px 0 0 !important;
}

[data-theme="dark"] #loginModal .modal-header {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#loginModal .modal-title {
  color: var(--emerald-800) !important;
  font-size: 1.8rem !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  text-align: center !important;
  margin: 0 !important;
  font-family: var(--font-heading) !important;
}

[data-theme="dark"] #loginModal .modal-title {
  color: var(--emerald-300) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

.whatsapp-logo {
  width: 32px !important;
  height: 32px !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
  transition: transform 0.3s ease !important;
}

#loginModal .modal-title:hover .whatsapp-logo {
  transform: scale(1.1) rotate(-5deg) !important;
}

#loginModal .modal-close {
  background: rgba(255, 255, 255, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 12px !important;
  width: 40px !important;
  height: 40px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: var(--emerald-700) !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  backdrop-filter: blur(10px) !important;
  position: absolute !important;
  right: 24px !important;
  top: 24px !important;
}

[data-theme="dark"] #loginModal .modal-close {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--emerald-300) !important;
}

#loginModal .modal-close:hover {
  background: rgba(239, 68, 68, 0.2) !important;
  border-color: rgba(239, 68, 68, 0.4) !important;
  color: #ef4444 !important;
  transform: rotate(90deg) scale(1.1) !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2) !important;
}

#loginModal .modal-body {
  padding: 32px !important;
}

.whatsapp-logo-large {
  width: 80px !important;
  height: 80px !important;
  filter: drop-shadow(0 4px 12px rgba(37, 211, 102, 0.3)) !important;
  animation: float 3s ease-in-out infinite !important;
  transition: all 0.3s ease !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

[data-theme="dark"] .whatsapp-logo-large {
  filter: drop-shadow(0 4px 12px rgba(37, 211, 102, 0.5)) !important;
}

#loginModal .input-field {
  width: 100% !important;
  padding: 18px 20px !important;
  background: rgba(255, 255, 255, 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.4) !important;
  border-radius: 16px !important;
  color: var(--text) !important;
  font-size: 1rem !important;
  font-weight: 500 !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

[data-theme="dark"] #loginModal .input-field {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  color: #f1f5f9 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#loginModal .input-field:focus {
  background: rgba(255, 255, 255, 0.5) !important;
  border-color: #25D366 !important;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.15), 0 8px 30px rgba(37, 211, 102, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  transform: translateY(-2px) !important;
  outline: none !important;
}

[data-theme="dark"] #loginModal .input-field:focus {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: #25D366 !important;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, 0.25), 0 8px 30px rgba(37, 211, 102, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

#loginModal .input-field.error {
  border-color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both !important;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}

#loginModal .error-text {
  color: #ef4444 !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  margin-top: 8px !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 12px !important;
  background: rgba(239, 68, 68, 0.1) !important;
  border-radius: 8px !important;
  border-left: 3px solid #ef4444 !important;
  animation: slideIn 0.3s ease !important;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-theme="dark"] #loginModal .error-text {
  color: #fca5a5 !important;
  background: rgba(239, 68, 68, 0.15) !important;
  border-left-color: #fca5a5 !important;
}

.btn-whatsapp {
    background-color: #25D366; /* Warna WhatsApp */
    color: white;
    border: none;
    border-radius: 50px; /* Sudut melengkung */
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
    text-decoration: none; /* Menghapus underline jika ada */
}

/* Efek hover */
.btn-whatsapp:hover {
    background-color: #128C7E; /* Warna lebih gelap saat hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Efek aktif (saat ditekan) */
.btn-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

/* Tombol disabled */
.btn-whatsapp:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
    box-shadow: none;
}

/* Ikon WhatsApp di dalam tombol */
.whatsapp-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1); /* Membuat ikon putih */
}

/* ===================== MOBILE FABs ===================== */
.mobile-fab-container {
  position: fixed;
  bottom: 100px;
  right: 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 999;
}

@media (max-width: 768px) {
  .mobile-fab-container {
    display: flex;
  }
}

.mobile-fab {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--emerald-700) 0%, var(--emerald-800) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(4, 108, 78, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
  position: relative;
  animation: fabEnter 0.4s ease-out;
}

.mobile-fab:hover {
  transform: scale(1.15);
  box-shadow: 0 10px 25px rgba(4, 108, 78, 0.5);
}

.mobile-fab-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  background: #ef4444;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid white;
}

.mobile-icon-theme {
  width: 22px;
  height: 22px;
}

.mobile-icon-wishlist {
  width: 22px;
  height: 22px;
}

#mobileThemeFab {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

#mobileWishlistFab {
  background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

#mobileCartFab {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

#mobileHistoryFab {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
}

@keyframes fabEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#mobileThemeFab { animation-delay: 0.1s; }
#mobileWishlistFab { animation-delay: 0.15s; }
#mobileCartFab { animation-delay: 0.2s; }
#mobileHistoryFab { animation-delay: 0.25s; }

/* ===================== FOOTER ===================== */
.site-footer {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  padding: 60px 0 20px;
  margin-top: 80px;
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .site-footer {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #10b981, #3b82f6, #8b5cf6);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 2fr;
  }
}

.footer-brand {
  padding-right: 30px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo-icon {
  font-size: 3rem;
  background: linear-gradient(135deg, #10b981, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.logo-text h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 800;
  color: white;
}

.logo-text h2 span {
  color: #10b981;
}

.tagline {
  margin: 5px 0 0;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.brand-description {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 25px;
  font-size: 0.95rem;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-link.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
}

.social-link.instagram:hover {
  background: rgba(225, 48, 108, 0.2);
}

.social-link.email:hover {
  background: rgba(59, 130, 246, 0.2);
}

.footer-grid-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .footer-grid-main {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-section {
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s ease;
  padding: 5px 0;
}

.footer-link:hover {
  color: #10b981;
  transform: translateX(5px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.contact-icon {
  font-size: 1.2rem;
  color: #10b981;
  margin-top: 2px;
}

.contact-label {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 4px;
}

.contact-text {
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.contact-link {
  color: #10b981;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.contact-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.maps-container {
  margin-top: 10px;
}

.maps-wrapper {
  position: relative;
  padding-bottom: 75%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 2px solid rgba(16, 185, 129, 0.2);
}

.maps-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.footer-admin-section {
  text-align: center;
  margin: 30px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-access-hidden {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.admin-minimal-btn {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.admin-minimal-btn:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  color: white;
  border-color: rgba(16, 185, 129, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.admin-label {
  font-weight: 500;
}

.admin-hint {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.75rem;
}

.admin-hint kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  margin-top: 40px;
}

.bottom-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

@media (min-width: 640px) {
  .bottom-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright {
  color: #94a3b8;
  font-size: 0.95rem;
}

.copyright strong {
  color: white;
  font-weight: 700;
}

.bottom-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.bottom-link {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.bottom-link:hover {
  color: #10b981;
}

.separator {
  color: #64748b;
  font-size: 0.8rem;
}

.footer-credits {
  color: #64748b;
  font-size: 0.85rem;
}



/* ===================== UTILITIES ===================== */
.hidden {
  display: none !important;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--emerald-700);
}

.text-center {
  text-align: center;
}

.text-muted {
  color: var(--muted);
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-6 { margin-bottom: 1.5rem; }
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.mr-4 { margin-right: 1rem; }
.resize-none { resize: none; }
.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;
}

/* ===================== ANIMATIONS ===================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: 4px;
}

[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
}

.order-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  border-radius: var(--radius);
  height: 120px;
}

[data-theme="dark"] .order-skeleton {
  background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
}

/* ===================== MAIN PAGINATION ===================== */
.main-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  padding: 20px 0;
}

.pagination-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(1);
}

.pagination-numbers {
  display: flex;
  gap: 8px;
}

.pagination-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.pagination-number:hover {
  border-color: var(--emerald-700);
  color: var(--emerald-700);
  transform: translateY(-2px);
}

.pagination-number.active {
  background: linear-gradient(135deg, var(--emerald-700), var(--emerald-800));
  color: white;
  border-color: var(--emerald-700);
  box-shadow: 0 4px 12px rgba(4, 108, 78, 0.3);
}

[data-theme="dark"] .pagination-number.active {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-700));
}