
body {
  margin: 0;
  padding: 0;
}
.navbar {
  background-color: #8d8d8d; /* White background */
  opacity: 0.6;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Add a subtle shadow */
  height: 150px;
  width: 100%;
  overflow: hidden;
}
.navbar img {
  width: 100%;
  height: 100%;
}
.navbar-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px; /* Set a maximum width for the navbar */
  margin: auto; /* Center the navbar */
  position: relative;
  top: 50%;
  transform: translate(0%,-60%);
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333; /* Dark gray or black color for brand */
  font-weight: 500; /* Semi-bold font-weight */
  margin-left: -300px;
}

.navbar-brand img {
  margin-right: 10px;
}

.navbar-brand span {
  color: #ffffff;
  text-align: left;
  font-family: "DaysOne-Regular", sans-serif;
  font-size: 40px;
  font-weight: 700;
  position: relative;
}

.navbar-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

.nav-item {
  margin-left: 20px;
  
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  text-align: left;
  font-family: "Ramabhadra-Regular", sans-serif;
  font-size: 24px;
  font-weight: 400;
  position: relative;
  top: 50%;
  width: 83px;
  padding: 0.5rem 1rem; /* Add some padding around the link text */
  border-radius: 5px; /* Add rounded corners to the nav links */
  transition: background-color 0.3s, color 0.3s; /* Smooth transitions */
}

.nav-link:hover, .nav-link.active {
  background-color: #007bff; /* Blue background on hover and active */
  color: #fff; /* White text color on hover and active */
}

#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: rgb(64, 140, 103);
  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);
}
.navbox {
  background-color: #c4f7fc;
  width: 322px;
  height: 276px;
  margin: 10px 50px;
  color: #838383;
  font-family: "Ramabhadra-Regular", sans-serif;
  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;
}
.navbox h2,
.navbox p {
  text-align: justify;
  width: 250px;
  position: relative;
  left: 50%;
  transform: translate(-50%);
}
.navbox h2 {
  margin-top: 40px;
}
#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: 0;
  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: #838383;
  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: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15), 0 3px 6px rgba(0, 0, 0, 0.1);
}
#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;
}

@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;
}

.add-to-cart-btn {
  background-color: #4CAF50;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-family: 'Lexend', sans-serif;
  transition: background-color 0.3s;
}

.add-to-cart-btn:hover {
  background-color: #45a049;
}

.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;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 5px;
  width: 300px;
}

.close {
  float: right;
  cursor: pointer;
  font-size: 20px;
}

.check-discount-offer {
  padding: 10px 15px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.check-discount-offer:hover {
  background-color: #45a049;
}