/* ============================================================
   PETAL & STEM — Stylesheet
   ============================================================ */

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

:root {
  --red:    #e63946;
  --purple: #7b2d8b;
  --orange: #f4a261;
  --poison: #3d1a4f;
  --green:  #2d6a4f;
  --stem:   #52b788;
  --bg:     #fdf8f0;
  --card:   #ffffff;
  --text:   #2b2b2b;
  --muted:  #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 16px;
  font-size: 16px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Georgia', serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* ── HEADER ─────────────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: -.5px;
  flex-shrink: 0;
}
.logo-icon { font-size: 1.6rem; }
.amp { color: var(--red); }

nav { display: flex; gap: 1.5rem; margin-left: auto; }
nav a {
  text-decoration: none;
  color: var(--muted);
  font-family: sans-serif;
  font-size: .9rem;
  transition: color .2s;
}
nav a:hover { color: var(--text); }

.cart-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .5rem 1.2rem;
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s;
  font-family: sans-serif;
}
.cart-btn:hover { background: #444; }

.cart-count {
  background: var(--red);
  color: #fff;
  border-radius: 50%;
  font-size: .7rem;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 2rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-content { flex: 1; max-width: 560px; }

.hero-sub {
  font-family: sans-serif;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  margin-bottom: .75rem;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-desc {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-family: sans-serif;
}

.btn-primary {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, transform .15s;
  font-family: sans-serif;
}
.btn-primary:hover { background: #235c42; transform: translateY(-1px); }

.hero-flowers {
  display: flex;
  gap: 1rem;
  font-size: 3.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-flower {
  animation: float 3s ease-in-out infinite;
  display: inline-block;
}
.f1 { animation-delay: 0s; }
.f2 { animation-delay: .4s; }
.f3 { animation-delay: .8s; }
.f4 { animation-delay: 1.2s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ── SHOP ────────────────────────────────────────────────── */
.shop {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: .5rem;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-family: sans-serif;
  margin-bottom: 3rem;
}

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

.product-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.13);
}

/* ── PRODUCT IMAGE ───────────────────────────────────────── */
.product-img {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.product-card:hover .product-img img {
  transform: scale(1.05);
}

.poison-img img {
  filter: saturate(1.2) brightness(0.85);
}

.skull {
  position: absolute;
  top: .6rem;
  right: .6rem;
  font-size: 1.8rem;
  animation: pulse-skull 1.5s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(0,0,0,.6));
}

@keyframes pulse-skull {
  0%, 100% { transform: scale(1) rotate(-10deg); }
  50%       { transform: scale(1.2) rotate(10deg); }
}

/* ── PRODUCT INFO ────────────────────────────────────────── */
.product-info {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-tag {
  display: inline-block;
  background: #ecfdf5;
  color: #065f46;
  font-family: sans-serif;
  font-size: .72rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .2rem .6rem;
  border-radius: 50px;
  margin-bottom: .7rem;
}

.danger-tag {
  background: #fef2f2;
  color: #991b1b;
}

.product-info h3 {
  font-size: 1.2rem;
  margin-bottom: .5rem;
}

.non-invis {
  font-family: sans-serif;
  font-size: .88rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: .75rem;
}

.invis {
  font-size: 100;
  line-height: 0;
  height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
  border: none;
}

.warning-list {
  font-family: sans-serif;
  font-size: .8rem;
  color: #991b1b;
  padding-left: 1.2rem;
  margin-bottom: .75rem;
}
.warning-list li { margin-bottom: .2rem; }

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: auto;
}

.price {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.price-note {
  font-size: .65rem;
  font-weight: normal;
  color: var(--muted);
  font-style: italic;
}

.btn-add {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .5rem 1.2rem;
  font-size: .88rem;
  cursor: pointer;
  transition: background .2s, transform .15s;
  font-family: sans-serif;
  white-space: nowrap;
}
.btn-add:hover { background: #235c42; transform: translateY(-1px); }

.danger-btn { background: #7f1d1d; }
.danger-btn:hover { background: #991b1b; }

.poison-card { border: 2px solid #4c1d95; }

/* ── ABOUT ───────────────────────────────────────────────── */
.about {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem;
}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 4rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-text { flex: 2; min-width: 280px; }
.about-text h2 { font-size: 2rem; margin-bottom: 1rem; }
.about-text p  {
  font-family: sans-serif;
  color: var(--muted);
  margin-bottom: .75rem;
  font-size: .95rem;
}

.about-stats {
  flex: 1;
  min-width: 220px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg);
  border-radius: 12px;
  padding: 1.2rem 1rem;
}
.stat-num {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--green);
}
.stat-label {
  font-family: sans-serif;
  font-size: .78rem;
  color: var(--muted);
  margin-top: .2rem;
}
.stat-footnote {
  grid-column: 1 / -1;
  font-family: sans-serif;
  font-size: .72rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ── CONTACT ─────────────────────────────────────────────── */
.contact {
  max-width: 600px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.contact-form input,
.contact-form textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 1rem;
  font-family: sans-serif;
  background: #fff;
  transition: border-color .2s;
  resize: vertical;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
}
.contact-form button { align-self: flex-start; }

/* ── FOOTER ──────────────────────────────────────────────── */
footer {
  background: var(--text);
  color: #d1d5db;
  padding: 2.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: bold;
  color: #fff;
}

.footer-inner p {
  font-family: sans-serif;
  font-size: .82rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-links a {
  color: #9ca3af;
  font-family: sans-serif;
  font-size: .82rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: #fff; }

/* ── CART SIDEBAR ────────────────────────────────────────── */
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 200;
}
.cart-overlay.open { display: block; }

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 95vw;
  height: 100%;
  background: #fff;
  z-index: 201;
  box-shadow: -4px 0 30px rgba(0,0,0,.15);
  display: flex;
  flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 { font-size: 1.2rem; }

.cart-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.4rem;
}

.cart-empty {
  color: var(--muted);
  font-family: sans-serif;
  text-align: center;
  margin-top: 3rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
  gap: .5rem;
}
.cart-item-name {
  font-size: .9rem;
  font-family: sans-serif;
  flex: 1;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.cart-item-controls button {
  background: var(--border);
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.cart-item-controls button:hover { background: #d1d5db; }
.cart-item-qty {
  font-family: sans-serif;
  font-size: .9rem;
  min-width: 20px;
  text-align: center;
}
.cart-item-price {
  font-family: sans-serif;
  font-size: .9rem;
  font-weight: bold;
  min-width: 56px;
  text-align: right;
}

.cart-footer {
  padding: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cart-total {
  font-family: sans-serif;
  font-size: 1.1rem;
  text-align: right;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--text);
  color: #fff;
  padding: .75rem 1.5rem;
  border-radius: 50px;
  font-family: sans-serif;
  font-size: .9rem;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .35s;
  opacity: 0;
  z-index: 300;
  white-space: nowrap;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 700px) {
  .hero { flex-direction: column; text-align: center; padding: 3rem 1.5rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-flowers { font-size: 2.5rem; }
  .about-inner { flex-direction: column; gap: 2rem; }
  nav { display: none; }
  .header-inner { padding: 0 1rem; }
}
