/* ==========================================================================
   ABMKeys Widgets — Shared CSS
   ========================================================================== */

/* --- Section header --- */
.abm-sec-hd {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 24px !important;
}
.abm-sec-title {
  font-family: 'Syne', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -1.5px !important;
  color: var(--abm-ink) !important;
  margin: 0 !important;
}
.abm-sec-title span,
.abm-sec-title em {
  color: var(--abm-blue) !important;
  font-style: normal !important;
}
.abm-see-all {
  font-size: 13px !important;
  color: var(--abm-blue) !important;
  font-weight: 600 !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: letter-spacing 0.2s !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.abm-see-all:hover {
  letter-spacing: 0.02em !important;
  color: var(--abm-blue-dark) !important;
}

/* --- Stats bar --- */
.abm-stats-bar {
  display: inline-flex !important;
  border: 1px solid var(--abm-border);
  border-radius: 14px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--abm-shadow-sm);
  overflow: hidden;
}
.abm-stat {
  padding: 16px 28px;
  border-left: 1px solid var(--abm-border);
  text-align: center;
}
.abm-stat:first-child {
  border-left: none;
}
.abm-stat-n {
  font-family: 'Syne', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--abm-ink);
  letter-spacing: -0.5px;
  line-height: 1;
  display: block;
}
.abm-stat-n .u {
  color: var(--abm-blue);
  font-size: 16px;
}
.abm-stat-l {
  font-size: 11px;
  color: var(--abm-muted);
  margin-top: 3px;
  display: block;
  font-family: 'DM Sans', sans-serif;
}

/* --- Trust strip --- */
.abm-trust-strip {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  border-top: 1px solid var(--abm-border) !important;
  background: var(--abm-white) !important;
}
.abm-trust-item {
  padding: 32px 36px !important;
  border-left: 1px solid var(--abm-border) !important;
  display: flex !important;
  gap: 14px !important;
  align-items: flex-start !important;
}
.abm-trust-item:first-child {
  border-left: none !important;
}
.abm-trust-ico-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--abm-blue-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.abm-trust-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--abm-ink);
  margin-bottom: 4px;
  font-family: 'DM Sans', sans-serif;
}
.abm-trust-desc {
  font-size: 12px;
  color: var(--abm-body);
  line-height: 1.6;
  font-family: 'DM Sans', sans-serif;
}

/* --- Brands Widget — Card Grid --- */
.abm-brands-widget { width: 100%; }

/* Grid layout */
.abm-brands-widget.layout-grid .abm-brands-grid {
  display: grid !important;
  gap: 12px !important;
}
.abm-brands-grid.cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.abm-brands-grid.cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
.abm-brands-grid.cols-5 { grid-template-columns: repeat(5, 1fr) !important; }
.abm-brands-grid.cols-6 { grid-template-columns: repeat(6, 1fr) !important; }

/* Row layout */
.abm-brands-widget.layout-row .abm-brands-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  align-items: center !important;
}

/* Brand card */
.abm-brand-card {
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 14px !important;
  padding: 20px 16px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  box-shadow: 0 1px 3px rgba(15,23,42,0.05) !important;
  cursor: pointer !important;
}
.abm-brand-card:hover {
  border-color: #1B4FD8 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 24px rgba(27,79,216,0.1) !important;
}

/* Brand icon */
.abm-brand-ico {
  width: 52px !important; height: 52px !important;
  border-radius: 12px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 24px !important; flex-shrink: 0 !important;
}

/* Brand name */
.abm-brand-name {
  font-family: 'Syne', sans-serif !important;
  font-size: 14px !important; font-weight: 800 !important;
  color: #0F172A !important; letter-spacing: -0.3px !important;
  text-align: center !important;
}

/* Product count */
.abm-brand-count {
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important; color: #94A3B8 !important;
  text-align: center !important; margin-top: -4px !important;
}

/* Row layout brand pill (alternate style) */
.abm-brands-widget.layout-row .abm-brand-card {
  flex-direction: row !important;
  padding: 8px 16px !important;
  border-radius: 50px !important;
  gap: 8px !important;
  transform: none !important;
}
.abm-brands-widget.layout-row .abm-brand-card:hover {
  transform: none !important;
  background: #EFF4FF !important;
  border-color: #1B4FD8 !important;
}
.abm-brands-widget.layout-row .abm-brand-ico {
  width: 24px !important; height: 24px !important;
  font-size: 13px !important; border-radius: 5px !important;
}
.abm-brands-widget.layout-row .abm-brand-count { display: none !important; }

