:root {
  --bg: #fff7fb;
  --bg2: #f5fbff;
  --text: #374151;
  --muted: #6b7280;
  --brand: #f7c9d6;
  --brand-soft: #ffe6f0;
  --brand-deep: #a11a3b;
  --card: #ffffffee;
}

/* Reset & base */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Poppins", sans-serif;
  color: var(--text);
  /* watercolor-style background */
  background:
    radial-gradient(circle at 10% 20%, #ffe0f0 0, transparent 50%),
    radial-gradient(circle at 80% 0%, #e1f3ff 0, transparent 55%),
    radial-gradient(circle at 20% 90%, #eafce9 0, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fff7fb 40%, #f5fbff 80%, #ffffff 100%);
  min-height: 100vh;
}

/* Petals background layer */

.petals {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.petal {
  position: absolute;
  width: 18px;
  height: 28px;
  background: radial-gradient(circle at 30% 20%, #fff 0, #ffc7da 30%, #f399b9 100%);
  border-radius: 60% 40% 60% 40%;
  opacity: 0.78;
  filter: blur(0.2px);
  animation: petal-fall 14s linear infinite;
}

/* random positions / timings */
.petal:nth-child(1)  { left: 5%;  animation-delay: 0s;  animation-duration: 14s; }
.petal:nth-child(2)  { left: 18%; animation-delay: 2s;  animation-duration: 16s; }
.petal:nth-child(3)  { left: 30%; animation-delay: 4s;  animation-duration: 15s; }
.petal:nth-child(4)  { left: 42%; animation-delay: 6s;  animation-duration: 17s; }
.petal:nth-child(5)  { left: 55%; animation-delay: 1s;  animation-duration: 18s; }
.petal:nth-child(6)  { left: 68%; animation-delay: 3s;  animation-duration: 16s; }
.petal:nth-child(7)  { left: 80%; animation-delay: 5s;  animation-duration: 15s; }
.petal:nth-child(8)  { left: 92%; animation-delay: 7s;  animation-duration: 19s; }
.petal:nth-child(9)  { left: 12%; animation-delay: 8s;  animation-duration: 20s; }
.petal:nth-child(10) { left: 36%; animation-delay: 10s; animation-duration: 18s; }
.petal:nth-child(11) { left: 60%; animation-delay: 11s; animation-duration: 17s; }
.petal:nth-child(12) { left: 74%; animation-delay: 9s;  animation-duration: 19s; }
.petal:nth-child(13) { left: 26%; animation-delay: 12s; animation-duration: 21s; }
.petal:nth-child(14) { left: 48%; animation-delay: 13s; animation-duration: 22s; }
.petal:nth-child(15) { left: 88%; animation-delay: 15s; animation-duration: 20s; }

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -120px, 0) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 0.9; }
  50% {
    transform: translate3d(30px, 50vh, 0) rotate(90deg);
  }
  100% {
    transform: translate3d(-30px, 110vh, 0) rotate(180deg);
    opacity: 0;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1100px, 100% - 2.5rem);
  margin: 0 auto;
}

.section {
  padding: 3.5rem 0;
  position: relative;
  z-index: 1; /* above petals */
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

/* NAVBAR */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1002;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background-image:
    radial-gradient(circle at 30% 20%, #fff 0, #f8c7d6 40%, #f3a5b8 100%);
  box-shadow: 0 8px 18px rgba(244, 114, 182, 0.35);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #57213a;
  font-size: 0.85rem;
}

.brand-title {
  font-weight: 600;
}

.brand-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  padding: 0.4rem 0.5rem;
  border-radius: 999px;
  transition: background 0.18s ease-out, color 0.18s ease-out;
}

.nav-links a:hover {
  background: rgba(247, 201, 214, 0.45);
  color: #5b233e;
}

.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}

.icon-btn {
  border: none;
  background: transparent;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
}

.cart-label {
  font-size: 0.9rem;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #57213a;
  font-size: 0.75rem;
  font-weight: 700;
}

/* HERO */

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  gap: 2.4rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.35rem, 4vw, 3.1rem);
  margin-bottom: 0.7rem;
}

.hero-copy .lead {
  color: var(--muted);
  max-width: 34rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.1rem;
}

