/* ==========================================================================
   Lachér Pâtisserie - Tiệm Bánh Pháp Cao Cấp
   Modern, Rounded, Responsive Luxury Aesthetics (Vietnamese Optimized)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

:root {
  --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
  --font-sans: 'Be Vietnam Pro', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Lachér Warm Cream & Chocolate Palette */
  --color-cream: #FAF7F2;
  --color-cream-soft: #F5EFEB;
  --color-linen: #EFE8E0;
  --color-sand: #E3D7C9;
  --color-espresso: #281A14;
  --color-mocha: #432E23;
  --color-cocoa: #5E3C27;
  --color-caramel: #8C5738;
  --color-gold: #C59B63;
  --color-gold-hover: #B2874F;
  --color-rose: #C87A74;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--color-cream);
  color: var(--color-espresso);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main {
  flex: 1;
}

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

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

/* Custom Soft Luxury Shadows & Elevation */
.shadow-luxury-sm {
  box-shadow: 0 4px 20px -2px rgba(40, 26, 20, 0.05);
}

.shadow-luxury {
  box-shadow: 0 10px 30px -5px rgba(40, 26, 20, 0.08), 0 4px 12px -2px rgba(40, 26, 20, 0.03);
}

.shadow-luxury-lg {
  box-shadow: 0 20px 45px -10px rgba(40, 26, 20, 0.12), 0 8px 16px -4px rgba(40, 26, 20, 0.04);
}

.shadow-luxury-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.shadow-luxury-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -12px rgba(40, 26, 20, 0.15), 0 10px 20px -5px rgba(40, 26, 20, 0.06);
}

/* Rounded Luxury Corners without harsh edges */
.rounded-luxury-card {
  border-radius: 1.75rem; /* 28px */
}

.rounded-luxury-pill {
  border-radius: 9999px;
}

.rounded-luxury-modal {
  border-radius: 2.25rem; /* 36px */
}

/* Glassmorphism */
.glass-nav {
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(227, 215, 201, 0.6);
}

.glass-card {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Image Zoom on Card Hover */
.img-zoom-container {
  overflow: hidden;
  border-radius: 1.5rem;
}

.img-zoom-container img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .img-zoom-container img {
  transform: scale(1.06);
}

/* Luxury Pill Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

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

::-webkit-scrollbar-thumb {
  background: #D9CBBF;
  border-radius: 9999px;
  border: 2px solid #FAF7F2;
}

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

/* Subtle animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0) scale(1); }
  to { opacity: 0; transform: translateX(-60px) scale(0.92); }
}

.animate-slide-in-right {
  animation: slideInRight 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-out-left {
  animation: slideOutLeft 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatGentle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}

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

/* Elegant Pastry Background Pattern for Cream Banner */
.bg-cream-pattern {
  background-color: #F8F3EC;
  background-image: 
    radial-gradient(#C59B63 0.75px, transparent 0.75px),
    radial-gradient(#8C5738 0.75px, #F8F3EC 0.75px);
  background-size: 30px 30px;
  background-position: 0 0, 15px 15px;
  background-blend-mode: soft-light;
}

/* Toast Container */
#toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast-pill {
  pointer-events: auto;
  border-radius: 9999px;
  background: #281A14;
  color: #FFFFFF;
  padding: 0.85rem 1.6rem;
  box-shadow: 0 15px 35px -5px rgba(40, 26, 20, 0.25);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: toastEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes toastEnter {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Overlay Blur */
.modal-overlay {
  background: rgba(40, 26, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
