/**
 * Featured Products Stylesheet - DAT Solar Architecture
 * Theme: Future Energy
 * Version: 2.1.0
 */

.future-featured-section {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  padding: 60px 0 50px 0;
  background-color: #ffffff;
  box-sizing: border-box;
}

.future-featured-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header */
.future-featured-header {
  margin-bottom: 28px;
}

.future-featured-title {
  font-size: 32px;
  font-weight: 800;
  text-transform: uppercase;
  color: #2b323b;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.2;
}

/* Main Layout */
.future-featured-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* -------------------------------------------------------------------------
   LEFT COLUMN: Category Boxes (2x2 Grid)
   ------------------------------------------------------------------------- */
.future-featured-cats-grid {
  flex: 0 0 380px;
  width: 380px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 175px 175px;
  gap: 16px;
  align-self: flex-start;
}

.future-cat-box {
  height: 175px;
  background-color: #f4f6f9;
  border-radius: 8px;
  padding: 18px 16px 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  box-sizing: border-box;
}

.future-cat-box:hover {
  background-color: #eaf0f8;
  border-color: #cbdcf2;
}

.future-cat-box.is-active {
  background-color: #ffffff;
  border-color: #0057a8;
  box-shadow: 0 8px 24px rgba(0, 87, 168, 0.12);
}

.future-cat-box .cat-box-title {
  font-size: 15px;
  font-weight: 600;
  color: #2b323b;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.future-cat-box.is-active .cat-box-title {
  color: #0057a8;
  font-weight: 700;
}

