* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --red: hsl(14, 86%, 42%);
  --green: hsl(159, 69%, 38%);
  --rose-50: hsl(20, 50%, 98%);
  --rose-100: hsl(13, 31%, 94%);
  --rose-300: hsl(14, 25%, 72%);
  --rose-400: hsl(7, 20%, 60%);
  --rose-500: hsl(12, 20%, 44%);
  --rose-900: hsl(12, 20%, 44%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Red Hat Text", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  background: var(--rose-50);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: #333;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.section-padding {
  padding: 100px 20px 100px 100px;
}

/* Product Listing */
#product-listing .container {
  display: flex;
  gap: 40px;
}

#product-listing .container .product {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-start;
  width: 60%;
}

#product-listing .container .product #product-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

#product-listing .container .product #product-list .product-card {
  border-radius: 2px;
  outline: none;
  border: none;
  cursor: pointer;
  position: relative;
}

#product-listing .container .product #product-list .product-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  transition: 0.3s step-end;
}

#product-listing .container .product #product-list .product-card img:hover {
  border: 2px solid var(--red);
}

#product-listing .container .product #product-list h6 {
  color: var(--rose-300);
  font-weight: 400;
  margin-top: 15px;
  padding-bottom: 2px;
}

#product-listing .container .product #product-list h5 {
  color: #333;
}

#product-listing .container .product #product-list span {
  color: var(--red);
  font-weight: 600;
  font-size: 14px;
}

#product-listing .container .product #product-list .product-card button {
  border-radius: 50px / 100%;
  padding: 10px 15px;
  background-color: #fff;
  border: 1px solid var(--rose-300);
  cursor: pointer;
  position: absolute;
  top: 88%;
  left: 20%;
  transition: 0.3s ease-in-out;
}

#product-listing .container .product #product-list .product-card button:hover {
  border: 2px solid var(--red);
}

#product-listing .container .product #product-list .product-card i {
  color: var(--red);
  margin-right: 5px;
}

#product-listing .container .product-cart .card {
  border-radius: 10px;
  background-color: #fff;
  border: 1px solid var(--rose-50);
  padding: 10px 20px 20px 20px;
  width: 350px;
  height: fit-content;
}

#product-listing .container .product-cart .card .cart-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
  gap: 10px;
}

#product-listing .container .product-cart .card .product-cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

#product-listing .container .product-cart .card .cart-line {
  width: 100%;
  background-color: var(--rose-100);
  height: 1px;
}

#product-listing .container .product-cart .card .cart-order-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#product-listing .container .product-cart .card .cart-order-total h4 {
  font-weight: 600;
}

#product-listing .container .product-cart .card .carbon-neutral {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
  border: 1px solid var(--rose-100);
  border-radius: 5px;
  padding: 15px 10px;
  background-color: var(--rose-100);
}

#product-listing .container .product-cart .card .carbon-neutral h5 {
  color: #333;
  font-weight: 600;
}

#product-listing .container .product-cart .card .carbon-neutral h5 span {
  font-weight: 700;
}

#product-listing .container .product-cart .card .order-btn {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

#product-listing .container .product-cart .card .order-btn button {
  width: 70%;
  padding: 15px;
  border-radius: 50%/100px;
  outline: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background-color: var(--red);
  color: #fff;
  transition: 0.3s ease-in-out;
}

#product-listing .container .product-cart .card .order-btn button:hover {
  width: 75%;
}

#product-listing .container .product-cart .card h3 {
  color: var(--red);
}

#product-listing .container .product-cart .card h5 {
  color: var(--rose-400);
}

#product-listing .container .product-cart .card .product-cart-item h5 {
  color: #333;
  font-weight: 600;
}

#product-listing .container .product-cart .card .product-cart-item img {
  cursor: pointer;
}

#product-listing
  .container
  .product
  #product-list
  .product-card
  button.add-cart
  span {
  display: none;
}

/* Full-screen dark overlay */
.order-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

/* The modal itself */
.order-modal {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.order-modal::-webkit-scrollbar {
  display: none;
  scroll-behavior: smooth;
}

.order-modal .product-modal-card {
  background-color: var(--rose-50);
  padding: 20px 25px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  height: fit-content;
}

.order-modal .product-modal-card .product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-modal .product-modal-card .product-item div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
}

.order-modal .product-modal-card .product-item div div {
  display: flex;
  flex-direction: column;
}

.order-modal .product-modal-card .product-item div div h5:nth-child(2) {
  margin-right: 40px;
}

.order-modal div {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.order-modal div button {
  width: 50%;
  padding: 15px;
  border-radius: 50%/100px;
  outline: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  background-color: var(--red);
  color: #fff;
  transition: 0.3s ease-in-out;
}

.order-modal .cart-line {
  width: 100%;
  background-color: var(--rose-100);
  height: 1px;
}

.order-modal .product-modal-card .order-total-modal {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

/* Media Queries */

@media (max-width: 960px) {
  #product-listing .container .product #product-list {
    grid-template-columns: repeat(3, 1fr);
  }

  #product-listing .container {
    flex-direction: column;
  }

  #product-listing .container .product {
    width: 100%;
  }
}

@media (max-width: 480px) {
  #product-listing .container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .section-padding {
    padding: 100px 40px 100px 40px;
  }

  #product-listing .container .product #product-list {
    display: grid;
    grid-template-columns: auto;
    gap: 20px;
  }

  #product-listing .container .product #product-list .product-card button {
    top: 90%;
    left: 30%;
  }
}

/* Utilities */
.text-xxl {
  font-size: 2rem;
  font-weight: 700;
}