.hero-meta {
  margin-top: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-art {
  min-height: 220px;
  position: relative;
  z-index: 1;
}

.hero-bouquet {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 3 / 4;
  border-radius: 30px;
  margin-inline: auto;
  background-image:
    radial-gradient(circle at 20% 15%, #ffe3f2 0, transparent 60%),
    radial-gradient(circle at 80% 30%, #d4f2ff 0, transparent 55%),
    radial-gradient(circle at 20% 80%, #e7fbe3 0, transparent 60%);
  box-shadow: 0 22px 44px rgba(15, 23, 42, 0.35);
  position: relative;
  overflow: hidden;
}

/* Buttons */

.btn {
  border-radius: 999px;
  padding: 0.6rem 1.25rem;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.btn-primary {
  background: linear-gradient(180deg, #f3a5b8, #f7c9d6);
  color: #57213a;
  box-shadow: 0 12px 28px rgba(243, 165, 184, 0.35);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-ghost {
  background: #ffffff;
  border-color: #f5dfe6;
}

.btn-soft {
  background: #fff7fb;
  border-color: #fce0ec;
  font-size: 0.9rem;
}

/* Common layout bits */

.split {
  display: grid;
  gap: 2rem;
}

.hours-note,
.about-card,
.card,
.map-card {
  background: var(--card);
  border-radius: 18px;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(238, 242, 247, 0.9);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

.about-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.about-card-media img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 14px;
}

.about-card-body h3 {
  margin: 0 0 0.35rem;
  color: #4b2539;
}

.price-tag {
  margin-top: 0.4rem;
  font-weight: 600;
  color: #4b2539;
}

/* Side-by-side layout on larger screens */
@media (min-width: 768px) {
  .about-card {
    flex-direction: row;
    align-items: center;
  }
  .about-card-media {
    flex: 0 0 40%;
  }
  .about-card-body {
    flex: 1;
  }
}

/* About */

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li::before {
  content: "✿";
  margin-right: 0.4rem;
  color: #e879f9;
}

/* Products */

.section-header {
  margin-bottom: 1.5rem;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.product-search input {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  min-width: 220px;
}

.product-search input:focus-visible {
  outline: 2px solid #f9a8d4;
  outline-offset: 2px;
}

.product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid rgba(238, 242, 247, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform-origin: center;
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out, border-color 0.18s ease-out;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
  border-color: rgba(248, 187, 208, 0.9);
}

.product-card .media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.product-card .info {
  padding: 0.9rem 1rem 1.1rem;
}

.product-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Hours / contact */

.hours-list {
  list-style: none;
  padding-left: 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0;
}

/* Map card */

.map-card iframe {
  width: 100%;
  height: 260px;
  border: 0;
  border-radius: 12px;
}

/* Cart drawer */

.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
  z-index: 1001;
}

.backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(400px, 100%);
  background: #ffffff;
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.35);
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
  display: flex;
  flex-direction: column;
  z-index: 1003;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-header {
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e5e7eb;
}

.cart-items {
  padding: 1rem 1.2rem;
  overflow-y: auto;
  flex: 1;
}

.cart-line {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.cart-line img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
}

.cart-line .row {
  display: flex;
  justify-content: space-between;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.cart-footer {
  border-top: 1px solid #e5e7eb;
  padding: 0.9rem 1.2rem 1.1rem;
  background: #ffffff;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.7rem;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 1003;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.modal-inner {
  background: #ffffff;
  border-radius: 18px;
  padding: 1.3rem 1.4rem;
  max-width: 640px;
  width: min(640px, 100% - 2rem);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.35);
  position: relative;
}

.modal-close {
  position: absolute;
  right: 0.7rem;
  top: 0.6rem;
}

/* FAB + Back to top */

.fab-cart {
  position: fixed;
  right: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  cursor: pointer;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1004;
}

.fab-cart.show {
  opacity: 1;
  transform: none;
}

.fab-cart .count {
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #57213a;
  font-size: 0.82rem;
}

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 80px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transform: translateY(12px);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1004;
}

.back-to-top.show {
  opacity: 1;
  transform: none;
}

/* Animations */

@keyframes pulsePop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulsePop 0.28s ease-out;
}

/* Mobile nav */

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    right: 1rem;
    top: 3.2rem;
    background: #ffffff;
    border-radius: 14px;
    padding: 0.5rem 0.8rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.25);
    flex-direction: column;
    align-items: flex-start;
    display: none;
    z-index: 1001;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

/* Small layout tweaks */

@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .split {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* Section headings */
.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  color: #4b2539;
  position: relative;
  display: inline-block;
}

.section h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 60%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f9a8d4, #bfdbfe);
  opacity: 0.85;
}

/* Contact / forms */

.card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
  color: #4b2539;
}

.card label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.card input,
.card textarea {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s;
}

.card textarea {
  resize: vertical;
  min-height: 90px;
}

.card input:focus-visible,
.card textarea:focus-visible {
  outline: none;
  border-color: #f9a8d4;
  box-shadow: 0 0 0 2px rgba(249, 168, 212, 0.4);
  background: #fffafc;
}

#contactFeedback {
  margin-top: 0.4rem;
}

/* Checkout form styling */

.checkout-form {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkout-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.checkout-form input {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  padding: 0.55rem 0.8rem;
  font: inherit;
  background: rgba(255, 255, 255, 0.95);
  transition: border-color 0.16s ease-out, box-shadow 0.16s ease-out, background 0.16s;
}

.checkout-form input:focus-visible {
  outline: none;
  border-color: #bfdbfe;
  box-shadow: 0 0 0 2px rgba(191, 219, 254, 0.6);
  background: #f8fbff;
}

.checkout-form .radio-group {
  display: flex;
  gap: 1rem;
  margin-top: 0.3rem;
  margin-bottom: 0.3rem;
}

.checkout-form .radio-group label {
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: #4b5563;
}

#deliveryFields {
  margin-top: 0.3rem;
}

#checkoutFeedback {
  margin-top: 0.4rem;
}
