/* =========================================================
PAGE ISOLATION (CRITICAL FIX)
- Prevents global style.css conflicts
========================================================= */
.cart-page{
  background:#0b0b0b;
  color:#ffffff;
}

.cart-page *{
  box-sizing:border-box;
}

/* =========================================================
LAYOUT CONTAINER
- Controlled width and centered layout
========================================================= */
.cart-page .cart-container{
  max-width:1000px;
  margin:60px auto;
  padding:0 24px;
}

/* TITLE */
.cart-page h1{
  font-size:28px;
  margin-bottom:30px;
}

/* =========================================================
GRID STRUCTURE
- Balanced 2-column layout
========================================================= */
.cart-page .cart-grid{
  display:grid;
  grid-template-columns: minmax(0, 650px) 320px;
  justify-content:center;
  align-items:start;
  gap:40px;
}

/* =========================================================
PRODUCT LIST
========================================================= */
.cart-page .cart-items{
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* =========================================================
ITEM CARD
- FIXED ALIGNMENT + STRUCTURE
========================================================= */
.cart-page .item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;

  background:#121212;
  padding:16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
  transition:0.2s ease;
}

.cart-page .item:hover{
  border-color:rgba(255,255,255,0.12);
}

/* IMAGE */
.cart-page .item img{
  width:90px;
  height:70px;
  object-fit:cover;
  border-radius:8px;
}

/* =========================================================
INFO BLOCK
========================================================= */
.cart-page .item-info{
  flex:1;
  max-width:300px;
}

.cart-page .item-info h3{
  margin:0 0 6px;
  font-size:15px;
}

.cart-page .item-info p{
  font-size:13px;
  color:#9ca3af;
  margin-bottom:10px;
}

/* =========================================================
QUANTITY CONTROLS
========================================================= */
.cart-page .qty-controls{
  display:flex;
  align-items:center;
  gap:10px;
}

.cart-page .qty-controls button{
  width:26px;
  height:26px;
  border-radius:6px;
  border:1px solid #2a2a2a;
  background:#1a1a1a;
  color:#ffffff;
  cursor:pointer;
}

.cart-page .qty-controls button:hover{
  background:#222;
}

/* =========================================================
REMOVE ACTION
========================================================= */
.cart-page .remove-btn{
  margin-top:8px;
  background:none;
  border:none;
  color:#6b7280;
  font-size:12px;
  cursor:pointer;
}

.cart-page .remove-btn:hover{
  color:#ef4444;
}

/* =========================================================
PRICE
========================================================= */
.cart-page .item-price{
  font-weight:600;
  font-size:14px;
  min-width:80px;
  text-align:right;
}

/* =========================================================
SUMMARY PANEL
========================================================= */
.cart-page .summary{
  position:sticky;
  top:100px;

  background:#121212;
  padding:20px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.05);
  box-shadow:0 20px 50px rgba(0,0,0,0.5);
}

.cart-page .summary h2{
  margin-bottom:20px;
}

/* ROW */
.cart-page .row{
  display:flex;
  justify-content:space-between;
  margin-bottom:16px;
  font-size:14px;
}

/* =========================================================
CHECKOUT BUTTON
========================================================= */
.cart-page .checkout-btn{
  display:block;
  width:100%;
  text-align:center;
  background:#ffffff;
  color:#000000;
  padding:12px;
  border-radius:8px;
  font-weight:600;
  text-decoration:none;
}

.cart-page .checkout-btn:hover{
  background:#e5e5e5;
}

/* =========================================================
RESPONSIVE
========================================================= */
@media(max-width:900px){

  .cart-page .cart-grid{
    grid-template-columns:1fr;
  }

  .cart-page .summary{
    position:relative;
    top:0;
  }

}