/*
Theme Name: VT Valves
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/


/* === SECTION BACKGROUND === */
.bestseller-section-custom {
    background: linear-gradient(155deg, #1f3763 0%, #c82924 130%);
    position: relative;
    padding: 50px 0 0 0;
    overflow: hidden;
    margin: 40px 0;
	border-radius: 20px !important;
}

/* Dot pattern overlay */
.bestseller-section-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,0.1) 2px, transparent 2px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: 1;
	border-radius: 20px !important;
}

/* === TITLE === */
.bestseller-title {
    color: #ffffff !important;
    font-size: 32px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 5px !important;
    text-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
    letter-spacing: 3px !important;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
	top: -25px !important;
}

/* === SLIDER CONTAINER === */
.bestseller-slider-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
}

.bestseller-slider-wrapper {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
}

.bestseller-slider-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 20px;
    padding: 20px 0;
}

/* === PRODUCT CARDS === */
.bestseller-product-card {
    flex: 0 0 240px;
    background: rgba(255,255,255,0.98);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

.bestseller-product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}

.bestseller-product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 1;
}

.bestseller-product-card:hover::before {
    transform: translateX(100%);
}

/* === PRODUCT IMAGE === */
.bestseller-product-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.bestseller-product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bestseller-product-card:hover .bestseller-product-image img {
    transform: scale(1.1);
}

