:root{
  --bg:#f8f8f8;
  --card:#f5f5f5;
  --card2:#ffffff;
  --muted:#6b7280;
  --line:#ececec;
  --brand:#1f8cff;
  --brand-soft:rgba(31,140,255,.12);
  --radius:16px;
}

/* =========================
   BASE
========================= */
*{box-sizing:border-box}

body{
  margin:0;
  font-family:system-ui, Arial, sans-serif;
  background:var(--bg);
  color:#111827;
}


.lux-loader{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  height:100dvh;
  z-index:2147483647;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:
    radial-gradient(circle at top left,#0f172a,#020617 55%),
    linear-gradient(135deg,#022c22,#0f172a);
  transition:opacity .9s ease, visibility .9s ease;
}

.lux-loader.hide{
  opacity:0;
  visibility:hidden;
  pointer-events:none;
}

/* animated glow blobs */
.lux-bg{
  position:absolute;
  inset:-25%;
  background:
    radial-gradient(circle,#22c55e55 0%,transparent 26%),
    radial-gradient(circle,#3b82f655 0%,transparent 30%),
    radial-gradient(circle,#10b98144 0%,transparent 28%);
  background-size:30% 30%,35% 35%,28% 28%;
  background-position:10% 20%,80% 30%,50% 80%;
  filter:blur(38px);
  animation:floatGlow 10s linear infinite alternate;
}

@keyframes floatGlow{
  0%{transform:translateY(0) scale(1);}
  100%{transform:translateY(-45px) scale(1.08);}
}

/* star particles */
.lux-particles,
.lux-particles::before,
.lux-particles::after{
  position:absolute;
  inset:0;
  content:"";
}

.lux-particles::before,
.lux-particles::after{
  background-image:
    radial-gradient(#ffffffcc 1px, transparent 1px);
  background-size:32px 32px;
}

.lux-particles::before{
  opacity:.12;
  animation:moveStars 16s linear infinite;
}

.lux-particles::after{
  opacity:.06;
  transform:scale(1.45);
  animation:moveStars 26s linear infinite;
}

@keyframes moveStars{
  from{transform:translateY(0);}
  to{transform:translateY(-130px);}
}

/* center content */
.lux-center{
  position:relative;
  z-index:3;
  text-align:center;
  color:#fff;
  width:min(90%,460px);
  padding:20px;
}

/* rotating medical logo */
.logo-ring{
  width:120px;
  height:120px;
  margin:0 auto 24px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:
    conic-gradient(from 0deg,#22c55e,#3b82f6,#22c55e);
  animation:spinRing 2.2s linear infinite;
  box-shadow:
    0 0 24px #22c55e55,
    0 0 60px #3b82f633;
}

.logo-core{
  width:88px;
  height:88px;
  border-radius:50%;
  background:#fff;
  color:#16a34a;
  display:grid;
  place-items:center;
  font-size:46px;
  font-weight:900;
  box-shadow:inset 0 0 18px #00000015;
}

@keyframes spinRing{
  to{transform:rotate(360deg);}
}

/* brand */
.brand-name{
  margin:0;
  font-size:34px;
  line-height:1.1;
  letter-spacing:4px;
  font-weight:800;
  text-shadow:0 0 14px #22c55e66;
}

.brand-sub{
  margin:10px 0 26px;
  font-size:14px;
  opacity:.88;
  letter-spacing:3px;
  text-transform:uppercase;
}

/* progress */
.progress-wrap{
  width:100%;
  height:8px;
  border-radius:30px;
  overflow:hidden;
  background:#ffffff18;
  box-shadow:inset 0 0 10px #00000035;
  backdrop-filter:blur(8px);
}

.progress-bar{
  width:0%;
  height:100%;
  border-radius:30px;
  background:linear-gradient(90deg,#22c55e,#3b82f6,#22c55e);
  background-size:220% 100%;
  animation:
    loadBar 4s ease forwards,
    shineBar 1s linear infinite;
}

@keyframes loadBar{
  from{width:0%;}
  to{width:100%;}
}

@keyframes shineBar{
  from{background-position:0 0;}
  to{background-position:220% 0;}
}

.loading-text{
  margin-top:18px;
  font-size:15px;
  opacity:.92;
  animation:pulseText 1.4s ease infinite;
}

@keyframes pulseText{
  0%,100%{opacity:.55;}
  50%{opacity:1;}
}

@media (max-width:768px){

  .logo-ring{
    width:95px;
    height:95px;
  }

  .logo-core{
    width:70px;
    height:70px;
    font-size:34px;
  }

  .brand-name{
    font-size:24px;
    letter-spacing:2px;
  }

  .brand-sub{
    font-size:11px;
    letter-spacing:2px;
    margin:8px 0 20px;
  }

  .loading-text{
    font-size:13px;
  }

  .progress-wrap{
    height:7px;
  }
}

.wrap{
  margin:auto;
  padding:16px;
}

h1{
  margin:6px 0 4px;
  font-size:28px;
}

.muted{
  color:#6b7280;
  font-size:14px;
}

.status{
  margin-top:10px;
  font-size:14px;
}

/* =========================
   HEADER
========================= */
.header{
  position:sticky;
  top:0;
  z-index:1000;
    background: rgba(15, 23, 42, 0.78);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.head{
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 1.3rem;
}

.head a{
  text-decoration:none;
  font-size:16px;
  color:#111827;
  padding:10px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  transition:.25s ease;
}

.head a:hover{
  transform:translateY(-1px);
  background:#f3f4f6;
}

.toolbar{
  display:grid;
  gap:10px;
  grid-template-columns:1.4fr .8fr .8fr auto;
  margin-top:12px;
  margin-left:auto;
  margin-right:auto;
  padding:   2rem;
}

.header{
  position:sticky;
  top:0;
  z-index:1000;
    background: rgba(15, 23, 42, 0.78);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}

.head{
  margin:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding: 0.9rem;
}

.head a{
  text-decoration:none;
  font-size:15px;
  color:#111827;
  padding:9px 10px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  transition:.25s ease;
}

.head a:hover{
  transform:translateY(-1px);
  background:#f3f4f6;
}

#topStatus{
  display: flex;
  padding: 0 2rem;
}

input,
select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#e6e6e6;
  color:#111827;
  outline:none;
    box-shadow:0 0 2px 1px rgba(0, 0, 0, 0.433);

}

input:focus,
select:focus{
  border-color:var(--brand);
  box-shadow:0 0 0 3px var(--brand-soft);
}

button{
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:#1a1a1a;
  color:#fff;
  cursor:pointer;
  font-weight:600;
  transition:.2s;
  white-space:nowrap;
}

button:hover{
  transform:translateY(-1px);
  border-color:#333;
}

button.primary{
  background:var(--brand);
  border-color:transparent;
}

/* =========================
   GRID + CARDS
========================= */
.grid{
  display:grid;
  gap:20px;
  grid-template-columns:repeat(4,1fr);
  padding: 0.3rem;
}

.card{
  background:linear-gradient(
    145deg,
    rgba(255,255,255,.92),
    rgba(245,245,245,.78)
  );
  border-radius:var(--radius);
  border:1px solid rgba(22, 16, 16, 0.85);
  backdrop-filter:blur(14px) saturate(150%);
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow: 2px 2px rgba(2, 4, 10, 0.274);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}


.content{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:1px;
  flex:1;
}

.title{
  font-weight:700;
  font-size:16px;
  line-height:1.25;
  color:#111;
}

.use{
  font-size:14px;
  color:#555;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:58px;
}

.price{
  font-weight:800;
  font-size:17px;
  margin-top:4px;
  color:#111;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
}

.pill{
  font-size:12px;
  color:#444;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(0,0,0,.06);
}

.product-buttons{
  width:fit-content;
  display:flex;
  gap:8px;
  margin-top:10px;
}

.product-buttons button{
  flex:0 0 auto;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .25s ease;
}

.product-buttons button img{
  width:16px;
  height:16px;
  display:block;
}

.product-buttons button:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(15,23,42,.15);
  background:rgba(0,0,0,.06);
}

.product-buttons .addCart{
  background:rgb(206, 206, 206);
  color:#fff;
  border-color:transparent;
}

.product-buttons .addCart:hover{
  box-shadow:0 4px 12px rgba(31,140,255,.45);
}

.product-buttons{
  position:relative;
  overflow:visible;
}

.product-buttons.added-pulse{
  animation:productButtonsAddedPulse .55s ease;
}

.product-buttons.added-pulse::after{
  content:"Added ✓";
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  padding:8px 14px;
  border-radius:999px;
  color:#ffffff;
  font-size:12px;
  font-weight:800;
  letter-spacing:.02em;
  white-space:nowrap;
  background:linear-gradient(135deg, rgba(17,185,129,.98), rgba(20,184,166,.98));
  box-shadow:0 14px 32px rgba(17,185,129,.28), 0 0 0 1px rgba(255,255,255,.22) inset;
  pointer-events:none;
  animation:addedBadgeFloat .9s ease forwards;
  z-index:20;
}

.product-buttons.added-pulse .addCart{
  animation:addCartButtonPop .55s ease;
}

@keyframes productButtonsAddedPulse{
  0%{transform:scale(1);}
  35%{transform:scale(1.045);}
  100%{transform:scale(1);}
}

@keyframes addCartButtonPop{
  0%{transform:scale(1);}
  35%{transform:scale(1.16) rotate(-6deg);}
  70%{transform:scale(.96) rotate(2deg);}
  100%{transform:scale(1) rotate(0deg);}
}

@keyframes addedBadgeFloat{
  0%{
    opacity:0;
    transform:translate(-50%, 8px) scale(.9);
  }
  18%{
    opacity:1;
    transform:translate(-50%, 0) scale(1);
  }
  78%{
    opacity:1;
    transform:translate(-50%, -4px) scale(1);
  }
  100%{
    opacity:0;
    transform:translate(-50%, -12px) scale(.96);
  }
}

.favBtn.active,
.favBtn.is-favorite,
.favBtn.favorited{
  background:rgba(255,59,92,.14);
  color:#e11d48;
  box-shadow:0 8px 18px rgba(225,29,72,.16);
  transform:scale(1.04);
}

.favBtn{
  border:none;
  background:rgba(255,255,255,.12);
  color:#111;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-size:18px;
  transition:.2s ease;
}

.favBtn:hover{
  transform:scale(1.08);
  background:rgba(255,255,255,.35);
}


/* hide action buttons until hover */
.card .addCart,
.card .see{
  opacity:0;
  transform:translateY(10px);
}

.card:hover .addCart,
.card:hover .see{
  opacity:1;
  transform:translateY(0);
}


.card:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 40px rgba(15,23,42,.18);
  border-color:rgba(0,0,0,.06);
  background:linear-gradient(
    145deg,
    rgba(255,255,255,.98),
    rgba(245,245,245,.9)
  );
}

.thumb{
  height:180px;
  background:#0b0b0b;
  display:flex;
  align-items:center;
  justify-content:center;
  border-bottom:1px solid var(--line);
  overflow:hidden;
}

.thumb img{
  display: none !important;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  display:block;
}

.content{
  padding:12px;
  display:flex;
  flex-direction:column;
  gap:6px;
  flex:1;
}

.title{
  font-weight:700;
  font-size:16px;
  line-height:1.25;
  color:#111;
}

.use{
  font-size:14px;
  color:#555;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:58px;
}

.price{
  font-weight:800;
  font-size:17px;
  margin-top:4px;
  color:#111;
}

.meta{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
}

.pill{
  font-size:12px;
  color:#444;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(0,0,0,.06);
}

.product-buttons{
  width:fit-content;
  display:flex;
  gap:8px;
  margin-top:10px;
}

.product-buttons button{
  flex:0 0 auto;
  padding:8px 16px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .25s ease;
}

.product-buttons button img{
  width:16px;
  height:16px;
  display:block;
}

.product-buttons button:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(15,23,42,.15);
  background:rgba(0,0,0,.06);
}

.product-buttons .addCart{
  background:rgb(206, 206, 206);
  color:#fff;
  border-color:transparent;
}

.product-buttons .addCart:hover{
  box-shadow:0 4px 12px rgba(31,140,255,.45);
}

.favBtn{
  border:none;
  background:rgba(255,255,255,.12);
  color:#111;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-size:18px;
  transition:.2s ease;
}

.favBtn:hover{
  transform:scale(1.08);
  background:rgba(255,255,255,.35);
}


/* hide action buttons until hover */
.card .addCart,
.card .see{
  opacity:0;
  transform:translateY(10px);
}

.card:hover .addCart,
.card:hover .see{
  opacity:1;
  transform:translateY(0);
}

/* =========================
   FOOTER / LOAD MORE
========================= */
.footerbar{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:18px 0 30px;
}

/* =========================
   CART ICON
========================= */
.icon-cart{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  text-decoration:none;
  font-size:13px;
  font-weight:500;
  padding:8px 12px;
  border-radius:99px;
  color:rgb(0, 0, 0);
  background:rgb(255, 255, 255);
  border:1px solid rgba(1,0,0,.25);
  backdrop-filter:blur(6px) saturate(150%);
  -webkit-backdrop-filter:blur(6px) saturate(150%);
  box-shadow:0 4px 12px rgba(0,0,0,.2);
  transition:all .3s ease-in-out;
}

.icon-cart svg{
  width:24px;
  height:24px;
  color:#161313;
}

.icon-cart span{
  position:absolute;
  top:-5px;
  right:-10px;
  background:crimson;
  color:white;
  border-radius:50%;
  padding:0 6px;
  min-width:20px;
  height:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:.7rem;
}

/* =========================
   POPUP
========================= */
.popup-overlay{
  position:fixed;
  inset:0;
  background:rgba(12,18,28,.58);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:9999;
  animation:popupFadeIn .28s ease;
}

.premium-popup{
  width:min(920px,100%);
  display:grid;
  grid-template-columns:1.05fr 1fr;
  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.24);
  box-shadow:0 20px 60px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.12);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  border-radius:30px;
  overflow:hidden;
  position:relative;
  animation:popupSlideUp .32s ease;
}

.popup-image-wrap{
  position:relative;
  min-height:420px;
  background:
    radial-gradient(circle at top left, rgba(120,255,196,.28), transparent 35%),
    radial-gradient(circle at bottom right, rgba(113,170,255,.22), transparent 35%),
    linear-gradient(145deg, #f8fbff, #ecf5ff);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
}

.popup-image-wrap img{
  display: none;
  width:100%;
  max-width:360px;
  max-height:340px;
  object-fit:contain;
  border-radius:22px;
  filter:drop-shadow(0 18px 30px rgba(0,0,0,.15));
  transform:scale(1);
  transition:transform .35s ease;
}

.popup-image-wrap:hover img{
  transform:scale(1.04);
}

.popup-badge{
  position:absolute;
  top:18px;
  left:18px;
  padding:8px 14px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:.4px;
  color:#0f5132;
  background:rgba(255,255,255,.78);
  border:1px solid rgba(255,255,255,.65);
  box-shadow:0 10px 24px rgba(0,0,0,.08);
}

.popup-body {
  max-width: 40%;
  padding: 44px 40px 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.78));
  display: flex;
  border-radius: 22px;
    box-shadow: 0 10px 24px rgb(0, 0, 0);

  flex-direction: column;
  justify-content: center;
}

.popup-label{
  margin:0 0 8px;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:1.8px;
  font-weight:700;
  color:#6b7280;
}

#popupName{
  margin:0;
  font-size:clamp(28px,3vw,40px);
  line-height:1.08;
  font-weight:800;
  color:#0f172a;
}

