/* RESET */
*{
margin:0;
padding:0;
box-sizing:border-box;
font-family:'Poppins',sans-serif;
}

/* BODY */
body{
margin:0;
color:white;
overflow-x:hidden;
min-height:100vh;

/* 🔥 PREMIUM ANIMATED BG */
background: linear-gradient(-45deg, #0b1c2c, #0f2f4f, #123a5c, #0b1c2c);
background-size: 400% 400%;
animation: gradientMove 12s ease infinite;
}

@keyframes gradientMove{
0%{background-position:0% 50%;}
50%{background-position:100% 50%;}
100%{background-position:0% 50%;}
}

/* GLOW */
body::before{
content:"";
position:fixed;
width:100%;
height:100%;

background:
radial-gradient(circle at 20% 30%, rgba(0,255,200,0.15), transparent 40%),
radial-gradient(circle at 80% 70%, rgba(255,200,100,0.15), transparent 40%);

z-index:-1;
animation: floatGlow 10s ease-in-out infinite alternate;
}

@keyframes floatGlow{
0%{transform:translate(0,0);}
100%{transform:translate(40px,40px);}
}

/* GLASS */
.glass{
background: rgba(255,255,255,0.08);
backdrop-filter: blur(25px);
border: 1px solid rgba(255,255,255,0.2);
box-shadow:
0 8px 32px rgba(0,0,0,0.5),
inset 0 0 10px rgba(255,255,255,0.1);
}

/* HEADER */
.header{
display:flex;
justify-content:space-between;
align-items:center;
padding:15px 30px;
position:sticky;
top:0;
z-index:100;
background: rgba(255,255,255,0.05);
backdrop-filter: blur(20px);
}

/* LOGO */
.logo-container{
display:flex;
align-items:center;
gap:10px;
}

.logo{
width:40px;
height:40px;
}

.brand{
font-size:20px;
font-weight:600;
}

/* BUTTONS */
.btn{
padding:10px 16px;
border:none;
border-radius:10px;
cursor:pointer;
transition:0.4s;
color:white;
position:relative;
overflow:hidden;
}

.btn::after{
content:"";
position:absolute;
top:0;
left:-100%;
width:100%;
height:100%;
background:linear-gradient(120deg, transparent, rgba(255,255,255,0.4), transparent);
transition:0.5s;
}

.btn:hover::after{
left:100%;
}

.glass-btn{
background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05));
border:1px solid rgba(255,255,255,0.2);
}

.main-btn{
background: linear-gradient(135deg,#ff8c00,#ffb347);
border-radius:20px;
transition:0.3s;
}

.main-btn:hover{
transform:scale(1.08);
box-shadow:0 0 25px rgba(255,150,0,0.9);
}

/* FILTERS */
.filters{
display:flex;
justify-content:center;
gap:15px;
margin:20px 0;
flex-wrap:wrap;
}

.filter-btn{
padding:8px 14px;
border-radius:8px;
border:none;
cursor:pointer;
background: rgba(255,255,255,0.2);
color:white;
transition:0.3s;
}

.filter-btn.active,
.filter-btn:hover{
background: rgba(255,255,255,0.4);
}

/* GRID */
.products-grid{
display:grid;
grid-template-columns: repeat(4, 1fr); /* 4 products FIXED */
gap:25px;
padding:40px;
max-width:1200px;
margin:auto;
}
@media(max-width:900px){
.products-grid{
grid-template-columns: repeat(2,1fr);
}
}

@media(max-width:600px){
.products-grid{
grid-template-columns: 1fr;
}
}

/* CARD (PREMIUM) */
.card{
border-radius:20px;
padding:15px;
text-align:center;
cursor:pointer;

transform-style: preserve-3d;
transition: transform 0.4s ease, box-shadow 0.4s;

background: rgba(255,255,255,0.08);
backdrop-filter: blur(30px);
border:1px solid rgba(255,255,255,0.2);

box-shadow:
0 10px 30px rgba(0,0,0,0.5);
}

.card:hover{
transform: rotateX(6deg) rotateY(-6deg) scale(1.05);
box-shadow:
0 25px 70px rgba(0,0,0,0.8),
0 0 25px rgba(255,255,255,0.2);
}

.card img{
width:100%;
height:220px;
object-fit:cover;
border-radius:12px;
transition:0.4s;
}

.card:hover img{
transform:scale(1.1) translateZ(20px);
}

.card h3{
margin:10px 0;
font-size:16px;
line-height:1.4;

overflow:hidden;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;

word-break:break-word;;
}

/* MODAL */
.modal{
display:none;
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.7);
justify-content:center;
align-items:center;
z-index:200;
}

