/* ========== cart.css ========== */
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #faf6ef;
  color: #333;
}

.cart-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cart-header h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.cart-header p {
  color: gray;
  margin-bottom: 20px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: white;
  border-radius: 6px;
  overflow: hidden;
}

.cart-table th,
.cart-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.cart-table th {
  background-color: #f3f3f3;
  font-weight: bold;
  font-size: 16px;
}

.cart-table .product-info {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 15px;
}

.cart-table img {
  width: 70px;
  height: auto;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.remove-btn {
  font-size: 20px;
  color: red;
  cursor: pointer;
}

.qty-btn {
  padding: 4px 10px;
  font-size: 14px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  margin: 0 5px;
}

.cart-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 30px;
  gap: 20px;
}

.cart-note,
.cart-total {
  flex: 1 1 45%;
  background: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.cart-note textarea {
  width: 95%;
  height: 120px;
  font-size: 14px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  resize: vertical;
}

.total-price {
  font-size: 22px;
  color: red;
  font-weight: bold;
  margin: 10px 0;
}

.checkout-btn {
  background-color: #333;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.back-link {
  display: inline-block;
  margin-top: 15px;
  color: orange;
  text-decoration: none;
  font-size: 14px;
}

/* Responsive */
@media (min-width: 1024px) {
  .cart-summary {
    flex-direction: row;
  }

  .cart-note,
  .cart-total {
    flex: 1 1 45%;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html {
    font-size: 15px;
  }

  .cart-summary {
    flex-direction: column;
  }

  .cart-note,
  .cart-total {
    flex: 1 1 100%;
  }

  .cart-header h2 {
    font-size: 24px;
  }

  .cart-table th,
  .cart-table td {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  html {
    font-size: 14px;
  }

  .cart-container {
    padding: 20px 10px;
  }

  .cart-header h2 {
    font-size: 20px;
    text-align: center;
  }

  .cart-table .product-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .cart-table th,
  .cart-table td {
    padding: 10px;
    font-size: 13px;
  }

  .cart-summary {
    flex-direction: column;
    gap: 15px;
  }

  .cart-note,
  .cart-total {
    flex: 1 1 100%;
  }

  .checkout-btn {
    width: 100%;
    padding: 14px;
  }

  .total-price {
    font-size: 18px;
  }
}

/* Footer */
#footer {
  background-color: white;
  font-family: "Segoe UI", sans-serif;
  color: #333;
  font-size: 14px;
  width: 100%;
  padding: 0;
  margin-top: 60px;
  box-sizing: border-box;
}

.footer-top {
  background-color: #f7941e;
  color: white;
  padding: 20px;
  text-align: center;
}

.footer-top h3 {
  margin: 0;
  font-size: 20px;
}

.footer-top p {
  margin: 5px 0 15px;
}

.subscribe {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe input {
  width: 300px;
  padding: 8px;
  border: none;
  border-radius: 4px;
}

.subscribe button {
  background-color: white;
  color: #f7941e;
  font-weight: bold;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
  box-sizing: border-box;
}

.footer-middle {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  padding: 30px 0;
}

.footer-col {
  flex: 1;
  min-width: 160px;
  line-height: 1.8;
}

.footer-col h4 {
  font-size: 15px;
  margin-bottom: 10px;
  color: black;
}

.footer-col p {
  margin: 5px 0;
  color: #666;
  cursor: pointer;
}

.footer-col img {
  height: 30px;
  margin: 5px 5px 0 0;
  vertical-align: middle;
}

.footer-bottom {
  padding-top: 20px;
  line-height: 1.8;
}

.footer-bottom h4 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  color: #666;
}

/* Responsive cho footer */
@media (max-width: 768px) {
  .footer-middle {
    flex-direction: column;
  }

  .footer-col {
    width: 100%;
  }

  .subscribe {
    flex-direction: column;
    align-items: center;
  }

  .subscribe input,
  .subscribe button {
    width: 90%;
  }
}
