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

:root {
  --pink-light: #FCE4EC;
  --pink-mid: #F48FB1;
  --lavender: #D1C4E9;
  --white: #FFFFFF;
  --text: #333333;
  --pink-footer: #F8BBD0;
}

html, body {
  font-family: 'Poppins', sans-serif;
  background: var(--white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* Top decorative bar */
.top-deco {
  height: 8px;
  background: linear-gradient(90deg, var(--pink-light), var(--pink-mid), var(--lavender), var(--pink-light));
}

/* Header */
.header { background: var(--white); padding: 16px 24px; }
.header-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.header-left { display: flex; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; background: var(--pink-light); border-radius: 999px; padding: 8px 16px; width: 100%; max-width: 260px; }
.search input { border: none; background: transparent; outline: none; font-family: 'Poppins', sans-serif; font-size: 0.9rem; width: 100%; color: var(--text); }
.header-center { text-align: center; }
.logo { text-decoration: none; display: inline-flex; align-items: baseline; gap: 6px; }
.logo-serif { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.9rem; color: var(--pink-mid); }
.logo-script { font-family: 'Dancing Script', cursive; font-weight: 700; font-size: 1.6rem; color: var(--text); }
.header-right { display: flex; justify-content: flex-end; }
.cart-btn { position: relative; background: var(--pink-light); border: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); transition: transform .2s, background .2s; }
.cart-btn:hover { background: var(--pink-mid); color: #fff; transform: translateY(-1px); }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--pink-mid); color: #fff; font-size: 0.7rem; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; }

/* Navbar */
.navbar { background: var(--lavender); padding: 12px 24px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; position: relative; }
.nav-links { list-style: none; display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.nav-links a { text-decoration: none; color: var(--text); font-size: 0.95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--pink-mid); }
.nav-pill { background: var(--pink-mid); color: #fff; padding: 8px 20px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: transform .2s, filter .2s; box-shadow: 0 4px 12px rgba(244,143,177,0.35); }
.nav-pill:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Scalloped */
.scalloped { width: 100%; height: 60px; display: block; }

/* Hero */
.hero { background: var(--pink-light); position: relative; padding: 40px 24px 60px; overflow: hidden; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.sparkle { position: absolute; color: var(--pink-mid); font-size: 1.4rem; opacity: 0.7; animation: twinkle 3s ease-in-out infinite; }
.s1 { top: 20%; left: 12%; }
.s2 { top: 30%; right: 18%; animation-delay: 1s; }
.s3 { bottom: 25%; left: 20%; animation-delay: 2s; }
.butterfly { position: absolute; top: 15%; right: 8%; font-size: 1.8rem; animation: float 4s ease-in-out infinite; }
@keyframes twinkle { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 1; transform: scale(1.3); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; }
.polaroid { background: rgba(255,255,255,0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 12px 12px 36px; border-radius: 4px; box-shadow: 0 12px 28px rgba(0,0,0,0.12); width: 200px; position: relative; transition: transform .3s; border: 1px solid rgba(255,255,255,0.7); }
.polaroid.left { transform: rotate(-6deg); }
.polaroid.right { transform: rotate(6deg); }
.polaroid:hover { transform: rotate(0deg) scale(1.03); }
.polaroid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; }
.polaroid-caption { font-family: 'Dancing Script', cursive; text-align: center; margin-top: 8px; color: var(--text); font-size: 1.1rem; }
.tape { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 60px; height: 18px; background: rgba(244,143,177,0.5); border-radius: 2px; }

.hero-center { text-align: center; max-width: 420px; }
.hero-curve { font-family: 'Dancing Script', cursive; color: var(--pink-mid); font-size: 1.4rem; margin-bottom: 6px; }
.hero-title { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--pink-mid); letter-spacing: -1px; }
.hero-script { font-family: 'Dancing Script', cursive; font-size: 1.6rem; color: var(--text); margin: 8px 0 20px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 999px; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: none; transition: transform .2s, filter .2s, box-shadow .2s; }
.btn-pink { background: var(--pink-mid); color: #fff; box-shadow: 0 6px 18px rgba(244,143,177,0.4); }
.btn-pink:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-pink-outline { background: transparent; color: var(--pink-mid); border: 2px solid var(--pink-mid); }
.btn-pink-outline:hover { background: var(--pink-mid); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--lavender); }
.btn-outline:hover { background: var(--lavender); }

/* Welcome */
.welcome { background: var(--white); padding: 60px 24px; text-align: center; }
.container-narrow { max-width: 720px; margin: 0 auto; }
.section-title { font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--text); margin-bottom: 16px; }
.section-title.serif { color: var(--text); }
.section-title.center { text-align: center; }
.section-title.left { text-align: left; }
.section-title.mixed { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.section-title .script { font-family: 'Dancing Script', cursive; font-size: 1.4rem; color: var(--pink-mid); font-weight: 500; }
.section-title .serif { font-family: 'Playfair Display', serif; }
.welcome-text { color: #666; line-height: 1.7; margin-bottom: 24px; font-size: 1.05rem; }

/* Top sellers */
.topsellers { background: var(--white); padding: 60px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.scroller { overflow: hidden; position: relative; padding: 8px 0 20px; }
.scroller::before, .scroller::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none;
}
.scroller::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.scroller::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
.scroller-track { display: flex; gap: 24px; width: max-content; will-change: transform; }
.scroller-track .card { flex: 0 0 260px; }

.card { background: rgba(255,255,255,0.55); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); border-radius: 20px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.06); border: 1px solid rgba(255,255,255,0.6); transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(244,143,177,0.2); }
.card-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; background: var(--pink-light); }
.card-body { padding: 14px 16px 16px; }
.card-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; color: var(--text); }
.card-price { margin-top: 4px; font-weight: 600; color: var(--pink-mid); font-size: 1.1rem; }
.card-row { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; gap: 10px; }
.btn-buy { background: var(--pink-mid); color: #fff; border: none; padding: 8px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: filter .2s, transform .2s; }
.btn-buy:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* Collections */
.collections { background: var(--lavender); padding: 40px 24px 20px; position: relative; }
.cloud-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 28px; padding-bottom: 20px; }
.cloud-btn {
  background: #fff; color: var(--text);
  border: none; cursor: pointer;
  padding: 18px 34px;
  border-radius: 999px 999px 999px 999px / 60% 60% 40% 40%;
  font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
  transition: transform .2s, background .2s, color .2s;
  position: relative;
}
.cloud-btn:hover { background: var(--pink-mid); color: #fff; transform: translateY(-3px) scale(1.03); }

/* About */
.about { background: var(--white); padding: 60px 24px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-text p { color: #666; line-height: 1.7; margin: 16px 0 24px; }
.about-img-wrap { position: relative; }
.about-img { background: var(--pink-light); padding: 16px; border-radius: 8px; transform: rotate(2deg); box-shadow: 0 12px 28px rgba(0,0,0,0.1); }
.about-img img { width: 100%; border-radius: 4px; display: block; }
.flower { position: absolute; font-size: 2rem; color: var(--pink-mid); }
.f1 { top: -10px; left: -10px; }
.f2 { bottom: -10px; right: -10px; }

/* Contact */
.contact { background: var(--pink-light); padding: 60px 24px; }
.contact-card { background: #fff; border-radius: 24px; padding: 40px 32px; box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.contact-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* Footer */
.footer { background: var(--pink-footer); padding: 40px 24px 24px; text-align: center; color: var(--text); }
.footer-icons { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-bottom: 24px; }
.ficon { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 1.8rem; }
.ficon small { font-size: 0.8rem; color: #666; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.footer-links a { color: var(--text); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--pink-mid); }
.footer-copy { font-size: 0.8rem; color: #666; }

/* Floating WA */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 30; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; text-decoration: none; background: #25d366; color: #fff; box-shadow: 0 10px 28px rgba(37,211,102,0.4); transition: transform .2s; }
.fab:hover { transform: scale(1.08); }

/* Drawer */
.drawer-overlay, .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(4px); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-overlay.open, .modal-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; width: min(400px, 92vw); height: 100vh; background: #fff; z-index: 50; transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--pink-light); }
.drawer-head h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.drawer-foot { padding: 16px 22px 24px; border-top: 1px solid var(--pink-light); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1.05rem; }
.total-row strong { font-size: 1.25rem; color: var(--pink-mid); }
.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pink-light); }
.cart-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.cart-item-name { font-weight: 600; font-size: 0.95rem; }
.cart-item-price { color: #888; font-size: 0.85rem; margin-top: 2px; }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.qty-btn { background: var(--pink-light); border: none; color: var(--text); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: 0.9rem; display: grid; place-items: center; }
.qty-val { font-size: 0.9rem; min-width: 18px; text-align: center; }
.icon-btn { background: none; border: none; color: var(--text); cursor: pointer; font-size: 1.4rem; }

/* Modal */
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); width: min(520px, 92vw); max-height: 88vh; overflow-y: auto; z-index: 51; border-radius: 24px; padding: 24px; background: #fff; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; box-shadow: 0 20px 50px rgba(0,0,0,0.2); }
.modal.open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.modal-close { position: absolute; top: 12px; right: 14px; background: var(--pink-light); border: none; color: var(--text); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; display: grid; place-items: center; }
.modal-body img { width: 100%; border-radius: 16px; aspect-ratio: 1/1; object-fit: cover; }
.modal-body h3 { margin-top: 16px; font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.modal-body .price { margin-top: 6px; font-size: 1.3rem; font-weight: 700; color: var(--pink-mid); }
.modal-body .desc { margin-top: 10px; color: #666; line-height: 1.5; }
.modal-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

.empty { text-align: center; padding: 40px 0; color: #999; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .hero-inner { flex-direction: column; }
  .polaroid { width: 160px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .search { max-width: 160px; }
}
@media (max-width: 480px) {
  .logo-serif { font-size: 1.5rem; }
  .logo-script { font-size: 1.3rem; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
}