/* ======================================= */
/* 1. GLOBAL STYLES & LAYOUT */
/* ======================================= */

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #ffffff;
  color: #333;
}

header {
  width: 100%;
  padding: 1px 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1d2731;
  border-bottom: 1px solid #eee;
  position: fixed;
  top: 0;
  z-index: 999;
}

header img {
  height: 70px;
  padding-left: 160px;
}

nav a {
  margin: 0 18px;
  color: #f0ebeb;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
}

nav a:hover {
  color: #ff5b2e;
}

footer {
  padding: 30px;
  text-align: center;
  background: #fafafa;
  font-size: 14px;
  margin-top: 40px;
  color: #777;
}

/* ======================================= */
/* 2. HOME PAGE (index.html) STYLES */
/* ======================================= */

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 160px 80px 0px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.bg-shape {
  position: absolute;
  right: -150px;
  top: 50px;
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #ff8f5a, #ff5b2e);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: -1;
}

.hero-left { width: 50%;padding-bottom: 400px; }

.hero-left h1 {
  font-size: 46px;
  color: #222;
  line-height: 56px;
}

.hero-left h1 span { color: #ff5b2e; font-weight: 800; }

.info-box {
  margin-top: 30px;
  padding: 25px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.info-box p {
  font-size: 20px;
  margin: 12px 0;
}

.info-box i {
  margin-right: 10px;
  color: #ff5b2e;
}

.btn-group { margin-top: 30px; }

.btn {
  padding: 12px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 12px;
  background: #ff5b2e;
  color: #fff;
  display: inline-block;
  transition: 0.2s;
  
}

.btn:hover {
  background: #e54c22;
}

.btn-dark {
  background: #222;
}

.btn-dark:hover {
  background: #000;
}

.hero-right {
  width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 350px;
}

.hero-right img {
  width: 88%;
  border-radius: 22px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}


/* ======================================= */
/* 3. PRODUCTS PAGE (products.html) STYLES */
/* ======================================= */

.products-section {
  padding: 120px 80px 80px;
  text-align: center;
  background: #f9f9f9;
}

.products-section h2 {
  font-size: 38px;
  color: #222;
  margin-bottom: 40px;
  border-bottom: 3px solid #ff5b2e;
  display: inline-block;
  padding-bottom: 5px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: left;
  transition: transform 0.3s ease;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.product-card i {
  font-size: 40px;
  color: #ff5b2e;
  margin-bottom: 15px;
}

.product-card h3 {
  font-size: 24px;
  color: #222;
  margin-bottom: 10px;
}

.product-card p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}
.image-box {
  width: 255px;        /* chiều rộng ô */
  height: 300px;       /* chiều cao ô */
  border: 0px solid #ccc; /* đường viền ô */
  border-radius: 10px;
  overflow: hidden;    /* không cho ảnh tràn ra */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 40px;
}

.image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;   /* ảnh nằm gọn */
}


/* ======================================= */
/* 4. FLOATING CONTACT BUTTON (FAB) & MODAL */
/* ======================================= */

/* Nút liên hệ nổi */
.fab-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 1000;
}

.contact-fab {
    width: 60px;
    height: 60px;
    background: #ff5b2e;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    line-height: 60px;
    font-size: 26px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: block; 
    text-decoration: none;
}

.contact-fab:hover {
    background: #e54c22;
    transform: scale(1.05);
}

/* Modal Alert */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 2000;
}

.modal-overlay.active {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    max-width: 90%;
    transform: scale(0.9);
    transition: transform 0.3s ease-out;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content h3 {
    font-size: 26px;
    color: #ff5b2e;
    margin-bottom: 10px;
}

.modal-content p {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 15px 0 25px;
}

.modal-btn {
    padding: 10px 30px;
    border: none;
    border-radius: 8px;
    background: #ff5b2e;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: #e54c22;
}


/* ======================================= */
/* 5. RESPONSIVE STYLES */
/* ======================================= */

@media (max-width: 900px) {
  header { padding: 15px 25px; }
  nav { display: none; }
  .hero { flex-direction: column; padding: 130px 20px 50px; text-align: center; }
  .hero-left, .hero-right { width: 100%; }
  .hero-right img { width: 100%; margin-top: 35px; }
  
  /* Responsive cho trang sản phẩm */
  .products-section {
      padding: 100px 20px 50px;
  }

  /* Responsive cho FAB */
  .fab-container {
        right: 15px;
        bottom: 15px;
    }
}


.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.dot.active {
    background: #ff5b2e; 
    transform: scale(1.2);
}

@media (max-width: 900px) {
    .slider-container {
        width: 100%;
        height: 300px;
        margin-top: 35px;
    }
}

