@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root{
  --bg:#0d0f10;
  --panel:rgba(13,15,16,0.85);
  --card:rgba(255,255,255,0.04);
  --border:#dcfbff;
  --text:#e6e6e6;
  --muted:rgba(230,230,230,0.55);
  --accent:#4e5d5d;
  --primary:#dcfbff;
}

/* ===== GLOBAL ===== */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Inter',sans-serif;}
body{
  background: radial-gradient(circle at top, #0b0b0b, var(--bg));
  color:var(--text);
  overflow-x:hidden;
}

/* ===== HEADER ===== */
.header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:14px 18px;
  background:rgba(13,15,16,.65);
  border-bottom:1px solid rgba(220,251,255,0.15);
  position:sticky;
  top:0;
  z-index:1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.logo{
  font-weight:600;
  letter-spacing:1px;
  text-decoration:none;
  color: var(--primary);
  font-size:14px;
  padding:6px 10px;
  border:1px solid rgba(220,251,255,0.35);
  border-radius:12px;
  transition:.25s;
}
.logo:hover{
  background: rgba(220,251,255,0.08);
  box-shadow: 0 0 10px rgba(220,251,255,0.35);
}

/* ==============================
   STOCK SYNC NOTICE
============================== */
/* ==============================
   STOCK SYNC NOTICE (HEADER MIDDLE)
============================== */

/* make header allow absolute center item */
.header{
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* center pill inside header */
.stock-notice{
  position: absolute;
  left: 30%;
  transform: translateX(-50%);
  top: 50%;
  translate: 0 -50%;

  display:flex;
  align-items:center;
  gap:10px;

  padding: 7px 14px;
  border-radius: 999px;

  background: rgba(13,15,16,0.55);
  border: 1px solid rgba(220,251,255,0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);

  color: rgba(220,251,255,0.95);
  font-size: 10px;
  letter-spacing: .3px;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);

  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none; /* so it doesn't block clicks */
}

/* countdown bubble */
.stock-timer{
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;

  display:flex;
  align-items:center;
  justify-content:center;

  border: 1px solid rgba(220,251,255,0.25);
  background: rgba(220,251,255,0.10);
  color: rgba(220,251,255,0.95);
  font-size: 11px;
}

/* done state */
.stock-notice.done{
  border-color: rgba(120,255,180,0.35);
}
.stock-notice.done .stock-timer{
  background: rgba(120,255,180,0.14);
  border-color: rgba(120,255,180,0.35);
  color: #8fffcf;
}

/* fade out */
.stock-notice.hide{
  opacity: 0;
  transform: translateX(-50%) translateY(-6px);
}

/* mobile safety: don’t overflow header */
@media (max-width: 380px){
  .stock-notice{
    max-width: 190px;
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ===== HAMBURGER ===== */
.hamburger{
  width:42px;
  height:36px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:6px;
  cursor:pointer;
  border:1px solid rgba(220,251,255,0.25);
  border-radius:14px;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  transition:.2s;
}
.hamburger span{
  width:22px;
  height:2px;
  border-radius:10px;
  background: var(--primary);
}

/* ===== FILTER PANEL ===== */
.filters{
  background:var(--panel);
  display:flex;
  flex-direction:column;
  gap:12px;
  max-height:0;
  padding:0;
  overflow:hidden;
  transition:max-height .35s ease,padding .25s ease;
}
.filters.active{
  max-height:700px;
  padding:16px;
}

.filters input,
.filters select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(220,251,255,.12);
  color:var(--text);
}

.filter-row{display:flex;gap:10px;}
.price-range{display:flex;gap:10px;width:100%;}
.price-range input{flex:1;}

/* ===== PARTICLES ===== */
#particleContainer{
  position:fixed;
  inset:0;
  pointer-events:none;
  z-index:0;
}
.particle{
  position:absolute;
  width:3px;
  height:3px;
  border-radius:50%;
  background: rgba(220,251,255,0.18);
  animation: fall linear infinite;
}
@keyframes fall{
  from{ transform: translateY(-10vh); opacity:0.1; }
  to{ transform: translateY(120vh); opacity:0; }
}

/* ===== PRODUCT GRID ===== */
.product-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
  padding:14px;
}
@media(min-width:768px){
  .product-grid{grid-template-columns:repeat(3,1fr)}
}

/* ===== PRODUCT CARD ===== */
.product-card{
  background:linear-gradient(160deg,rgba(255,255,255,.08),rgba(255,255,255,.01));
  border-radius:20px;
  border:1px solid rgba(220,251,255,.18);
  box-shadow:0 12px 35px rgba(0,0,0,.65);
  backdrop-filter:blur(18px);
  overflow:hidden;
  transition:.3s;
  position:relative;
}
.product-card:hover{
  transform: translateY(-2px) scale(1.02);
}

/* ===== IMAGE WRAP ===== */
.img-wrap{
  position:relative;
}

/* ===== PRODUCT IMAGE ===== */
.product-card img{
  width:100%;
  display:block;
  border-radius:16px;
  transition:.35s;
}
.product-card:hover img{
  transform:scale(1.05);
}

