:root{
  --brand:#e91e63;
  --brand-2:#f44336;
  --bg:#f6f6f9;
  --text:#222;
  --card:#fff;
  --muted:#555;
}
:root.dark{
  --bg:#111418;
  --text:#eaeaea;
  --card:#1a1f24;
  --muted:#b9c0c8;
  --brand:#ff6b9a;
  --brand-2:#ff5a5a;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;background:var(--bg);color:var(--text);}
.header{position:sticky; top:0; z-index:50;background:linear-gradient(120deg, #fde1e7 0%, #fff0f0 100%);box-shadow:0 4px 18px #bbaa;border-radius:0 0 18px 18px;}
:root.dark .header{ background:linear-gradient(120deg, #2b1922 0%, #1c1520 100%); box-shadow:0 4px 18px #0007; }
nav{ max-width:1200px; margin:0 auto; padding:14px 18px; display:flex; align-items:center; gap:16px; }
.logo{ font-weight:800; color:var(--brand); text-decoration:none; font-size:1.2rem; white-space:nowrap;}
nav ul{ list-style:none; display:flex; gap:18px; margin:0; padding:0; }
nav a{ color:#4d3a3a; text-decoration:none; font-weight:600; }
:root.dark nav a{ color:#e3d2d2; }
.nav-actions{ margin-left:auto; display:flex; gap:10px; align-items:center;}
.toggle, .menu-btn{ border:0; background:var(--card); color:var(--text); padding:8px 12px; border-radius:10px; cursor:pointer; box-shadow:0 1px 6px #0002;}
.menu-btn{ display:none; }
@media(max-width:820px){
  .menu-btn{ display:block; }
  nav ul{ display:none; flex-direction:column; background:var(--card); padding:12px; border-radius:12px; box-shadow:0 4px 18px #0003; position:absolute; top:64px; left:12px; right:12px; }
  nav ul.open{ display:flex; }
}

/* Main Content and Products */
.hero{ text-align:center; padding:18px 0 28px; }
.hero-img{ width:100%; max-width:860px; height:320px; object-fit:cover; display:block; margin:10px auto 16px; border-radius:16px; box-shadow:0 2px 24px #f7bad98a; }
.hero h1{ margin:10px 0 6px; color:var(--brand); font-size:clamp(1.8rem, 3vw, 2.6rem); letter-spacing:.3px;}
.hero p{ margin:0 0 12px; color:var(--muted); }
main{ max-width:1200px; margin:0 auto; padding:0 16px; }
.section-title{ text-align:center; color:var(--brand); margin:32px 0 18px; font-weight:800; font-size:clamp(1.5rem,2.8vw,2rem);}
.products-grid{ display:grid; grid-template-columns:repeat(auto-fit, minmax(235px, 1fr)); gap:1.4rem; margin:18px 0;}
.card{ background:var(--card); border-radius:16px; padding:18px; box-shadow:0 2px 10px #0002; transition:transform .15s, box-shadow .15s;}
.card:hover{ transform:translateY(-4px); box-shadow:0 12px 26px #0003; }
.product-img{ width:100%; height:170px; object-fit:cover; border-radius:12px; margin-bottom:10px; }
.price{ color:#2b8a3e; font-weight:800; }
.grid-3{ display:grid; grid-template-columns:repeat(auto-fit, minmax(260px, 1fr)); gap:1rem; }
.cta{ display:inline-block; background:linear-gradient(100deg, var(--brand) 50%, var(--brand-2) 100%); color:#fff; padding:12px 24px; border-radius:999px; font-weight:800; text-decoration:none; box-shadow:0 4px 12px #0002; }
.cta:hover{ filter:brightness(.97); }
.callout{ text-align:center; margin:34px 0; }
footer{ background:#333; color:#fff; text-align:center; padding:18px 0 14px; border-radius:18px 18px 0 0; margin-top:36px; }
.kbd{font:600 .9rem ui-monospace, SFMono-Regular, Menlo, monospace; background:#0002; border-radius:6px; padding:2px 6px;}
.toast{position:fixed; bottom:18px; left:50%; transform:translateX(-50%); background:var(--card); color:var(--text); border:1px solid #0002; border-radius:12px; padding:10px 14px; box-shadow:0 6px 20px #0005; display:none; z-index:60;}
.toast.show{ display:block; }
img{ display:block; max-width:100%; height:auto; }

/* --- CART & CHECKOUT ADDED --- */
#cart-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 900;
}
#cart-btn {
  background: #fff;
  color: #e91e63;
  border-radius: 32px;
  padding: 10px 16px;
  font-size: 1.2rem;
  font-weight: 700;
  outline: none;
  border: 2px solid #e91e63;
  cursor: pointer;
}
#cart-count {
  background: #e91e63;
  color: #fff;
  border-radius: 50%;
  padding: 4px 8px;
  margin-left: 4px;
  font-size: 1rem;
  font-weight: bold;
}
#cart-popup {
  position: fixed;
  top: 60px;
  right: 24px;
  background: #fff;
  color: #222;
  border-radius: 12px;
  box-shadow: 0 6px 20px #0005;
  padding: 20px;
  min-width: 270px;
  z-index: 1000;
}
#cart-popup h3 {
  margin-top: 0;
}
#cart-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}
#checkout-btn {
  background: #e91e63;
  color: #fff;
  border-radius: 24px;
  font-weight: 600;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  width: 100%;
  font-size: 1.1rem;
}
