body{
font-family:Arial;
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;
}

.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{
display:flex;
gap:30px;
}

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

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

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

.cart-link{
text-decoration:none;
font-weight:600;
color:#333;
}

/* CART PAGE */

.cart-page{
max-width:1000px;
margin:auto;
padding:40px 20px;
}

/* ── CART ITEM CARD ── */
.cart-item{
display:flex;
align-items:center;
gap:20px;
background:white;
padding:18px 20px;
border-radius:14px;
margin-bottom:14px;
border:1px solid #eef0f4;
box-shadow:0 2px 8px rgba(0,0,0,0.05);
transition:box-shadow 0.2s, transform 0.2s;
}

.cart-item:hover{
box-shadow:0 6px 20px rgba(0,0,0,0.09);
transform:translateY(-2px);
}

.cart-item img{
width:90px;
height:90px;
object-fit:contain;
border-radius:10px;
background:#f7f8fc;
padding:6px;
flex-shrink:0;
}

.cart-info{
flex:1;
}

.cart-info h3{
font-size:16px;
font-weight:600;
color:#1a1a1a;
margin:0 0 4px;
}

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

/* ── QTY CONTROLS ── */
.qty-controls{
  display:inline-flex;
  align-items:center;
  border:1.5px solid #e0e3ea;
  border-radius:8px;
  overflow:hidden;
  background:white;
}

.qty-btn{
  width:34px;
  height:36px;
  border:none;
  background:#f4f6f9;
  font-size:18px;
  font-weight:600;
  color:#555;
  cursor:pointer;
  transition:background 0.15s, color 0.15s;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}

.qty-btn:hover{ background:#e0e3ea; color:#111; }
.qty-btn:active{ background:#d0d3da; }

.qty-input{
  width:40px;
  height:36px;
  border:none;
  border-left:1.5px solid #e0e3ea;
  border-right:1.5px solid #e0e3ea;
  background:white;
  text-align:center;
  font-size:15px;
  font-weight:700;
  color:#1a1a1a;
  outline:none;
  -moz-appearance:textfield;
}

/* Hide browser number spinner */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

/* ── REMOVE BUTTON ── */
.remove-btn{
background:none;
color:#c0392b;
border:1.5px solid #f5c6c6;
padding:7px 14px;
border-radius:8px;
cursor:pointer;
font-size:13px;
font-weight:600;
transition:background 0.15s, border-color 0.15s;
flex-shrink:0;
}

.remove-btn:hover{
background:#fff0f0;
border-color:#e57373;
}

/* ── CART SUMMARY ── */
.cart-summary{
margin-top:28px;
background:white;
border-radius:14px;
padding:20px 24px;
border:1px solid #eef0f4;
box-shadow:0 2px 8px rgba(0,0,0,0.05);
display:flex;
align-items:center;
justify-content:space-between;
}

.cart-summary h2{
font-size:20px;
font-weight:700;
color:#1a1a1a;
margin:0;
}

.cart-summary h2 span{
color:#B12704;
}

/* ── CHECKOUT BUTTON ── */
.checkout-btn{
background:linear-gradient(135deg,#ff9800,#ff6f00);
border:none;
padding:13px 32px;
color:white;
font-size:15px;
font-weight:700;
border-radius:10px;
cursor:pointer;
letter-spacing:0.02em;
box-shadow:0 4px 14px rgba(255,111,0,0.35);
transition:transform 0.15s, box-shadow 0.15s;
display:flex;
align-items:center;
gap:8px;
}

.checkout-btn:hover{
transform:translateY(-2px);
box-shadow:0 6px 20px rgba(255,111,0,0.45);
}

.checkout-btn:active{
transform:scale(0.97);
}

.user-menu{
position:fixed;
top:70px;
right:-260px;
width:250px;
background:white;
box-shadow:-2px 0 10px rgba(0,0,0,0.1);
height:100%;
padding:20px;
transition:0.3s;
display:flex;
flex-direction:column;
gap:15px;
z-index:2000;
}

.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;
}

.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;
}