/* ===== LABEL TOP LEFT ===== */
.label{
  position:absolute;
  top:10px;
  left:10px;
  padding:4px 10px;
  border-radius:12px;
  font-size:10px;
  border:1px solid rgba(220,251,255,.45);
  background:rgba(220,251,255,.10);
  color:var(--primary);
}

/* ===== CARD BODY ===== */
.card-body{
  display:flex;
  flex-direction:column;
  padding:12px;
}
.brand{font-size:13px;color:rgba(220,251,255,0.85);}
.name{font-size:12px;margin-bottom:4px;}
.price{color:var(--primary);font-weight:600;margin:4px 0;}
.stock{font-size:12px;color:var(--muted);}

/* ===== MORE DETAILS ===== */
.more-details-btn{
  margin-top:8px;
  padding:7px 12px;
  border-radius:12px;
  text-decoration:none;
  color:var(--primary);
  border:1px solid rgba(220,251,255,.35);
  font-size:12px;
  display:inline-block;
}

/* ===== MODAL ===== */
.quick-view-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.82);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:9999;
  padding:18px;
}
.modal-content{
  width:100%;
  max-width:390px;
  background: rgba(13,15,16,0.86);
  border:1px solid rgba(220,251,255,0.20);
  border-radius:20px;
  padding:18px;
  backdrop-filter: blur(18px);
  text-align:center;
}
.modal-content img{
  width:100%;
  max-height:260px;
  object-fit:contain;
  border-radius:16px;
  margin-bottom:10px;
}
.modal-name{color:var(--primary);font-weight:700;}
.modal-price{color:var(--primary);font-weight:600;}
.modal-stock{color:var(--muted);margin-bottom:8px;}
.modal-details{font-size:14px;margin-bottom:12px;}

.close-btn{
  position:absolute;
  top:10px;
  right:15px;
  font-size:22px;
  cursor:pointer;
  color:var(--primary);
}

/* ===== MODAL ACTIONS ===== */
.modal-actions{
  display:flex;
  justify-content:center;
}
.modal-addcart{
  padding:11px 24px;
  border-radius:14px;
  border:1px solid rgba(220,251,255,.45);
  background: linear-gradient(135deg, #4E5D5D, #0d0f10);
  color:#DCFBFF;
  font-weight:700;
  cursor:pointer;
  white-space:nowrap;
  min-width:220px;
}
.modal-addcart.added{
  background: rgba(220,251,255,0.15);
}

/* ===== CHECKOUT BUTTON ===== */
#goCheckoutBottom{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  padding:14px 28px;
  border-radius:30px;
  border:1px solid rgba(220,251,255,.45);
  background: linear-gradient(135deg, #4E5D5D, #0d0f10);
  color:#DCFBFF;
  font-weight:700;
  cursor:pointer;
  z-index:10000;
  white-space:nowrap;
  min-width:260px;
}

/* ==============================
   ====== UPGRADE: SOLD OUT UI
============================== */

/* separator row */
.soldout-sep{
  grid-column: 1 / -1;
  margin: 6px 0 2px;
  padding: 10px 14px;
  border-radius: 16px;
  text-align: center;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(220,251,255,0.9);
  border: 1px solid rgba(220,251,255,0.18);
  background: linear-gradient(135deg, rgba(220,251,255,0.08), rgba(255,255,255,0.02));
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  position: relative;
}
.soldout-sep::before,
.soldout-sep::after{
  content:"";
  position:absolute;
  top:50%;
  width: 28%;
  height:1px;
  background: rgba(220,251,255,0.18);
}
.soldout-sep::before{ left:14px; }
.soldout-sep::after{ right:14px; }

/* sold out card look */
.product-card.soldout{
  opacity: 0.62;
  filter: grayscale(1);
}
.product-card.soldout:hover{ transform:none; }
.product-card.soldout .more-details-btn{
  opacity: .75;
  border-color: rgba(220,251,255,.22);
}

/* sold out badge */
.label.soldout-badge{
  border-color: rgba(255,90,90,0.55);
  background: rgba(255,90,90,0.10);
  color: rgba(255,170,170,0.95);
}

/* modal disabled look */
.modal-addcart:disabled{
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255,255,255,0.06);
  border-color: rgba(220,251,255,0.18);
  box-shadow: none;
}

/* ==============================
   MODAL GALLERY (2+ images)
============================== */

.modal-gallery{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.modal-thumbs{
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
  margin-bottom:8px;
}

.modal-thumbs button{
  border:1px solid rgba(220,251,255,0.22);
  background: rgba(255,255,255,0.03);
  padding:0;
  border-radius:12px;
  overflow:hidden;
  cursor:pointer;
  width:64px;
  height:64px;
}

.modal-thumbs img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.modal-thumbs button.active{
  border-color: rgba(220,251,255,0.55);
  box-shadow: 0 0 0 2px rgba(220,251,255,0.12);
}
