.med-page {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 30px auto;
  width: 90%;
}

.first-half {
  flex: 2;
  display: flex;
  gap: 20px;
}

.gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gallery img.thumb {
  width: 60px;
  height: 60px;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid #eee;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.gallery img.thumb:hover {
  transform: scale(1.1);
  border-color: teal;
}

.profile img {
  width: 300px;
  max-width: 100%;
  object-fit: contain;
}

.med_info {
  flex: 1;
}

.med_info h1 {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.med_info .brand {
  color: gray;
  font-size: 1rem;
  margin-bottom: 15px;
}

.variations {
  margin-top: 15px;
}

.variations h4 {
  font-size: 1.1rem;
  margin-bottom: 5px;
}

.variations ul {
  list-style: disc;
  margin-left: 20px;
  color: #444;
}

.product-right {
  flex: 1;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.cart-btn {
  background: teal;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  width:100%;
  text-align:center;
}

.cart-btn:hover {
  background: #006666;
}

/* 📱 Media Queries */
@media (max-width: 992px) {
  .med-page {
    flex-direction: column;
  }
  .first-half {
    flex-direction: column;
    align-items: center;
  }
  .gallery {
    flex-direction: row;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .profile img {
    width: 220px;
  }
  .med_info h1 {
    font-size: 1.3rem;
  }
  .cart-btn {
    width: 100%;
  }
}
/* Variation Dropdown */
.med_info label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

#variationSelect {
  padding: 6px 10px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #variationSelect {
    width: 100%;
  }
  .quant-div {
    flex-direction: column;
    align-items: flex-start;
  }
}
