.full-box1 {
  padding: 50px 0;
}
.featured-products-section .box1-title {
  font-size: 20px;
  margin: 0 0 30px;
  color: #1d0bf0;
  text-align: center;
  font-weight: 600;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.product-item {
  overflow: hidden;
  transition: all 0.3s;
  position: relative;
}
.product-image-wrapper {
  position: relative;
  overflow: hidden;
}
.product-image-wrapper img {
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: all 0.3s ease;
}
.product-image-wrapper .main-image {
  z-index: 2;
}
.product-image-wrapper .hover-image {
  opacity: 0;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
}
.product-item.has-gallery:hover .main-image {
  opacity: 0;
}
.product-item.has-gallery:hover .hover-image {
  opacity: 1;
}
.quick-view-btn {
  position: absolute;
  width: 100%;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: #1f61af;
  color: white;
  font-weight: bold;
  text-transform: uppercase;
  text-align: center;
  padding: 5px 10px;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s;
  z-index: 10;
}
.product-item:hover .quick-view-btn {
  opacity: 0.95;
  bottom: 0;
}
.product-title {
  padding: 10px 0 5px;
  margin: 0;
  text-align: center;
}
.product-price {
  text-align: center;
  font-size: 14px;
  color: #000;
  font-weight: 300;
  margin: 8px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-price del {
  color: #666;
}
.product-price ins {
  text-decoration: none;
  font-weight: bold;
}
.stock-info {
  text-align: center;
  font-size: 12px;
  font-weight: bold;
  padding: 2px 0;
  margin: 10px 0 15px;
  border-radius: 30px;
  width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.stock-available {
  background: #1f61af; /* xanh giống nút "Còn sẵn" */
  color: white;
}
.stock-preorder {
  background: #dc3545; /* đỏ cho "Đặt hàng trước" */
  color: white;
}
.sale-flash {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #e53935;
  color: white;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: bold;
  z-index: 5;
}
.product-item .product-title a {
  font-size: 16px;
  color: #334862;
  font-weight: 500;
}
#quickViewModal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}
.modal-content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  width: 100%;
  max-width: 900px;
  margin: auto;
  border-radius: 8px;
  max-height: 90vh;
  overflow-y: auto;
}
.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 36px;
  cursor: pointer;
  color: #ccc;
}
.loading {
  text-align: center;
  padding: 100px 20px;
  font-size: 18px;
}
/* Giống ảnh: popup rộng, ảnh bên trái */
.quick-view-inner {
  display: flex;
  gap: 20px;
  padding: 20px;
}
.quick-view-images {
  width: 50%;
}
.quick-view-images img {
  aspect-ratio: 1/1;
  height: auto;
}
.quick-view-info {
  width: 50%;
}
.quick-view-info .price{
  font-weight: 600;
  font-size: 20px;
}
.quick-view-info .cart {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Quantity -/+ */
.quantity-selector {
  display: flex;
  align-items: center;
  margin: 15px 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
  width: fit-content;
}
.quantity-selector .qty-btn {
  background: #f5f5f5;
  border: none;
  width: 40px;
  height: 40px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}
.quantity-selector .qty-btn:hover {
  background: #e53935;
  color: white;
}
.quantity-selector .qty {
  width: 60px;
  text-align: center;
  border: none;
  font-size: 16px;
  height: 40px;
  margin: 0;
  background: white;
  border-left: 1px solid #ddd;
  border-right: 1px solid #ddd;
}
.quick-view-info .cart button[type="submit"] {
  height: 40px;
  border: none;
  outline: none;
  background-color: #fd0000;
  text-transform: uppercase;
  color: #fff;
}

/* Box 2 */
.category-slide-wrapper {
  margin-bottom: 50px;
}
.section-title {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
}
.category-slide-wrapper .cat-title {
  font-size: 20px;
  color: #1d0bf0;
  font-weight: bold;
  text-transform: uppercase;
  padding: 10px;
  border: 2px solid rgb(85, 85, 85, 0.1);
}
.line {
  height: 2px;
  flex: 1;
  background-color: rgb(85, 85, 85, 0.1);
}

/* Fix cho Swiper hiển thị đúng số lượng */
.swiper-container {
  padding: 20px 0;
  overflow: hidden;
  width: 100%;
  position: relative;
}
.swiper-button-next,
.swiper-button-prev {
  color: #000 !important;
  background: transparent;
  background-image: unset !important;
  width: 40px;
  height: 100% !important;
  top: 0 !important;
  border-radius: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  opacity: 0;
  z-index: 11;
  transition: all 0.4s ease;
}
.swiper-button-next {
  right: -30px !important;
}
.swiper-button-prev {
  left: -30px !important;
}
.swiper-container:hover .swiper-button-next,
.swiper-container:hover .swiper-button-prev {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.6);
}
.swiper-container:hover .swiper-button-next {
  right: 0 !important;
}
.swiper-container:hover .swiper-button-prev {
  left: 0 !important;
}
.swiper-container:hover .swiper-button-next:hover,
.swiper-container:hover .swiper-button-prev:hover {
  background-color: #fff;
}
.full-box2,
.full-box4,
.full-box6 {
  padding: 50px 0;
  padding-top: 0;
}
.banner {
  width: 100%;
  height: auto;
  aspect-ratio: 10/4;
}
/* Box 7 */
.full-box7 {
  background: #f8f9fa;
  padding: 50px 0;
  padding-top: 0;
}
.commitment-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #007bff; /* Màu xanh dương chủ đạo */
  margin-bottom: 15px;
}