.modal-content{
padding:25px;
border-radius:16px;
width:300px;
display:flex;
flex-direction:column;
gap:10px;
animation:fadeIn 0.3s ease;
}

.modal-content input{
padding:10px;
border-radius:8px;
border:none;
outline:none;
}

.close{
cursor:pointer;
font-size:22px;
text-align:right;
}

/* FOOTER */
.footer{
margin-top:40px;
padding:20px;
text-align:center;
}

/* PAGINATION */
.pagination{
display:flex;
justify-content:center;
gap:10px;
margin:20px;
}

/* PRODUCT PAGE */
.product-page{
padding:30px;
display:flex;
justify-content:center;
}

.product-container{
display:flex;
gap:30px;
padding:20px;
border-radius:16px;
max-width:900px;
width:100%;
}

.product-info{
display:flex;
flex-direction:column;
gap:15px;
}

.price{
font-size:22px;
font-weight:bold;
}

/* THUMBNAILS */
.thumbs{
display:flex;
gap:10px;
margin-top:10px;
flex-wrap:wrap;
}

.thumbs img{
width:60px;
height:60px;
object-fit:cover;
border-radius:8px;
cursor:pointer;
opacity:0.7;
transition:0.3s;
border:2px solid transparent;
}

.thumbs img:hover{
opacity:1;
transform:scale(1.1);
box-shadow:0 0 10px rgba(255,255,255,0.6);
}

/* ADMIN */
.admin-container{
max-width:300px;
margin:100px auto;
padding:20px;
border-radius:16px;
display:flex;
flex-direction:column;
gap:10px;
text-align:center;
}

/* LOADER */
#loader{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#0f2027;
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

.spinner{
width:50px;
height:50px;
border:5px solid rgba(255,255,255,0.2);
border-top:5px solid white;
border-radius:50%;
animation:spin 1s linear infinite;
}

@keyframes spin{
0%{transform:rotate(0);}
100%{transform:rotate(360deg);}
}

/* RESPONSIVE */
@media(max-width:900px){
.products-grid{
grid-template-columns:repeat(2,1fr);
}
}

@media(max-width:600px){
.products-grid{
grid-template-columns:1fr;
}
.header{
flex-direction:column;
gap:10px;
}
}

@media(max-width:700px){
.product-container{
flex-direction:column;
}
}
.search-container{
display:flex;
justify-content:center;
margin:20px;
}

#searchInput{
width:320px;
padding:14px;
border-radius:12px;
border:none;
outline:none;

background: rgba(255,255,255,0.1);
color:white;

box-shadow:0 0 10px rgba(255,255,255,0.1);
transition:0.3s;
}

#searchInput:focus{
box-shadow:0 0 20px rgba(0,200,255,0.6);
}
#searchInput::placeholder{
color:rgba(255,255,255,0.6);
}
/* FULL SCREEN MESSAGE */
#refreshScreen{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:#0b1c2c;
display:flex;
justify-content:center;
align-items:center;
z-index:9999;
}

/* BOX */
.refresh-box{
text-align:center;
color:white;
max-width:600px;
padding:20px;
}

/* BIG TEXT */
#deviceMsg{
font-size:32px;
font-weight:700;
margin-bottom:15px;
line-height:1.4;
}

/* SUBTEXT */
.refresh-box p{
font-size:16px;
opacity:0.8;
}