.future-cat-box .cat-box-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.future-cat-box .cat-box-icon {
  width: auto;
  max-width: 110px;
  height: 85px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.future-cat-box .cat-box-icon .cat-real-thumb {
  max-width: 105px;
  max-height: 85px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}

.future-cat-box .cat-box-icon svg {
  width: 58px;
  height: 58px;
  transition: transform 0.25s ease;
}

.future-cat-box:hover .cat-box-icon .cat-real-thumb,
.future-cat-box:hover .cat-box-icon svg {
  transform: scale(1.08);
}

.future-cat-box .cat-box-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8896a6;
  text-decoration: none;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.future-cat-box.is-active .cat-box-arrow,
.future-cat-box:hover .cat-box-arrow {
  color: #0057a8;
  transform: translateX(3px);
}

/* -------------------------------------------------------------------------
   RIGHT COLUMN: Products Panes & Cards (2x2 Grid)
   ------------------------------------------------------------------------- */
.future-featured-panes {
  flex: 1;
  min-width: 0;
  position: relative;
}

.future-products-pane {
  display: none;
}

.future-products-pane.is-active {
  display: block;
  animation: futureFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes futureFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Slick Slider Wrapper */
.future-products-slick-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.future-products-slick-slider {
  position: relative;
  margin-bottom: 0;
  width: 100%;
}

.future-products-slick-slider .slick-list {
  overflow: hidden;
  padding: 2px 2px 6px 2px;
  margin: -2px -2px -6px -2px;
}

.future-products-slick-slider .slick-track {
  display: flex !important;
  align-items: stretch;
}

.future-products-slick-slider .future-slider-slide {
  height: auto;
  outline: none;
  width: 100% !important;
  box-sizing: border-box;
}

.future-products-2x2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  gap: 14px;
  width: 100%;
  box-sizing: border-box;
}

/* Product Card */
.future-featured-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-sizing: border-box;
  display: flex;
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

.future-featured-card:hover {
  border-color: #0057a8;
  box-shadow: 0 10px 25px rgba(0, 87, 168, 0.1);
  transform: translateY(-3px);
}

.future-featured-card-inner {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 18px;
  text-decoration: none !important;
  color: inherit !important;
  width: 100%;
  box-sizing: border-box;
}

/* Card Thumbnail Column */
.future-featured-card .card-thumb-col {
  flex: 0 0 105px;
  max-width: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.future-featured-card .card-img-wrapper {
  width: 100%;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.future-featured-card .card-img-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.future-featured-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Card Info Column */
.future-featured-card .card-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.future-featured-card .card-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.25;
  margin-bottom: 4px;
}

.future-featured-card .card-product-title {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: #4a5568;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.future-featured-card:hover .card-product-title {
  color: #0057a8;
}

.future-featured-card .card-specs-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.future-featured-card .spec-row {
  font-size: 13px;
  color: #718096;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.future-featured-card .spec-label {
  color: #718096;
  margin-right: 4px;
}

.future-featured-card .spec-val {
  color: #1a202c;
  font-weight: 700;
}

.future-no-featured {
  padding: 40px;
  text-align: center;
  background-color: #f8fafc;
  border-radius: 8px;
  color: #64748b;
}

/* -------------------------------------------------------------------------
   CLEAN BOTTOM PAGINATION BAR (Arrows + Dots)
   ------------------------------------------------------------------------- */
.future-slider-pagination-row {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 14px !important;
  margin-top: 22px !important;
  width: 100% !important;
}

/* Custom Previous & Next Circular Buttons */
.future-slick-prev-btn,
.future-slick-next-btn {
  all: unset !important;
  box-sizing: border-box !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #374151 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  text-shadow: none !important;
}

.future-slick-prev-btn svg,
.future-slick-next-btn svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
}

.future-slick-prev-btn:hover,
.future-slick-next-btn:hover {
  background: #0057a8 !important;
  border-color: #0057a8 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
  box-shadow: 0 4px 12px rgba(0, 87, 168, 0.25) !important;
}

.future-slick-prev-btn.slick-disabled,
.future-slick-next-btn.slick-disabled {
  opacity: 0.3 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
  border-color: #e5e7eb !important;
}

/* Slick Dots in Pagination Row */
.future-slider-dots-container .slick-dots {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.future-slider-dots-container .slick-dots li {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
  list-style: none !important;
}

.future-slider-dots-container .slick-dots li button {
  width: 10px !important;
  height: 10px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: #cbd5e1 !important;
  border: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  display: block !important;
}

.future-slider-dots-container .slick-dots li button:before {
  display: none !important;
}

.future-slider-dots-container .slick-dots li.slick-active button {
  background: #0057a8 !important;
  width: 26px !important;
  border-radius: 10px !important;
}

/* -------------------------------------------------------------------------
   RESPONSIVE DESIGN
   ------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .future-featured-layout {
    flex-direction: column;
  }
  .future-featured-cats-grid {
    flex: auto;
    width: 100%;
    grid-template-rows: auto;
  }
  .future-cat-box {
    height: auto;
    min-height: 145px;
  }
}

@media (max-width: 768px) {
  .future-featured-section {
    padding: 40px 0 35px 0;
    overflow-x: hidden;
  }
  .future-featured-container {
    padding: 0 14px;
  }
  .future-featured-title {
    font-size: 22px;
    text-align: center;
  }
  .future-featured-cats-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 10px;
  }
  .future-cat-box {
    height: auto;
    padding: 14px 12px 10px 12px;
    min-height: 120px;
  }
  .future-cat-box .cat-box-title {
    font-size: 13px;
  }
  .future-cat-box .cat-box-icon {
    width: 65px;
    height: 52px;
  }
  .future-cat-box .cat-box-icon .cat-real-thumb {
    max-width: 65px;
    max-height: 52px;
  }
  /* -----------------------------------------------
     Products pane: full width, single column
  ----------------------------------------------- */
  .future-featured-panes {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
  }
  .future-products-slick-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .future-products-2x2-grid {
    grid-template-columns: 1fr;  /* 1 cột trên mobile */
    gap: 10px;
    width: 100%;
    max-width: 100%;
  }
  /* Card: row layout với thumb nhỏ hơn */
  .future-featured-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
  .future-featured-card-inner {
    padding: 12px 14px;
    gap: 14px;
    width: 100%;
    box-sizing: border-box;
    min-width: 0;
  }
  .future-featured-card .card-thumb-col {
    flex: 0 0 72px;
    max-width: 72px;
    min-width: 0;
  }
  .future-featured-card .card-img-wrapper {
    height: 72px;
  }
  /* Ngăn text tràn */
  .future-featured-card .card-info-col {
    min-width: 0;
    overflow: hidden;
  }
  .future-featured-card .card-brand-title {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .future-featured-card .card-product-title {
    font-size: 11.5px;
    -webkit-line-clamp: 2;
  }
  .future-featured-card .spec-row {
    font-size: 11.5px;
  }
  .future-slider-pagination-row {
    margin-top: 14px !important;
  }
  .future-slick-prev-btn,
  .future-slick-next-btn {
    width: 32px !important;
    height: 32px !important;
  }
}
