/* ================= RESET ================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body{
  background:#020617;
  color:#fff;
  overflow-x:hidden;
}

/* ================= PAGE ================= */
.sale-page{
  min-height:90%;
  display:flex;
  flex-direction:column;
  opacity:1;
  transform:translateY(0);
  transition:all .4s ease;
}

/* 🔥 EXIT ANIMATION */
.sale-page.fade-out{
  opacity:0;
  transform:translateY(30px) scale(.98);
}

/* ================= HERO ================= */
.hero{
  padding:20px 16px 10px;
  background:linear-gradient(180deg, rgba(0,247,255,.08), transparent);
  border-bottom:1px solid rgba(0,247,255,.1);
}

/* ================= TOP BAR ================= */
.top-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.top-bar h1{
  font-size:30px;
  font-weight:700;
  color:#00f7ff;
  text-shadow:0 0 12px rgba(0,247,255,.6);
}

/* CLOSE BUTTON */
#closeSale{
  background:linear-gradient(135deg,#ff3d00,#ff6b6b);
  border:none;
  color:#fff;
  font-size:18px;
  padding:6px 12px;
  border-radius:12px;
  cursor:pointer;
  box-shadow:0 0 12px rgba(255,60,0,.5);
  transition:.2s;
}

#closeSale:active{
  transform:scale(.9);
}

/* ================= COUNTDOWN ================= */
.countdown-wrapper{
  margin-top:20px;
  text-align:center;
}

.countdown{
  display:flex;
  justify-content:center;
  gap:5px;
  flex-wrap:wrap;
}

/* TIME BOX */
.time-box{
  background:rgba(0,247,255,.08);
  border-top: 2px solid greenyellow;
  border-bottom:2px solid red;
  border-right: 2px solid blue;
 border-left: 2px solid #09e;
  padding:10px 14px;
  border-radius:12px;
  font-weight:800;
  font-size:16px;
  color:#00f7ff;
  box-shadow:0 0 12px rgba(0,247,255,.25);
  backdrop-filter:blur(6px);
  
}

.time-label{
  margin-top:8px;
  font-size:12px;
  opacity:.7;
}

.subtitle{
  margin-top:6px;
  font-size:12px;
  color:#aaa;
}

/* ================= PRODUCTS ================= */
.products{
  padding:16px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(150px,1fr));
  gap:16px;
  height:90%;
  width:100%;
}

/* ================= CARD ================= */
.card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.06);
  border-radius:16px;
  padding:10px;
  transition:.3s;
  backdrop-filter:blur(10px);
  box-shadow:0 10px 25px rgba(0,0,0,.4);
}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 0 20px rgba(0,247,255,.3);
}

/* IMAGE */
.card img{
  width:100%;
  height:auto;
  object-fit:cover;
  border-radius:10px;
  margin-bottom:8px;
}

/* TITLE */
.title{
  font-size:14px;
  font-weight:600;
  margin-bottom:6px;
  color:#fff;
}

/* ================= PRICE ================= */
.price{
  margin-bottom:8px;
}

.price .old{
  text-decoration:line-through;
  color:#888;
  font-size:12px;
}

.price .new{
  color:#00f7ff;
  font-weight:700;
  font-size:16px;
  margin-left:4px;
}