/* === PRODUCT INFO === */
.bestseller-product-info {
    padding: 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.bestseller-product-title {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bestseller-product-price {
    font-size: 18px;
    font-weight: 700;
    color: #e74c3c;
    margin-bottom: 15px;
}

.bestseller-product-price .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    margin-right: 8px;
}

.bestseller-contact-btn {
    background: linear-gradient(45deg, #667eea, #764ba2) !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-block;
}

.bestseller-contact-btn:hover {
    background: linear-gradient(45deg, #764ba2, #667eea) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}


/* ====== RESPONSIVE MOBILE CHO SLIDER BÁN CHẠY ====== */
@media (max-width: 767px) {

  .bestseller-section-custom {
    margin: 20px 0;
    padding: 30px 0 10px;
    border-radius: 16px !important;
  }

  .bestseller-section-custom::before {
    border-radius: 16px !important;
  }

  .bestseller-title {
    font-size: 20px !important;
    letter-spacing: 1.5px !important;
    top: 0 !important;
    margin-bottom: 10px !important;
    padding: 0 15px;
  }

  .bestseller-slider-container {
    padding: 0 10px 15px;
  }

  .bestseller-slider-wrapper {
    overflow: visible; /* thấy lấp ló slide tiếp theo, tạo cảm giác kéo được */
  }

  .bestseller-slider-track {
    gap: 12px;
    padding: 10px 0 15px;
  }

  /* Mỗi card chiếm khoảng 75–80% màn hình để JS còn tính slide được */
  .bestseller-product-card {
    flex: 0 0 78%;
    max-width: 78%;
    border-radius: 16px;
  }

  .bestseller-product-image {
    height: 150px;
  }

  .bestseller-product-info {
    padding: 12px;
  }

  .bestseller-product-title {
    font-size: 13px;
  }

  .bestseller-product-price {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .bestseller-contact-btn {
    padding: 8px 16px !important;
    font-size: 11px !important;
  }

  /* Nút điều hướng trên mobile (nhiều theme hay bị lệch hoặc khó bấm) */
  .slider-btn {
    width: 30px;
    height: 30px;
    font-size: 18px;
    line-height: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .slider-btn.prev-btn {
    left: -2px;
  }

  .slider-btn.next-btn {
    right: -2px;
  }

  .slider-dots {
    margin-top: 5px;
  }
}






/* === NAVIGATION BUTTONS === */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slider-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.prev-btn {
    left: -30px;
}

.next-btn {
    right: -30px;
}

/* === DOTS INDICATOR === */
.slider-dots {
    display: none;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dots .dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dots .dot.active {
    background: white;
    transform: scale(1.3);
    box-shadow: 0 0 15px rgba(255,255,255,0.8);
}

.slider-dots .dot:hover {
    background: rgba(255,255,255,0.8);
    transform: scale(1.1);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .bestseller-product-card {
        flex: 0 0 220px;
    }
    
    .prev-btn {
        left: -25px;
    }
    
    .next-btn {
        right: -25px;
    }
}

@media (max-width: 768px) {
    .bestseller-section-custom {
        padding: 40px 0;
        margin: 20px 0;
		border-radius: 20px !important;
    }
    
    .bestseller-title {
        font-size: 24px !important;
        margin-bottom: 30px !important;
        letter-spacing: 2px !important;
    }
    
    .bestseller-product-card {
        flex: 0 0 200px;
    }
    
    .bestseller-product-image {
        height: 150px;
    }
    
    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .prev-btn {
        left: -15px;
    }
    
    .next-btn {
        right: -15px;
    }
}

@media (max-width: 480px) {
    .bestseller-title {
        font-size: 20px !important;
        letter-spacing: 1px !important;
    }
    
    .bestseller-product-card {
        flex: 0 0 180px;
    }
    
    .bestseller-product-image {
        height: 130px;
    }
    
    .bestseller-product-info {
        padding: 15px;
    }
    
    .bestseller-product-title {
        font-size: 13px;
    }
    
    .bestseller-product-price {
        font-size: 16px;
    }
    
    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* === LOADING ANIMATION === */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bestseller-product-card {
    animation: slideInUp 0.8s ease forwards;
}

.bestseller-product-card:nth-child(1) { animation-delay: 0.1s; }
.bestseller-product-card:nth-child(2) { animation-delay: 0.2s; }
.bestseller-product-card:nth-child(3) { animation-delay: 0.3s; }
.bestseller-product-card:nth-child(4) { animation-delay: 0.4s; }
.bestseller-product-card:nth-child(5) { animation-delay: 0.5s; }





.lp-footer {
  background: #12264d;
  color: #fff;
  padding: 30px 20px 0px 20px;
}
.lp-footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 20px;
  align-items: start;
}
.lp-footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}
.lp-footer-col ul {
  list-style: none;
  padding: 0;
}
.lp-footer-col ul li {
  margin: 5px 0;
}
.lp-footer-col ul li a {
  color: #39abe0;
  text-decoration: none;
}
.lp-footer .footer-logo {
  max-width: 120px;
  margin-bottom: 10px;
}
.lp-contact-form input,
.lp-contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}
.lp-contact-form button {
  background: #c40000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}




.lp-footer {
  background: #12264d;
  color: #fff;
  padding: 40px 20px;
}
.lp-footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 20px;
  align-items: start;
}
.lp-footer-col h4 {
  font-size: 16px;
  margin-bottom: 15px;
  color: #fff;
}
.lp-footer-col ul {
  list-style: none;
  padding: 0;
}
.lp-footer-col ul li {
  margin: 5px 0;
}
.lp-footer-col ul li a {
  color: #39abe0;
  text-decoration: none;
}
.lp-footer .footer-logo {
  max-width: 120px;
  margin-bottom: 10px;
}
.lp-contact-form input,
.lp-contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
}
.lp-contact-form button {
  background: #c40000;
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
}



    .lp-featurebar{
      --bg: #1f3763; --fg:#fff;
      background:#1f3763; color:var(--fg);
      font-family: Inter, Arial, sans-serif;
      padding:10px 0;
    }
    .lp-featurebar .wrap{
      max-width:1200px; margin:0 auto; padding:0 16px;
      display:flex; align-items:center;
      justify-content:space-between;
      gap:28px;
      overflow-x:auto; overflow-y:hidden;
      -webkit-overflow-scrolling:touch;
      scrollbar-width:none;
    }
    .lp-featurebar .wrap::-webkit-scrollbar{ display:none }

    .lp-featurebar .item{
      flex:0 0 auto;   /* không co giãn, giữ trên 1 hàng */
      display:flex; align-items:center; gap:10px;
      white-space:nowrap;
    }
    .lp-featurebar .icon{
      width:36px; height:36px; flex:0 0 36px;
      display:flex; align-items:center; justify-content:center;
      filter: brightness(0) invert(1);
    }
    .lp-featurebar .icon img{ width:100%; height:100%; object-fit:contain }
    .lp-featurebar .text{ line-height:1.2; padding-top: 20px; }
    .lp-featurebar .title{ font-size:14px; font-weight:800; text-transform:uppercase }
    .lp-featurebar .sub{ font-size:12px; opacity:.95 }






@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}