/* ========== WHITE & YELLOW THEME - KPJ FROZEN ========== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #FFFFFF !important;
  color: #000000 !important;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

section, footer, header {
  background-color: #FFFFFF !important;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: #F5A623 !important;
}

p, span, li {
  color: #ffffff !important;
}

.subtitle-text {
  color: #F5A623 !important;
}

#logo-icon {
  color: #F5A623 !important;
}

#logo-text {
  color: #000000 !important;
}

#logo-subtext {
  color: #555555 !important;
}

#pesanBtn {
  background: #F5A623 !important;
  color: #FFFFFF !important;
}

#pesanBtn:hover {
  background: #E69500 !important;
  transform: scale(1.02);
}

#cartIcon {
  color: #F5A623 !important;
  cursor: pointer;
}

#cartCount {
  background-color: #F5A623 !important;
  color: #FFFFFF !important;
}

#mobile-menu-btn {
  color: #000000 !important;
}

/* Hero Section */
.hero {
  background: linear-gradient(145deg, #FFFFFF 0%, #F5F5F5 100%) !important;
  border-bottom: 2px solid #F5A62340;
}

.text-yellow-300 {
  color: #F5A623 !important;
}

.hero-subtitle {
  color: #555555 !important;
}

.hero-gradient {
  background: linear-gradient(to top, #FFFFFF, transparent) !important;
}

/* Buttons */
.btn-primary {
  background: #F5A623 !important;
  color: #FFFFFF !important;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #E69500 !important;
  transform: scale(1.02);
}

.btn-secondary {
  background: transparent !important;
  border: 2px solid #F5A623 !important;
  color: #F5A623 !important;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #F5A623 !important;
  color: #FFFFFF !important;
}

/* Product Cards */
.product-card {
  background-color: #FFFFFF !important;
  border: 1px solid #F5A62330 !important;
  border-radius: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  border-color: #F5A623 !important;
  transform: translateY(-5px);
  box-shadow: 0 20px 30px -10px rgba(245, 166, 35, 0.2);
}

.product-card h3 {
  color: #000000 !important;
}

.product-card p {
  color: #555555 !important;
}

/* Testimonial Cards */
.testimonial-card {
  background-color: #F5A623 !important;
  border: 1px solid #F5A62330 !important;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: #F5A623 !important;
  transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #F5A623 0%, #E69500 100%) !important;
}

.cta-title {
  color: #FFFFFF !important;
}

.cta-subtitle {
  color: #FFFFFFCC !important;
}

.cta-button {
  background-color: #FFFFFF !important;
  color: #F5A623 !important;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
  background-color: #FFFFFF !important;
  border-color: #F5A62330 !important;
}

.footer-text {
  color: #555555 !important;
}

.footer-subtext {
  color: #888888 !important;
}

/* Loading State */
.loading {
  text-align: center;
  padding: 50px;
  color: #F5A623;
  grid-column: span 3;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #FFFFFF !important;
  border: 2px solid #F5A623 !important;
  border-radius: 24px;
  max-width: 500px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 28px;
  background: none;
  border: none;
  color: #000000 !important;
  cursor: pointer;
  transition: all 0.2s;
}

.modal-close:hover {
  transform: scale(1.1);
}

.cart-title {
  color: #000000 !important;
}

.cart-total {
  color: #000000 !important;
}

/* Variant Buttons */
.variant-btn {
  background: transparent;
  border: 1px solid #F5A623;
  color: #F5A623;
  padding: 6px 12px;
  border-radius: 20px;
  margin: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.variant-btn.active,
.variant-btn:hover {
  background: #F5A623;
  color: #FFFFFF;
}

/* Stock Badge */
.stock-badge {
  background: #F5A62320;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 12px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-on-scroll {
  animation: fadeInUp 0.7s ease-out forwards;
  opacity: 0;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F0F0F0;
}

::-webkit-scrollbar-thumb {
  background: #F5A623;
  border-radius: 4px;
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #F5A623;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 30px;
  z-index: 9999;
  font-weight: bold;
  animation: fadeInUp 0.3s ease-out;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }
  
  .product-card {
    margin: 0 0.5rem;
  }
}

/* ========== HEADER STYLES ========== */
header {
  background-color: #FFFFFF !important;
  border-bottom: 2px solid #F5A62340 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1) !important;
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Logo styling */
header .text-2xl.font-bold {
  background: linear-gradient(135deg, #F5A623 0%, #E69500 50%, #F5A623 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  text-shadow: 0 0 20px rgba(245, 166, 35, 0.3);
  letter-spacing: -0.5px;
}

/* Desktop Navigation Links */
header nav ul li a {
  color: #555555 !important;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #F5A623, #E69500);
  transition: width 0.3s ease;
  border-radius: 2px;
}

header nav ul li a:hover {
  color: #000000 !important;
}

header nav ul li a:hover::after {
  width: 100%;
}

/* Quick Action Buttons */
header .flex.space-x-4 button {
  background: transparent !important;
  transition: all 0.3s ease;
  border-radius: 12px;
  cursor: pointer;
}

header .flex.space-x-4 button:hover {
  background: rgba(245, 166, 35, 0.1) !important;
  transform: translateY(-2px);
}

header .flex.space-x-4 button i {
  transition: all 0.3s ease;
}

header .flex.space-x-4 button:first-child i {
  color: #25D366 !important;
}

header .flex.space-x-4 button:first-child:hover i {
  color: #20b859 !important;
  transform: scale(1.1);
}

header .flex.space-x-4 button:nth-child(2) i {
  color: #F5A623 !important;
}

header .flex.space-x-4 button:nth-child(3) i {
  color: #F5A623 !important;
}

/* Mobile Menu Button */
.menu-toggle {
  background: transparent;
  border: none;
  color: #000000 !important;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 8px;
}

.menu-toggle:hover {
  transform: scale(1.05);
  background: rgba(245, 166, 35, 0.1) !important;
  border-radius: 8px;
}

/* Mobile Menu Overlay */
.mobile-menu {
  background-color: #FFFFFF !important;
  border-left: 3px solid #F5A623 !important;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu ul li a {
  color: #555555 !important;
  font-size: 1.5rem;
  font-weight: bold;
  padding: 16px 0;
  border-bottom: 1px solid rgba(245, 166, 35, 0.2);
  transition: all 0.3s ease;
  display: block;
}

.mobile-menu ul li a:hover {
  color: #000000 !important;
  padding-left: 16px;
  border-bottom-color: #F5A623;
}

/* Mobile Menu WA Button */
.mobile-menu .wa-btn {
  background: linear-gradient(135deg, #25D366, #20b859) !important;
  color: white !important;
  border: none;
  transition: all 0.3s ease;
}

.mobile-menu .wa-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

/* Mobile Menu Action Buttons */
.mobile-menu .bg-gray-100 {
  background-color: #F5F5F5 !important;
  border: 1px solid #F5A62330;
  transition: all 0.3s ease;
}

.mobile-menu .bg-gray-100:hover {
  background-color: #EEEEEE !important;
  border-color: #F5A623;
  transform: translateY(-2px);
}

.mobile-menu .bg-gray-100 i {
  color: #F5A623 !important;
}

/* Mobile menu transform classes */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Backdrop for mobile menu */
.mobile-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 39;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.mobile-backdrop.visible {
  opacity: 1;
  visibility: visible;
}

/* ========== DESKTOP NAVBAR IMPROVEMENTS ========== */

/* Container navbar */
header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navbar wrapper */
header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo styling - lebih rapi */
header .text-2xl.font-bold {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  background: linear-gradient(135deg, #F5A623 0%, #E69500 40%, #F5A623 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 15px rgba(245, 166, 35, 0.2);
  transition: all 0.3s ease;
}

header .text-2xl.font-bold:hover {
  transform: scale(1.02);
}

/* Desktop Menu List - lebih rapi */
header nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

header nav ul li {
  position: relative;
}

header nav ul li a {
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  color: #555555 !important;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

/* Underline animation */
header nav ul li a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #F5A623, #E69500);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

header nav ul li a:hover {
  color: #000000 !important;
}

header nav ul li a:hover::after {
  width: 100%;
}

/* Active page indicator */
header nav ul li a.active {
  color: #000000 !important;
}

header nav ul li a.active::after {
  width: 100%;
}

/* Quick Actions Container */
header .flex.space-x-4 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1.5rem;
}

/* Quick Action Buttons */
header .flex.space-x-4 button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: rgba(245, 166, 35, 0.08) !important;
  border-radius: 12px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(245, 166, 35, 0.2);
}

header .flex.space-x-4 button:hover {
  background: rgba(245, 166, 35, 0.2) !important;
  transform: translateY(-2px);
  border-color: rgba(245, 166, 35, 0.5);
}

/* Icons in quick actions */
header .flex.space-x-4 button i {
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

header .flex.space-x-4 button:first-child i {
  color: #25D366 !important;
}

header .flex.space-x-4 button:nth-child(2) i {
  color: #F5A623 !important;
}

header .flex.space-x-4 button:nth-child(3) i {
  color: #F5A623 !important;
}

/* Cart badge positioning */
header .flex.space-x-4 button:last-child {
  position: relative;
}

header .flex.space-x-4 button:last-child .absolute {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #F5A623 !important;
  color: #FFFFFF !important;
  font-size: 0.7rem;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse 1.5s infinite;
}

/* Desktop wrapper - untuk memastikan layout rapi */
.desktop-menu-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Responsive breakpoint untuk desktop */
@media (min-width: 768px) and (max-width: 1024px) {
  header nav ul {
    gap: 1.25rem;
  }
  
  header nav ul li a {
    font-size: 0.9rem;
  }
  
  header .flex.space-x-4 {
    gap: 0.5rem;
    margin-left: 1rem;
  }
  
  header .flex.space-x-4 button {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 1280px) {
  header nav ul {
    gap: 2.5rem;
  }
  
  header nav ul li a {
    font-size: 1.05rem;
  }
}

/* Pulse animation for cart */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.9;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ========== MOBILE ADMIN DROPDOWN FIX ========== */

/* Mobile Admin Toggle Button */
#mobileAdminToggle {
  position: relative;
}

#mobileAdminToggle:hover {
  background: rgba(245, 166, 35, 0.2) !important;
  border-color: #F5A62360 !important;
}

/* Chevron animation */
#adminChevron {
  transition: transform 0.3s ease;
}

.mobile-admin-dropdown.open #adminChevron {
  transform: rotate(180deg);
}

/* Mobile Admin Dropdown */
.mobile-admin-dropdown {
  position: absolute !important;
  z-index: 70 !important;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: 320px;
  max-width: calc(100vw - 2rem);
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 166, 35, 0.4);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(245, 166, 35, 0.1);
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateX(-50%) translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mobile-admin-dropdown.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) scale(1);
}

header .flex.space-x-4 button:hover {
  background: rgba(245, 166, 35, 0.1) !important;
}

/* Grid dan Section tambahan */
.grid, .container, .flex {
  background-color: transparent !important;
}

/* Warna untuk card dan kontainer lainnya */
.bg-white, .bg-gray-50, .bg-gray-100 {
  background-color: #FFFFFF !important;
}

/* Pastikan semua elemen dengan background sebelumnya jadi putih */
[class*="bg-"]:not(.btn-primary):not(.btn-secondary):not(.cta-section):not(.cta-button):not(.modal-content):not(.mobile-menu) {
  background-color: #FFFFFF !important;
}

.testimonial p span {
  color: #FFFFFF;
}

/* ========== OVERRIDE ALL WHITE TEXT TO BLACK/DARK ========== */

/* Teks umum menjadi hitam/gelap */
body, p, span, div, li, td, th, caption, figcaption {
  color: #333333 !important;
}

/* Heading menjadi hitam */
h1, h2, h3, h4, h5, h6 {
  color: #000000 !important;
}

/* Teks pada card, form, section */
.card, .section, .container, .grid, .flex {
  color: #333333 !important;
}

/* Placeholder text */
::placeholder, .placeholder {
  color: #999999 !important;
}

/* Label form */
label, .form-label {
  color: #555555 !important;
}

/* Teks pada tombol selain yang spesifik */
button:not(.btn-primary):not(.admin-btn):not(.kontak-wa-btn) {
  color: #333333 !important;
}

/* Link menjadi gelap dengan hover kuning */
a:not(.logo):not(.nav-link):not(.mobile-nav-link) {
  color: #444444 !important;
}

a:hover:not(.logo) {
  color: #F5A623 !important;
}

/* Toast notification */
.toast-notification {
  background-color: #F5A623 !important;
  color: #000000 !important;
}

/* Loading text */
.loading, .loading-spinner span {
  color: #F5A623 !important;
}

/* Product card text */
.product-card h3, .catalog-product-name {
  color: #000000 !important;
}

.product-card p, .catalog-product-weight, .catalog-product-stock {
  color: #555555 !important;
}

/* Modal text */
.modal-content p, .modal-content span, .modal-content div {
  color: #333333 !important;
}

.modal-content h2, .modal-content h3 {
  color: #000000 !important;
}

/* Testimonial text */
.testimonial-card p {
  color: #555555 !important;
}

/* Footer text */
footer p, footer span, footer li {
  color: #000000 !important;
}

footer .footer-text {
  color: #000000 !important;
}

footer .footer-subtext {
  color: #000000 !important;
}

/* Berita page */
.berita-card-description {
  color: #555555 !important;
}

.berita-card-date {
  color: #888888 !important;
}

/* Tentang page */
.tentang-description {
  color: #555555 !important;
}

.visimisi-text {
  color: #555555 !important;
}

.visimisi-list li {
  color: #555555 !important;
}

/* Kontak page */
.kontak-quick-card p {
  color: #555555 !important;
}

.kontak-store-address {
  color: #000000 !important;
}

.kontak-store-hours {
  color: #000000 !important;
}

.kontak-info li {
  color: #000000 !important;
}

/* ========== HERO SECTION - JUDUL & SUBTITLE KUNING ========== */

/* Hero Title - Warna Kuning */
.hero-title,
.hero h1,
.catalog-hero-title,
.berita-hero-title,
.tentang-hero-title,
.kontak-hero-title {
  color: #F5A623 !important;
}

/* Atau jika menggunakan class yang berbeda */
.text-yellow-300,
.hero-gradient span,
.hero h1 span {
  color: #F5A623 !important;
}

/* Hero Subtitle - Warna Kuning (lebih soft) */
.hero-subtitle,
.hero p,
.catalog-hero-subtitle,
.berita-hero-subtitle,
.tentang-hero-subtitle,
.kontak-hero-subtitle {
  color: #E69500 !important;
}

/* Atau dengan opacity untuk subtitle */
.hero-subtitle {
  color: #F5A623CC !important;
}

/* Hero Badge (jika ada) */
.hero-badge,
.hero .badge {
  background: rgba(245, 166, 35, 0.15);
  color: #F5A623 !important;
  border: 1px solid #F5A62340;
}