.checkout-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 16px;
  min-height: 70vh;
}

.back-to-ctg {
  display: flex;
  gap: 0.5em;
  align-items: center;
  text-decoration: none;
  color: #0079D1;
  font-size: 0.8em;
  padding: 20px 0;
}

/* FORM CONTAINER */
.checkout-form {
  display: flex;
  justify-content: center;
}

/* CART COLUMN */
.checkout-right {
  width: 100%;
  max-width: 720px; /* DESKTOP WIDTH CONTROL */
}

/* HEADINGS */
.checkout-right h2 {
  margin-bottom: 20px;
}

/* ORDER BOX */
.order-box {
  border: 1px dashed #d1d5db;
  padding: 16px;
  border-radius: 8px;
}

/* ORDER ITEM */
.order-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}


.product-image {
  opacity: 1;
  width: 100px;
  height: 100px;
  object-fit: contain;
  border: 1px solid #d1d5db;
  border-radius: 0.5em;
  padding: 5px;
  flex-shrink: 0;
}

.product-image.placeholder-image {
  opacity: 0.3;
}

.qty-btn .minus {
  height: 2em;
  width: 2em;
}
.qty-btn .plus {
  height: 2em;
  width: 2em;
}

.order-item-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.order-item .title {
  font-size: 0.8em;
  font-weight: 400;
}

.order-item .qty {
  font-size: 12px;
  color: #6b7280;
}

/* PRICE ROWS */
.price-row {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
  font-size: 0.8em;
}

.price-row.total {
  font-weight: 700;
}

.price {
  font-weight: 700;
}

.total-price {
  color: #059622;
}

/* CART ACTIONS */
.cart-actions {
  margin-top: 8px;
  display: flex;
  gap: 12px;
}

.cart-actions a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.7em;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  display: inline-block;
}

.btn-edit {
  background: #0284c7;
}

.btn-delete {
  background: #ff0000;
}

/* PLACE ORDER */
.place-order-btn {
  padding: 12px;
  background: #9acd32;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  width: 30%;
}

/* IMAGE STATES */


.continue-shopping-button {
  display: block;
  padding: 12px 24px;
  text-decoration: none;
  color: grey;
  border-radius: 16px;
  font-weight: 400;
  text-align: center;
  margin-top: 40px;
}
.has-items {
  margin-top: 0;
}

.continue-shopping-button:hover {
  text-decoration: underline;
}

.place-order-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5%;
}

.cart-qty-slot {
  margin-top: 8px;
  display: flex;
  gap: 3em;
}

.cart-control {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 0.6em;
  padding: 4px 6px;
  background: #fff;
  width: fit-content;
}

.qty-btn {
  background: transparent;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.qty-icon {
  width: 14px;
  height: 14px;
}

.qty-input {
  width: 36px;
  text-align: center;
  border: none;
  outline: none;
  font-size: 0.9em;
}

.cart-delete-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  align-self: center;
}

.cart-delete-btn .delete-icon {
  width: 2em;
  height: 2em;
  opacity: 0.6;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cart-delete-btn:hover .delete-icon {
  opacity: 1;
  transform: scale(1.1);
}














/* MOBILE — KEEP SAME FEEL */
@media (max-width: 1025px) {
  .checkout-right {
    max-width: 100%;
  }
  .order-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .order-item .title {
    font-size: 2vw;
  }
  .price {
    font-size: 2.5vw;
  }
  .order-item .qty {
    font-size: 2vw;
  }
  .place-order-btn {
    width: 40%;
    font-size: 1em;
  }
}

/* ≤ 767px — large phones */
@media (max-width: 767px) {
  .order-item .title {
    font-size: 2.5vw;
  }
  .price {
    font-size: 3vw;
  }
  .order-item .qty {
    font-size: 2.5vw;
  }
}

/* ≤ 576px — small phones */
@media (max-width: 576px) {
  .order-item .title {
    font-size: 3vw;
  }
  .price {
    font-size: 3.5vw;
  }
  .order-item .qty {
    font-size: 3vw;
  }
}

@media (max-width: 345px) {
  .cart-qty-slot {
    gap: 1.5em;
  }
}

