/* BakeValley Artisanal Heritage Styles */
@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Manrope:wght@200..800&family=Work+Sans:wght@300..700&family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200&display=swap');

:root {
  --color-surface: #fff9eb;
  --color-surface-dim: #dfdacc;
  --color-surface-bright: #fff9eb;
  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #f9f3e5;
  --color-surface-container: #f3ede0;
  --color-surface-container-high: #ede8da;
  --color-surface-container-highest: #e8e2d4;
  --color-on-surface: #1d1c13;
  --color-on-surface-variant: #554241;
  --color-outline: #887270;
  --color-outline-variant: #dbc1be;
  --color-primary: #280001;
  --color-on-primary: #ffffff;
  --color-primary-container: #4b0a0a;
  --color-on-primary-container: #cf6f68;
  --color-secondary: #815500;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #feba4e;
  --color-on-secondary-container: #714b00;
  --color-background: #fff9eb;

  --font-display: 'Bodoni Moda', serif;
  --font-body: 'Manrope', sans-serif;
  --font-label: 'Work Sans', sans-serif;
}

/* Material Symbols Icon styling */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

/* Texture Overlays */
.grain-overlay {
  background-image: url("https://www.transparenttextures.com/patterns/natural-paper.png");
  opacity: 0.15;
  pointer-events: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-surface);
}
::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-outline);
}

/* Base Body Styles */
body {
  font-family: var(--font-body);
  background-color: var(--color-background);
  color: var(--color-on-surface);
}

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

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

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

/* Smooth transitions & Hover animations */
.transition-smooth {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card Hover Lift & Soft Glow */
.card-hover-effect {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}
.card-hover-effect:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(40, 0, 1, 0.12);
  border-color: rgba(129, 85, 0, 0.4);
}

/* UNIFIED STYLE: Rich Darker Terracotta Studio Stage + Ground Shadow + Center Glow */
.png-product-bg {
  position: relative;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
  background: linear-gradient(145deg, #e8d0ba 0%, #cfab8f 50%, #b89073 100%);
  border-bottom: 1px solid rgba(136, 114, 112, 0.25);
  box-shadow: inset 0 0 20px rgba(80, 40, 15, 0.12);
}

/* Center Warm Golden Spotlight Glow */
.png-product-bg::before {
  content: '';
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 75%;
  background: radial-gradient(circle, rgba(255, 240, 215, 0.6) 0%, rgba(240, 185, 120, 0.25) 50%, transparent 80%);
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
}

/* Realistic 3D Ground Contact Shadow */
.png-product-bg::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 68%;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(55, 22, 6, 0.32) 0%, transparent 75%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
}

/* Floating PNG Image */
.png-product-img {
  filter: drop-shadow(0 12px 20px rgba(55, 22, 6, 0.22));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
  position: relative;
}

.group:hover .png-product-img {
  transform: scale(1.08) translateY(-6px);
  filter: drop-shadow(0 20px 28px rgba(55, 22, 6, 0.32));
}

/* Nav Link Hover Underline Animation */
.nav-link-anim {
  position: relative;
}
.nav-link-anim::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav-link-anim:hover::after {
  width: 100%;
}

/* Button Micro Animation */
.btn-animate {
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-animate:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(40, 0, 1, 0.25);
}
.btn-animate:active {
  transform: translateY(0) scale(0.97);
}

/* Modal Pop-In Animation */
@keyframes modalPopIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.modal-animate-in {
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Toast Animations */
@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast-animate {
  animation: slideUpFade 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Pulse Glow for Badges */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(129, 85, 0, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(129, 85, 0, 0);
  }
}
.pulse-badge {
  animation: pulseGlow 2.5s infinite;
}
