/* 
  HD-INOX Homepage Specific Styles (trang-chu.css)
*/

/* 4. HERO SECTION (Swiper) */
.hero-section {
  position: relative;
  height: 500px;
  background: #f0f2f5;
  overflow: hidden;
}

.heroSwiper,
.swiper-wrapper,
.swiper-slide {
  height: 100%;
  width: 100%;
}
.hero-slide-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-bg-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: white;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  z-index: 2;
  display: flex;
  align-items: center;
  padding-left: calc((100% - 1240px) / 2 + 15px);
}

.hero-content {
  max-width: 500px;
  padding-right: 50px;
}

.hero-title {
  font-size: 32px;
  font-weight: 600;
  color: var(--blue-primary);
  line-height: 1.85;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.hero-btn {
  display: inline-block;
  background: var(--blue-primary);
  color: white;
  padding: 12px 30px;
  font-weight: 700;
  border-radius: 4px;
  margin-top: 20px;
}

.hero-info li {
  margin-bottom: 8px;
  padding-left: 15px;
  position: relative;
  font-size: 13px;
  color: #555;
}
.hero-info li::before {
  content: "•";
  color: var(--cyan-accent);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.hero-services {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}
.h-service-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.h-icon-large {
  width: 50px;
  height: 50px;
  background: var(--blue-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(0, 14, 82, 0.3);
  flex-shrink: 0;
}

.hero-contact-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: transparent;
  z-index: 5;
}
.contact-bar-content {
  background: var(--blue-primary);
  color: white;
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding: 15px 40px 15px 20px;
  clip-path: polygon(0 0, 95% 0, 100% 100%, 0% 100%);
  min-width: 400px;
}
.c-phone {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.c-sub {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.9;
}

/* 5. CATEGORIES - Circular */
.section-heading {
  font-size: 24px;
  font-weight: 800;
  color: #333;
  margin-bottom: 30px;
  text-transform: uppercase;
  text-align: center;
}
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
  padding-bottom: 10px;
}
.section-header-flex .section-heading {
  margin-bottom: 0;
  text-align: left;
  border-bottom: 3px solid var(--blue-primary);
  padding-bottom: 7px;
  margin-bottom: -12px;
}

.categories-grid {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.cat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 120px;
  text-align: center;
  color: #333;
}
.cat-img-box {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #eee;
  padding: 3px;
  transition: all 0.3s;
}
.cat-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.cat-item:hover .cat-img-box {
  border-color: var(--blue-primary);
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.cat-title {
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s;
}
.cat-item:hover .cat-title {
  color: var(--blue-primary);
}

/* 6. FLASH SALE MINIMAL */
.p-card-minimal {
  background: white;
  width: 100%;
  position: relative;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  /* border-radius: 8px; */
  overflow: hidden;
  border: 1px solid transparent;
}
.p-card-minimal:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 14, 82, 0.1);
  border-color: #eee;
}
.discount-badge-grey {
  position: absolute;
  right: 0px;
  background: #555;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  z-index: 2;
  /* border-radius: 4px; */
}
.p-img-box {
  width: 100%;
  /* height: 250px; */
  background: #f4f4f4;
  margin-bottom: 15px;
  overflow: hidden;
}
.p-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  /* padding: 20px; */
}
.p-card-minimal:hover .p-img-box img {
  transform: scale(1.1);
}
.product-link {
  display: block;
  margin-bottom: 10px;
}

