:root {
  --bg: #f5f6fb;
  --card: #ffffff;
  --dark: #171d2e;
  --muted: #67718c;
  --brand: #4f46e5;
  --brand-dark: #4038c7;
  --accent: #06b6d4;
  --green: #16a34a;
  --amber: #f59e0b;
  --border: #e6e9f4;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; background: var(--bg); color: var(--dark); line-height: 1.65; }
h1, h2, h3, h4 { font-family: "Plus Jakarta Sans", "Inter", sans-serif; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
p { color: var(--muted); }
a { text-decoration: none; color: inherit; }
li { list-style: none; }
s { color: var(--muted); font-weight: 500; font-size: 0.85em; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 0.5rem; }
.center { text-align: center; }

.btn {
  display: inline-block;
  padding: 0.8rem 1.7rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px rgba(79, 70, 229, 0.3); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 8px 24px rgba(6, 182, 212, 0.3); }
.btn-ghost { border: 2px solid rgba(255, 255, 255, 0.75); color: #fff; background: transparent; }
.btn-outline { border: 2px solid var(--border); background: #fff; color: var(--dark); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Demo ribbon */
.demo-ribbon {
  background: var(--brand);
  color: #e6e4ff;
  text-align: center;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}
.demo-ribbon a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Nav */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; gap: 1rem; }
.logo { font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.logo span { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 1.4rem; font-weight: 600; font-size: 0.95rem; }
.nav-links a { color: var(--muted); transition: color 0.15s; }
.nav-links a:hover, .nav-links a.current { color: var(--dark); }
.nav-cart { position: relative; display: inline-flex; align-items: center; gap: 0.4rem; background: var(--dark); color: #fff !important; padding: 0.55rem 1.1rem; border-radius: 12px; }
.nav-cart-count {
  display: none; position: absolute; top: -7px; right: -7px;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px;
  align-items: center; justify-content: center; padding: 0 5px;
}
.nav-cart-count.show { display: inline-flex; }

/* Hero */
.hero {
  background: radial-gradient(1200px 500px at 80% -10%, rgba(6, 182, 212, 0.35), transparent 60%),
              linear-gradient(135deg, #1d1a4d, #3c34b5 55%, #4f46e5);
  color: #fff;
  padding: 5rem 0 6.5rem;
  position: relative;
  overflow: hidden;
}
.hero .eyebrow { color: #9ef0ff; }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); letter-spacing: -0.02em; margin-bottom: 1rem; }
.hero h1 em { font-style: normal; color: #7ee8fa; }
.hero-lede { color: #c9c9f2; max-width: 540px; font-size: 1.08rem; margin-bottom: 1.8rem; }
.hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.hero-meta { display: flex; gap: 2.2rem; flex-wrap: wrap; }
.hero-meta div { color: #b9b7ee; font-size: 0.85rem; line-height: 1.4; }
.hero-meta strong { display: block; color: #fff; font-size: 1.25rem; font-family: "Plus Jakarta Sans", sans-serif; }
.hero-float { position: absolute; font-size: 3.2rem; opacity: 0.85; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.35)); animation: float 6s ease-in-out infinite; }
.hf1 { top: 18%; right: 12%; }
.hf2 { top: 55%; right: 22%; animation-delay: 1.6s; font-size: 2.6rem; }
.hf3 { top: 32%; right: 4%; animation-delay: 3s; font-size: 2.4rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@media (max-width: 720px) { .hero-float { display: none; } }

/* Marquee */
.marquee { background: var(--dark); color: #ffd166; overflow: hidden; padding: 0.65rem 0; font-weight: 700; font-size: 0.9rem; }
.marquee-track { display: flex; white-space: nowrap; animation: scroll 22s linear infinite; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.cat-tile {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.5rem 1rem; text-align: center; font-weight: 700; font-size: 0.95rem;
  transition: transform 0.18s, box-shadow 0.18s;
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(23, 29, 46, 0.1); }
.cat-tile .ct-emoji { display: block; font-size: 2.2rem; margin-bottom: 0.5rem; }
.cat-tile small { display: block; color: var(--muted); font-weight: 500; font-size: 0.78rem; }

/* Product cards */
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.3rem; margin-top: 1.6rem; }
.p-rail { display: flex; gap: 1.3rem; overflow-x: auto; padding: 1.4rem 1.25rem 1.8rem; scroll-snap-type: x mandatory; }
.p-rail .p-card { min-width: 250px; scroll-snap-align: start; }
.p-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.18s, box-shadow 0.18s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(23, 29, 46, 0.12); }
.p-img { position: relative; height: 150px; display: flex; align-items: center; justify-content: center; }
.p-emoji { font-size: 3.6rem; filter: drop-shadow(0 10px 18px rgba(0,0,0,0.15)); }
.p-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--dark); color: #fff; font-size: 0.7rem; font-weight: 800;
  padding: 0.25rem 0.6rem; border-radius: 999px;
}
.p-off {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(22, 163, 74, 0.12); color: var(--green);
  font-size: 0.72rem; font-weight: 800; padding: 0.2rem 0.55rem; border-radius: 999px;
}
.p-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.p-body h3 { font-size: 1rem; }
.p-desc { font-size: 0.82rem; line-height: 1.5; }
.p-rating { font-size: 0.8rem; margin-top: auto; }
.p-rating .stars { color: var(--amber); letter-spacing: 1px; }
.p-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.4rem; }
.p-price { font-weight: 800; font-size: 1.05rem; font-family: "Plus Jakarta Sans", sans-serif; }
.btn-add { padding: 0.5rem 1.05rem; font-size: 0.85rem; border-radius: 10px; }

.stepper { display: inline-flex; align-items: center; gap: 0.15rem; background: var(--brand); border-radius: 10px; color: #fff; }
.stepper button {
  background: none; border: none; color: #fff; font-size: 1.1rem; font-weight: 800;
  width: 32px; height: 36px; cursor: pointer;
}
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-size: 0.9rem; }

/* Shop toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.4rem; }
.search-box {
  flex: 1; min-width: 220px; display: flex; align-items: center; gap: 0.5rem;
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0.65rem 1rem;
}
.search-box input { border: none; outline: none; font-family: inherit; font-size: 0.95rem; width: 100%; background: transparent; color: var(--dark); }
.toolbar select {
  font-family: inherit; font-size: 0.9rem; font-weight: 600; color: var(--dark);
  background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0.65rem 0.9rem; cursor: pointer;
}
.chips { display: flex; gap: 0.55rem; flex-wrap: wrap; margin-top: 1rem; }
.chip {
  background: #fff; border: 1px solid var(--border); border-radius: 999px;
  padding: 0.45rem 1.1rem; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  color: var(--muted); transition: all 0.15s; font-family: inherit;
}
.chip.active { background: var(--dark); border-color: var(--dark); color: #fff; }
.empty-state { text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.empty-state span { font-size: 3rem; display: block; margin-bottom: 0.6rem; }

/* USP row */
.usp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.usp {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 1.3rem; display: flex; gap: 0.9rem; align-items: flex-start;
}
.usp .u-emoji { font-size: 1.7rem; }
.usp h4 { font-size: 0.95rem; margin-bottom: 0.15rem; }
.usp p { font-size: 0.82rem; line-height: 1.5; }

/* Testimonials */
.t-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem; margin-top: 1.8rem; }
.t-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.5rem; }
.t-card .stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 0.6rem; display: block; }
.t-card blockquote { font-size: 0.95rem; color: var(--dark); margin-bottom: 1rem; }
.t-card figcaption { font-size: 0.82rem; color: var(--muted); font-weight: 600; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--brand), var(--accent));
  border-radius: 24px; color: #fff; text-align: center;
  padding: 3.2rem 1.5rem; margin: 0 1.25rem;
}
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: #e8e7ff; margin-bottom: 1.5rem; }

/* Cart drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(13, 17, 32, 0.55); z-index: 90;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100vw);
  background: #fff; z-index: 100; display: flex; flex-direction: column;
  transform: translateX(105%); transition: transform 0.28s cubic-bezier(0.25, 1, 0.4, 1);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.25);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--border); }
.drawer-head h3 { font-size: 1.1rem; }
.drawer-close { background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem 1.3rem; }
.ci { display: flex; gap: 0.9rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--border); }
.ci-img { width: 58px; height: 58px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.7rem; flex-shrink: 0; }
.ci-info { flex: 1; min-width: 0; }
.ci-info h4 { font-size: 0.88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ci-info p { font-size: 0.82rem; font-weight: 700; color: var(--dark); }
.ci .stepper { background: #fff; border: 1px solid var(--border); color: var(--dark); }
.ci .stepper button { color: var(--brand); }
.free-ship { margin: 1rem 0 0.4rem; font-size: 0.8rem; color: var(--muted); }
.free-ship strong { color: var(--green); }
.ship-bar { height: 6px; background: var(--border); border-radius: 999px; overflow: hidden; margin-top: 0.4rem; }
.ship-bar i { display: block; height: 100%; background: var(--green); border-radius: 999px; transition: width 0.3s; }
.coupon-row { display: flex; gap: 0.5rem; margin-top: 1.1rem; }
.coupon-row input {
  flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 0.6rem 0.9rem;
  font-family: inherit; font-size: 0.85rem; text-transform: uppercase; outline: none;
}
.coupon-row .btn { padding: 0.6rem 1.1rem; font-size: 0.82rem; border-radius: 10px; }
.coupon-ok { font-size: 0.78rem; color: var(--green); font-weight: 700; margin-top: 0.35rem; }
.coupon-bad { font-size: 0.78rem; color: #dc2626; font-weight: 700; margin-top: 0.35rem; }
.drawer-foot { border-top: 1px solid var(--border); padding: 1rem 1.3rem 1.2rem; }
.sum-row { display: flex; justify-content: space-between; font-size: 0.88rem; color: var(--muted); padding: 0.18rem 0; }
.sum-row.total { font-weight: 800; color: var(--dark); font-size: 1.05rem; border-top: 1px dashed var(--border); margin-top: 0.5rem; padding-top: 0.6rem; }
.sum-row .green { color: var(--green); font-weight: 700; }
.drawer-foot .btn { width: 100%; margin-top: 0.9rem; text-align: center; }

/* Checkout modal */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(13, 17, 32, 0.6); z-index: 110;
  display: none; align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 20px; width: min(480px, 100%);
  max-height: 92vh; overflow-y: auto; padding: 1.6rem 1.5rem;
  animation: pop 0.25s cubic-bezier(0.25, 1, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal h3 { font-size: 1.2rem; margin-bottom: 0.2rem; }
.modal .m-sub { font-size: 0.85rem; margin-bottom: 1.1rem; }
.steps { display: flex; gap: 0.4rem; margin-bottom: 1.3rem; }
.steps i { flex: 1; height: 4px; border-radius: 999px; background: var(--border); }
.steps i.on { background: var(--brand); }
.field { margin-bottom: 0.9rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.3rem; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 0.68rem 0.9rem;
  font-family: inherit; font-size: 0.92rem; outline: none; transition: border 0.15s;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pay-opt {
  display: flex; align-items: center; gap: 0.8rem; border: 1.5px solid var(--border);
  border-radius: 12px; padding: 0.85rem 1rem; cursor: pointer; margin-bottom: 0.7rem;
  font-weight: 600; font-size: 0.92rem; transition: border 0.15s, background 0.15s;
}
.pay-opt:has(input:checked) { border-color: var(--brand); background: #f4f3ff; }
.pay-opt input { accent-color: var(--brand); width: 17px; height: 17px; }
.pay-opt small { display: block; font-weight: 500; color: var(--muted); font-size: 0.76rem; }
.modal .btn { width: 100%; text-align: center; margin-top: 0.4rem; }
.m-back { background: none; border: none; color: var(--muted); font-family: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; margin-top: 0.8rem; width: 100%; }

.spinner {
  width: 42px; height: 42px; border-radius: 50%; margin: 2rem auto 1rem;
  border: 4px solid var(--border); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Order success + tracking */
.success-check {
  width: 74px; height: 74px; border-radius: 50%; margin: 0.6rem auto 1rem;
  background: var(--green); color: #fff; font-size: 2.3rem;
  display: flex; align-items: center; justify-content: center;
  animation: pop 0.4s cubic-bezier(0.25, 1.4, 0.4, 1);
}
.order-id { text-align: center; font-size: 0.9rem; margin-bottom: 1.2rem; }
.order-id strong { color: var(--dark); }
.timeline { margin: 1.2rem 0 0.6rem; }
.tl-step { display: flex; gap: 0.9rem; position: relative; padding-bottom: 1.5rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before {
  content: ""; position: absolute; left: 13px; top: 28px; bottom: 0;
  width: 2px; background: var(--border);
}
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--green); }
.tl-dot {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--border); color: #fff; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center; z-index: 1;
  transition: background 0.3s;
}
.tl-step.done .tl-dot { background: var(--green); }
.tl-step.now .tl-dot { background: var(--brand); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4); } 50% { box-shadow: 0 0 0 9px rgba(79, 70, 229, 0); } }
.tl-info h4 { font-size: 0.92rem; }
.tl-info p { font-size: 0.78rem; }
.tl-note { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 1rem; }

/* Cart bar (bottom, home/contact pages) */
.cart-bar {
  position: fixed; left: 50%; bottom: -80px; transform: translateX(-50%);
  background: var(--dark); color: #fff; border-radius: 999px;
  display: flex; align-items: center; gap: 1.1rem;
  padding: 0.55rem 0.6rem 0.55rem 1.4rem; z-index: 80;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: bottom 0.35s cubic-bezier(0.25, 1, 0.4, 1);
  font-size: 0.9rem; white-space: nowrap;
}
.cart-bar.show { bottom: 18px; }
.cart-bar .btn { padding: 0.55rem 1.2rem; font-size: 0.85rem; border-radius: 999px; }

/* Toast */
#toast {
  position: fixed; top: 18px; left: 50%; transform: translate(-50%, -80px);
  background: var(--dark); color: #fff; padding: 0.7rem 1.3rem;
  border-radius: 12px; font-size: 0.88rem; font-weight: 600; z-index: 200;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.3); transition: transform 0.3s;
  max-width: calc(100vw - 2rem); text-align: center;
}
#toast.show { transform: translate(-50%, 0); }

