body {
  margin: 0;
  background-color: #4d3c2a;
  color: #2b160a;
  font-family: "Ubuntu";
}

/* 
   header*/

.shopping-header {
  min-height: 150px;
  background-color: #f8dfb6;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 25px 70px;

  border-bottom: 5px solid #c79452;
}

.shopping-logo {
  width: 90px;
  height: 90px;
}

.shopping-header h1 {
  margin: 0;

  font-family: "Playfair Display", serif;
  font-size: 38px;

  color: #5c0000;
  text-align: center;
}

.shopping-header p {
  margin: 5px 0 0;

  font-family: "Playfair Display", serif;
  font-style: italic;

  text-align: center;
  color: #6d4a2c;
}

.back-button {
  padding: 10px 20px;

  background-color: #8b0000;
  color: white;

  border-radius: 6px;

  text-decoration: none;

  transition: all 0.3s ease;
}

.back-button:hover {
  background-color: #b90000;
  transform: translateX(-4px);
}

/* audio am nhac */
.audio-player {
  position: fixed;
  bottom: 20px;
  right: 20px;
  margin-top: 20px;
  text-align: center;
  z-index: 999;
  background-color: rgba(122, 28, 28, 0.85);
  border: 1px solid #fdfdfd;
  padding: 10px 14px;
  border-radius: 12px;
  box-shadow: 0 0px 110px rgba(0, 0, 0, 0.2);
  transform: scale(0.3);
  /* nằm dưới góc bên phải , lưu ý */
  transform-origin: bottom right;
  opacity: 0.4;
  transition: all 0.5s ease;
}

.audio-player:hover {
  transform: scale(1) translateY(-3px);
  opacity: 1;
}

.audio-player p {
  font-family: "Great Vibes", bold;
  font-size: 19px;
  color: white;
  margin-bottom: 8px;
}

.audio-player audio {
  height: 33px;

  outline: none;
}

/* khung chính*/

.shopping-container {
  width: 1100px;
  max-width: 90%;

  margin: 50px auto;
}

@media (max-width: 768px) {

    .shopping-container {
        width: 95%;
        max-width: none;
    }

}

/* khung order */

