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

:root {
  --cream: #FDF8F0;
  --cream-light: #FFFBF5;
  --sand: #F5E6D3;
  --terracotta: #C45C3E;
  --terracotta-dark: #A84A30;
  --terracotta-light: #E8B4A2;
  --forest: #2D4A3E;
  --forest-light: #4A6B5C;
  --charcoal: #1C1917;
  --charcoal-light: #3D3833;
  --warm-gray: #8C7E72;
  --border: #E8DDD0;
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Source Sans 3', sans-serif;
  color: var(--charcoal);
  background: var(--cream);
}

.font-display {
  font-family: 'Playfair Display', serif;
}

/* Paper grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* Warm link underline animation */
.link-underline {
  position: relative;
  text-decoration: none;
}
.link-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--terracotta);
  transition: width 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.link-underline:hover::after {
  width: 100%;
}

/* Product card hover lift */
.card-lift {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
              box-shadow 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.card-lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -12px rgba(196, 92, 62, 0.15), 
              0 8px 16px -8px rgba(28, 25, 23, 0.1);
}

/* Warm button styles */
.btn-primary {
  background: var(--terracotta);
  color: white;
  transition: all 0.3s ease;
}
.btn-primary:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(196, 92, 62, 0.35);
}

.btn-secondary {
  background: var(--forest);
  color: white;
  transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: var(--forest-light);
  transform: translateY(-1px);
}

/* Category pill */
.category-pill {
  background: var(--sand);
  color: var(--charcoal);
  transition: all 0.3s ease;
}
.category-pill:hover {
  background: var(--terracotta);
  color: white;
}

/* Staggered animation classes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fadeUp 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  opacity: 0;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

/* Price tag style */
.price-tag {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  color: var(--terracotta);
  letter-spacing: -0.02em;
}

/* Image hover zoom */
.img-zoom {
  overflow: hidden;
}
.img-zoom img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.img-zoom:hover img {
  transform: scale(1.05);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--cream);
}
::-webkit-scrollbar-thumb {
  background: var(--warm-gray);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--terracotta);
}

/* Selection color */
::selection {
  background: var(--terracotta-light);
  color: var(--charcoal);
}

/* Form inputs warm styling */
input:focus, select:focus, textarea:focus {
  border-color: var(--terracotta) !important;
  box-shadow: 0 0 0 3px rgba(196, 92, 62, 0.15) !important;
  outline: none !important;
}

/* Badge styles */
.badge-terracotta {
  background: rgba(196, 92, 62, 0.1);
  color: var(--terracotta);
}
.badge-forest {
  background: rgba(45, 74, 62, 0.1);
  color: var(--forest);
}

/* Decorative corner */
.corner-decor {
  position: relative;
}
.corner-decor::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-top: 3px solid var(--terracotta);
  border-left: 3px solid var(--terracotta);
  opacity: 0.4;
}

/* Nav link styling */
.nav-link {
  color: var(--charcoal-light);
  transition: color 0.2s ease;
  position: relative;
}
.nav-link:hover {
  color: var(--terracotta);
}

/* Footer warm styling */
.footer-warm {
  background: var(--charcoal);
}
.footer-warm a {
  color: var(--sand);
  transition: color 0.2s ease;
}
.footer-warm a:hover {
  color: var(--terracotta-light);
}