#popupUse{
  margin:16px 0 0;
  font-size:15px;
  line-height:1.8;
  color:#475569;
}

.popup-meta-row{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:24px;
}

.popup-meta-card{
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(15,23,42,.06);
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}

.meta-title{
  display:block;
  font-size:12px;
  font-weight:700;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:1px;
  margin-bottom:6px;
}

.meta-value{
  display:block;
  font-size:18px;
  font-weight:800;
  color:#111827;
}

#popupPrice.meta-value,
#popupPrice{
  font-size:20px;
  font-weight:800;
  color:#059669;
}

.popup-actions{
  margin-top:28px;
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
}

.quantity-box{
  display:flex;
  align-items:center;
  gap:12px;
  background:rgba(255,255,255,.7);
  border-radius:16px;
  color: #000;
  padding:8px 12px;
  border:1px solid rgba(0,0,0,.05);
  box-shadow:0 6px 18px rgba(0,0,0,.05);
}

.quantity-box button{
  width:36px;
  height:36px;
  border:none;
  border-radius:12px;
  font-size:18px;
  font-weight:700;
  cursor:pointer;
  color: #000;
  background:linear-gradient(135deg, #e2e8f0, #f8fafc);
  transition:all .2s ease;
}

.quantity-box button:hover{
  background:linear-gradient(135deg, #d1d5db, #f1f5f9);
  transform:scale(1.05);
}

.quantity-box span{
  min-width:24px;
  text-align:center;
  font-size:16px;
  font-weight:700;
  color:#111827;
}

.premium-cart-btn{
  flex:1;
  min-width:220px;
  border:none;
  outline:none;
  padding:16px 22px;
  border-radius:18px;
  background:linear-gradient(135deg, #16a34a, #22c55e);
  color:white;
  font-size:16px;
  font-weight:800;
  letter-spacing:.3px;
  cursor:pointer;
  box-shadow:0 14px 26px rgba(34,197,94,.28), inset 0 1px 0 rgba(255,255,255,.25);
  transition:transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.premium-cart-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 32px rgba(34,197,94,.35), inset 0 1px 0 rgba(255,255,255,.25);
}

.premium-close{
  position:absolute;
  top:16px;
  right:16px;
  width:42px;
  height:42px;
  border:none;
  border-radius:50%;
  background:rgba(255,255,255,.75);
  color:#0f172a;
  font-size:24px;
  cursor:pointer;
  z-index:3;
  box-shadow:0 10px 25px rgba(0,0,0,.12);
  transition:transform .2s ease, background .2s ease;
}

.premium-close:hover{
  transform:rotate(90deg) scale(1.05);
  background:white;
}

/* =========================
   CART DRAWER
========================= */
.cart-overlay{
  position:fixed;
  inset:0;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  background:rgba(0,0,0,.5);
  opacity:0;
  visibility:hidden;
  transition:opacity .4s ease, visibility .4s ease;
  z-index:99999;
}

body.showCart .cart-overlay{
  opacity:1;
  visibility:visible;
}

.cartTab{
  width:450px;
  max-width:100%;
  height:100vh;
  position:fixed;
  top:0;
  right:-500px;
  display:grid;
  grid-template-rows:75px 1fr 70px;
  z-index:100000;
  background:rgba(40,40,40,.35);
  backdrop-filter:blur(15px) saturate(150%);
  -webkit-backdrop-filter:blur(15px) saturate(150%);
  border-left:1px solid rgba(255,255,255,.15);
  color:#f3f3f3;
  box-shadow:-8px 0 25px rgba(0,0,0,.4);
  border-top-left-radius:20px;
  border-bottom-left-radius:20px;
  transition:right .5s ease-in-out;
}

body.showCart .cartTab{
  right:0;
}

.cartTab h1{
  margin:0;
  padding:20px;
  font-weight:400;
  font-size:1.5rem;
  border-bottom:1px solid rgba(255,255,255,.1);
  position:relative;
  text-align:center;
  color:#fff;
}

.close-btn{
  position:absolute;
  top:15px;
  right:20px;
  color:#fff;
  border:none;
  line-height:1;
  padding:6px 10px;
  cursor:pointer;
  transition:all .3s ease;
  background:transparent;
  font-size:2rem;
  box-shadow:none;
}

.listCart{
  overflow-y:auto;
  scrollbar-width:none;
}

.listCart::-webkit-scrollbar{
  width:0;
}

.listCart .item{
  display:grid;
  grid-template-columns:90px 1fr;
  gap:10px;
  padding:25px 20px;
  text-align:left;
  align-items:center;
  border-radius: 22px;
  border-bottom:1px solid rgba(153, 153, 153, 0.776);
}

.listCart .item img{
  width:70px;
  height:auto;
  border-radius:5px;
}

.listCart .item:nth-child(even){
  background-color:rgba(255,255,255,.05);
}

.listCart .quantity span{
  display:inline-block;
  width:25px;
  height:25px;
  font-size:16px;
  text-align:center;
  line-height:25px;
  border-radius:4px;
  background-color:rgba(255,255,255,.15);
  cursor:pointer;
  user-select:none;
  transition:background .2s;
}

.listCart .quantity span:hover{
  background-color:rgba(255,255,255,.3);
}

.listCart .quantity span:nth-child(2){
  background-color:transparent;
  color:#eee;
  cursor:default;
}

.quantity-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.clear-product{
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 9, 9, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}

.clear-product img{
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
  padding: 0;
  margin: 0;
  filter: brightness(0) saturate(100%) invert(58%) sepia(74%) saturate(3451%) hue-rotate(331deg) brightness(100%) contrast(101%);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.clear-product:hover{
  background-color: #ff6666;
  border-color: #ff6666;
  transform: translateY(-1px);
}

.clear-product:hover img{
  filter: brightness(0) invert(1);
  transform: scale(1.05);
}
.cartTab .btn{
  text-align:center;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  cursor:pointer;
}

.cartTab .checkOut{
  width:100%;
  color:#f5f5f5;
  border:1px solid #0f0909;
  box-shadow:10px 10px 20px #000000;
  position:absolute;
}

/* =========================
   CHECKOUT MODAL
========================= */
.modal{
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  overflow:auto;
  background:rgba(0,0,0,.6);
  backdrop-filter:blur(8px);
  z-index:2000000;
  padding-top:60px;
  color:#ffffff;
  transition:all .3s ease;
}

.modal-content{
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:35%;
  max-width:500px;
  background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.3);
  border-radius:15px;
  padding:20px;
  box-shadow:0 8px 30px rgba(0,0,0,.3);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  z-index:2000001;
}

.close{
  color:#ffffff;
  float:right;
  font-size:28px;
  font-weight:bold;
  background:transparent;
  border:none;
  cursor:pointer;
  transition:color .3s ease;
}

.close:hover,
.close:focus{
  color:#00ffaa;
  text-decoration:none;
}

.cart-item{
  margin-bottom:10px;
  padding:10px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:8px;
  background:rgba(255,255,255,.05);
  font-size:.95rem;
}

#checkoutForm{
  display:flex;
  flex-direction:column;
  width:100%;
}

#checkoutForm label{
  font-weight:600;
  margin-bottom:4px;
  color:#fff;
}



#checkoutForm input{
  padding:8px;
  border:1px solid rgba(255,255,255,.3);
  border-radius:8px;
  font-size:16px;
  outline:none;
  background:rgba(255,255,255,.05);
  color:#fff;
  transition:background .3s ease, border .3s ease;
}

