/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --pink:       #f4a7b9;
  --pink-light: #ffeef1;
  --pink-dark:  #e7688b;
  --cream:      #fdf5f7;
  --brown:      #5e3c3c;
  --text:       #5e3c3c;
  --muted:      #888888;
  --white:      #ffffff;
  --shadow:     0 4px 18px rgba(0,0,0,0.10);
  --radius:     14px;
  --nav-h:      80px;
  --font:       'Fredoka', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffeef1;
  padding: 0 24px;
  height: var(--nav-h);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.logo-image { height: 64px; width: auto; flex-shrink: 0; }

.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}

.nav-links li a {
  font-size: 15px;
  font-weight: 600;
  color: var(--brown);
  padding: 6px 12px;
  border-radius: 20px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links li a:hover {
  background: #ffffff;
  color: var(--pink-dark);
}

/* ===== SEARCH BAR ===== */
.search-bar { position: relative; flex: 1; max-width: 260px; }

.input-wrapper {
  display: flex;
  align-items: center;
  background: var(--cream);
  border: 1.5px solid var(--pink);
  border-radius: 24px;
  padding: 6px 14px;
  gap: 8px;
}

.search-input {
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  outline: none;
  width: 100%;
}

.input-wrapper .fa-magnifying-glass { color: var(--pink-dark); font-size: 14px; }

.search-results {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--pink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 200;
  overflow: hidden;
}

.search-results.active { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 14px;
}

.search-result-item:hover { background: var(--pink-light); }
.search-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 8px; }

/* ===== NAV ICONS ===== */
.nav-icons { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  background: #ffffff;
  border-radius: 50%;
  color: var(--pink-dark);
  font-size: 18px;
  transition: background 0.2s, transform 0.2s;
}

.cart-btn:hover { background: var(--pink); transform: scale(1.08); }

.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--pink-dark); color: #ffffff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 11px; font-weight: 600;
  display: none; align-items: center; justify-content: center;
  pointer-events: none; line-height: 1;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  border: none;
  background: transparent;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--brown);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: min(520px, 70vw);
  overflow: hidden;
}

.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, rgba(255,200,200,0.15), rgba(92,45,74,0.45));
  padding: 24px;
  gap: 12px;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 4px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.hero-content p {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--pink-light);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.btn {
  display: inline-block;
  margin-top: 8px;
  padding: 12px 30px;
  background: var(--pink);
  color: var(--white);
  border-radius: 30px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 4px 14px rgba(231,104,139,0.25);
}

.btn:hover { background: var(--pink-dark); transform: translateY(-2px); }

/* ===== PRODUCTS SECTION ===== */
.products {
  padding: 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.products h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  color: var(--brown);
  margin-bottom: 36px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.product-link { display: block; }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown);
  padding: 10px 14px 2px;
}

.product-card .price {
  font-size: 0.95rem;
  color: var(--pink-dark);
  font-weight: 600;
  padding: 0 14px 14px;
}

/* ===== PAGE HEADER (for category pages) ===== */
.page-header {
  text-align: center;
  padding: 48px 24px 12px;
}
.page-header h1 {
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--brown);
}
.page-header p {
  color: var(--muted);
  margin-top: 8px;
  font-size: 1rem;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #ffeef1;
  color: var(--text);
  text-align: center;
  padding: 36px 24px;
  margin-top: 60px;
}
.footer-content { display: flex; justify-content: center; gap: 64px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-col { min-width: 140px; text-align: left; }
.site-footer h3 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--brown); text-transform: uppercase; letter-spacing: 0.5px; }
.site-footer a { color: var(--pink-dark); transition: color 0.2s; }
.site-footer a:hover { color: var(--brown); }
.site-footer p { margin-bottom: 6px; font-size: 0.9rem; }
.footer-note { margin-top: 8px; font-size: 0.82rem; opacity: 0.7; }

/* ===== MOBILE NAV ===== */
@media (max-width: 768px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 8px;
  }

  .logo-image { height: 50px; }
  .hamburger { display: flex; order: 3; }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    order: 5;
    padding-bottom: 10px;
    gap: 2px;
  }

  .nav-links.open { display: flex; }
  .nav-links li a { display: block; padding: 10px 14px; border-radius: 10px; }

  .search-bar { order: 4; max-width: 100%; flex: 1 1 100%; }

  .nav-icons { order: 2; margin-left: auto; }

  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .hero { height: min(340px, 80vw); }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-card h3 { font-size: 0.88rem; }
}
