/* === Base Reset === */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #fff;
  color: #333;
  padding: 0;
  margin: 0;
}

/* === Header === */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #fff;
  border-bottom: 1px solid #ccc;
  height: 100%;
  width: 100%;
}

header .logo img{
  height: 95px;
  width: 95px;           /* Make width equal to height */
  border-radius: 50%;    /* Circular shape */
  object-fit: cover;     /* Ensures image scales and fills the circle */
  border: 2px solid #f15a24; /* Optional: adds a nice border around logo */
}


.secure {
  font-weight: bold;
  color: rgb(249, 88, 29);
}

/* === Main Layout === */
.checkout-container {
  display: flex;
  justify-content: space-between;
  padding: 40px 60px;
  gap: 40px;
}

/* === Shipping Info === */
.shipping-info {
  flex: 1.2;
}

.shipping-info h2 {
  font-size: 26px;
  color: rgb(249, 88, 29);
  margin-bottom: 10px;
}

.shipping-info p {
  margin-bottom: 20px;
  color: #333;
  font-size: 14px;
}

.shipping-info form label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  color: #222;
}

.shipping-info input,
.shipping-info select {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid orange;
  border-radius: 5px;
  font-size: 14px;
}

.name-fields,
.row-fields {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
}

.name-fields label,
.row-fields label {
  flex: 1;
}

/* === Buttons === */
.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.back-btn,
.place-btn {
  padding: 12px 20px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  text-align: center;
}

.back-btn {
  background-color: #ccc;
  color: #000;
}

.back-btn:hover{
  background-color: #fff;
  color: rgb(249, 88, 29);

}

.place-btn {
  background-color: rgb(249, 88, 29);
  color: #fff;
}

.place-btn:hover{
  background-color: #fff;
  color: rgb(249, 88, 29);
}

/* === Order Summary === */
.order-summary {
  flex: 1;
  padding: 20px;
  border-left: 1px solid #ccc;
}

.order-summary h3 {
  color: rgb(249, 88, 29);
  margin-bottom: 20px;
}

.cart-items {
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.cart-item img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.price-summary {
  border-top: 1px solid #ccc;
  padding-top: 15px;
}

.price-summary p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 16px;
}

.price-summary .total {
  font-weight: bold;
}

/* === Responsive Styles === */
@media (max-width: 768px) {
  .checkout-container {
    flex-direction: column;
    padding: 20px;
    gap: 30px;
  }

  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    gap: 10px;
  }

  .logo img {
    height: 65px;
  }

  .secure {
    font-size: 18px;
    white-space: nowrap;
  }



  .name-fields,
  .row-fields {
    flex-direction: column;
    gap: 10px;
  }

  .buttons {
    flex-direction: column;
    gap: 10px;
  }

  .order-summary {
    border-left: none;
    border-top: 1px solid #ccc;
    padding-top: 20px;
  }

  .price-summary p {
    font-size: 14px;
  }

  .place-btn,
  .back-btn {
    width: 100%;
  }
}
