* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  /* 🍪 Brand Colors */
  --color-primary: #f7b7b9; /* soft pink (matches "Micci’s") */
  --color-secondary: #d4a073; /* warm biscuit brown (matches "Biccies") */
  --color-accent: #fce3cf; /* light creamy accent */

  /* 🩶 Neutrals */
  --color-black: #3a2f29; /* soft dark brown for text instead of pure black */
  --color-dark: #5a463a;
  --color-grey: #a38b79;
  --color-light: #fffaf6; /* gentle off-white */
  --color-white: #ffffff;

  /* 🌈 Feedback */
  --color-success: #8bc34a;
  --color-error: #f44336;
  --color-warning: #ffcc80;

  /* ✨ Backgrounds */
  --bg-light: var(--color-light);
  --bg-dark: var(--color-dark);
  --bg-cream: var(--color-accent);

  /* 🖋️ Text Colors */
  --text-dark: var(--color-black);
  --text-light: var(--color-white);
  --text-muted: var(--color-grey);
}

/* ------------------------------------------------------ */

body {
  font-family: "Montserrat", sans-serif;
  color: var(--text-light);
}

/* Navbar */
.navbar {
  left: 0;
  width: 100%;
  color: var(--text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  gap: 1rem;
  text-align: center;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.5);
  border-bottom: 4px solid var(--color-black);
}

.nav-left {
  display: flex;
  flex-direction: column;
}

.brand {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.logo {
  max-height: 100px;
}

.reviews {
  font-size: 0.9rem;
  color: var(--color-dark);
}

.review-count {
  color: var(--text-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.buy-btn {
  background: var(--color-primary);
  color: var(--text-dark);
  border: 4px solid var(--color-black);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.buy-btn:hover {
  background: var(--color-primary);
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--color-black);
  transition: color 0.3s ease;
}

.icon-btn:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: calc(100vh - 64px);
  background: url("./image.png") top/cover no-repeat;
  display: flex;
  align-items: flex-end;
  justify-content: start;
  text-align: left;
  padding: 2rem;
}

.hero-text {
  position: relative;
  z-index: 1;
  max-width: 700px;
  background-color: var(--color-white);
  color: var(--color-black);
  padding: 24px 48px;
  border: 4px solid var(--color-black);
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--color-dark);
}

/* About Section */
.about {
  background: var(--color-primary);
  color: var(--text-light);
  padding: 4rem 2rem;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.about-image {
  flex: 1;
  min-width: 300px;
}

.about-image img {
  width: 100%;
  max-height: 200px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.about-text {
  flex: 3;
  min-width: 300px;
  text-align: right;
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Testimonials Section */
.testimonials {
  background: var(--bg-light);
  color: var(--text-dark);
  padding: 4rem 2rem;
  text-align: center;
}

.testimonials-container {
  max-width: 1100px;
  margin: 0 auto;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.testimonial-cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.testimonial-card {
  background: var(--bg-white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  flex: 1 1 300px;
  max-width: 320px;
}

.testimonial-card p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-card h4 {
  font-weight: 600;
  color: var(--color-dark);
}

/* Shop Section */
.shop {
  background: var(--bg-white);
  color: var(--text-dark);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 4px solid var(--color-black);
}

.shop-container {
  max-width: 1100px;
  margin: 0 auto;
}

.shop h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  font-weight: 700;
}

.cookie-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.cookie-card {
  background: var(--bg-light);
  border: 3px solid var(--color-black);
  padding: 1.5rem;
  max-width: 300px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.cookie-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
}

.cookie-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.cookie-card p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.add-btn {
  background: var(--color-primary);
  color: var(--text-light);
  border: 3px solid var(--color-black);
  border-radius: 25px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.1s ease;
}

.add-btn:hover {
  background: var(--color-primary);
  transform: scale(1.05);
}

/* --- 🛒 Cart Overlay --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 900;
}

/* --- 🧺 Slide-out Cart --- */
.cart {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: fit-content;
  background: var(--bg-light);
  color: var(--text-dark);
  box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.4s ease;
  z-index: 1000;
  border-left: 3px solid var(--color-secondary);
}

.cart.active {
  right: 0;
  margin: 24px;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  background: var(--color-secondary);
  color: var(--text-light);
}

.cart-header h3 {
  font-size: 1.3rem;
}

#closeCart {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 2rem;
  cursor: pointer;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-cream);
  border: 2px solid var(--color-secondary);
  border-radius: 10px;
  padding: 0.6rem;
}

.cart-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-item h4 {
  margin: 0;
  font-size: 1rem;
}

.cart-footer {
  padding: 1rem;
  border-top: 2px solid var(--color-secondary);
  background: var(--bg-cream);
}

.cart-total {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.checkout-btn {
  background: var(--color-primary);
  color: var(--text-light);
  border: 3px solid var(--color-black);
  border-radius: 25px;
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
}

.checkout-btn:hover {
  background: var(--color-secondary);
}