.commitment-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.section-title .title {
  font-size: 20px;
  font-weight: bold;
  color: #1d0bf0;
  position: relative;
  display: inline-block;
  border: 2px solid rgb(85, 85, 85, 0.1);
  padding: 10px;
}
.commitment-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  justify-content: center;
}

.commitment-item {
  background: #f6f6f6;
  border-radius: 5px;
  box-shadow:
    0 3px 6px -4px rgba(0, 0, 0, 0.16),
    0 3px 6px rgba(0, 0, 0, 0.23);
  text-align: center;
  height: -webkit-fill-available;
}

.icon-wrapper {
  width: 100%;
  height: auto;
  aspect-ratio: 10/5;
  padding: 15px 0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.commitment-icon {
  width: 50%;
  height: auto;
  object-fit: contain;
}

.commitment-item h4 {
  font-size: 18px;
  font-weight: bold;
  color: #1f61af;
  margin: 0;
  padding: 10px;
}

.commitment-item p {
  color: #1f61af;
  line-height: 1.65;
  margin: 0;
  padding: 0 10px 10px;
}
.full-daotao-tuvan{
  padding: 50px;
  padding-top: 0;
}
.daotao-tuvan-content{
  padding: 10px;
  border: 2px solid rgb(85, 85, 85, 0.1);
}
.full-khtt{
  padding: 50px 0;
  padding-top: 0;
}
.box-khtt{
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: center;
}
.box-khtt .khtt_item img{
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
}
/* Box 8 */
.full-box8 {
  background: #f8f9fa;
  padding: 50px 0;
  padding-top: 0;
}

.inner-box8 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 20px;
  font-weight: bold;
  color: #1d0bf0;
  position: relative;
  display: inline-block;
  padding: 10px;
  border: 2px solid rgb(85, 85, 85, 0.1);
}

.news-swiper {
  position: relative;
  overflow: hidden;
}

.news-item {
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.news-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}

.news-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-title {
  font-size: 18px;
  font-weight: bold;
  color: #666;
  margin: 0 0 12px;
  line-height: 1.4;
  text-align: center;
  display: block;
  position: relative;
}
.news-title::after{
  position: absolute;
  content: "";
  background-color: #ddd;
  height: 2px;
  width: 15%;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
}

.news-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  margin: 0 0 15px;
  flex: 1;
}

.news-link {
  display: inline-block;
  color: #007bff;
  font-weight: bold;
  text-decoration: none;
  margin-top: auto;
}

.news-link:hover {
  text-decoration: underline;
}
.news-swiper:hover .swiper-button-next,
.news-swiper:hover .swiper-button-prev {
  opacity: 1;
  background-color: rgba(255, 255, 255, 0.6);
}
.news-swiper:hover .swiper-button-next {
  right: 0 !important;
}
.news-swiper:hover .swiper-button-prev {
  left: 0 !important;
}
.news-swiper:hover .swiper-button-next:hover,
.news-swiper:hover .swiper-button-prev:hover {
  background-color: #fff;
}
/* Box 9 */
.full-box9 {
  background: #f8f9fa;
  padding: 50px 0;
  padding-top: 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.box9-title {
  font-size: 20px;
  font-weight: 500;
  color: #777;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.category-column {
  border-radius: 10px;
  overflow: hidden;
}
.category-header {
  color: #334862;
}

.category-header h3 {
  font-size: 18px;
  margin: 0;
  font-weight: bold;
  text-transform: uppercase;
}

.category-list {
  list-style: none;
  margin: 0;
  color: #888;
}

.category-list li {
  position: relative;
  padding: 5px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgb(85, 85, 85, 0.1);
  text-transform: uppercase;
}
.category-list li:last-child{
    border-bottom: none;
}
/* Responsive */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .products-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .commitment-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .box-khtt{
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Responsive */
@media (max-width: 768px) {
  .quick-view-inner {
    flex-direction: column;
  }
  .quick-view-images,
  .quick-view-info {
    max-width: 100%;
    padding-left: 0;
  }
  .box-khtt{
    grid-template-columns: repeat(2, 1fr);
  }
  .news-content{
    padding: 10px 0;
  }
}