/* Contact page */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.2rem; align-items: start; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.info-card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 1.6rem; margin-bottom: 1rem; }
.info-card h3 { font-size: 1.05rem; margin-bottom: 0.5rem; }
.info-card p, .info-card li { font-size: 0.9rem; color: var(--muted); }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1rem 1.2rem; margin-bottom: 0.7rem; }
.faq summary { font-weight: 700; font-size: 0.95rem; cursor: pointer; }
.faq details p { margin-top: 0.6rem; font-size: 0.88rem; }

/* Footer */
footer { background: var(--dark); color: #aab2cc; margin-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem; padding: 3rem 0 2rem;
}
.footer-grid h4 { color: #fff; margin-bottom: 0.7rem; font-size: 1rem; }
.footer-grid li { padding: 0.2rem 0; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.credit {
  border-top: 1px solid rgba(255, 255, 255, 0.12); padding: 1.2rem 0 2rem;
  font-size: 0.85rem; text-align: center;
}
.credit a { color: #7ee8fa; font-weight: 700; }

/* Mobile nav */
@media (max-width: 720px) {
  .nav-links { gap: 0.9rem; font-size: 0.85rem; }
  .nav-links a:not(.nav-cart):not(.current) { display: none; }
  .section { padding: 3rem 0; }
}
