* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
/* Header  */
.header {
  background: red;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Container layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo img {
  height: 52px;
  width: auto;
  display: block;
}

/* Navigation */
.nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
  justify-content: center;
}

.nav ul li a {
  text-decoration: none;
  color: #ffffff;
  font-size: 17px;
  font-weight: 500;
  font-family: 'Segoe UI', sans-serif;
  position: relative;
  padding: 8px 0;
  transition: all 0.3s ease;
}

/* Hiệu ứng gạch chân khi hover */
.nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background-color: #F7931E;
  transition: width 0.3s ease;
}

.nav ul li a:hover {
  color: #ffff;
}

.nav ul li a:hover::after {
  width: 100%;
}
/* ========== BADGES ========== */
.badges {
  display: flex;
  gap: 15px;
}

.badge {
  display: flex;
  align-items: center;
  background-color: #111;
  border: 1px solid #444;
  border-radius: 50px;
  padding: 8px 12px;
  min-width: 170px;
  gap: 10px;
  transition: box-shadow 0.3s ease;
}
.badge:hover {
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}
.badge img {
  width: 36px;
  height: 36px;
}
.badge-text {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  line-height: 1.3;
}
.badge-text strong {
  font-size: 13px;
}
.badge-text span {
  font-size: 11px;
  color: #ccc;
}

/* ========== PROMO SECTION ========== */
.promo-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin: 40px auto;
}

.promo-left,
.promo-small {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}
.promo-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: space-between;
}
.promo-left img,
.promo-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* ========== CATEGORY GRID ========== */
h2 {
  color: #28a745;
  border-bottom: 2px solid #28a745;
  padding-bottom: 10px;
  text-align: center;
}

.category-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  margin-top: 20px;
}

.category-item {
  position: relative;
  width: 150px;
  height: 150px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
}
.category-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.category-item .category-name {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.category-item:hover img {
  opacity: 0;
}
.category-item:hover .category-name {
  opacity: 1;
}
.category-label {
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  color: #333;
}

/* ========== BANNER & PRODUCTS ========== */
.container {
  display: flex;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.banner {
  flex: 1;
  background-color: #d32f2f;
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  position: relative;
}

.banner-header {
  position: absolute;
  top: 10px;
  left: 10px;
}

.banner-content {
  margin-top: 40px;
}
.banner-content h1 {
  font-size: 100px;
  font-weight: bold;
  line-height: 1;
}
.banner-content h2, .banner-content h3 {
  font-size: 24px;
  font-weight: bold;
  margin: 10px 0;
}
.date {
  font-size: 20px;
  margin: 10px 0;
}
.note {
  font-size: 14px;
  margin-top: 20px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 20px;
}

.products {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.product {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}
.product:hover {
  transform: translateY(-5px);
}
.product img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 5px;
}
.product .category {
  font-size: 12px;
  color: #666;
}
.product .name {
  font-size: 14px;
  font-weight: bold;
}
.product .price {
  font-size: 12px;
  color: #333;
  margin-top: 5px;
}
.product .price span {
  color: #2e7d32;
  font-weight: bold;
}

.popular-section {
  max-width: 1200px;
  margin: 60px auto 40px;
  text-align: center;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: #2e7d32;
  margin-bottom: 30px;
  text-transform: uppercase;
}

/* ========== FOOTER ========== */
.footer {
  background-color: #f5f5f5;
  color: #333;
  font-family: Arial, sans-serif;
  padding: 40px 20px 20px;
  border-top: 1px solid #ddd;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
  gap: 20px;
}

.footer-brand,
.footer-contact,
.footer-links {
  flex: 1 1 200px;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 10px;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer ul li {
  margin-bottom: 8px;
  font-size: 14px;
}
.footer a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}
.footer a:hover {
  color: #00897b;
}
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  font-size: 13px;
  color: #666;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .promo-section {
    flex-direction: column;
  }

  .promo-right {
    flex-direction: row;
    gap: 10px;
  }

  .products {
    grid-template-columns: repeat(2, 1fr);
  }

  .search-bar {
    margin: 0 10px;
  }

  .category-grid {
    gap: 10px;
  }

  .header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .badges {
    flex-wrap: wrap;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
.top-banner {
  width: 100%;
  
  text-align: center;
  padding: 0;
}

.top-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.slideshow {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}
.menu {
  list-style: none;
  padding: 0;
  margin: 0 auto; /* canh giữa menu */
  display: flex;
  justify-content: center; /* canh giữa nội dung bên trong */
  background-color: white;
  border-bottom: 1px solid #e0e0e0;
  font-family: sans-serif;
}

.menu > li {
  position: relative;
}

.menu > li > a {
  display: block;
  padding: 15px 20px;
  color: black;
  text-decoration: none;
  font-weight: 500;
}

.menu > li:hover > a {
  background-color: #f3f3f3;
}

/* Dropdown submenu */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
  border: 1px solid #ddd;
}

.dropdown-content li a {
  padding: 10px 15px;
  display: block;
  text-decoration: none;
  color: #333;
}

.dropdown-content li a:hover {
  background-color: #f0f0f0;
}

.dropdown:hover .dropdown-content {
  display: block;
}
/* Loại bỏ dấu tròn của danh sách */
.menu, .dropdown-content {
  list-style-type: none; /* Loại bỏ dấu tròn */
  padding-left: 0; /* Loại bỏ khoảng cách bên trái */
}

/* Slide Panel - Đẹp hơn */
.slide-panel {
  position: fixed;
  top: 0;
  right: -400px;
  width: 350px;
  height: 100%;
  background: #fdfdfd;
  box-shadow: -4px 0 16px rgba(0, 0, 0, 0.2);
  padding: 30px 20px;
  transition: right 0.4s ease-in-out;
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, sans-serif;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

.slide-panel.open {
  right: 0;
}

.slide-panel h2 {
  margin-top: 0;
  font-size: 22px;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}

.slide-panel label {
  display: block;
  margin-top: 15px;
  font-weight: 500;
  color: #34495e;
}

.slide-panel input,
.slide-panel select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #fff;
  font-size: 15px;
  transition: border-color 0.3s ease;
}

.slide-panel input:focus,
.slide-panel select:focus {
  border-color: #3498db;
  outline: none;
}

/* Kết quả tính toán */
#result {
  margin-top: 25px;
  font-weight: bold;
  color: #e67e22;
  font-size: 18px;
}

