/* style/main.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}
.container {
  max-width: 1100px;
  margin: 50px auto;
  background: white;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
body {
  background: #f5f5f5;
}

/* === HEADER === */
.header-banner {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding-bottom: 20px;
}

.header-banner-text {
  color: white;
  font-size: 32px;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  letter-spacing: 2px;
}

/* === NAV === */
.nav-bar {
  background: white;
  padding: 8px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links a {
  color: #0066cc;
  text-decoration: none;
  margin-right: 5px;
  font-size: 14px;
}

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

.nav-links span {
  color: #333;
  margin-right: 5px;
}

.search-form {
  display: flex;
  gap: 5px;
}

.search-form input[type="text"] {
  padding: 4px 8px;
  border: 1px solid #ccc;
  width: 200px;
  font-size: 13px;
}

.search-form button {
  padding: 4px 12px;
  background: #f0f0f0;
  border: 1px solid #ccc;
  cursor: pointer;
  font-size: 13px;
}

.search-form button:hover {
  background: #e0e0e0;
}

/* === MAIN LAYOUT === */
.main-container {
  display: flex;
  max-width: 1200px;
  margin: 10px auto;
  gap: 10px;
  padding: 0 10px;
}

/* === SIDEBAR === */
.sidebar {
  width: 200px;
  flex-shrink: 0;
  background: #e8e8e8;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li a {
  display: block;
  padding: 10px 14px;
  background: #4caf50;
  color: white;
  font-weight: bold;
  text-decoration: none;
  margin-bottom: 2px;
  font-size: 14px;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: #388e3c;
}

/* === PRODUCT GRID === */
.product-area {
  flex: 1;
  background: white;
  padding: 10px;
}

table.sp-table {
  width: 100%;
  border-collapse: collapse;
}

td.sp {
  width: 20%;
  vertical-align: top;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid #eee;
}

td.sp:hover {
  background: #f9f9f9;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

td.sp img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

td.sp a {
  font-weight: bold;
  color: #333;
  text-decoration: none;
  font-size: 13px;
  display: block;
  margin-bottom: 4px;
}

td.sp a:hover {
  color: #cc0000;
}

.gia-ban {
  color: #cc0000;
  font-weight: bold;
  font-size: 14px;
}

.gia-goc {
  color: #999;
  text-decoration: line-through;
  font-size: 12px;
}

.gia-only {
  color: #333;
  font-size: 14px;
}

/* === FOOTER === */
.footer {
  background: #555;
  color: white;
  text-align: center;
  padding: 12px;
  margin-top: 20px;
  font-size: 14px;
}

/* === FORM PAGES === */
.form-container {
  max-width: 400px;
  margin: 40px auto;
  background: white;
  padding: 30px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: 14px;
  color: #555;
}

.form-group input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background: #4caf50;
  color: white;
  border: none;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 5px;
}

.btn-submit:hover {
  background: #388e3c;
}

.msg-error {
  color: red;
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
}

.msg-success {
  color: green;
  font-size: 13px;
  margin-bottom: 10px;
  text-align: center;
}

.link-below {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
}

.link-below a {
  color: #0066cc;
  text-decoration: none;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  td.sp {
    width: 50%;
  }
}
