/* ===== GLOBAL ===== */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;

  /* Background image */
  background: 
    linear-gradient(rgba(0,0,0,0.75), rgba(0,0,0,0.75)),
    url("bg-cart.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}


/* ===== PAGE CONTAINER ===== */
.cart-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
}

h1 {
  color: #FFD700;
  margin-bottom: 10px;
}

.back {
  color: #FFD700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 25px;
}

/* ===== CART ITEMS ===== */
#cart-items {
  margin-bottom: 40px;
}

.cart-item {
  background: #000;
  border: 1px solid #FFD700;
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left side (name + price) */
.cart-item h3 {
  margin: 0 0 6px 0;
  color: #FFD700;
  font-size: 18px;
}

.cart-item p {
  margin: 0;
  color: #ddd;
  font-size: 14px;
}

/* Remove button */
.remove-btn {
  background: transparent;
  border: 1px solid red;
  color: red;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: 0.25s;
}

.remove-btn:hover {
  background: red;
  color: #fff;
}

/* ===== CHECKOUT BOX ===== */
.checkout-box {
  max-width: 300px;
  margin: 0 auto 60px;
  padding: 20px;
  border: 1px solid #FFD700;
  border-radius: 18px;
  background: #000;
}

.checkout-box h3 {
  color: #FFD700;
  margin-bottom: 20px;
  font-size: 20px;
}

/* Inputs */
.checkout-box input,
.checkout-box textarea {
  width: 80%;
  padding: 10px;
  margin-bottom: 16px;
  background: #000;
  border: 1px solid #FFD700;
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
}

.checkout-box input::placeholder,
.checkout-box textarea::placeholder {
  color: #777;
}

.checkout-box input:focus,
.checkout-box textarea:focus {
  outline: none;
  border-color: #ffec8b;
  box-shadow: 0 0 8px rgba(255,215,0,0.4);
}

.checkout-box textarea {
  resize: none;
  height: 100px;
}

/* Total + button */
.total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
}

.total-box h2 {
  color: #FFD700;
  font-size: 20px;
}

/* Pay button */
.pay-btn {
  background: #FFD700;
  color: #000;
  border: none;
  padding: 14px 38px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 0 16px rgba(255,215,0,0.7);
  transition: 0.25s;
}

.pay-btn:hover {
  background: #ffec8b;
  box-shadow: 0 0 24px rgba(255,215,0,0.9);
  transform: translateY(-2px);
}

/* ===== EMPTY CART TEXT ===== */
#cart-items p {
  text-align: center;
  color: #aaa;
  font-size: 16px;
}
/* ===== CART MOBILE RESPONSIVE ===== */
@media screen and (max-width: 600px){

  .cart-container{
    margin: 15px;
    padding: 10px;
  }

  h1{
    font-size: 22px;
    text-align: center;
  }

  .back{
    display: block;
    text-align: center;
    margin-bottom: 15px;
  }

  /* Cart items */
  .cart-item{
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px;
  }

  .cart-item h3{
    font-size: 16px;
  }

  .cart-item p{
    font-size: 13px;
  }

  .remove-btn{
    align-self: flex-end;
    padding: 6px 14px;
    font-size: 12px;
  }

  /* Checkout box */
  .checkout-box{
    width: 100%;
    max-width: 100%;
    margin: 20px auto;
    padding: 15px;
  }

  .checkout-box h3{
    font-size: 18px;
    text-align: center;
  }

  .checkout-box input,
  .checkout-box textarea{
    width: 100%;
    font-size: 13px;
  }

  .total-box{
    flex-direction: column;
    gap: 12px;
  }

  .total-box h2{
    font-size: 18px;
  }

  .pay-btn{
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border-radius: 30px;
  }
}
.qty-box{
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-box button{
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: #FFD700;
  color: #000;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

.qty-box span{
  min-width: 20px;
  text-align: center;
  font-size: 16px;
  color: #FFD700;
}
/* ===== ANDROID MOBILE ADJUST ===== */
@media screen and (max-width: 600px){

  .products{
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
  }

  .product-card{
    padding: 12px !important;
  }

  .product-card img{
    height: 140px !important;
  }

  .product-card h3{ font-size:14px; }
  .product-card p{ font-size:12px; }

  .product-box{
    display:grid !important;
    grid-template-columns:repeat(2,1fr) !important;
    gap:12px !important;
    margin:12px !important;
    padding:12px !important;
  }

  .mini-card img{ height:110px; }
}


/* ===== iPHONE ONLY CARD FIX ===== */
@media only screen 
and (max-width: 430px)
and (-webkit-device-pixel-ratio: 2),
only screen 
and (max-width: 430px)
and (-webkit-device-pixel-ratio: 3){

  .products{
    gap: 8px !important;
    padding: 8px !important;
  }

  .product-card{
    padding: 8px !important;
  }

  .product-card img{
    height: 115px !important;
  }

  .product-card h3{ font-size:12px; }
  .product-card p{ font-size:11px; }

  .product-box{
    gap:8px !important;
    margin:8px !important;
    padding:8px !important;
  }

  .mini-card img{ height:90px; }
}
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family: Arial, sans-serif;
}

body{
  background:#000;
  color:#FFD700;
}

/* CART CONTAINER */
.cart-container{
  max-width:900px;
  margin:auto;
  padding:15px;
}

h1{
  text-align:center;
  margin-bottom:10px;
}

.back{
  display:block;
  text-align:center;
  margin-bottom:15px;
  color:#FFD700;
  text-decoration:none;
}

/* CART ITEMS */
#cart-items{
  margin-bottom:20px;
}

.cart-item{
  background:#111;
  border:1px solid #FFD700;
  border-radius:10px;
  padding:10px;
  margin-bottom:10px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:14px;
}

/* CHECKOUT BOX */
.checkout-box{
  background:#111;
  border:2px solid #FFD700;
  border-radius:15px;
  padding:15px;
}

.checkout-box h3{
  text-align:center;
  margin-bottom:10px;
}

.checkout-box input,
.checkout-box textarea{
  width:100%;
  padding:8px;
  margin-bottom:10px;
  border:none;
  border-radius:6px;
  outline:none;
}

.total-box{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:10px;
}

.pay-btn{
  background:#FFD700;
  color:#000;
  border:none;
  padding:8px 15px;
  border-radius:20px;
  font-weight:bold;
  cursor:pointer;
}

.pay-btn:hover{
  background:white;
}

/* ===== MOBILE RESPONSIVE ===== */
@media(max-width:600px){

  .cart-container{
    padding:10px;
  }

  h1{
    font-size:20px;
  }

  .cart-item{
    flex-direction: column;
    align-items:flex-start;
    gap:5px;
    font-size:13px;
  }

  .checkout-box{
    padding:12px;
  }

  .checkout-box input,
  .checkout-box textarea{
    font-size:13px;
  }

  .total-box{
    flex-direction:column;
    gap:10px;
  }

  .pay-btn{
    width:100%;
    font-size:14px;
  }
}