/* --- Promo banner --- */
.abm-promo-banner {
  padding: 44px 60px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 32px !important;
  border-radius: 14px !important;
}
.abm-promo-left h2 {
  font-family: 'Syne', sans-serif !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  color: white !important;
  letter-spacing: -0.5px !important;
  margin-bottom: 6px !important;
}
.abm-promo-left p {
  font-size: 14px !important;
  color: rgba(255,255,255,0.7) !important;
  max-width: 420px !important;
  margin: 0 !important;
}
.abm-promo-btn {
  padding: 13px 30px !important;
  background: white !important;
  color: var(--abm-blue) !important;
  border: none !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  font-family: 'DM Sans', sans-serif !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
  flex-shrink: 0 !important;
  text-decoration: none !important;
  display: inline-block !important;
  transition: transform 0.15s, box-shadow 0.15s !important;
}
.abm-promo-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2) !important;
  color: var(--abm-blue) !important;
}

/* --- Featured Banner (Widget 8) --- */
.abm-feat-banner {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  border-radius: 20px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08) !important;
  position: relative !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Elementor column must not constrain */
.elementor-widget-abmkeys-featured-banner .elementor-widget-container {
  width: 100% !important;
}

.abm-feat-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(ellipse at 20% 50%, rgba(27,79,216,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.abm-feat-banner::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(27,79,216,0.09) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 70% at 20% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 20% 50%, black, transparent);
  pointer-events: none;
}
.abm-fb-left {
  padding: 52px 56px !important;
  position: relative !important;
  z-index: 1 !important;
}
.abm-fb-tag {
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  color: #1B4FD8 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  margin-bottom: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.abm-fb-tag::before {
  content: '';
  width: 20px;
  height: 2px;
  background: #1B4FD8;
}
.abm-fb-title {
  font-family: 'Syne', sans-serif !important;
  font-size: 34px !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
  line-height: 1.05 !important;
  margin-bottom: 12px !important;
  color: #0F172A !important;
  display: block !important;
}
.abm-fb-sub {
  font-size: 14px !important;
  color: #475569 !important;
  line-height: 1.7 !important;
  margin-bottom: 28px !important;
}
.abm-fb-btn {
  display: inline-block !important;
  padding: 12px 28px !important;
  background: #1B4FD8 !important;
  color: white !important;
  border-radius: 9px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: 'DM Sans', sans-serif !important;
  transition: background 0.2s !important;
  box-shadow: 0 4px 14px rgba(27,79,216,0.25) !important;
  text-decoration: none !important;
}
.abm-fb-btn:hover {
  background: #1240b8 !important;
  color: white !important;
}
.abm-fb-right {
  background: #F8FAFC !important;
  border-right: 1px solid #E2E8F0 !important;
  padding: 36px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.abm-fb-r-label {
  font-family: 'DM Mono', monospace !important;
  font-size: 10px !important;
  color: #94A3B8 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  margin-bottom: 4px !important;
}
.abm-fb-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 0 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  cursor: pointer !important;
  text-decoration: none !important;
}
.abm-fb-row:last-child {
  border-bottom: none !important;
}
.abm-fb-row:hover .abm-fb-row-name {
  color: #1B4FD8 !important;
}
.abm-fb-row-ico {
  width: 38px !important;
  height: 38px !important;
  border-radius: 9px !important;
  flex-shrink: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  background: #EFF4FF !important;
}
.abm-fb-row-info {
  flex: 1 !important;
  min-width: 0 !important;
}
.abm-fb-row-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0F172A !important;
  transition: color 0.15s !important;
}
.abm-fb-row-sub {
  font-size: 11px !important;
  color: #94A3B8 !important;
  margin-top: 1px !important;
}
.abm-fb-row-price {
  font-family: 'Syne', sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  color: #1B4FD8 !important;
  white-space: nowrap !important;
  margin-right: auto !important;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .abm-feat-banner {
    grid-template-columns: 1fr !important;
  }
  .abm-fb-left {
    padding: 32px 24px !important;
  }
  .abm-fb-right {
    padding: 24px !important;
    border-right: none !important;
    border-top: 1px solid var(--abm-border) !important;
  }
  .abm-trust-strip {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .abm-trust-item {
    border-bottom: 1px solid var(--abm-border) !important;
  }
  .abm-brands-grid.cols-4,
  .abm-brands-grid.cols-5,
  .abm-brands-grid.cols-6 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .abm-promo-banner {
    flex-direction: column !important;
    text-align: center !important;
    padding: 32px 24px !important;
  }
  .abm-promo-left p {
    max-width: 100% !important;
  }
  .abm-stats-bar {
    flex-wrap: wrap !important;
  }
  .abm-stat {
    flex: 1 1 45% !important;
    border-bottom: 1px solid var(--abm-border);
  }
  .abm-sec-hd {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .abm-trust-strip {
    grid-template-columns: 1fr !important;
  }
  .abm-trust-item {
    border-left: none !important;
  }
  .abm-brands-grid.cols-3,
  .abm-brands-grid.cols-4,
  .abm-brands-grid.cols-5,
  .abm-brands-grid.cols-6 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