.card-title-p {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.4;

  width: 100%;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;

  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.p-info {
  padding: 0 10px 15px;
}
.p-name {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 8px;
  line-height: 1.5;
  height: 63px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.p-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.p-price-cur {
  font-size: 16px;
  font-weight: 700;
  color: #000;
}
.p-price-old {
  font-size: 14px;
  color: #aaa;
  text-decoration: line-through;
}

/* 7. CUSTOM PILL TABS */
.nav-pills-container {
  display: inline-flex;
  background-color: #e9eff5;
  padding: 5px;
  border-radius: 50px;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-pill-item {
  padding: 10px 24px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 14px;
  color: #3f4b5a;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}
.nav-pill-item.active {
  background-color: var(--blue-primary);
  color: white;
  box-shadow: 0 4px 10px rgba(0, 14, 82, 0.2);
}

/* 8. BLOG SECTION */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.b-card {
  border: 1px solid #b4c2b9;
  padding: 24px;
  background: white;
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.b-card:hover {
  border-color: var(--blue-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
.b-img-box {
  width: 100%;
  height: 240px;
  overflow: hidden;
  margin-bottom: 20px;
}
.b-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.b-card:hover .b-img-box img {
  transform: scale(1.05);
}
.b-cat {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.b-title {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 56px;
}
.b-desc {
  font-size: 14px;
  color: #777;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.b-meta {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

/* 9. CONSULTATION FORM */
.consult-section {
  padding: 0;
  background: #f0f6ff;
}
.consult-split-layout {
  display: flex;
  min-height: 500px;
}
.consult-left {
  flex: 1;
  position: relative;
  background: #333;
}
.consult-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.consult-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px;
  color: white;
  background: rgba(0, 0, 0, 0.3);
}
.consult-overlay h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.consult-right {
  flex: 1;
  padding: 60px 80px;
  background: #f4f9ff;
}
.consult-right h3 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin-bottom: 30px;
}
.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 0px;
}
.form-group {
  flex: 1;
  margin-bottom: 20px;
}
.c-input-modern {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
}
.btn-submit-modern {
  flex: 1;
  padding: 14px;
  background: #003293;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
}
.btn-call-modern {
  flex: 1;
  padding: 14px;
  background: #b2c9e6;
  color: #333;
  font-weight: 700;
  text-transform: uppercase;
  border: none;
  border-radius: 4px;
}

/* --- RESPONSIVE ADJUSTMENTS --- */

@media (max-width: 1200px) {
  .hero-overlay {
    padding-left: 30px;
  }
}

@media (max-width: 991px) {
  .hero-overlay {
    width: 80%;
  }
  .categories-grid {
    gap: 25px;
  }
  .consult-split-layout {
    flex-direction: column;
  }
  .consult-overlay {
    padding: 40px;
    position: relative;
    background: var(--blue-primary);
  }
  .consult-left {
    min-height: 300px;
  }
  .consult-right {
    padding: 40px;
  }
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section-wrapper {
    padding: 40px 0;
  }
  .section-heading {
    font-size: 24px !important;
  }

  /* Hero */
  .hero-section {
    height: auto;
    display: flex;
    flex-direction: column;
  }
  .hero-bg-image {
    position: relative;
    width: 100%;
    height: 250px;
    order: 1;
  }
  .hero-overlay {
    position: relative;
    width: 100%;
    clip-path: none;
    padding: 30px 20px;
    order: 2;
  }
  .hero-content {
    max-width: 100%;
    padding-right: 0;
  }
  .hero-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .hero-services {
    flex-direction: column;
    gap: 20px;
  }
  .contact-bar-content {
    min-width: 100%;
    padding: 15px 20px;
    gap: 20px;
    clip-path: none;
    justify-content: center;
  }

  /* Categories */
  .categories-grid {
    gap: 15px;
  }
  .cat-item {
    width: 100px;
  }
  .cat-img-box {
    width: 80px;
    height: 80px;
  }

  /* Tabbed Products */
  .nav-pills-container {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 5px 10px;
    width: calc(100% + 30px);
    margin-left: -15px;
    -webkit-overflow-scrolling: touch;
  }
  .nav-pill-item {
    padding: 8px 16px;
    font-size: 13px;
  }

  /* Section Headers */
  .section-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .section-header-flex .section-heading {
    text-align: center !important;
    border-bottom: none;
    margin-bottom: 0;
  }
  .section-header-flex div {
    text-align: center !important;
  }

  /* Consultant Form */
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .consult-overlay h2 {
    font-size: 28px;
  }
  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .btn-submit-modern,
  .btn-call-modern {
    width: 100%;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 20px;
  }
  .cat-item {
    width: 30%;
  } /* 3 items per row approx */
  .p-img-box {
    height: 180px;
  }
  .p-name {
    font-size: 13px;
    height: 58px;
  }
  .p-price-cur {
    font-size: 15px;
  }
}
