/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background-color: #f8f8f8;
  color: #222;
}

/* ====== HEADER ====== */
header {
  display: flex;
  align-items: center;
  background-color: #fff;
  border-bottom: 2px solid #e6e6e6;
  padding: 10px 20px;
}

header img {
  width: 50px;
  height: 50px;
  margin-right: 15px;
}

header h1 {
  font-size: 22px;
  color: #e67e22;
}

/* ===== NAVBAR ===== */
nav {
  background: #f1c40f;
  color: white;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  padding: 10px 0;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: 0.3s;
}

nav a:hover {
  text-decoration: underline;
}

.cart-icon {
  position: absolute;
  top: 65px; /* hạ thấp xuống — chỉnh tuỳ navbar cao bao nhiêu */
  right: 30px;
  font-size: 24px;
  color: #000;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-icon i {
  font-size: 26px;
  color: #000;
}

.cart-count {
  background: red;
  color: #fff;
  border-radius: 50%;
  font-size: 13px;
  padding: 2px 6px;
  margin-left: 4px;
}

/* ====== FORM CONTAINER ====== */
.container {
  width: 95%;
  max-width: 1250px;
  background-color: white;
  margin: 40px auto;
  padding: 35px 40px;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.15);
}

.container h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 24px;
}

/* Input + Select cách nhau thoáng hơn */
input[type="text"],
input[type="email"],
select,
textarea {
  padding: 8px 10px !important;
  margin-bottom: 10px !important;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Hàng chứa 2 cột trong phần KH */
.row-2 {
  display: flex;
  gap: 14px !important;  /* tăng khoảng cách giữa trái và phải */
}

/* Bên phải phần thông tin giá có khoảng cách dòng thoải mái */
.info-right p {
  margin-bottom: 10px !important;
  line-height: 1.55 !important;
}

/* Các mục ghi chú, highlight vẫn giữ như cũ */
.info-right .price { color: red; font-weight: 600; }
.info-right .highlight { color: #0b6e0b; font-weight: 600; }
.info-right .note { color: #af2a2a; font-style: italic; }


/* ====== ROW STYLES ====== */
.row {
  border-bottom: 1px solid #ddd;
  padding: 18px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.row:last-child {
  border-bottom: none;
}

.row label {
  width: 25%;
  font-weight: bold;
  font-size: 15px;
  color: #333;
}

/* ====== OPTIONS LAYOUT ====== */
.options {
  width: 75%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px 25px;
}

.options label {
  font-weight: normal;
  font-size: 14.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* tránh text bị xuống dòng */
.options label input {
  flex-shrink: 0;
  transform: scale(1.1);
}

/* ====== COLOR OPTIONS ====== */
.options.color span {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 1px solid #ccc;
  margin-right: 5px;
  vertical-align: middle;
  border-radius: 3px;
}

.green { background: #2ecc71; }
.blue { background: #3498db; }
.red { background: #e74c3c; }
.black { background: #333; }
.white { background: #fff; border: 1px solid #999; }
.yellow { background: #f1c40f; }

/* ====== INPUT STYLES ====== */
input[type="number"], select {
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 120px;
  font-size: 14px;
}

/* ====== BUTTON ====== */
.btn {
  display: block;
  margin: 30px auto 0;
  background-color: #27ae60;
  color: white;
  font-weight: bold;
  border: none;
  padding: 14px 40px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.btn:hover {
  background-color: #219150;
  transform: scale(1.03);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {
  .row {
    flex-direction: column;
    align-items: flex-start;
  }

  .row label {
    width: 100%;
    margin-bottom: 8px;
  }

  .options {
    width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

