/* ================================================================
   F1GENZ THEME — homepage-enhanced.css.liquid
   Module: Scroll animations, CTA Strip, Collection Showcase,
           Enhanced Slider, Reviews, hover effects
   Yêu cầu: nhẹ, không gây render-blocking, dùng CSS-only animations
   ================================================================ */

/* ----------------------------------------------------------------
   1. SCROLL FADE-IN (Intersection Observer — thêm class js-fade)
   ---------------------------------------------------------------- */
.js-fade {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.js-fade.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-fade-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.js-fade-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-fade-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* ----------------------------------------------------------------
   2. HERO SLIDER — animation caption cải tiến
   ---------------------------------------------------------------- */
.main-slider {
  position: relative;
  overflow: hidden;
}
.main-slider .caption {
  pointer-events: none;
}
.main-slider .owl-item.active .caption {
  pointer-events: auto;
  animation: captionSlideUp 0.7s ease forwards;
}
@keyframes captionSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.caption-title {
  font-size: clamp(22px, 4vw, 52px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 16px rgba(0,0,0,0.35);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.caption-desc {
  font-size: clamp(14px, 1.8vw, 20px);
  color: rgba(255,255,255,0.92);
  margin-bottom: 20px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.25);
}
.caption .blue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #01656C;
  color: #fff;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.25s ease, transform 0.2s ease;
}
.caption .blue-btn:hover {
  background: #014c52;
  transform: translateY(-2px);
}
/* Slide arrows */
.main-slider-item-img { display: block; }
.main-slider-item-img img,
.main-slider-item-img picture { width: 100%; display: block; }
.main-slider-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 632;
  overflow: hidden;
  background: #f4f4f2;
}
.main-slider-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.main-slider-video-fallback {
  display: none !important;
}
.main-slider-video-wrap.is-video-error .main-slider-video {
  display: none;
}
.main-slider-video-wrap.is-video-error .main-slider-video-fallback {
  display: block !important;
}
.main-slider-video-wrap.is-video-error .main-slider-video-fallback img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.btn-slide-mobile {
  text-align: center;
  padding: 14px 0 4px;
}

/* ----------------------------------------------------------------
   3. CTA STRIP
   ---------------------------------------------------------------- */
.index-cta-strip {
  background: #f7f7f5;
  border-bottom: 1px solid #e8e8e5;
  padding: 18px 0;
}
.cta-strip-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cta-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 32px;
  border-right: 1px solid #e0e0dc;
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 300px;
  transition: background 0.2s ease;
}
.cta-strip-item:last-child { border-right: none; }
.cta-strip-item:hover { background: #eff5f5; }
.cta-strip-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}
.cta-strip-copy strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 2px;
}
.cta-strip-copy span {
  font-size: 12px;
  color: #666;
}
/* CTA strip mobile — handled by mobile-responsive.css */

/* ----------------------------------------------------------------
   4. COLLECTION SHOWCASE
   ---------------------------------------------------------------- */
.index-collection-showcase { margin: 0 0 8px; }

/* Hero */
.showcase-hero {
  position: relative;
  overflow: hidden;
}
.showcase-hero-link {
  display: block;
  position: relative;
}
.showcase-hero-link img {
  width: 100%;
  display: block;
  transition: transform 0.6s ease;
}
.showcase-hero-link:hover img {
  transform: scale(1.03);
}
.showcase-hero-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px 48px;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.showcase-eyebrow {
  font-size: clamp(20px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.showcase-btn {
  display: inline-block;
  padding: 10px 24px;
  background: #01656C;
  color: #fff !important;
  border-radius: 3px;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.25s ease, transform 0.2s ease;
}
.showcase-btn:hover {
  background: #014c52;
  transform: translateY(-2px);
}

/* Grid */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 4px;
}
.showcase-grid-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.showcase-grid-link {
  display: block;
  height: 100%;
}
.showcase-grid-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.showcase-grid-item:hover img {
  transform: scale(1.06);
}
.showcase-grid-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 20px 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(8px);
  transition: transform 0.35s ease;
}
.showcase-grid-item:hover .showcase-grid-caption {
  transform: translateY(0);
}
.showcase-grid-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.showcase-grid-btn {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease 0.05s;
}
.showcase-grid-item:hover .showcase-grid-btn {
  opacity: 1;
}

/* Showcase mobile — handled by mobile-responsive.css */

/* ----------------------------------------------------------------
   5. FEATURED PRODUCTS — cải tiến hover card
   ---------------------------------------------------------------- */
