/* Cấu trúc chung */
.tab-container {
  display: flex;
  padding: 10% 20px;
  border-radius: 12px;
  overflow: visible;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* Menu dọc bên trái */
.tab-menu {
  top: 20%;
  position: sticky;
  max-height: calc(100vh - 100px);
  background-color:#fff;
  padding: 16px;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  height: 80%;
  z-index: 10;
  width: 15%;
}

.tab-category-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}

.category-btn {
  background: #d84315;
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s ease;
}

.category-btn:hover,
.category-btn.active {
  background: #bf360c;
}

.tab-btn {
  font-size: 20px;
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border: none;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.tab-btn img {
  width: 50px;
  height: 50px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.tab-btn:hover,
.tab-btn.active {
  background: #ffece6;
  color: #d84315;
  border-left: 4px solid #d84315;
}

/* Phần nội dung bên phải */
.tab-content {
  flex: 1;
  padding: 20px;
  margin-left: 10%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  font-size: 50px;
  border-bottom:1px solid #333;
  color: #333;
  margin-bottom: 50px;
}
.tab-panel h1{
  font-size: 30px;
  margin-top: 50px;
  margin-bottom: 50px;
}
.tab-panel p {
  color: #555;
  line-height: 1.6;
}
.product-list {
  padding: 20px;
  text-align: center;
  max-width: 12000px;
  margin: 0 auto; /* Canh giữa */
}

.product-list h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Grid linh hoạt */
  gap: 20px;
  justify-items: center;
}

.product-item {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  background-color: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  gap: 10px;
}

.product-item:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-item img {
  height: 250px; 
  object-fit: cover; 
  width: 100%; 
  display: block;
  margin-bottom: 10px;
}


.product-item h2 {
  font-size: 1rem;
  margin-bottom: 10px;
}

.product-item p {
  font-size: 1rem;
  margin-bottom: 15px;
}

.view-details-btn {
  padding: 10px 20px;
  background-color: #FF6F61;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.view-details-btn:hover {
  background-color: #d45e50;
}


/* Media Queries for mobile responsiveness */
@media (max-width: 1024px) {

  .product-list h1 {
      font-size: 1.8rem;
  }

  .product-item h2 {
      font-size: 1.1rem;
  }

  .product-item p {
      font-size: 0.95rem;
  }
}

@media (max-width: 1024px) {
  .product-list h1 {
      font-size: 1.5rem;
  }

  .product-grid {
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Cột nhỏ hơn trên màn hình nhỏ */
  }

  .product-item h2 {
      font-size: 1rem;
  }

  .product-item p {
      font-size: 0.9rem;
  }

  .view-details-btn {
      font-size: 0.875rem;
      padding: 8px 16px;
  }
}

@media (max-width: 480px) {
  .product-list h1 {
      font-size: 1.3rem;
  }

  .product-grid {
      grid-template-columns: 1fr; /* 1 cột trên màn hình rất nhỏ */
  }

  .product-item h2 {
      font-size: 0.95rem;
  }

  .product-item p {
      font-size: 0.85rem;
  }

  .view-details-btn {
      font-size: 0.75rem;
      padding: 6px 12px;
  }
}

@media (max-width: 1024px) {
  .tab-menu {
    position: relative;
    right: 0%;
    background:  #fff;
    border: 1px solid #ccc;
    border-radius: 12px;
    padding: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 999;
    flex-wrap: nowrap;
    height: auto;
    width: 100%;
  }
  .tab-menu.show {
    gap: 50px;
    display: block;
  }
  .tab-container {
    display: flex;
    flex-direction: column;
    padding: 20px 10px;
  }
  .tab-content {
    padding: 15px;
    margin-top: 10%;
  }
   .tab-category-buttons {
    margin-bottom: 12px;
  }
  .category-btn {
    padding: 8px 12px;
    font-size: 14px; /* Giảm kích thước chữ */
  }
  .tab-btn {
    width: auto;
    padding: 12px 40px;
    font-size: 16px; /* Giảm kích thước chữ */
  }
  .tab-panel h2 {
    font-size: 20px; /* Giảm kích thước tiêu đề */
  }

  .tab-panel p {
    font-size: 14px; /* Giảm kích thước văn bản */
  }
}
/* Media query cho màn hình rất nhỏ (điện thoại di động cực nhỏ) */
@media (max-width: 768px) {
  .tab-container {
    padding: 20px 10px; /* Giảm padding hơn nữa cho các màn hình nhỏ hơn */
  }

  .tab-menu {
    width: 100%;
    padding: 12px; /* Giảm padding cho menu */
  }

  .tab-btn {
    padding: 10px 12px; /* Giảm padding cho nút menu */
  }

  .tab-content {
    padding: 15px;
  }
}