#checkoutForm input:focus{
  background:rgba(255,255,255,.15);
  border:1px solid #00ffaa;
}

#checkoutForm button{
  padding:10px;
  margin-top:10px;
  background-color:#00ffaa;
  color:#000;
  font-weight:600;
  border:none;
  border-radius:50px;
  cursor:pointer;
  transition:all .3s ease;
}

#checkoutForm button:hover{
  background-color:#fff;
  box-shadow:0 0 15px #00ffaa;
}

/* =========================
   RECEIPT
========================= */
.receipt-modal{
  position:fixed;
  inset:0;
  display:none;
  justify-content:center;
  align-items:center;
  background:rgba(0,0,0,.6);
  z-index:998798999;
}

.receipt-box{
  background:#ffffff;
  color:#111827;
  border-radius:16px;
  padding:20px 24px;
  max-width:420px;
  width:90%;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
  font-family:system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.receipt-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
}

.receipt-logo{
  font-size:1.2rem;
  font-weight:700;
  letter-spacing:.08em;
}

.receipt-meta p{
  margin:0;
  font-size:.85rem;
}

.receipt-box h3{
  margin-top:10px;
  margin-bottom:6px;
  font-size:1rem;
}

.receipt-total{
  margin-top:8px;
  font-size:.95rem;
}

