:root{
  --bg:#0A0F1A; --bg-2:#0F1626; --text:#EAF0FF; --muted:#8598AB;
  --card:#0D1422; --border:#343F63; --accent:#5D0BE0;
}

/* Global dark */
body.ew-dark{ background:var(--bg); color:var(--text); font-family: ui-sans-serif, system-ui, Segoe UI, Roboto, Helvetica, Arial; }
a{ color:#BBD2FF; text-decoration:none; }
a:hover{ text-decoration:underline; }

/* Offer ticker strip */
.ew-offer-strip{ width:100%; background:#0C1322; border-bottom:1px solid var(--border); }
.ew-ticker-wrap{ max-width:1280px; margin:0 auto; padding:.5rem 1rem; overflow:hidden; }
.ew-ticker{ position:relative; height:24px; display:flex; align-items:center; }
.ew-ticker-item{ position:absolute; left:0; opacity:0; transform:translateY(10px); transition:opacity .4s, transform .4s; color:#E8F0FF; font-weight:500; }
.ew-ticker-item.is-active{ opacity:1; transform:translateY(0); }

/* Nav */
.ew-nav{ position:sticky; top:0; z-index:50; background:linear-gradient(180deg, rgba(13,20,34,.9), rgba(13,20,34,.6)); backdrop-filter: blur(8px); border-bottom:1px solid var(--border); }
.ew-nav-inner{ max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1rem; }
.ew-logo{ font-weight:800; letter-spacing:.5px; font-size:1.125rem; color:#fff; }
.ew-menu-list{ list-style:none; display:flex; gap:1.25rem; margin:0; padding:0; }
.ew-menu-list a{ color:#CFE0FF; font-weight:600; }
.ew-actions{ display:flex; gap:.75rem; }

/* Animated rainbow outline button */
.ew-btn{
  position:relative; display:inline-flex; align-items:center; gap:.5rem;
  background:#0B1020; color:#fff; padding:.7rem 1rem; border-radius:999px;
  border:1px solid var(--border); font-weight:700; letter-spacing:.2px;
  box-shadow: 0 0 0 0 rgba(0,0,0,0);
  transition: transform .2s ease;
  overflow:hidden;
}
.ew-btn::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit;
  background:conic-gradient(from 0deg, #ff0066, #ffcc00, #00ff99, #33ccff, #a066ff, #ff0066);
  filter:blur(8px); opacity:0; transition:opacity .25s ease;
  z-index:-1;
}
.ew-btn:hover{ transform:translateY(-2px); }
.ew-btn:hover::before{ opacity:1; }
.ew-btn:hover{
  box-shadow: 0 0 24px rgba(160,102,255,.25), 0 0 48px rgba(51,204,255,.15);
}

/* Hero */
.ew-hero{ position:relative; overflow:hidden; border-bottom:1px solid var(--border); background: radial-gradient(80% 50% at 50% 0%, rgba(93,11,224,.15), transparent 60%); }
.ew-hero-inner{ max-width:1280px; margin:0 auto; padding:4rem 1rem 3rem; display:grid; grid-template-columns: 1.1fr .9fr; gap:2rem; }
@media (max-width: 960px){ .ew-hero-inner{ grid-template-columns:1fr; } }
.ew-hero-text h1{ font-size: clamp(2rem, 5vw, 3.25rem); margin:0 0 .5rem; }
.ew-hero-text p{ color:var(--muted); max-width:48ch; }

/* Floating rings/blobs */
.ew-hero-bg .ring, .ew-hero-bg .blob{
  position:absolute; pointer-events:none;
}
.r1{ width:300px; height:300px; border:1px dashed #343F63; border-radius:50%; top:-40px; left:5%; animation: float 9s ease-in-out infinite; }
.r2{ width:200px; height:200px; border:1px dashed #343F63; border-radius:50%; top:120px; right:10%; animation: float 11s ease-in-out infinite; }
.r3{ width:140px; height:140px; border:1px dashed #343F63; border-radius:50%; bottom: -30px; left:30%; animation: float 13s ease-in-out infinite; }
.blob{ width:220px; height:220px; border-radius:50%; filter: blur(40px); opacity:.25; }
.b1{ top:40px; left:35%; background:radial-gradient(circle at 40% 40%, #5D0BE0, transparent 60%); }
.b2{ bottom:20px; right:20%; background:radial-gradient(circle at 60% 60%, #33ccff, transparent 60%); }
@keyframes float { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(10px) } }

/* Floating product images */
.ew-hero-floaters{ position:relative; display:grid; grid-template-columns: repeat(auto-fit, minmax(140px,1fr)); gap:1rem; align-content:start; }
.floater{ width:100%; border-radius:16px; border:1px solid var(--border); background:#0b1120; box-shadow:0 6px 24px rgba(0,0,0,.35); animation: bob 6s ease-in-out infinite; }
.floater:nth-child(2){ animation-delay:.8s; }
.floater:nth-child(3){ animation-delay:1.6s; }
@keyframes bob { 0%,100%{ transform:translateY(0) } 50%{ transform:translateY(-6px) } }

/* Gradient headline below hero */
.ew-gradient-headline{
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  background: linear-gradient(90deg, #ffcc00, #ff0066, #a066ff, #33ccff, #00ff99);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 900; letter-spacing:.3px; margin:2rem auto 1rem; text-align:center;
}

/* Category grid (Elementor or Woo shortcode will render; generic styles) */
.ew-cats{ max-width:1280px; margin:0 auto; padding:0 1rem 1rem; }
.ew-cats .product-category a{ display:block; border:1px solid var(--border); border-radius:16px; padding:1rem; background:var(--card); color:#fff; transition:transform .2s, box-shadow .2s; }
.ew-cats .product-category a:hover{ transform:translateY(-3px); box-shadow:0 8px 26px rgba(160,102,255,.18); }

/* Product card */
.products{ max-width:1280px; margin:0 auto; padding:0 1rem 4rem; }
.products li.product{
  position:relative; list-style:none; background:var(--card); border:1px solid var(--border); border-radius:22px; overflow:hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.products li.product::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit; background:conic-gradient(from 0deg, #ff0066, #ffcc00, #00ff99, #33ccff, #a066ff, #ff0066);
  filter: blur(14px); opacity:0; transition:opacity .25s ease; z-index:0;
}
.products li.product:hover{
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(160,102,255,.25), 0 0 48px rgba(51,204,255,.12);
  border-color: rgba(93,11,224,.35);
}
.products li.product:hover::before{ opacity:.55; }

/* Badges + quick add icon line */
.ew-card-topline{
  position:absolute; top:10px; left:10px; right:10px; display:flex; align-items:center; justify-content:space-between; z-index:2;
}
.ew-badges{ display:flex; gap:.4rem; flex-wrap:wrap; }
.ew-badge{ font-size:.72rem; padding:.22rem .5rem; border-radius:999px; border:1px solid var(--border); background:rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.ew-new{ border-color:#33ccff; color:#bfeeff; }
.ew-best{ border-color:#ffcc00; color:#ffe89a; }
.ew-hot{ border-color:#ff667a; color:#ffb3be; }
.ew-feat{ border-color:#a066ff; color:#e0c9ff; }

.ew-quickcart a{
  display:inline-flex; align-items:center; justify-content:center;
  width:38px; height:38px; border-radius:999px; background:#0b1020; border:1px solid var(--border); color:#fff;
  transition: transform .2s, box-shadow .2s;
}
.ew-quickcart a:hover{ transform:translateY(-2px); box-shadow:0 8px 20px rgba(51,204,255,.2); }

/* Image swap on hover */
.ew-thumb{ position:relative; aspect-ratio: 1/1; background:#0b1120; overflow:hidden; }
.ew-thumb img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; transition:opacity .35s ease; }
.ew-thumb img.hover-img{ opacity:0; }
.products li.product:hover .ew-thumb img.hover-img{ opacity:1; }
.products li.product:hover .ew-thumb img.primary-img{ opacity:0; }

/* Content area inside card */
.ew-card-body{ padding:14px 14px 16px; position:relative; z-index:1; }
.ew-title{ font-weight:800; margin:.45rem 0 .35rem; font-size:1rem; color:#fff; }
.star-rating{ --star:#ffd36e; }
.star-rating span::before, .star-rating::before{ color:var(--star) !important; } /* keep Woo stars golden */
.price{ font-weight:800; color:#fff; }
.price del{ color:#ff7b88; opacity:.8; margin-right:.35rem; }

/* Buy now inline button */
.ew-buy-inline{
  margin-left:auto; display:inline-flex; align-items:center; gap:.5rem;
  padding:.55rem .9rem; background:#0b1020; border-radius:999px; border:1px solid var(--border); color:#fff; font-weight:700;
  position:relative; overflow:hidden;
}
.ew-buy-inline::before{
  content:""; position:absolute; inset:-2px; border-radius:inherit;
  background:conic-gradient(from 0deg, #ff0066, #ffcc00, #00ff99, #33ccff, #a066ff, #ff0066);
  filter:blur(10px); opacity:0; transition:opacity .25s ease; z-index:-1;
}
.ew-buy-inline:hover::before{ opacity:.5; }
.ew-buy-inline:hover{ box-shadow:0 0 20px rgba(160,102,255,.2); transform: translateY(-1px); }

/* Footer */
.ew-footer{ border-top:1px solid var(--border); background:#0b1020; }
.ew-footer-inner{ max-width:1280px; margin:0 auto; padding:2rem 1rem; color:#b1c4e3; text-align:center; }


