/* =========================
   ULITRA UI — PREMIUM CLEAN
========================= */

:root{
  --pink:#ff2f92;
  --pink2:#ff5fb5;

  --bg:#ffffff;
  --soft:#fff7fb;

  --text:#141418;
  --muted:#6a6a73;

  --card:#ffffff;
  --border: rgba(20,20,24,.08);

  --shadow: 0 14px 40px rgba(20,20,24,.08);
  --shadow2: 0 22px 70px rgba(20,20,24,.12);

  /* ✅ header spacing fallback (if you don’t use JS height calc) */
  --header-h: 220px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

html, body{
  height:100%;
}

body{
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -120px, rgba(255,47,146,.14), transparent 60%),
    radial-gradient(900px 520px at 12% 30%, rgba(255,190,220,.18), transparent 55%),
    #fff;
}

/* Utilities */
.center{ text-align:center; justify-content:center; }
.container{ max-width:1100px; margin:0 auto; padding: 0 14px; }

/* ✅ IMPORTANT: fixed header overlaps content, so push main down */
main.container{
  padding-top: var(--header-h, 220px);
}

/* =========================
   Sticky Header (FIXED)
========================= */

.sticky-header{
  position: fixed;       /* ✅ fixed header */
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;

  background: linear-gradient(180deg, rgba(255,255,255,92), rgba(255,255,255,78));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: none;
border-bottom: none;
box-shadow: 0 6px 18px rgba(255,47,146,0.12);

  padding: 12px 14px 10px;
}

/* Each row inside header */
.header-row{
  max-width: 1100px;
  margin: 0 auto;
}

.header-row--top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.brand{
  min-width: 160px;
}

.logo{
  font-weight: 900;
  letter-spacing: .2px;
  font-size: 22px;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--pink), var(--pink2));
-webkit-background-clip: text;
background-clip: text;
color: transparent;

}

.tagline{
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* Social icons always right */
.socials{
  display:flex;
  align-items:center;
  gap: 8px;
  flex: 0 0 auto;
}

.iconbtn{
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.iconbtn:hover{
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0,0,0,.10);
  border-color: rgba(0,0,0,.10);
}

.iconbtn svg{
  width: 18px !important;
  height: 18px !important;
  display:block;
  fill: #111;
}

.iconbtn:hover svg{
  fill: var(--pink);
}

/* Search row */
.header-row--search{
  margin-top: 10px;
}

.search-wrap{
  width:100%;
  display:flex;
  justify-content:center;
}

.search-box{
  position:relative;
  width:100%;
  max-width: 740px;
}

.search-box input{
  width:100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.85);
  font-size: 15px;
  outline:none;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.search-box input:focus{
  border-color: rgba(255,47,146,.35);
  box-shadow: 0 14px 40px rgba(255,47,146,0.14);
}

/* Suggestions dropdown */
.suggestions{
  position:absolute;
  width:100%;
  background:#fff;
  border-radius:16px;
  margin-top:10px;
  border:1px solid rgba(0,0,0,.08);
  box-shadow: 0 18px 45px rgba(0,0,0,0.12);
  overflow:hidden;
  display:none; /* app.js should toggle */
}

/* ✅ Suggestion items (premium) */
.suggestion-item{
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.suggestion-item:last-child{
  border-bottom: none;
}

.suggestion-item:hover{
  background: rgba(255,47,146,.06);
}

/* Chips row */
.header-row--chips{
  margin-top: 10px;
  padding-bottom: 2px;
}

.categories{
  display:flex !important;
  flex-wrap:wrap !important;
  overflow-x: visible !important;
  justify-content:center;
  gap: 10px;
  padding: 4px 0 2px;
}

/* IMPORTANT: prevent full-width vertical chips */
.chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex: 0 0 auto;
  white-space: nowrap;

  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,255,255,.78);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.06);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}

.chip:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.chip.active{
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 40px rgba(255, 77, 166, .25);
}

/* Mobile header: keep brand left, socials right, search + chips below */
@media (max-width: 520px){
  :root{
    --header-h: 250px; /* ✅ little more space on mobile */
  }

  .sticky-header{
    padding: 10px 12px 10px;
  }

  .logo{
    font-size: 20px;
  }

  .iconbtn{
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .header-row--search{
    margin-top: 10px;
  }

  .search-box input{
    padding: 13px 14px;
    border-radius: 16px;
    font-size: 14px;
  }

  .categories{
    gap: 8px;
    padding-top: 2px;
  }

  .chip{
    padding: 8px 12px;
    font-size: 13px;
  }
}

/* =========================
   Title
========================= */

.section-title{
  margin-top: 18px;
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.section-title::after{
  content:"";
  display:block;
  width:72px;
  height:3px;
  margin:10px auto 0;
  border-radius:999px;
  background: rgba(255,77,166,.35);
}

/* =========================
   Grid + Cards
========================= */

.grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 14px 0 20px;
}

@media (min-width:900px){
  .grid{
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 18px 0 24px;
  }
}

.card{
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
  cursor: pointer;
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow2);
}

.card img{
  width:100%;
  height: 230px;
  object-fit: contain;
  background: #fff;
  padding: 10px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

.card h3{
  padding: 12px 12px 0;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.card h3 br{ display:none; }

.code{
  display:inline-block;
  margin: 10px 12px 0;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(255,47,146,.08);
  color: var(--pink);
  font-weight: 900;
  font-size: 12px;
  width: fit-content;
}

/* ✅ Spacer support (you used this in card HTML) */
.spacer{
  height: 6px;
}

.buy-btn{
  display:block;
  margin: 12px;
  padding: 12px;
  border-radius: 16px;
  background: linear-gradient(90deg, var(--pink), var(--pink2));
  color: #fff;
  text-decoration:none;
  text-align:center;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(255,47,146,.20);
}

.buy-btn:hover{
  filter: brightness(1.02);
}

/* =========================
   Footer
========================= */

footer{
  padding: 26px 14px;
  text-align:center;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid rgba(0,0,0,.06);
  margin-top: 18px;
}

footer a{
  color: var(--pink);
  text-decoration:none;
  font-weight: 800;
}

.footer-disclaimer {
  font-size: 12px;
  opacity: 0.7;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.4;
}


.page-wrap{
  padding: 18px 14px;
  padding-top: 180px;  /* ✅ IMPORTANT FIX */
  max-width: 980px;
  margin: 0 auto;
}

.page-card{
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255, 0, 128, 0.10);
  border-radius: 18px;
  padding: 18px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.page-card h1{
  margin: 0 0 10px;
  font-size: 22px;
}

.page-card h2{
  margin: 14px 0 8px;
  font-size: 16px;
}

.page-card p{
  margin: 8px 0;
  opacity: 0.92;
}

.divider{
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 14px 0;
}






.no-search .search-box{
  display: none;
}