.receipt-actions{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.receipt-actions button{
  flex:1;
  padding:8px 10px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:#111827;
  color:#f9fafb;
  font-size:.9rem;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.receipt-actions button:hover{
  background:#1f2937;
  transform:translateY(-1px);
  box-shadow:0 6px 14px rgba(0,0,0,.18);
}

.receipt-note{
  margin-top:12px;
  font-size:.8rem;
  color:#4b5563;
  text-align:center;
}

.status-paid,
.status-pending{
  padding:3px 10px;
  border-radius:999px;
  font-size:.8rem;
}

.status-paid{
  background:#d1fae5;
  color:#065f46;
}

.status-pending{
  background:#fef3c7;
  color:#92400e;
}

/* =========================
   ANIMATIONS
========================= */
.skeleton{
  animation:pulse 1.1s infinite ease-in-out;
  background:#121212;
  border:1px dashed #1b1b1b;
}

@keyframes pulse{
  0%,100%{opacity:.7}
  50%{opacity:.35}
}

@keyframes popupFadeIn{
  from{opacity:0}
  to{opacity:1}
}

@keyframes popupSlideUp{
  from{
    opacity:0;
    transform:translateY(18px) scale(.98);
  }
  to{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

/* =========================
   MOBILE
========================= */
@media only screen and (max-width:768px){
  .grid{
    padding:0.8rem;
    margin-top:0;
    grid-template-columns:repeat(2,1fr);
  }

  .toolbar{
    grid-template-columns:1fr 1fr;
      display:grid;
  gap:10px;
  margin-left:auto;
  margin-right:auto;
  padding:  0  2rem;
  }

  #categoryFilter,
  #refreshBtn{
    display:none;
  }

  .modal{
    position:fixed;
    display:none;
    top:0;
    left:0;
    width:100%;
    height:100%;
    overflow:auto;
    background:rgba(0,0,0,.6);
    backdrop-filter:blur(8px);
    z-index:2000000;
    color:#ffffff;
  }

  .modal-content{
      width: 100%;
  max-width: 360px;
    position: fixed;
    top: 47%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.1); /* translucent glass */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000001;
  }

  .card .addCart,
.card .see{
  opacity:1;
  transform:translateY(0px);
}

.card{
  background:linear-gradient(
    145deg,
    rgba(255,255,255,.92),
    rgba(245,245,245,.78)
  );
  border-radius:var(--radius);
  border:0px solid rgba(22, 16, 16, 0.85);
  backdrop-filter:blur(14px) saturate(150%);
  -webkit-backdrop-filter:blur(14px) saturate(150%);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  box-shadow: 2px 2px rgba(2, 4, 10, 0.274);
  transition:
    transform .25s ease,
    box-shadow .25s ease,
    border-color .25s ease,
    background .25s ease;
}


  #cartDetails{
  max-height: 220px;
    overflow:hidden;
    overflow-y:auto;
  }

  .cartTab .checkOut{
    top:88%;
    width:auto;
    left:50%;
    transform:translateX(-50%);
    padding:20px 25px;
    position:absolute;
    justify-content:center;
    align-items:center;
    color:#f5f5f5;
    border:1px solid #0f0909;
    border-radius:99px;
    transition:all .3s ease;
  }

  .cartTab .checkOut:hover{
    background-color:#aaa9a9;
    color:#000;
    box-shadow:0 0 20px #0a1814;
    transform:translateX(-50%) scale(1.05);
  }

  .title{
  font-weight:700;
  font-size:15px;
  line-height:1.25;
  color:#111;
}

.use{
  font-size:14px;
  color:#555;
  line-height:1.45;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  min-height:58px;
}

.price{
  font-weight:800;
  font-size:15px;
  margin-top:4px;
  color:#111;
}


.product-buttons{
  width:fit-content;
  display:flex;
  gap:8px;
  margin-top:1px;
}

.product-buttons button{
  flex:0 0 auto;
  padding:6px 13px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, opacity .25s ease;
}

.product-buttons button img{
  width:16px;
  height:16px;
  display:block;
}

.product-buttons button:hover{
  transform:translateY(-1px);
  box-shadow:0 4px 10px rgba(15,23,42,.15);
  background:rgba(0,0,0,.06);
}

.product-buttons .addCart{
  background:rgb(206, 206, 206);
  color:#fff;
  border-color:transparent;
}

.product-buttons .addCart:hover{
  box-shadow:0 4px 12px rgba(31,140,255,.45);
}

.favBtn{
  border:none;
  background:rgba(255,255,255,.12);
  color:#111;
  border-radius:999px;
  padding:8px 12px;
  cursor:pointer;
  font-size:18px;
  transition:.2s ease;
}

.favBtn:hover{
  transform:scale(1.08);
  background:rgba(255,255,255,.35);
}


  .premium-popup{
    grid-template-columns:1fr;
    max-height:90vh;
    overflow-y:auto;
  }

  .popup-image-wrap{
    min-height:280px;
    padding:22px;
  }

  .popup-image-wrap img{
    max-width:260px;
    max-height:240px;
  }

  .popup-body {
  max-width: 100%;
  padding: 44px 40px 38px;
  background: linear-gradient(180deg, rgba(255,255,255,0.88), rgba(255,255,255,0.78));
  display: flex;
  border-radius: 22px;
    box-shadow: 0 10px 24px rgb(0, 0, 0);

  flex-direction: column;
  justify-content: center;
}

  .popup-body{
    padding:24px 20px 22px;
  }

  .popup-meta-row{
    grid-template-columns:1fr;
  }

  .popup-actions{
    flex-direction:column;
    align-items:stretch;
  }

  .premium-cart-btn{
    min-width:unset;
    width:100%;
  }

  .quantity-box{
    justify-content:center;
  }
}

@media (max-width:1050px){
  .grid{grid-template-columns:repeat(3,1fr);}
}

@media (max-width:740px){
  .grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:440px){
  .grid{grid-template-columns:1fr;}
}