/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: rgb(32, 32, 32);
  font-family: "Roboto", sans-serif;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f5f5f5;
  line-height: 1.5;
}

header {
  background: #fff;
  padding: 1rem;
  border-bottom: 1px solid #ddd;
}

header h1 {
  font-size: 1rem;
  margin: 0.5rem 0;
}

header nav {
  display: flex;
  gap: 2rem;
  font-size: 0.85rem;
}
header nav .call-outline {
  font-weight: 600;
  font-size: 10px;
}
header nav .call-outline p {
  color: rgb(144, 144, 144);
}

header nav .call-outline .contact-us {
  color: rgb(3, 31, 147);
}

header nav .contact-us:hover {
  text-decoration: underline;
}

header nav .call-outline {
  display: flex;
  align-items: center;
}

header nav .call-outline ion-icon {
  font-size: 18px;
  color: rgb(144, 144, 144);
}

main {
  padding: 1rem;
}

/* Everything stacked on mobile */

.checkout-details,
.order-summary {
  width: 100%;
}

/*  */
.card {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 6px;
}

.product {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.product img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* order summary */
.order-summary {
  background: #fff;
  padding: 1rem;
  margin-top: 1rem;
  border-radius: 6px;
}

.order-summary button {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
}

nav a {
  text-decoration: none;
  color: rgb(32, 32, 32); /* change from blue */
}

.logo {
  cursor: pointer;
}

/* Addess */
.card-address {
  background-color: #fff;
  border-radius: 6px;
  padding: 0.8rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-delivery ion-icon,
.card-address ion-icon,
.card-payment ion-icon {
  color: #6dbd28;
}

.cart-address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.cart-address-title a {
  text-decoration: none;
  color: rgb(32, 32, 32); /* change from blue */
}

ion-icon {
  padding-right: 10px;
}

hr {
  border: none;
  height: 0.76px;
  background-color: #ddd;
  margin: 5px 0;
}

.card-address .title {
  color: rgb(27, 27, 27);
  font-size: 12px;
}
.card-address p {
  font-size: 10px;
  font-weight: 400;
  color: rgb(127, 127, 127);
  font-size: 12px;
}

/* Delivery Details */

.card-delivery {
  background-color: #fff;
  margin-top: 1rem;
  border-radius: 6px;
  align-items: center;
  font-size: 12px;
  padding: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-delivery-title {
  display: flex;
  justify-content: space-between;
}
.card-delivery a {
  text-decoration: none;
}

.hr-card-delivery {
  border: none;
  height: 0.76px;
  background-color: #ddd;
  margin: 5px 0;
}

.change-arrow {
  background: none;
  display: flex;
}

.change-arrow:hover {
  text-decoration: underline;
}
.change-arrow ion-icon {
  padding-top: 3px;
  padding-left: 3px;
  color: rgb(3, 31, 147);
}

.change-arrow .change {
  color: rgb(3, 31, 147);
}
.change-arrow .change:hover {
  text-decoration: underline;
}
.change-arrow a {
  color: rgb(3, 31, 147);
  font-weight: 600;
}
/* save upto ₦840  */
.switch-location-save {
  background: rgb(200, 245, 134);
  width: 17%;
  padding-left: 12px;
  border-radius: 5px;
  font-size: 10px;
}
.switch-location,
.product-container {
  background: none;
  padding-top: 5px;
  padding-bottom: 5px;
  padding-left: 10px;
  margin-top: 1rem;
  border: 0.6px solid #a7a7a7;
  border-radius: 6px;
}
.product {
  background: none;
  margin-bottom: 5px;
}
/* Shipment */
.shipment {
  display: flex;
  justify-content: space-between;
  padding-top: 5px;
  padding-bottom: 5px;
  color: rgb(127, 127, 127);
  font-size: 10px;
  margin-bottom: 25px;
}

.door-delivery-container {
  margin-top: -10px;
}

.card-delivery a {
  color: #33b27b;
  font-weight: 600;
  justify-content: center;
  display: flex;
}

/* Payment */
.card-payment {
  background: none;
  margin-top: 1rem;
  border-radius: 6px;
  font-size: 12px;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-payment-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  padding: 12px;
  padding-bottom: 0;
}

.card-change {
  background: none;
  display: flex;
  /* align-items: center; */
  font-weight: 600;
}

.card-change a {
  text-decoration: none;
  color: rgb(3, 31, 147);
}

.card-change a:hover {
  text-decoration: underline;
}

.card-change ion-icon {
  padding-top: 3px;
  padding-left: 3px;
  color: rgb(3, 31, 147);
}

.card-payment p {
  padding-left: 12px;
  padding-bottom: 12px;
  padding-top: 8px;
}
.go-cashless {
  border: none;
  height: 0.76px;
  background-color: #ddd;
  margin: 5px 0;
}

/* Order Summary */

.order-summary {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 350px;
  font-family: Arial, sans-serif;
}

.order-summary h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.order-summary hr {
  border: none;
  height: 1px;
  background: #eee;
  margin: 15px 0;
}

.order-summary p {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin: 8px 0;
}

.order-summary strong {
  font-size: 16px;
}

.order-summary input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
  font-size: 13px;
}

.order-summary input:focus {
  border-color: #007bff;
}

.order-summary button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.3s ease;
}

.order-summary button:first-of-type {
  background: #f1f1f1;
}

.order-summary button:first-of-type:hover {
  background: #ddd;
}

.order-summary .confirm {
  background: #33b27b;
  color: #fff;
  font-weight: bold;
}

.order-summary .confirm:hover {
  background: #ff523b;
}

.right-side .items-total {
  display: flex;
  justify-content: space-between;
}

/* footer */
footer {
  margin-top: 20px;
  padding: 15px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
  /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08); */
}

footer a {
  display: inline-block;
  text-decoration: none;
  color: #007bff;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s ease, color 0.3s ease;
}

footer a:hover {
  transform: scale(1.05);
  color: #0056b3;
}

.right-side a {
  color: #007bff;
  text-decoration: none;
}
.right-side .terms {
  /* text-align: center; */
  font-size: 10px;
  margin-top: 15px;
  padding-left: 20px;
}
.order-summary .terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  color: #555;
  margin-top: 10px;
}

.order-summary .terms a {
  color: #007bff;
  text-decoration: none;
  transition: 0.3s;
}

.order-summary .terms a:hover {
  text-decoration: underline;
  color: #0056b3;
}

.right-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  margin-left: -15px;
}
.modify {
  padding-top: 1rem;
}

.modify-cart {
  background: #33b27b;
  border: none;
  color: white;
  font-weight: 600;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.5s;
  margin-bottom: 10px;
}

.modify-cart:hover {
  background-color: #ff523b;
}

/* Desktop upgrade (THIS is the only media query) */
@media (min-width: 768px) {
  main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1100px;
    margin: auto;
    align-items: start; /* ADD THIS */
  }

  .order-summary {
    margin-top: 0;
    height: fit-content;
  }

  header {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    margin: 0;
    padding: 7px;
  }
  .right-side .terms {
    text-align: center;
    font-size: 10px;
    margin-top: 15px;
  }

  .right-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