/* Ghi chú */
#note {
  margin-top: 5px;
  font-size: 14px;
  color: #888;
  font-style: italic;
}

/* Nút đóng panel */
.close-btn {
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 22px;
  font-weight: bold;
  color: #7f8c8d;
  cursor: pointer;
}

/* Nút Zalo */
.zalo-button {
  margin-top: 25px;
  width: 100%;
  padding: 12px 16px;
  background-color: #0088ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.zalo-button:hover {
  background-color: #006edc;
}

/* Liên hệ cuối panel */
.slide-panel a {
  color: #2980b9;
  text-decoration: none;
}

.slide-panel a:hover {
  text-decoration: underline;
}

/* Responsive Mobile */
@media (max-width: 768px) {
  .slide-panel {
    width: 100%;
    border-radius: 0;
    padding: 20px;
  }
}
/* ==== Phần checkbox "Thêm màn bóng" ==== */
#laminateOption {
  display: none; /* vẫn ẩn mặc định */
  margin-top: 15px;
  padding: 12px 15px;
  border-radius: 10px;
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  border: 1.5px solid #00acc1;
  box-shadow: 0 2px 8px rgba(0, 172, 193, 0.3);
  font-weight: 600;
  color: #007c91;
  user-select: none;
}

#laminateOption label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 15px;
  transition: color 0.3s ease;
}

#laminateOption label:hover {
  color: #004d59;
}

#laminateOption input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #00acc1; /* Màu checkbox cho browser hỗ trợ */
  border-radius: 5px;
  box-shadow: 0 0 5px rgba(0, 172, 193, 0.7);
  transition: box-shadow 0.3s ease;
}

/* ==== Phần liên hệ Gmail và SĐT ==== */
.slide-panel .contact-info {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid #ddd;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.slide-panel .contact-info p {
  margin: 12px 0;
  font-size: 16px;
  font-weight: 600;
  color: #34495e;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: text;
}

.slide-panel .contact-info p a {
  color: #2980b9;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
}

.slide-panel .contact-info p a:hover {
  color: #1c5980;
  text-decoration: underline;
}

/* Icon trước Gmail và SĐT */
.slide-panel .contact-info p.gmail::before,
.slide-panel .contact-info p.phone::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.1));
}

/* Gmail icon */
.slide-panel .contact-info p.gmail::before {
  background-image: url('https://cdn-icons-png.flaticon.com/512/732/732200.png');
}

/* Phone icon */
.slide-panel .contact-info p.phone::before {
  background-image: url('https://cdn-icons-png.flaticon.com/512/597/597177.png');
}

/* Responsive nhỏ hơn */
@media (max-width: 480px) {
  #laminateOption {
    font-size: 14px;
    padding: 10px 12px;
  }

  #laminateOption label {
    font-size: 14px;
    gap: 8px;
  }

  .slide-panel .contact-info p {
    font-size: 15px;
    gap: 8px;
  }
}