.price .badge{
  display:inline-block;
  background:linear-gradient(135deg,#ff3d00,#ff9800);
  color:#fff;
  font-size:10px;
  padding:3px 6px;
  border-radius:8px;
  margin-left:6px;
}

/* ================= BUTTONS ================= */
.btn{
  width:100%;
  border:none;
  padding:10px;
  border-radius:12px;
  font-weight:600;
  font-size:14px;
  cursor:pointer;
  transition:.25s;
}

/* BUY BUTTON */
.btn.buy{
  background:linear-gradient(135deg,#00c853,#00e676);
  color:#000;
  box-shadow:0 0 12px rgba(0,200,83,.5);
}

.btn.buy:active{
  transform:scale(.95);
}

/* DOWNLOAD BUTTON */
.btn.download{
  background:linear-gradient(135deg,#2196f3,#00e5ff);
  color:#000;
  box-shadow:0 0 12px rgba(0,229,255,.5);
}

.btn.download:active{
  transform:scale(.95);
}

/* ================= EMPTY ================= */
.products p{
  text-align:center;
  opacity:.6;
  margin-top:40px;
}

/* ================= SCROLL ================= */
html{
  scroll-behavior:smooth;
}

/* ================= MOBILE FIX ================= */
@media(max-width:480px){

  .card img{
    height:150px;
  }



}
.products{
  padding:16px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); /* 🔥 responsive fix */
  gap:16px;
}

.card img{
  width:100%;
  height:auto; /* 🔥 remove fixed height */
  aspect-ratio:3/4;
  object-fit:cover;
  border-radius:12px;
}
.title{
  font-size:15px;
  font-weight:600;
  margin:8px 0;
  line-height:1.4;
  word-break:break-word; /* 🔥 long text wrap */
}
.price{
  margin-top:auto; /* 🔥 pushes button down */
}
.btn{
  width:100%;
  padding:14px; /* 🔥 bigger */
  font-size:16px;
  border-radius:14px;
  font-weight:700;
}

/* BUY */
.btn.buy{
  background:linear-gradient(135deg,#00c853,#00e676);
  box-shadow:0 0 20px rgba(0,200,83,.6);
}

/* DOWNLOAD */
.btn.download{
  background:linear-gradient(135deg,#00e5ff,#00bcd4);
  box-shadow:0 0 20px rgba(0,229,255,.6);
}


.discount{
  background:#ff3d00;
  color:#fff;
  padding:2px 6px;
  border-radius:6px;
  font-size:20px;
}
.premium-btn{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  cursor:pointer;
border-top:2px solid red;
border-bottom:2px solid greenyellow;
border-left:2px solid blue;
border-right:2px solid orangered;
  background:linear-gradient(135deg,#ff6a00,#ff2d2d);
  color:#fff;

  font-size:20px;
  font-weight:700;

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

  box-shadow:
    0 10px 25px rgba(255,50,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.2);

  transition:all 0.25s ease;
}

.premium-btn:hover{
  transform:translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 35px rgba(255,50,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.premium-btn:active{
  transform:scale(0.96);
}

.btn-content{
  display:flex;
  align-items:center;
  gap:10px;
}

.btn-icon{
  width:25px;
  height:25px;
  fill:#fff;
  filter:drop-shadow(0 0 6px rgba(255,255,255,0.6));
}

.btn-text{
  letter-spacing:0.4px;
}
.price{
  display:flex;
  align-items:center;
  gap:6px;
}

.price .old{
  font-size:20px;
  color:#94a3b8;
  text-decoration:line-through;
}

.price .new{
  font-size:26px;
  font-weight:800;
  color:#22c55e;
}

.price .badge{
  font-size:17px;
  padding:3px 8px;
  border-radius:999px;
  background:linear-gradient(135deg,#ff6a00,#ff2d2d);
  color:#fff;

}
/* ===== PRICE CONTAINER ===== */
.price{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin:10px 0;
}

/* ===== OLD PRICE ===== */
.price .old{
  font-size:23px;
  color: white;
  font-weight:900;
  
  text-decoration:line-through;
  opacity:0.8;
}

/* ===== NEW PRICE (GLOW GRADIENT) ===== */
.price .new{
  font-size:26px;
  font-weight:900;
  letter-spacing:0.5px;

  background:linear-gradient(135deg,#22c55e,#4ade80);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;

  text-shadow:0 0 14px rgba(34,197,94,0.45);
}

/* ===== DISCOUNT BADGE ===== */
.price .discount{
  padding:6px 12px;
  border-radius:999px;

  font-size:20px;
  font-weight:800;
  letter-spacing:0.4px;

  background:linear-gradient(135deg,#ff512f,#ff0000);
  color:#fff;

  box-shadow:0 4px 15px rgba(255,0,0,0.4);
}

/* ===== SALE BADGE ===== */
.price .badge{
  padding:6px 14px;
  border-radius:999px;

  font-size:13px;
  font-weight:700;

  background:linear-gradient(135deg,#ff6a00,#ff3d00);
  color:#fff;

  box-shadow:0 4px 18px rgba(255,100,0,0.4);
}

/* ===== OPTIONAL: GLASS BACKGROUND ===== */
.price{
  background:rgba(255,255,255,0.03);
  backdrop-filter:blur(10px);
  border-radius:14px;
  padding:8px 12px;
  border:1px solid rgba(255,255,255,0.08);
}

/* ===== HOVER EFFECT ===== */
.card:hover .price{
  box-shadow:0 0 25px rgba(34,197,94,0.15);
  transform:translateY(-2px);
  transition:all 0.3s ease;
}
#saleLoader .spinner{
  width:60px;
  height:60px;
  border:4px solid rgba(255,255,255,0.1);
  border-top:4px solid #0ea5e9;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

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

.loader-text{
  margin-top:14px;
  font-size:16px;
  font-weight:700;
  color:#e2e8f0;
  text-align:center;
}
#saleLoader{
  position:fixed;
  inset:0;
  background:#020617;
  z-index:99999;

  display:flex;
  align-items:center;      /* vertical center */
  justify-content:center;  /* horizontal center */
}

.loader-center{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* spinner */
.spinner{
  width:64px;
  height:64px;
  border:4px solid rgba(255,255,255,0.1);
  border-top:4px solid #0ea5e9;
  border-radius:50%;
  animation:spin 1s linear infinite;
}

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

/* text */
.loader-text{
  margin-top:14px;
  font-size:16px;
  font-weight:700;
  color:#e2e8f0;
}
.card{
  background:#020617;
  border-radius:16px;
  padding:12px;
  margin-bottom:16px;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  border:1px solid rgba(255,255,255,.05);
}

.img-wrap img{
  width:100%;
  border-radius:12px;
}

.title{
  font-size:18px;
  font-weight:800;
  margin-top:10px;
  color:#fff;
}

.desc{
  font-size:13px;
  color:#94a3b8;
  margin-top:6px;
}

.rating{
  margin-top:6px;
  font-size:13px;
  color:#facc15;
}

.badges{
  margin-top:8px;
}

.badge{
  display:inline-block;
  padding:4px 8px;
  border-radius:8px;
  font-size:11px;
  margin-right:5px;
}

.badge.red{background:#ef4444;color:#fff;}
.badge.green{background:#22c55e;color:#fff;}
.badge.blue{background:#3b82f6;color:#fff;}

.price{
  margin-top:10px;
  display:flex;
  align-items:center;
  gap:8px;
}

.old{
  text-decoration:line-through;
  color:#94a3b8;
}

.new{
  font-size:22px;
  font-weight:900;
  color:#22c55e;
}

.discount{
  background:#ff5722;
  color:#fff;
  padding:4px 8px;
  border-radius:8px;
  font-size:12px;
  font-weight:700;
}

.btn{
  margin-top:12px;
  width:100%;
  padding:12px;
  border:none;
  border-radius:12px;
  font-weight:700;
  cursor:pointer;
}

.premium-btn{
  background:linear-gradient(135deg,#22c55e,#16a34a);
  color:#000;
}

.btn-content{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.btn-icon{
  width:18px;
  fill:#000;
}
/* ===== HEADER ===== */
.sale-header{
  text-align:center;
  padding:12px 10px 18px;
}

.sale-title{
  font-size:20px;
  font-weight:800;
  color:#22d3ee;
  text-shadow:0 0 10px rgba(34,211,238,0.6);
  margin-bottom:8px;
}

/* ===== TIMER ROW (FIXED ALIGNMENT) ===== */
.timer-row{
  display:flex;
  justify-content:center;
  gap:10px;
  margin-top:3px;
  flex-wrap:nowrap; /* 🔥 important fix */
}

/* ===== TIME BOX (PREMIUM) ===== */
.time-box{
  min-width:80px;
  padding:14px 10px;
  border-radius:14px;

  font-size:25px;
  font-weight:800;
  color:Red;

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

  background:linear-gradient(145deg,#020617,#0f172a);

  /* ✅ clean border (single professional) */
  border:1px solid rgba(34,211,238,0.35);

  /* 🔥 glow */
  box-shadow:
    0 0 12px rgba(34,211,238,0.25),
    inset 0 0 10px rgba(34,211,238,0.1);

  transition:all 0.3s ease;
}

/* label (h m s) */
.time-box span{
  font-size:18px;
  font-weight:600;
  color:White;
  margin-top:4px;
}

/* hover effect */
.time-box:hover{
  transform:translateY(-2px);
  box-shadow:
    0 0 18px rgba(34,211,238,0.45),
    inset 0 0 12px rgba(34,211,238,0.15);
}

/* ===== TEXT BELOW ===== */
.sale-sub{
  margin-top:5px;
  font-size:20px;
  font-weight:700;
  color:#3b82f6;
}

.sale-note{
  margin-top:2px;
  font-size:20px;
  font-weight:700;
  color:#94a3b8;
}