.order-box {
  background-color: #fdf5e6;

  padding: 30px;

  margin-bottom: 25px;

  border-radius: 15px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.order-box h2 {
  margin-top: 0;
  margin-bottom: 25px;

  font-family: "Playfair Display", serif;
  font-size: 25px;

  color: #5c0000;

  border-bottom: 1px solid #d1b18a;

  padding-bottom: 12px;
}

/*  Form-group*/

.form-row {
  display: flex;
  gap: 20px;
}
@media (max-width: 768px) {

    .form-row {
        flex-direction: column;
    }

}

.form-group {
  flex: 1;
  font-style: bold;
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-family: "Playfair Display";

  margin-bottom: 7px;

  font-weight: bold;
}

.form-group input {
  width: 100%;

  padding: 12px;

  border: 1px solid #c08640;
  border-radius: 7px;

  background-color: #fffaf1;

  outline: none;

  font-family: "Inter", sans-serif;
  font-style: italic;

  transition: all 0.3s ease;
}

.form-group input:hover {
  border-color: #8b0000;
  transform: translateY(-2px);
  box-shadow: 0 0 7px rgba(202, 147, 65, 0.877);
}
.form-group input:focus {
  border-color: #8b0000;
  outline: none;
  background-color: #2b0000;
  box-shadow: 0 0 10px rgba(221, 136, 25, 0.877);
  color: white;
}

.form-group textarea {
  background-color: #fffaf1;
  width: 100%;

  padding: 12px;

  border: 1px solid #c08640;
  border-radius: 7px;

  background-color: #fffaf1;

  outline: none;

  font-family: "Inter", sans-serif;
  font-style: italic;

  transition: all 0.3s ease;
}

.form-group textarea:hover {
  border-color: #8b0000;
  transform: translateY(-2px);
  box-shadow: 0 0 7px rgba(202, 147, 65, 0.877);
}

.form-group textarea:focus {
  border-color: #8b0000;
  outline: none;
  background-color: #2b0000;
  box-shadow: 0 0 10px rgba(221, 136, 25, 0.877);
  color: white;
}


/* sản phẩm*/

.product-item {
  min-height: 100px;

  display: flex;
  align-items: center;

  gap: 20px;

  padding: 15px 0;

  border-bottom: 1px solid #dcc7a9;
}

.product-item:last-child {
  border-bottom: none;
}

.product-item img {
  width: 80px;
  height: 80px;

  object-fit: cover;

  border-radius: 8px;
}

.product-info {
  flex: 1;
}

.product-info h3 {
  margin: 0 0 5px;

  font-family: "Playfair Display", serif;
  font-size: 19px;
}

.product-info p {
  margin: 0;

  color: #8b0000;
  font-weight: bold;
}

/* số lượng*/

.quantity {
  display: flex;
  align-items: center;

  gap: 10px;
}

.quantity button {
  width: 32px;
  height: 32px;

  border: none;
  border-radius: 50%;

  background-color: #8b0000;
  color: white;

  cursor: pointer;

  font-size: 18px;

  transition: all 0.2s ease;
}

.quantity button:hover {
  background-color: #b90000;
  transform: scale(1.1);
}

.quantity span {
  min-width: 20px;

  text-align: center;

  font-weight: bold;
}

/* Thanh toan*/

.payment-list {
  display: flex;
  flex-direction: column;

  gap: 15px;
}

.payment-option {
  display: flex;
  align-items: center;

  gap: 12px;

  padding: 15px;

  border: 1px solid #d1b18a;
  border-radius: 8px;

  cursor: pointer;

  transition: all 0.3s ease;
}

.payment-option:hover {
  border-color: #8b0000;
  background-color: #fff8eb;
}

.payment-option input {
  accent-color: #8b0000;
}

.sub-option:has(input:checked) {
  border-color: #8b0000;
  background-color: #fff0d6;
  font-weight: 900;
  box-shadow: 0 0px 100px rgba(139, 0, 0, 0.08);
}


.sub-option img {
  display: inline-block;
  transform: translateX(5px);
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.sub-option:has(input:checked) img,
.sub-option:has(input:checked) .pay-logo {
  transform: scale(1.2); 
}
/* các phương thức ck */
.sub-option img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.sub-option {
  display: flex;
  align-items: center;
  gap: 15px;
}
/* Tổng tiền */

.total-box {
  background-color: #fdf5e6;

  padding: 30px;

  border-radius: 15px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.total-row {
  display: flex;

  justify-content: space-between;

  margin-bottom: 15px;

  font-size: 16px;
}

.total-line {
  height: 1px;

  background-color: #d1b18a;

  margin: 20px 0;
}

.final-total {
  font-family: serif;
  font-weight: bold;
  font-size: 23px;

  color: #5c0000;
}

.confirm-button {
  width: 100%;

  margin-top: 15px;

  padding: 14px;

  border: none;
  border-radius: 7px;

  background-color: #8b0000;
  color: white;

  font-family: "Playfair Display", serif;
  font-size: 18px;

  cursor: pointer;

  transition: all 0.3s ease;
}

.confirm-button:hover {
  background-color: #b90000;

  transform: translateY(-3px);

  box-shadow: 0 0px 18px rgba(221, 0, 0, 0.884);
}

/* footer */

.shopping-footer {
  margin-top: 70px;

  padding: 25px;

  background-color: #221510;

  border-top: 5px solid #c79452;

  text-align: center;

  color: #9e8471;

  font-size: 13px;
}

/* thank toán ngân hàng */
.sub-payment-list {
  margin-top: 10px;
  margin-left: 20px;
  padding-left: 15px;
  border-left: 2px solid #d1b18a;
}

.sub-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 8px;
  background-color: #fffaf1;
  border: 1px solid #e2d1b9;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sub-option:hover {
  background-color: #fff1da;
  border-color: #8b0000;
}

.sub-option input {
  accent-color: #8b0000;
}


/* ============================= */
/* HIỂN THỊ TRÊN ĐIỆN THOẠI */
/* ============================= */

@media (max-width: 768px) {

  /* Không cho trang kéo ngang */
  body {
    overflow-x: hidden;
  }


  /* HEADER */
  .shopping-header {
    min-height: auto;
    padding: 25px 15px;
    flex-direction: row;
    gap: 15px;
    text-align: center;
  }

  .shopping-logo {
    width: 70px;
    height: 70px;
  }

  .shopping-header h1 {
    font-size: 30px;
  }

  .shopping-header p {
    font-size: 13px;
  }

  .back-button {
    font-size: 14px;
    padding: 8px 15px;
  }


  /* KHUNG CHÍNH */
  .shopping-container {
    width: 95%;
    max-width: none;
    margin: 30px auto;
  }


  /* CÁC BOX */
  .order-box,
  .total-box {
    padding: 20px 15px;
    border-radius: 12px;
  }

  .order-box h2 {
    font-size: 21px;
  }


  /* THÔNG TIN KHÁCH HÀNG */
  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .form-group {
    width: 100%;
  }


  /* SẢN PHẨM */
  .product-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .product-item img {
    width: 65px;
    height: 65px;
  }

  .product-info {
    min-width: 0;
  }

  .product-info h3 {
    font-size: 16px;
  }

  .product-info p {
    font-size: 14px;
  }

  .quantity {
    margin-left: auto;
  }

  .product-item > strong {
    width: 100%;
    text-align: right;
    font-size: 14px;
  }


  /* THANH TOÁN */
  .payment-option {
    padding: 12px;
    font-size: 14px;
  }

  .sub-payment-list {
    margin-left: 10px;
    padding-left: 10px;
  }

  .sub-option {
    padding: 8px 10px;
  }


  /* TỔNG TIỀN */
  .total-row {
    font-size: 14px;
  }

  .final-total {
    font-size: 19px;
  }

  .confirm-button {
    font-size: 15px;
    padding: 12px;
  }


  /* AUDIO */
  .audio-player {
    right: 10px;
    bottom: 10px;
  }


  /* FOOTER */
  .shopping-footer {
    margin-top: 40px;
    padding: 20px 15px;
  }

  .shopping-footer p {
    margin: 0;
    font-size: 11px;
  }
}