 /* GLOBAL */

body{
font-family: Arial, sans-serif;
margin:0;
background:#f7fbff;
}


/* NAVBAR */

.navbar{
display:flex;
align-items:center;
justify-content:space-between;
padding:12px 40px;
background:white;
box-shadow:0 2px 10px rgba(0,0,0,0.1);
position:sticky;
top:0;
z-index:1000;
}

.logo{
display:flex;
align-items:center;
gap:10px;
font-size:20px;
font-weight:bold;
color:#2a7de1;
}

.logo img{
width:40px;
height:40px;
border-radius:50%;
}


/* NAV LINKS */

.nav-links{
display:flex;
gap:30px;
align-items:center;
}

.nav-links a{
text-decoration:none;
font-weight:600;
color:#333;
}

.nav-links a:hover{
color:#2a7de1;
}


/* RIGHT NAV */

.nav-right{
display:flex;
align-items:center;
gap:15px;
}

.login-btn{
background:#ff9800;
border:none;
padding:8px 18px;
border-radius:8px;
color:white;
font-weight:600;
cursor:pointer;
}

.menu{
font-size:22px;
cursor:pointer;
}


/* PAGE */

.products-page{
padding:60px 20px;
max-width:1400px;
margin:auto;
}


/* MAIN LAYOUT */

.products-layout{
display:grid;
grid-template-columns:260px 1fr;
gap:40px;
align-items:start;
}


/* SIDEBAR FILTER */

.filters{
background:white;
padding:20px;
border-radius:12px;
box-shadow:0 4px 10px rgba(0,0,0,0.08);
height:fit-content;
}

.filters h3{
margin-top:0;
}

.filters label{
display:flex;
align-items:center;
gap:6px;
margin-bottom:8px;
font-size:14px;
cursor:pointer;
}


/* NEW FILTER BADGE */

.new-filter{
background:#ff9800;
color:white;
font-size:10px;
padding:2px 6px;
border-radius:4px;
animation:newFilterPulse 1.5s infinite;
}

@keyframes newFilterPulse{
0%{opacity:1;}
50%{opacity:0.4;}
100%{opacity:1;}
}


/* PRODUCTS MAIN */

.products-main{
display:flex;
flex-direction:column;
gap:25px;
}


/* SEARCH BAR + SORT */

.products-toolbar{
display:flex;
justify-content:space-between;
align-items:center;
background:white;
padding:15px;
border-radius:10px;
box-shadow:0 3px 8px rgba(0,0,0,0.08);
}

.product-search{
width:65%;
padding:12px 18px;
border-radius:25px;
border:1px solid #ddd;
outline:none;
font-size:14px;
}

.product-sort{
padding:10px;
border-radius:8px;
border:1px solid #ddd;
font-size:14px;
}


/* PRODUCT GRID */

.products-grid{
display:grid;
grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
gap:24px;
}


/* PRODUCT CARD */

.card{
background:white;
border-radius:10px;
padding:10px;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
transition:0.2s;
display:flex;
flex-direction:column;
}

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


/* IMAGE */

.product-image{
position:relative;
height:180px;
display:flex;
align-items:center;
justify-content:center;
}

.product-image img{
max-height:170px;
max-width:100%;
object-fit:contain;
}


/* NEW BADGE */

.new-badge{
position:absolute;
top:8px;
left:8px;
background:#ff3b3b;
color:white;
font-size:11px;
font-weight:bold;
padding:4px 8px;
border-radius:6px;
animation:newPulse 1.2s infinite;
}

@keyframes newPulse{
0%{transform:scale(1);}
50%{transform:scale(1.1);}
100%{transform:scale(1);}
}


/* PRODUCT INFO */

.product-info{
text-align:left;
padding:6px 4px;
}

.product-title{
font-size:15px;
font-weight:500;
margin:6px 0;
display:-webkit-box;
-webkit-line-clamp:2;
-webkit-box-orient:vertical;
overflow:hidden;
}

.product-price{
font-size:18px;
font-weight:700;
color:#B12704;
margin:4px 0;
}


/* BUTTON AREA */

.product-actions{
display:flex;
gap:8px;
margin-top:6px;
}

.cart-btn{
background:#FFD814;
border:1px solid #FCD200;
padding:6px 8px;
border-radius:6px;
font-size:13px;
cursor:pointer;
flex:1;
}

.cart-btn:hover{
background:#F7CA00;
}

.view-btn{
background:#2a7de1;
color:white;
border:none;
padding:6px 8px;
border-radius:6px;
font-size:13px;
cursor:pointer;
}


/* RESPONSIVE */

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

.filters{
order:2;
}

.products-main{
order:1;
}
}

@media(max-width:600px){

.products-toolbar{
flex-direction:column;
gap:10px;
}

.product-search{
width:100%;
}

}

.product-row{
text-decoration:none;
color:inherit;
}

/* PRODUCT ROW STYLE */

.product-row{
display:flex;
gap:25px;
background:white;
border-radius:10px;
padding:20px;
text-decoration:none;
color:inherit;
box-shadow:0 2px 8px rgba(0,0,0,0.08);
transition:0.2s;
align-items:flex-start;
}

.product-row:hover{
transform:translateY(-3px);
box-shadow:0 6px 18px rgba(0,0,0,0.15);
}

/* IMAGE */

.row-image{
width:220px;
flex-shrink:0;
display:flex;
justify-content:center;
align-items:center;
}

.row-image img{
width:200px;
height:200px;
object-fit:contain;
}

/* DETAILS */

.row-details{
flex:1;
display:flex;
flex-direction:column;
gap:8px;
}

.row-title{
font-size:20px;
margin:0;
font-weight:600;
}

