@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600&family=Nunito:wght@400;600;700&display=swap');

:root {
  /* Cozy Bakery Palette */
  --bake-bg: #fff5f0;
  --bake-surface: #ffffff;
  --bake-nav: #ffd1c5;
  --bake-primary: #e88c7d;
  --bake-secondary: #d4a373;
  --bake-text: #4a3b32;
  --bake-text-light: #8c786a;

  --bake-font-heading: 'Fredoka', sans-serif;
  --bake-font-body: 'Nunito', sans-serif;

  --bake-shadow: 0 10px 25px rgba(232, 140, 125, 0.15);
  --bake-shadow-hover: 0 20px 40px rgba(232, 140, 125, 0.25);

  --bake-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--bake-font-body);
  background-color: var(--bake-bg);
  color: var(--bake-text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Floating Sprinkles Background */
.sprinkles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.sprinkle {
  position: absolute;
  border-radius: 4px;
  animation: float linear infinite;
  opacity: 0.6;
}

.sprinkle.pink {
  background: #ffb6b9;
}

.sprinkle.yellow {
  background: #fae3d9;
}

.sprinkle.brown {
  background: #b088f9;
}

.sprinkle.green {
  background: #bbded6;
}

@keyframes float {
  0% {
    transform: translateY(-100px) rotate(0deg);
  }

  100% {
    transform: translateY(100vh) rotate(360deg);
  }
}

/* Navigation */
.bake-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bake-nav .brand {
  font-family: var(--bake-font-heading);
  font-size: 1.8rem;
  color: var(--bake-primary);
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bake-nav .menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.bake-nav .menu a {
  text-decoration: none;
  color: var(--bake-text);
  font-weight: 600;
  transition: color 0.3s;
}

.bake-nav .menu a:hover {
  color: var(--bake-primary);
}

.bake-btn {
  background: var(--bake-primary);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--bake-font-heading);
  transition: var(--bake-transition);
  display: inline-block;
  border: none;
  cursor: pointer;
}

.bake-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--bake-shadow-hover);
}

/* Hero Section */
.bake-hero {
  padding: 10rem 5% 5rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.bake-hero h1 {
  font-family: var(--bake-font-heading);
  font-size: 4rem;
  color: var(--bake-primary);
  margin-bottom: 1rem;
  animation: popIn 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bake-hero p {
  font-size: 1.2rem;
  color: var(--bake-text-light);
  max-width: 600px;
  margin: 0 auto 2rem;
  animation: fadeIn 1s ease-out 0.3s both;
}

/* Products Grid */
.products-section {
  padding: 5rem 5%;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  font-family: var(--bake-font-heading);
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--bake-text);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2.5rem;
  align-items: stretch;
}

.product-card {
  background: var(--bake-surface);
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--bake-shadow);
  transition: var(--bake-transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(232, 140, 125, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}

.product-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--bake-shadow-hover);
}

.product-card:hover::before {
  opacity: 1;
}

.product-icon {
  width: 80px;
  height: 80px;
  background: #fffafa;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--bake-primary);
  transition: var(--bake-transition);
}

.product-card:hover .product-icon {
  transform: scale(1.15) rotate(5deg);
  background: var(--bake-primary);
  color: white;
}

.product-card h3 {
  font-family: var(--bake-font-heading);
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.product-card p {
  color: var(--bake-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.5;
  flex-grow: 1;
}

.price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bake-secondary);
  display: block;
  margin-bottom: 1.5rem;
  margin-top: auto;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card .bake-btn {
  margin-top: auto;
  width: 100%;
  display: block;
  min-height: 48px;
  padding: 0.8rem 1.5rem !important;
  border-radius: 8px;
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Back Link */
.back-link {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: white;
  color: var(--bake-text);
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
  transition: transform 0.3s;
}

.back-link:hover {
  transform: translateY(-3px);
}

/* Responsive Design */
@media(max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
  }

  .bake-hero h1 {
    font-size: 2.5rem;
  }
}

@media(max-width: 768px) {
  .bake-nav {
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 3%;
  }

  .bake-nav .menu {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
  }

  .product-card {
    padding: 1.5rem;
  }

  .bake-btn {
    padding: 0.7rem 1.2rem !important;
    font-size: 0.9rem;
  }
}

@media(max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .bake-hero {
    padding: 6rem 5% 3rem;
  }

  .bake-hero h1 {
    font-size: 1.8rem;
  }

  .product-card {
    padding: 1rem;
    min-height: 320px;
  }

  .product-icon {
    width: 60px;
    height: 60px;
  }

  .product-card h3 {
    font-size: 1.1rem;
  }

  .bake-btn {
    padding: 0.6rem 1rem !important;
  }
}