/* Login Section */
.login-section {
  padding: 60px 0;
  background: #fff;
}

.login-box {
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.register-box {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.login-title {
  font-size: 24px;
  margin-top: 80px;
  margin-bottom: 20px;
  font-weight: bold;
}

.login-note {
  background: #fceaea;
  border: 1px solid #f1c0c0;
  padding: 15px;
  font-size: 14px;
  color: #333;
  margin-bottom: 20px;
  text-align: left;
}

.login-note p {
  margin-bottom: 10px;
}

.login-note .small-note {
  font-size: 12px;
  color: #666;
}

/* Form */
.login-form {
  text-align: left;
}

.form-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.form-group label {
  flex: 0 0 150px;
  background: #f5f5f5;
  padding: 10px;
  font-size: 14px;
  color: #333;
}

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

.form-options {
  margin-bottom: 15px;
  font-size: 14px;
}

.login-btn {
  width: 100%;
  background: #444444;
  color: #fff;
  font-size: 16px;
  padding: 12px;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  font-weight: bold;
  transition: background 0.3s;
}

.login-btn:hover {
  background: #2e2e2e;
}

.login-links {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.login-links a {
  color: #333;
  text-decoration: none;
  margin: 0 5px;
}

.login-links a:hover {
  color: #b72929;
}

.register-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 20px;
  text-align: center;
}

/* Form Table */
.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: #fff;
}

.form-table td {
  padding: 12px 15px;
  border-bottom: 1px solid #ddd;
  vertical-align: top;
  font-size: 14px;
  text-align: left;
}

/* Cột label */
.form-table td:first-child {
  background: #f7f7f7;
  font-weight: bold;
  width: 220px;
  color: #333;
}

/* Input styles */
.form-table input[type="text"],
.form-table select {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
  margin: 4px 0;
}

.short-input {
  width: 140px;
  margin-right: 10px;
}

.long-input {
  width: 300px;
  margin-right: 10px;
}

.postal {
  width: 80px;
}

/* Example text */
.example {
  font-size: 12px;
  color: #888;
  margin-top: 4px;
}

/* Required badge */
.required {
  color: #d42e2e;
  font-size: 16px;
}

/* Buttons */
.btn-search {
  background: #d42e2e;
  color: #fff;
  border: none;
  padding: 6px 12px;
  margin-left: 10px;
  cursor: pointer;
  font-size: 13px;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-search:hover {
  background: #a52222;
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #444;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.btn-submit {
  background: #444;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-weight: bold;
  border-radius: 3px;
  transition: background 0.2s;
}

.btn-submit:hover {
  background: #222;
}

/* Responsive cho màn hình nhỏ */
@media (max-width: 768px) {
  .form-table td {
    display: block;
    width: 100%;
  }
  .form-table td:first-child {
    width: 100%;
    background: #f0f0f0;
  }
}

/* Automation page */
.automation-title {
  margin-top: 20px;
  color: #721c24;
  padding: 15px;
  margin-bottom: 25px;
  border-left: 10px solid #d42e2e;
}

.products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  text-align: center;
  padding: 15px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.product a {
  text-decoration: none;
  color: inherit;
}

.contact-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
  background: #f9a825;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: 0.3s;
  gap: 10px;
}

.contact-btn:hover {
  background: #d18c1b;
}

.product:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.product img {
  max-width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 6px;
}

.product p {
  font-size: 13px;
  color: #444;
  margin: 0;
}

.automation-product-containter {
  margin-bottom: 40px;
}

/* Carosel cho outsource_product_detail */
/* Container chính */
.outsource-product-detail {
  padding: 60px 0;
}

.outsource-product-detail-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Carousel */
.outsource-product-hero {
  position: relative;
  width: 45%;
  height: 300px;
  max-width: 650px;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.outsource-hero-track {
  display: flex;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 100%;
}

.outsource-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.outsource-hero-slide.active {
  opacity: 1;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.outsource-hero-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

/* Nút prev / next */
.outsource-hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s;
}

.outsource-hero-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.outsource-hero-btn.prev {
  left: 15px;
}

.outsource-hero-btn.next {
  right: 15px;
}

/* Product Info */
.outsource-product-info {
  gap: 20px;
  flex: 1;
  padding: 25px 20px 20px 20px;
  display: flex;
  justify-content: space-between;
}

.outsource-product-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-weight: 600;
}

.btn-buy-outsourced-product {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #007bff;
  color: #fff;
  padding: 12px 24px;
  height: 40px;
  width: 100px;
  border-radius: 8px;
  border: none;
  text-decoration: none;
}

.btn-buy-outsourced-product:hover {
  background: #444444;
}

.cart-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-quantity label {
  font-size: 20px;
  font-weight: bold;
}

.quantity-selector {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover {
  background: #444444;
  color: white;
}

.qty-btn:active {
  transform: scale(0.95);
}

.qty-minus {
  border-right: 1px solid #ccc;
}

.qty-plus {
  border-left: 1px solid #ccc;
}

.quantity-selector input {
  width: 50px;
  padding: 6px;
  font-size: 16px;
  text-align: center;
  border: none;
  outline: none;
  -moz-appearance: textfield; /* Firefox */
}

/* Hide spinner arrows */
.quantity-selector input::-webkit-outer-spin-button,
.quantity-selector input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Responsive */
@media (max-width: 992px) {
  .outsource-product-detail-container {
    flex-direction: column;
    align-items: center;
  }

  .outsource-product-hero {
    width: 100%;
  }

  .outsource-product-info {
    text-align: center;
  }
}
