.cart-container {
  display: flex;
  gap: 20px;

  font-family: Arial, sans-serif;
  background-color: #f1f4f8;
}

.cart-left {
  flex: 3;
  background: white;
  padding: 15px;
  border-radius: 10px;
}

.cart-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  gap: 10px;
  border-top: 1px solid #e0e0e0;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
}

.item-info {
  flex: 2;
}

.item-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: bold;
}

.item-info p {
  margin: 2px 0;
  font-size: 13px;
  color: #555;
}

.discount-label {
  background-color: #e5f3ff;
  color: #007bff;
  font-size: 13px;
  padding: 5px;
  border-radius: 6px;
  margin-top: 5px;
  display: inline-block;
}

.item-price {
  text-align: right;
}

.item-price .new-price {
  color: #007bff;
  font-weight: bold;
}

.item-price .old-price {
  text-decoration: line-through;
  color: #aaa;
  font-size: 12px;
}

.quantity-box {
  display: flex;
  align-items: center;
  gap: 5px;
}

.quantity-box button {
  width: 24px;
  height: 24px;
  font-size: 16px;
}
.cart-summary {
  flex: 1;
  background: white;
  padding: 15px;
  border-radius: 10px;
  height: fit-content;
}

.cart-summary a {
  color: #007bff;
  font-size: 14px;
  text-decoration: none;
}

.summary-info {
  margin-top: 10px;
  font-size: 14px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin: 5px 0;
}

.row.discount {
  color: red;
}

.row.saved {
  font-weight: bold;
}

.total {
  margin-top: 10px;
  font-size: 18px;
}

.total del {
  color: #999;
  margin-right: 10px;
}

.total strong {
  color: #007bff;
  font-size: 20px;
}

.buy-button {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}

.policy {
  font-size: 12px;
  color: #555;
  margin-top: 10px;
}

.policy a {
  color: #007bff;
}
.order-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 12px;
  margin: 10px 0;
  background-color: #fdfdfd;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.order-item:hover {
  transform: scale(1.01);
  background-color: #f5faff;
}

.order-photo img {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
}

.order-name {
  flex: 2;
  margin: 0 15px;
  font-weight: 500;
  font-size: 16px;
}

.order-price {
  flex: 1;
  font-weight: bold;
  color: #007bff;
}

.order-action input[type="button"] {
  background-color: #dc3545;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.order-action input[type="button"]:hover {
  background-color: #c82333;
}
#search-results {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
  justify-content: flex-start;
}

.medicine-box {
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 15px;
  width: 220px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  background-color: #fff;
  transition: transform 0.2s;
}

.medicine-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.medicine-box img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.medicine-box h3 {
  font-size: 18px;
  margin: 10px 0 5px;
}

.medicine-box p {
  margin: 5px 0;
  font-size: 14px;
}

.medicine-box a {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 12px;
  background-color: #1e90ff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.medicine-box a:hover {
  background-color: #0066cc;
}
.product-detail {
  display: flex;
  gap: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 30px;
  max-width: 900px;
  margin: 40px auto;
  font-family: 'Segoe UI', sans-serif;
}

.product-detail .left img {
  width: 220px;
  border-radius: 10px;
  object-fit: cover;
}

.product-detail .right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-detail h2 {
  font-size: 26px;
  margin-bottom: 15px;
  color: #333;
}

.product-detail .price {
  font-size: 22px;
  color: #e53935;
  margin-bottom: 10px;
}

.product-detail p {
  font-size: 16px;
  color: #555;
}



.quantity-input {
  width: 50px;
  padding: 4px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #fff;
  font-weight: bold;
  color: #007bff;
  transition: border-color 0.3s ease;
}

.quantity-input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.4);
}
#shippingForm {
  max-width: 400px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ccc;
}

#shippingForm input,
#shippingForm textarea,
#shippingForm button {
  width: 100%;
  margin: 6px 0;
  padding: 8px;
  box-sizing: border-box;
}
#shippingForm button {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
#search-results {
  display: flex;
  flex-wrap: wrap;       /* Cho phép xuống dòng nếu có nhiều phần tử */
  justify-content: center; /* Căn giữa ngang */
  gap: 20px;               /* Khoảng cách giữa các phần tử */
  margin-top: 20px;
}
