/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to right, #d0e2dc, #f1f9f6);
  color: #222;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* Header */
header {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ccc;
  padding: 20px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a, nav button {
  margin: 0 10px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

nav button, .btn-outline, .btn-red {
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: 0.3s;
}

.btn-outline {
  border: 1px solid #4a90e2;
  background: transparent;
  color: #4a90e2;
}

.btn-outline:hover {
  background: #4a90e2;
  color: white;
}

.btn-red {
  background: #e74c3c;
  color: white;
}

.btn-red:hover {
  background: #c0392b;
}

/* Hero */
.hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(120deg, #f0f4f8, #d9eaf0);
  border-bottom: 1px solid #ccc;
}

.hero h2 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1em;
  color: #555;
}

/* Product */
.section-title {
  text-align: center;
  margin: 40px 0 20px;
  font-size: 1.8em;
  color: #333;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  padding: 0 20px 40px;
}

.product-card {
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(8px);
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  text-align: center;
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 100%;
  max-width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 15px;
  display: block;
}


.product-card h4 {
  margin: 10px 0;
  font-size: 1.2em;
}

.product-card p {
  font-size: 0.95em;
  color: #555;
  min-height: 48px;
}

.price {
  margin-top: 10px;
  font-weight: bold;
  color: #2c3e50;
  font-size: 1.1em;
}

.actions {
  margin-top: 15px;
}

.actions button {
  margin: 4px;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.popup.hidden {
  display: none;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  position: relative;
}

.popup-content input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.popup-content button {
  background: #4a90e2;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  width: 100%;
}

.popup-content .close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  font-size: 20px;
  border: none;
  cursor: pointer;
}

/* Footer */
footer {
  text-align: center;
  padding: 30px;
  background: #f1f1f1;
  color: #666;
}
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #1e40af;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid #2563eb;
  color: #2563eb;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: #2563eb;
  color: white;
}
.btn-primary {
  background-color: #2563eb;
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-primary:hover {
  background-color: #1e40af;
}
/* Thêm vào cssgoiai.css */
.form-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  text-align: center;
}
.form-container input {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
.form-container button {
  width: 100%;
  padding: 12px;
  background: #005cff;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}
.form-container button:hover {
  background: #0040cc;
}
