body {
  margin: 0;
  padding: 0;
  background-color: #d2ebed;
}

h1 {
  font-family: "Lexend", sans-serif;
  font-size: 34px;
  color: #333;
  text-align: center;
  position: relative;
  top: 14.5em;
  right: 12.3em;
}

#homebg {
  background-image: url("young-woman-pharmacist-pharmacy\ 1.png");
  width: 100%;
  height: 100%;
  background-position: top;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
}
#welcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#welcome h1 {
  font-family: "Days One", serif;
  font-size: 40px;
  color: #fff;
}
.check-discount-offer {
  color: #ffffff;
  position: relative;
  font-family: "Ramabhadra-Regular", sans-serif;
  font-size: 24px;
  font-weight: 400;
  top: 9px;
  background: #408c67;
  border-radius: 16px;
  width: 319px;
  height: 64px;
  overflow: hidden;
  text-align: center;
  cursor: pointer;
  border: #fff;
}
.check-discount-offer:hover {
  background-color: rgba(64, 140, 103, 0.8);
}
#navigation {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin-top: -400px;
}
#navbutton {
  appearance: none;
  background-color: transparent;
  border: 0.125em solid #838383;
  border-radius: 0.9375em;
  box-sizing: border-box;
  color: #838383;
  cursor: pointer;
  display: inline-block;
  font-family: Roobert, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-size: 20px;
  line-height: normal;
  margin-top: 25px;
  padding: 5px 40px;
  outline: none;
  text-align: center;
  text-decoration: none;
  transition: all 300ms cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  will-change: transform;
}

#navbutton:disabled {
  pointer-events: none;
}

#navbutton:hover {
  color: #fff;
  background-color: #4a7c8a;
  box-shadow: rgba(0, 0, 0, 0.25) 0 8px 15px;
}

#navbutton:active {
  box-shadow: none;
}
.navbox button {
  position: relative;
  left: 50%;
  transform: translate(-50%);
}

#list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: -50px auto;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
}

.medicine-list {
  background-color: #f5f5f5;
  width: 323px;
  height: 352px;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.medicine-list:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}
#popular {
  color: #838383;
  text-align: left;
  font-family: "DaysOne-Regular", sans-serif;
  font-size: 32px;
  position: relative;
  left: 20%;
  font-weight: bolder;
  overflow: hidden;
}
#pos {
  margin-top: -300px;
  overflow: hidden;
}
.frame-13,
.frame-13 * {
  box-sizing: border-box;
}
.frame-13 {
  width: 241px;
  height: 142px;
  position: relative;
  overflow: hidden;
  object-fit: cover;
  left: 50%;
  transform: translate(-50%);
  top: 50px;
}
.medtitle {
  color: #408c67;
  text-align: left;
  font-family: "Ramabhadra-Regular", sans-serif;
  font-size: 20px;
  font-weight: 400;
  position: relative;
  width: 291px;
  top: 50px;
  left: 40px;
  font-weight: 700;
}
.medprice {
  color: #838383;
  text-align: left;
  font-family: "Ramabhadra-Regular", sans-serif;
  font-size: 20px;
  font-weight: 400;
  position: relative;
  width: 104px;
  top: 50px;
  left: 40px;
}
.meddesc {
  color: #838383;
  text-align: left;
  font-family: "Ramabhadra-Regular", sans-serif;
  font-size: 14px;
  letter-spacing: -0.01em;
  font-weight: 400;
  position: relative;
  width: 169.75px;
  height: 92.72px;
  transform-origin: 0 0;
  transform: rotate(0.157deg) scale(1, 1);
  top: 50px;
  left: 40px;
}
.add-button {
  cursor: pointer;
  outline: none;
  background: none;
  border: none;
  transition: transform 300ms;
  position: relative;
  float: right;
}

.add-button:hover {
  transform: rotate(90deg);
}

.button-icon {
  stroke: #a1a1aa; /* zinc-400 */
  fill: none;
  transition: fill 300ms;
}

.add-button:hover .button-icon {
  fill: #27272a; /* zinc-800 */
}

.add-button:active .button-icon {
  stroke: #e4e4e7; /* zinc-200 */
  fill: #52525b; /* zinc-600 */
  transition: none;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 50%;
  top: 50%;
  transform: translate(-9.5%, -20%);
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.modal-content {
  background-color: rgba(183, 224, 229, 0.91);
  padding: 30px;
  border-radius: 10px;
  width: 300px;
  max-width: 500px;
  position: relative;
  animation: modalSlideIn 0.3s ease-out;
  margin: 0;
  max-height: 450px;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.close {
  position: absolute;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #000;
}

.modal h2 {
  margin-bottom: 20px;
  color: #333;
  font-family: "Lexend", sans-serif;
  text-align: center;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  background-color: #fff;
  padding: 20px 50px;
}

.modal-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
}
.product-details h3 {
  margin: 0;
  font-family: "Lexend", sans-serif;
  color: #408c67;
}

.product-details p {
  margin: 5px 0;
  font-family: "Lexend", sans-serif;
  color: #666;
  font-size: 1.2em;
  font-weight: 600;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #fff;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-btn {
  width: 30px;
  height: 30px;
  border: none;
  background-color: #838383;
  border-radius: 20px;
  cursor: pointer;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.quantity-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}

#quantity {
  width: 30px;
  height: 30px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.cart-list {
  background-color: #f5f5f5;
  width: 315px;
  height: 250px;
  margin: 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.cart-list:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}
#cart-desc {
  display: flex;
  flex-direction: column;
}
#cart-title {
  padding: 20px;
}
#cart1 {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 50px;
}
