/* styles.css - Tokita Vanilla Frontend */

/* CSS Reset and Base */
*, *::before, *::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Container Utilities */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Background Colors */
.bg-white { background-color: white; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-900 { background-color: #111827; }
.bg-indigo-700 { background-color: #4f46e5; }
.bg-indigo-800 { background-color: #3730a3; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-red-500 { background-color: #ef4444; }
.bg-yellow-400 { background-color: #fbbf24; }

/* Text Colors */
.text-white { color: white; }
.text-gray-900 { color: #111827; }
.text-gray-700 { color: #374151; }
.text-gray-600 { color: #4b5563; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-900 { color: #312e81; }
.text-indigo-100 { color: #eef2ff; }

/* Typography */
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.font-extrabold { font-weight: 800; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }

/* Spacing */
.m-0 { margin: 0; }
.m-1 { margin: 0.25rem; }
.m-2 { margin: 0.5rem; }
.m-3 { margin: 0.75rem; }
.m-4 { margin: 1rem; }
.m-5 { margin: 1.25rem; }
.m-6 { margin: 1.5rem; }
.m-8 { margin: 2rem; }
.m-10 { margin: 2.5rem; }
.m-12 { margin: 3rem; }
.m-16 { margin: 4rem; }
.m-20 { margin: 5rem; }
.m-24 { margin: 6rem; }

.mx-auto { margin-left: auto; margin-right: auto; }
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: 0.25rem; margin-bottom: 0.25rem; }
.my-2 { margin-top: 0.5rem; margin-bottom: 0.5rem; }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: 1rem; margin-bottom: 1rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.my-6 { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.my-8 { margin-top: 2rem; margin-bottom: 2rem; }
.my-10 { margin-top: 2.5rem; margin-bottom: 2.5rem; }
.my-12 { margin-top: 3rem; margin-bottom: 3rem; }
.my-16 { margin-top: 4rem; margin-bottom: 4rem; }
.my-20 { margin-top: 5rem; margin-bottom: 5rem; }
.my-24 { margin-top: 6rem; margin-bottom: 6rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mb-20 { margin-bottom: 5rem; }
.mb-24 { margin-bottom: 6rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mt-24 { margin-top: 6rem; }

.ml-0 { margin-left: 0; }
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: 1rem; }
.ml-8 { margin-left: 2rem; }

.mr-0 { margin-right: 0; }
.mr-1 { margin-right: 0.25rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: 1rem; }
.mr-8 { margin-right: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }
.p-20 { padding: 5rem; }

.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: 0.25rem; padding-right: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }

.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-2 { padding-top: 0.5rem; }
.pt-8 { padding-top: 2rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-8 { padding-bottom: 2rem; }

/* Layout */
.h-screen { height: 100vh; }
.h-full { height: 100%; }
.h-1 { height: 0.25rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-80 { height: 20rem; }

.w-full { width: 100%; }
.w-auto { width: auto; }
.w-1 { width: 0.25rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-12 { width: 3rem; }
.w-20 { width: 5rem; }

.max-w-md { max-width: 28rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-7xl { max-width: 80rem; }

/* Flexbox */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-start { justify-content: flex-start; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Mobile-specific spacing adjustments */
@media (max-width: 639px) {
  .gap-6 { gap: 1rem; }
  .gap-8 { gap: 1.25rem; }
  .py-16 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
  .py-20 { padding-top: 2rem; padding-bottom: 2rem; }
  .py-24 { padding-top: 2rem; padding-bottom: 2rem; }
  
  .h-48 { height: 16rem; } /* PERBAIKAN: Lebih besar di mobile */
  .h-64 { height: 14rem; }
  .h-80 { height: 16rem; }
}

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
}

@media (min-width: 768px) {
  .md\:flex-row { flex-direction: row; }
  .md\:mb-0 { margin-bottom: 0; }
  .md\:w-1\/2 { width: 50%; }
  .md\:h-80 { height: 20rem; }
  .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .md\:py-32 { padding-top: 8rem; padding-bottom: 8rem; }
  .md\:py-24 { padding-top: 6rem; padding-bottom: 6rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-2 { top: 0.5rem; }
.right-2 { right: 0.5rem; }
.left-2 { left: 0.5rem; }

/* Shadows */
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.drop-shadow-lg { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, 0.04)) drop-shadow(0 4px 3px rgba(0, 0, 0, 0.1)); }

/* Borders */
.rounded-full { border-radius: 9999px; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded { border-radius: 0.25rem; }
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; }

/* Background Image Utilities */
.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Z-index */
.z-50 { z-index: 50; }
.z-10 { z-index: 10; }
.z-0 { z-index: 0; }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.tracking-tight { letter-spacing: -0.025em; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }

/* Transitions */
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-colors { transition-property: background-color, border-color, color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Transformations */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.hover\:-translate-y-1:hover { --tw-translate-y: -0.25rem; transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }

/* Hover Effects */
.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.hover\:bg-gray-50:hover { background-color: #f9fafb; }
.hover\:bg-indigo-700:hover { background-color: #4338ca; }
.hover\:bg-yellow-100:hover { background-color: #fef3c7; }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:text-indigo-600:hover { color: #4f46e5; }
.hover\:text-white:hover { color: white; }

/* Enhanced hover effects for call-to-action */
.hover\:scale-105:hover { transform: scale(1.05); }
.hover\:scale-110:hover { transform: scale(1.1); }
.hover\:shadow-2xl:hover { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.hover\:shadow-yellow-300:hover { box-shadow: 0 10px 15px -3px rgba(251, 191, 36, 0.3); }

/* Focus */
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

@media (min-width: 768px) {
  .md\:hidden { display: none; }
  .md\:flex { display: flex; }
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
}

/* Opacity */
.opacity-20 { opacity: 0.2; }

/* Mixed Classes */
.sticky { position: sticky; }
.top-0 { top: 0; }

/* Line Clamp */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Custom CSS for Product Card */
.product-card {
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Background Gradient */
.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.from-indigo-800 { --tw-gradient-from: #3730a3; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(55, 48, 163, 0)); }
.to-indigo-600 { --tw-gradient-to: #4f46e5; }

/* Mix Blend */
.mix-blend-multiply { mix-blend-mode: multiply; }

/* Specific styles for navigation */
.nav-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  height: 4rem;
  align-items: center;
  position: relative;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-content::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79, 70, 229, 0.2), transparent);
}

@media (min-width: 640px) {
  .nav-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .nav-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Hero Section */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

/* Add subtle animation background */
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: float 20s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-50px, -50px); }
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .hero-content {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

/* Product Grid */
.product-grid-container {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #f8fafc;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  width: 100%;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

/* Add subtle grid pattern background */
.product-grid-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(79, 70, 229, 0.05) 1px, transparent 0);
  background-size: 20px 20px;
  pointer-events: none;
  z-index: 0;
}

.product-grid-container > * {
  position: relative;
  z-index: 1;
}

/* Ensure proper width for the grid container */
#product-grid {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-width: 0;
  overflow-x: hidden;
}

/* Ensure grid items don't exceed container width */
#product-grid > * {
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* Category container responsiveness */
.product-grid-container .flex-wrap {
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* On small screens, make sure category buttons wrap properly */
@media (max-width: 480px) {
  .product-grid-container .flex-wrap {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
  }

  /* Adjust category buttons on very small screens */
  .category-button {
    margin: 0.1rem;
    padding: 0.5rem 0.8rem;
    font-size: 0.75rem;
  }
}

@media (min-width: 481px) and (max-width: 639px) {
  .category-button {
    padding: 0.55rem 0.9rem;
    font-size: 0.8rem;
  }
}

@media (min-width: 640px) {
  .product-grid-container {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
}

@media (min-width: 768px) {
  .product-grid-container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

@media (min-width: 1024px) {
  .product-grid-container {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 1280px) {
  .product-grid-container {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Footer */
.footer-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .footer-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Grid for Footer */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Footer Section Improvements for Mobile */
@media (max-width: 767px) {
  footer {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }

  /* Increase touch targets for footer links */
  footer ul li a {
    padding: 0.5rem;
    margin: -0.5rem;
    border-radius: 0.375rem; /* 6px for better touch target */
  }

  /* Adjust section spacing on mobile */
  footer .border-b {
    padding-bottom: 1rem !important;
    margin-bottom: 1rem !important;
  }

  /* Footer text adjustments */
  footer h3 {
    font-size: 1.125rem; /* 18px */
  }

  footer h4 {
    font-size: 1rem; /* 16px */
  }

  footer p {
    font-size: 0.875rem; /* 14px */
  }

  /* Footer bottom section */
  footer .border-t {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }

  /* Admin and developer links */
  footer .mt-2 {
    margin-top: 0.75rem;
  }

  /* Adjust footer grid for small mobile screens */
  .footer-grid > div {
    min-width: 0; /* Allow content to wrap properly */
  }
}

/* Tablet optimizations */
@media (min-width: 640px) and (max-width: 767px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ensure proper spacing for contact info */
.footer-contact {
  min-width: 0;
}

/* Add hover effects for better mobile experience */
footer a {
  transition: background-color 0.2s ease;
}

footer a:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 0.25rem;
}

/* Improve category and service lists touch targets */
@media (max-width: 767px) {
  footer ul.space-y-3 {
    display: flex;
    flex-direction: column;
  }

  footer ul.space-y-3 li {
    margin-bottom: 0.25rem;
  }
}

/* PWA Install Button */
.pwa-install-button {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 50;
}

/* Loading Spinner */
.animate-spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Category Button */
.category-button {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  line-height: 1rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
  margin: 0.125rem;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.category-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.category-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.category-button:hover::before {
  opacity: 1;
}

/* Active category button (selected) */
.category-button.bg-indigo-600 {
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Increase touch target size on mobile */
@media (max-width: 639px) {
  .category-button {
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 640px) {
  .category-button {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

/* About Section */
.about-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background-color: #f9fafb;
}

@media (min-width: 768px) {
  .about-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Mobile Menu */
.mobile-menu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  background-color: white;
  border-top: 1px solid #e5e7eb;
  /* Ensure it doesn't take up space when hidden */
  display: block; /* Must be block for max-height transition to work */
  pointer-events: none; /* Prevent interaction when hidden */
  user-select: none; /* Prevent text selection when hidden */
}

.mobile-menu.active {
  max-height: 500px; /* Adjust as needed, ensure it's large enough for content */
  opacity: 1;
  pointer-events: auto; /* Allow interaction when active */
  user-select: auto; /* Allow text selection when active */
}

/* Hamburger Icon Animation */
#mobile-menu-button {
  transition: transform 0.3s ease;
}

#mobile-menu-button.active {
  transform: rotate(90deg); /* Rotate for 'X' icon */
}

/* Responsive adjustments for mobile menu - Ensure it's hidden on larger screens */
@media (min-width: 768px) {
  .mobile-menu, .mobile-menu.active {
    display: none !important;
    max-height: 0 !important;
    opacity: 0 !important;
  }
}

/* Responsive adjustments */
@media (max-width: 767px) {
  .md\:hidden {
    display: block;
  }

  .md\:flex {
    display: none;
  }

  .md\:w-1\/2 {
    width: 100%;
  }

  .md\:mb-0 {
    margin-bottom: 1.25rem;
  }

  .md\:flex-row {
    flex-direction: column;
  }

  .md\:h-80 {
    height: 16rem;
  }

  .md\:py-24, .md\:py-32 {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .md\:text-6xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
}

/* Product Card Specific Styles */
.product-card {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(79, 70, 229, 0.05) 100%);
  pointer-events: none;
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  z-index: 20;
}

/* Adjust product card on different screen sizes */
@media (min-width: 640px) {
  .product-card {
    margin-bottom: 1rem;
  }

  .product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  }
}

/* Enhanced button styles */
.product-card .bg-indigo-600 {
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 0.5rem;
}

.product-card .bg-indigo-600::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.product-card .bg-indigo-600:hover {
  background-color: #4338ca;
  transform: scale(1.05);
}

/* Ripple effect on click */
.product-card .bg-indigo-600:active::after {
  width: 300px;
  height: 300px;
}

/* Product Card Image Container */
.product-card .relative {
  position: relative;
  height: 18rem; /* PERBAIKAN: Ukuran default lebih besar */
  min-height: 18rem;
}

.product-card .w-full {
  width: 100%;
}

.product-card .object-cover {
  object-fit: cover;
}

.product-card .p-5 {
  padding: 0.75rem;
}

@media (min-width: 640px) {
  .product-card .p-5 {
    padding: 1.25rem;
  }
}

.product-card .flex {
  display: flex;
}

.product-card .flex-col {
  flex-direction: column;
}

.product-card .h-full {
  height: 100%;
}

.product-card .justify-between {
  justify-content: space-between;
}

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

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

.product-card .items-center {
  align-items: center;
}

.product-card .text-lg {
  font-size: 1rem;
  line-height: 1.5rem;
}

@media (min-width: 640px) {
  .product-card .text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}

.product-card .font-bold {
  font-weight: 700;
}

.product-card .text-indigo-600 {
  color: #4f46e5;
}

.product-card .bg-indigo-600 {
  background-color: #4f46e5;
}

.product-card .text-white {
  color: white;
}

.product-card .p-2 {
  padding: 0.4rem;
}

@media (min-width: 640px) {
  .product-card .p-2 {
    padding: 0.5rem;
  }
}

.product-card .rounded-lg {
  border-radius: 0.5rem;
}

.product-card .hover\:bg-indigo-700:hover {
  background-color: #4338ca;
}

.product-card .transition-colors {
  transition-property: background-color, border-color, color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* Product Card Rating Badge */
.product-card .absolute {
  position: absolute;
}

.product-card .top-2 {
  top: 0.4rem;
}

.product-card .right-2 {
  right: 0.4rem;
}

.product-card .bg-white\/80 {
  background-color: rgba(255, 255, 255, 0.8);
}

.product-card .backdrop-blur-sm {
  backdrop-filter: blur(4px);
}

.product-card .px-2 {
  padding-left: 0.4rem;
  padding-right: 0.4rem;
}

.product-card .py-1 {
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.product-card .text-sm {
  font-size: 0.8rem;
  line-height: 1.1rem;
}

@media (min-width: 640px) {
  .product-card .top-2 {
    top: 0.5rem;
  }

  .product-card .right-2 {
    right: 0.5rem;
  }

  .product-card .px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .product-card .py-1 {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .product-card .text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }
}

.product-card .font-semibold {
  font-weight: 600;
}

/* Product Card Promo Badge */
.product-card .left-2 {
  left: 0.4rem;
}

@media (min-width: 640px) {
  .product-card .left-2 {
    left: 0.5rem;
  }
}

.product-card .bg-red-500 {
  background-color: #ef4444;
}

.product-card .text-xs {
  font-size: 0.65rem;
  line-height: 0.9rem;
}

@media (min-width: 640px) {
  .product-card .text-xs {
    font-size: 0.75rem;
    line-height: 1rem;
  }
}

.product-card .font-bold {
  font-weight: 700;
}

/* Product Card Text Clamping */
.product-card .line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Grid Responsive Adjustments */
@media (min-width: 640px) {
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 768px) {
  .md\:grid {
    display: grid;
  }

  .md\:h-80 {
    height: 20rem;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }
  .md\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }
  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Mobile menu links */
.mobile-menu-link {
  display: block;
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
  color: #374151;
}

.mobile-menu-link:hover {
  background-color: #eef2ff;
  color: #4f46e5;
}

/* Responsive container adjustments */
@media (min-width: 640px) {
  .container-sm {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container-lg {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

/* Product Image Wrapper: Untuk mengelola ukuran dan posisi gambar */
.product-image-wrapper {
    width: 100%; 
    height: 100% !important; /* PERBAIKAN: 100% dari parent */
    padding: 0.5rem; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background-color: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.product-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain !important; /* PERBAIKAN: contain untuk lihat seluruh produk */
    border-radius: 4px;
    max-height: 100%;
    max-width: 100%;
}

@media (min-width: 640px) {
  .product-image-wrapper {
    padding: 1rem;
  }
}

/* Mobile Optimization untuk Gambar Produk */
@media (max-width: 639px) {
  .product-card .relative {
    height: 16rem !important; /* PERBAIKAN: 256px untuk mobile */
    min-height: 16rem !important;
  }
  
  .product-image-wrapper {
    padding: 0.5rem;
  }
}

/* Untuk layar sangat kecil (iPhone SE dll) */
@media (max-width: 375px) {
  .product-card .relative {
    height: 14rem !important; /* 224px untuk layar sangat kecil */
    min-height: 14rem !important;
  }
}

/* SOLUSI TAMBAHAN: PERBAIKAN GAMBAR PRODUK */
/* Fix untuk gambar produk yang dibuat oleh product-card.js */
.product-card .relative {
  background-color: #f9fafb;
}

.product-card img {
  transition: transform 0.3s ease;
}

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

/* Pastikan container gambar memiliki tinggi yang konsisten */
.product-image-container {
  height: 18rem;
  min-height: 18rem;
  width: 100%;
  position: relative;
}

/* Optimasi untuk grid produk */
#product-grid .product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#product-grid .product-card .relative {
  flex-shrink: 0;
}

#product-grid .product-card .p-5 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#product-grid .product-card .flex-col {
  flex-grow: 1;
  justify-content: space-between;
}

/* Optimasi loading images */
.product-card img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Hover effect untuk card */
.product-card {
  border: 1px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover {
  border-color: rgba(79, 70, 229, 0.2);
  transform: translateY(-8px);
}

/* Responsive font sizes untuk product cards */
@media (max-width: 639px) {
  .product-card .text-lg {
    font-size: 0.95rem;
  }
  
  .product-card .text-sm {
    font-size: 0.8rem;
  }
}

/* Lightbox / Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 1rem;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content-wrapper {
  position: relative;
  width: auto;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal-content-wrapper {
  transform: scale(1);
}

.modal-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background-color: white; /* Fallback jika gambar transparan */
}

.modal-close {
  position: absolute;
  top: -3rem;
  right: 0;
  color: white;
  font-size: 2rem;
  font-weight: 300;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
  color: #fbbf24;
}

.modal-caption {
  color: white;
  text-align: center;
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  width: 100%;
}

/* Cursor pointer untuk gambar yang bisa diklik */
.cursor-zoom-in {
  cursor: zoom-in;
}

/* Marquee Animation */
@keyframes marquee {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.animate-marquee {
  display: inline-block;
  animation: marquee 30s linear infinite;
  min-width: 200%;
}

.animate-marquee:hover {
  animation-play-state: paused;
}