@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Caveat:wght@600;700&display=swap');

/* Base Styles & Organic Craft Color System */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-script: 'Caveat', cursive;
  
  --color-brand: #3e7b27;
  --color-brand-dark: #2f5f1c;
  --color-brand-light: #f0f7ec;
  --color-brand-accent: #e59325;
  --color-amber-warm: #d97706;
  --color-surface-cream: #faf7f2;
  --color-surface-warm: #f4ede2;
  --color-border-subtle: #e6ded3;
  --color-text-main: #1c241c;
  --color-text-muted: #64746b;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: #faf8f5;
  color: var(--color-text-main);
  line-height: 1.5;
}

.font-script {
  font-family: var(--font-script);
}

.font-heading {
  font-family: var(--font-sans);
}

.font-serif {
  font-family: var(--font-serif);
}

/* Palmeras Artisanal Header */
.palmeras-header-bg {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #eae4da;
}

/* Announcement Top Bar */
.announcement-bar-bg {
  background-color: #f7eedf;
  border-bottom: 1px solid #ebd9c3;
  color: #5c3b16;
}

/* Palmeras Hero Banner Background */
.palmeras-hero-bg {
  background: radial-gradient(circle at 85% 20%, #fff9ec 0%, #faf1e1 45%, #f4e8d2 100%);
  border: 1px solid #ebd9c3;
  position: relative;
  overflow: hidden;
}

.palmeras-hero-bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(229, 147, 37, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* Brand Buttons */
.btn-brand-primary {
  background-color: #3e7b27;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(62, 123, 39, 0.25);
}

.btn-brand-primary:hover {
  background-color: #33691e;
  box-shadow: 0 6px 16px rgba(62, 123, 39, 0.35);
  transform: translateY(-1px);
}

.btn-brand-primary:active {
  transform: translateY(0);
}

.btn-brand-secondary {
  background-color: #ffffff;
  color: #1c241c;
  border: 1px solid #dcd3c5;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-brand-secondary:hover {
  background-color: #faf7f2;
  border-color: #c9bda9;
  color: #0f160f;
  transform: translateY(-1px);
}

/* WhatsApp Action Button */
.btn-whatsapp {
  background-color: #25d366;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(37, 211, 102, 0.28);
}

.btn-whatsapp:hover {
  background-color: #20bd5a;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.38);
  transform: translateY(-1px);
}

/* Notification Pill Badges */
.noten-badge-count {
  background-color: #d93829;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  border: 1.5px solid #ffffff;
  border-radius: 9999px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(217, 56, 41, 0.3);
}

/* Card Shadows & Clean Borders */
.shop-card {
  background-color: #ffffff;
  border: 1px solid #eae3d8;
  border-radius: 1.25rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(28, 36, 28, 0.03), 0 1px 2px rgba(28, 36, 28, 0.02);
}

.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -6px rgba(28, 36, 28, 0.09), 0 4px 10px -2px rgba(28, 36, 28, 0.03);
  border-color: #d4c8b6;
}

/* Subtle Floating Animation */
@keyframes float-subtle {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-4px);
  }
}

.animate-float-subtle {
  animation: float-subtle 4.5s ease-in-out infinite;
}

/* Live Search Dropdown */
.search-dropdown-menu {
  max-height: 400px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Shimmer Button Effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    rgba(255, 255, 255, 0) 20%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(255, 255, 255, 0) 80%
  );
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.75s ease-in-out;
}

.btn-shine:hover::after {
  transform: rotate(30deg) translateY(100%);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #f4ede2;
}

::-webkit-scrollbar-thumb {
  background: #d4c7b4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #b5a48e;
}

/* Hide scrollbar utility */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Taste guide selector active state */
.quiz-option-card {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1.5px solid #eae3d8;
  background-color: #ffffff;
}

.quiz-option-card:hover {
  border-color: #3e7b27;
  background-color: #f7faf5;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(62, 123, 39, 0.08);
}

.quiz-option-card.active {
  border-color: #3e7b27;
  background-color: #f0f7ec;
  box-shadow: 0 0 0 2px rgba(62, 123, 39, 0.25);
}

/* Print Stylesheet for Receipt */
@media print {
  body * {
    visibility: hidden;
  }
  #printableReceipt, #printableReceipt * {
    visibility: visible;
  }
  #printableReceipt {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
  }
}