.row-rating{
color:#f5a623;
font-size:14px;
}

.row-price{
font-size:22px;
font-weight:bold;
color:#B12704;
}

.row-stock{
color:#2e7d32;
font-size:14px;
}

/* CART BUTTON */

.cart-btn{
background:#FFD814;
border:1px solid #FCD200;
padding:10px 16px;
border-radius:6px;
font-size:14px;
cursor:pointer;
width:150px;
margin-top:10px;
}

.cart-btn:hover{
background:#F7CA00;
}

.products-grid{
display:flex;
flex-direction:column;
gap:20px;
}

.price-now{
font-size:22px;
font-weight:bold;
color:#B12704;
margin-right:10px;
}

.price-old{
text-decoration:line-through;
color:#777;
margin-right:8px;
}

.discount{
color:#2e7d32;
font-weight:600;
}

.row-sold{
font-size:14px;
color:#555;
}

.delivery{
font-size:14px;
color:#2e7d32;
}

.user-menu{
position:fixed;
top:0;
right:-300px;   /* completely hidden */
width:256px;
height:100vh;

background:white;
box-shadow:-3px 0 15px rgba(0,0,0,0.15);

padding:20px;

display:flex;
flex-direction:column;
gap:15px;

transition:right 0.3s ease;

z-index:5000;
}

/* when menu opens */

.user-menu.active{
right:0;
}

.user-menu a{
text-decoration:none;
font-weight:600;
color:#333;
padding:8px 0;
border-bottom:1px solid #eee;
}

.user-header{
text-align:center;
margin-bottom:15px;
}

.user-header img{
width:70px;
height:70px;
border-radius:50%;
object-fit:cover;
}

.user-header p{
margin-top:10px;
font-weight:bold;
}

#logout-btn{
background:#ff5252;
border:none;
padding:10px;
border-radius:6px;
color:white;
cursor:pointer;
}

.menu-overlay{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;

background:rgba(0,0,0,0.3);

opacity:0;
pointer-events:none;

transition:opacity 0.3s;

z-index:4000;
}

.menu-overlay.active{
opacity:1;
pointer-events:auto;
}

/* LOGIN DROPDOWN */

.login-wrapper{
position:relative;
}

.login-dropdown{
position:absolute;
top:40px;
right:0;
background:white;
box-shadow:0 4px 15px rgba(0,0,0,0.15);
border-radius:6px;
display:none;
flex-direction:column;
min-width:150px;
z-index:2000;
}

.login-dropdown button{
padding:12px;
border:none;
background:white;
cursor:pointer;
text-align:left;
width:100%;
}

.login-dropdown button:hover{
background:#f5f5f5;
}

/* ===============================
LOGIN POPUP
================================ */

.login-popup{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.55);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

.login-popup.active{
display:flex;
}


/* ===============================
POPUP BOX
================================ */

.login-box{
width:720px;
min-height:420px;

background:white;
border-radius:10px;
overflow:hidden;

display:grid;
grid-template-columns:320px 1fr;

box-shadow:0 15px 50px rgba(0,0,0,0.25);

position:relative;
}


/* ===============================
LEFT PANEL
================================ */

.login-left{
background:#2a6edb;
color:white;
padding:40px;

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

.login-left h2{
font-size:28px;
margin-bottom:12px;
}

.login-left p{
font-size:15px;
opacity:0.9;
}

.login-illustration{
width:180px;
margin-top:25px;
}


/* ===============================
RIGHT PANEL
================================ */

.login-right{
padding:40px;
display:flex;
flex-direction:column;
justify-content:center;
min-height:420px;
}


/* ===============================
TEXT
================================ */

.login-right h3{
margin-bottom:8px;
font-size:20px;
}

.login-info{
font-size:14px;
color:#777;
margin-bottom:18px;
}


/* ===============================
INPUT
================================ */

.login-right input{
width:100%;
padding:12px;
border:1px solid #ddd;
border-radius:6px;
margin-bottom:15px;
font-size:14px;
}


/* ===============================
BUTTON
================================ */

.login-right button{
width:100%;
padding:12px;

background:#fb641b;
border:none;

color:white;
font-weight:bold;

border-radius:6px;
cursor:pointer;
font-size:15px;

transition:0.2s;

margin-bottom:18px;
}

.login-right button:hover{
background:#e55a14;
}


/* ===============================
CLOSE BUTTON
================================ */

.close-login{
position:absolute;
top:14px;
right:14px;

width:34px;
height:34px;

border-radius:50%;
border:none;

background:white;
color:#444;

font-size:22px;
font-weight:bold;

cursor:pointer;

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

box-shadow:0 3px 8px rgba(0,0,0,0.15);
transition:0.2s;
}

.close-login:hover{
background:#f2f2f2;
}


/* ===============================
SWITCH LINK
================================ */

.switch-link{
margin-top:8px;
font-size:14px;
color:#555;
text-align:center;
}

.switch-link span{
color:#2a7de1;
font-weight:600;
cursor:pointer;
}

.switch-link span:hover{
text-decoration:underline;
}


/* ===============================
OTP INPUTS
================================ */

.otp-box{
display:flex;
gap:10px;
margin:15px 0;
justify-content:center;
}

.otp-input{
width:45px;
height:50px;

font-size:20px;
text-align:center;

border:1px solid #ccc;
border-radius:6px;
}

.otp-input:focus{
border:2px solid #2a7de1;
outline:none;
}


/* ===============================
OTP RESEND
================================ */

.otp-resend{
text-align:center;
margin-top:10px;
font-size:14px;
color:#666;
}

#resend-otp{
background:none;
border:none;
color:#2a7de1;
cursor:pointer;
font-weight:bold;
}