/* Tools variant — base styles in home-base.css, only overrides here */

/* ── Hero: slider fill remaining, banners fixed 280px ───────── */
.molla-hero-inner .molla-hero-slider {
  flex: 1;
}

.tools-3-banners {
  flex: 0 0 280px;
  width: 280px;
}

.tools-3-banners .molla-hero-banner {
  min-height: 0;
}

/* ── "Xem tất cả" link ──────────────────────────────────────── */
.tools-see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--molla-accent, #e5a000);
  text-decoration: none;
  white-space: nowrap;
}
.tools-see-all:hover { opacity: .8; }

/* ── Newsletter button accent ────────────────────────────────── */
.tools-nl-btn {
  background: var(--molla-accent, #e5a000) !important;
  border-color: var(--molla-accent, #e5a000) !important;
  color: #1a1a1a !important;
  font-weight: 700;
}

/* ── Promo banners ───────────────────────────────────────────── */
.tools-promo-wrap { padding: 24px 0; }

.tools-promo-item {
  position: relative;
  display: block;
  height: 200px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: 4px;
  text-decoration: none;
}

.tools-promo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
}

.tools-promo-caption {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
  z-index: 2;
}

.tools-promo-sub {
  color: var(--molla-accent, #e5a000);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}

.tools-promo-caption h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 14px;
}

.tools-promo-cta {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255, 255, 255, .5);
  padding-bottom: 2px;
  width: fit-content;
}

/* ── Wide banner ─────────────────────────────────────────────── */
.tools-wide-wrap { padding: 0 0 24px; }

.tools-wide-inner {
  display: block;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  overflow: hidden;
  text-decoration: none;
}

.tools-wide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
}

.tools-wide-caption {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 40px;
  z-index: 2;
}

.tools-wide-caption p { color: #fff; margin: 0; font-size: 14px; white-space: nowrap; }
.tools-wide-caption h3 { color: #fff; margin: 0; font-size: 20px; font-weight: 700; flex: 1; }

.tools-wide-cta {
  background: var(--molla-accent, #e5a000);
  color: #1a1a1a;
  padding: 10px 24px;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .tools-3-banners { flex: none; width: 100%; flex-direction: row; height: 120px; }
  .tools-wide-caption { flex-direction: column; align-items: flex-start; padding: 16px 20px; }
}

/* ── Product Item Border Override ────────────────────────────── */
.tls-home .molla-product-card,
.tools-home-variant .molla-product-card,
.molla-product-card {
  border: 1px solid #e5e5e5;
  padding: 12px;
  border-radius: 4px;
  background: #fff;
  transition: all 0.25s ease;
}

.tls-home .molla-product-card:hover,
.tools-home-variant .molla-product-card:hover,
.molla-product-card:hover {
  border-color: var(--molla-accent, #e5a000);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.molla-product-card .molla-product-img {
  margin-bottom: 12px;
}

/* ── 5 Column Grid Layout ────────────────────────────────────── */
@media (min-width: 1200px) {
  .col-xl-5ths {
    flex: 0 0 20%;
    max-width: 20%;
  }
}
