:root {
  --brand: #00b4d8;
  --brand-dark: #0096b4;
  --brand-soft: #eaf8fc;
  --dark: #2a3a4e;
  --wa: #25d366;
  --wa-dark: #1da851;
}

* { box-sizing: border-box; }

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background: linear-gradient(180deg, #f8fbf9 0%, #ffffff 100%);
  color: #1e293b;
  margin: 0;
  min-height: 100vh;
}

a { text-decoration: none; }

/* ─── NAVBAR ─────────────────────────────────────────── */
.store-nav {
  background: #fff;
  border-bottom: 1px solid #e9eef3;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.store-nav .brand-name {
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
}
.store-nav .brand-name small {
  font-weight: 500;
  color: #64748b;
}
.cart-btn {
  position: relative;
  border: 1px solid var(--brand);
  color: var(--brand);
  background: #fff;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  transition: all .2s ease;
}
.cart-btn:hover { background: var(--brand); color: #fff; }
.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ef4444;
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #1f2d3d 100%);
  color: #fff;
  border-radius: 22px;
  padding: 2.6rem 2rem;
  overflow: hidden;
  position: relative;
}
.hero h1 { font-weight: 800; }
.hero .hero-pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  color: #d7f4fb;
  border-radius: 999px;
  padding: .35rem .9rem;
  font-size: .8rem;
  font-weight: 600;
}
.hero .blob {
  position: absolute;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(0,180,216,.45), transparent 70%);
  right: -80px; top: -80px;
  border-radius: 50%;
}

/* ─── CATEGORY PILLS ─────────────────────────────────── */
.cat-pills { gap: .5rem; flex-wrap: wrap; }
.cat-pill {
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: .5rem 1.05rem;
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all .15s ease;
}
.cat-pill:hover { border-color: var(--brand); color: var(--brand); }
.cat-pill.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ─── PRODUCT CARD ───────────────────────────────────── */
.product-card {
  background: #fff;
  border: 1px solid #e9eef3;
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15,23,42,.10);
}
.product-thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.product-thumb .no-img {
  color: var(--brand);
  font-size: 2.6rem;
  opacity: .6;
}
.sale-badge {
  position: absolute;
  top: .7rem; left: .7rem;
  background: #ff7a18;
  color: #fff;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: .25rem .6rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.product-body { padding: 1rem; display: flex; flex-direction: column; flex: 1; }
.product-cat {
  font-size: .72rem;
  font-weight: 700;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.product-name {
  font-weight: 700;
  font-size: .98rem;
  color: #1e293b;
  margin: .15rem 0 .35rem;
  line-height: 1.25;
}
.product-rating { font-size: .78rem; color: #f59e0b; }
.product-rating .reviews { color: #94a3b8; }
.price-now { font-weight: 800; color: var(--dark); font-size: 1.12rem; }
.price-old {
  color: #94a3b8;
  text-decoration: line-through;
  font-size: .85rem;
  margin-left: .35rem;
}
.btn-add {
  background: var(--brand);
  border: none;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  padding: .55rem;
  transition: background .15s ease;
}
.btn-add:hover { background: var(--brand-dark); color: #fff; }
.btn-add.added { background: var(--wa); }

/* ─── CART OFFCANVAS ─────────────────────────────────── */
.cart-item { border-bottom: 1px solid #eef2f6; padding: .9rem 0; }
.cart-item img, .cart-item .ci-noimg {
  width: 58px; height: 58px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--brand-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
  flex: 0 0 auto;
}
.qty-box { display: inline-flex; align-items: center; border: 1px solid #e2e8f0; border-radius: 999px; overflow: hidden; }
.qty-box button {
  border: none; background: #f8fafc; width: 30px; height: 30px;
  font-weight: 700; color: var(--dark); line-height: 1;
}
.qty-box button:hover { background: var(--brand-soft); color: var(--brand); }
.qty-box span { min-width: 34px; text-align: center; font-weight: 700; font-size: .9rem; }
.btn-whatsapp {
  background: var(--wa);
  border: none;
  color: #fff;
  border-radius: 999px;
  font-weight: 800;
  padding: .8rem;
}
.btn-whatsapp:hover { background: var(--wa-dark); color: #fff; }
.btn-whatsapp:disabled { opacity: .55; }

.empty-cart { color: #94a3b8; }

/* ─── FOOTER ─────────────────────────────────────────── */
.store-footer {
  background: var(--dark);
  color: #cbd5e1;
  margin-top: 3rem;
  padding: 2.2rem 0 1.4rem;
}
.store-footer a { color: #cbd5e1; }
.store-footer a:hover { color: #fff; }

/* ─── TOAST ──────────────────────────────────────────── */
.cart-toast {
  position: fixed;
  bottom: 1.2rem; left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: var(--dark);
  color: #fff;
  padding: .7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.25);
  z-index: 2000;
  transition: transform .3s ease;
}
.cart-toast.show { transform: translateX(-50%) translateY(0); }