.index-featured { padding: 48px 0; }
.index-featured .index-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
  color: #111;
}
.featured-item {
  transition: transform 0.3s ease;
}
.featured-item:hover {
  transform: translateY(-4px);
}
.featured-item-img {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.featured-item-img .default,
.featured-item-img .hover {
  display: block;
  width: 100%;
  transition: opacity 0.4s ease;
}
.featured-item-img .hover {
  position: absolute;
  top: 0; left: 0;
  opacity: 0;
}
.featured-item:hover .featured-item-img .hover { opacity: 1; }
.featured-item:hover .featured-item-img .default { opacity: 0; }
.featured-item-title {
  padding: 10px 4px 4px;
  border-bottom: 1px solid #eee;
}
.featured-item-title .sub {
  font-size: 11px;
  color: #01656C;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 2px;
}
.featured-item-title .title {
  font-size: 14px;
  font-weight: 700;
  color: #111;
  display: block;
}
.featured-item-end {
  padding: 8px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.featured-item-end .title {
  font-size: 13px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.featured-item:hover .featured-item-end .title { color: #01656C; }

/* ----------------------------------------------------------------
   6. BANNER KHUYẾN MẠI (index-banner) — cải tiến
   ---------------------------------------------------------------- */
.index-banner { padding: 40px 0; background: #fafaf8; }
.banner-item {
  gap: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.banner-item:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.13);
  transform: translateY(-3px);
}
.banner-item .img { flex: 0 0 60%; }
.banner-item .img a { display: block; overflow: hidden; }
.banner-item .img img {
  width: 100%;
  display: block;
  transition: transform 0.55s ease;
}
.banner-item .img:hover img { transform: scale(1.04); }
.banner-item .banner-info {
  flex: 1;
  padding: 32px 36px;
  background: #fff;
  gap: 16px;
}
.banner-item .sub-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #01656C;
  letter-spacing: 1px;
}
.banner-item .title {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 700;
  color: #111;
  text-align: left !important;
  line-height: 1.3;
}
.banner-item .blue-btn.border {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  border: 2px solid #01656C;
  color: #01656C;
  border-radius: 3px;
  font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.2s;
}
.banner-item .blue-btn.border:hover {
  background: #01656C;
  color: #fff;
  transform: translateY(-2px);
}
/* Banner mobile — handled by mobile-responsive.css */

/* ----------------------------------------------------------------
   7. TESTIMONIALS / FEEDBACK — redesign
   ---------------------------------------------------------------- */
.index-feedback {
  padding: 56px 0;
  background: linear-gradient(135deg, #f0f9f9 0%, #fafaf8 100%);
}
.feedback-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 2px 12px rgba(1,101,108,0.08);
  background: #fff;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.feedback-item:hover {
  box-shadow: 0 8px 32px rgba(1,101,108,0.14);
  transform: translateY(-4px);
}
.feedback-item .info {
  flex: 1;
  padding: 40px 44px;
  gap: 20px;
}
.feedback-item .info .title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: #111;
  line-height: 1.3;
}
.feedback-item .info .title a {
  color: inherit;
  transition: color 0.2s;
}
.feedback-item .info .title a:hover { color: #01656C; }
.feedback-item .index-title {
  font-size: 15px;
  color: #444;
  line-height: 1.7;
  font-style: italic;
  position: relative;
  padding-left: 20px;
}
.feedback-item .index-title::before {
  content: '"';
  position: absolute;
  left: 0; top: -4px;
  font-size: 36px;
  color: #01656C;
  line-height: 1;
  opacity: 0.4;
}
.feedback-item .person {
  color: #01656C;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
  transition: opacity 0.2s;
}
.feedback-item .person:hover { opacity: 0.75; }
.feedback-item .img { flex: 0 0 40%; overflow: hidden; }
.feedback-item .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s ease;
}
.feedback-item:hover .img img { transform: scale(1.04); }
/* Stars decoration */
.feedback-stars {
  display: flex;
  gap: 3px;
  color: #f5a623;
  font-size: 16px;
  margin-bottom: 8px;
}
/* Feedback mobile — handled by mobile-responsive.css */

/* ----------------------------------------------------------------
   8. BLOG
   ---------------------------------------------------------------- */
.index-blog { padding: 52px 0; }
.index-blog .index-title {
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  margin-bottom: 28px;
  color: #111;
}
.index-blog .index-title a { color: inherit; transition: color 0.2s; }
.index-blog .index-title a:hover { color: #01656C; }
.index-blog-item {
  transition: transform 0.3s ease;
}
.index-blog-item:hover { transform: translateY(-4px); }
.index-blog-item .blog-img {
  overflow: hidden;
  border-radius: 3px;
  aspect-ratio: 4/3;
  padding-bottom: 0 !important; /* clear styles.css padding-bottom:86.6% conflict */
  position: relative;           /* ensure img-pos absolute child has correct parent */
}
.index-blog-item .blog-img img,
.index-blog-item .blog-img .img-pos {
  position: relative !important; /* override img-pos absolute — aspect-ratio handles height */
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.index-blog-item:hover .blog-img img { transform: scale(1.06); }
.index-blog-item .title {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  margin: 12px 0 8px;
  line-height: 1.4;
  transition: color 0.2s;
}
.index-blog-item:hover .title { color: #01656C; }
.index-blog-item .btn-more {
  font-size: 13px;
  color: #01656C;
  font-weight: 600;
  gap: 4px;
  transition: gap 0.2s ease;
}
.index-blog-item:hover .btn-more { gap: 8px; }

/* ----------------------------------------------------------------
   9. BANNER2 — Brand showcase
   ---------------------------------------------------------------- */
.index-banner2 { padding: 40px 0; }
.banner-item2 {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.banner-item2:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.banner-item2 .img { flex: 0 0 55%; overflow: hidden; }
.banner-item2 .img img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}
.banner-item2:hover .img img { transform: scale(1.04); }
.banner2-dot { display: flex; justify-content: center; gap: 16px; padding: 20px 0 8px; }
.dot-item {
  opacity: 0.45;
  transition: opacity 0.25s;
  cursor: pointer;
}
.dot-item.active, .dot-item:hover { opacity: 1; }
.dot-item img { height: 32px; width: auto; }

/* ----------------------------------------------------------------
   10. INSTAGRAM WALL
   ---------------------------------------------------------------- */
.index-instagram { padding: 48px 0; }
.index-instagram .index-title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: #111;
}
.instagram-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
}
.instagram-img a { display: block; height: 100%; }
.instagram-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.instagram-img:hover img { transform: scale(1.08); }
.instagram-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1,101,108,0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.instagram-img:hover::after { opacity: 1; }

/* ----------------------------------------------------------------
   11. ABOUT / BRAND VALUES
   ---------------------------------------------------------------- */
.index-about { padding: 48px 0; background: #f4faf9; }
.about-box {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.about-desc { font-size: 15px; color: #333; line-height: 1.8; margin-bottom: 20px; }
.about-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: #01656C;
  border-bottom: 2px solid #01656C;
  padding-bottom: 2px;
  transition: gap 0.2s, opacity 0.2s;
}
.about-link a:hover { gap: 10px; opacity: 0.8; }

/* ----------------------------------------------------------------
   12. GENERAL PRODUCT LOOP — hover improvements
   ---------------------------------------------------------------- */
.pro-item {
  transition: transform 0.3s ease;
}
.pro-item:hover { transform: translateY(-5px); }

/* ----------------------------------------------------------------
   13. RESPONSIVE UTILITIES
   ---------------------------------------------------------------- */
@media (max-width: 991px) {
  .index-featured { padding: 32px 0; }
  .index-blog { padding: 36px 0; }
  .index-feedback { padding: 36px 0; }
  .index-instagram { padding: 32px 0; }
  .index-about { padding: 32px 0; }
  .index-banner { padding: 28px 0; }
  .index-banner2 { padding: 28px 0; }
}
@media (max-width: 767px) {
  .main-slider-video-wrap {
    aspect-ratio: 750 / 940;
  }
  .banner2-dot .dot-item img { height: 22px; }
  .cta-strip-icon { font-size: 22px; }
  .showcase-grid-btn { opacity: 1; } /* always show on mobile */
}

/* ----------------------------------------------------------------
   14. CTA PROMO BANNER — Phần A của index-cta-wrap
   Full-width campaign banner với ảnh nền + text overlay + CTA button
   ---------------------------------------------------------------- */
.index-cta-wrap { display: block; }

.cta-promo-banner {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: #111;
}
.cta-promo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta-promo-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s ease;
}
.cta-promo-banner:hover .cta-promo-bg-img {
  transform: scale(1.04);
}
.cta-promo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.60) 0%,
    rgba(0, 0, 0, 0.25) 100%
  );
}
.cta-promo-banner .container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 24px;
}
.cta-promo-content {
  max-width: 600px;
}
.cta-promo-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.cta-promo-title {
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 0 0 16px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.cta-promo-sub {
  font-size: clamp(14px, 1.8vw, 18px);
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 28px;
}
.cta-promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #01656C;
  color: #fff;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(1, 101, 108, 0.4);
}
.cta-promo-btn:hover {
  background: #014c52;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(1, 101, 108, 0.5);
  color: #fff;
}


.blogs-list.flex-box {
    gap: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.cta-strip-item svg {
    width: 40px;
    height: 40px;
}
/* Responsive */
/* CTA promo banner mobile — handled by mobile-responsive.css */
