/* ==========================================================================
   ABMKeys Smart Products Row Widget
   ========================================================================== */

.abm-spr-widget {
  width: 100%;
}

/* Section header */
.abm-spr-widget .abm-sec-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}
.abm-spr-widget .abm-sec-title {
  font-family: 'Syne', sans-serif !important;
  font-size: 32px !important;
  font-weight: 800 !important;
  letter-spacing: -1.5px !important;
  color: #0F172A !important;
}
.abm-spr-widget .abm-sec-sub {
  font-size: 13px;
  color: #94A3B8;
  margin-top: 3px;
  font-family: 'DM Sans', sans-serif;
  min-height: 18px;
}

/* Scrollable track wrapper */
.abm-spr-track-wrap {
  position: relative;
  overflow: hidden;
}

/* Horizontal scroll track */
.abm-spr-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.abm-spr-track::-webkit-scrollbar { display: none; }

/* Product Card */
.abm-spr-card {
  background: #ffffff;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  flex-shrink: 0;
  width: 220px;
  scroll-snap-align: start;
  transition: all 0.22s;
  box-shadow: 0 1px 3px rgba(15,23,42,0.06);
  display: flex;
  flex-direction: column;
}
.abm-spr-card:hover {
  box-shadow: 0 12px 40px rgba(15,23,42,0.12);
  transform: translateY(-3px);
  border-color: transparent;
}

/* Card link */
.abm-spr-card-link {
  text-decoration: none;
  display: block;
  flex: 1;
}

/* Image area */
.abm-spr-img {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 40px;
}
.abm-spr-img.c-blue  { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); }
.abm-spr-img.c-red   { background: linear-gradient(135deg, #FFF5F5, #FEE2E2); }
.abm-spr-img.c-sky   { background: linear-gradient(135deg, #F0F9FF, #E0F2FE); }
.abm-spr-img.c-green { background: linear-gradient(135deg, #F0FDF4, #DCFCE7); }
.abm-spr-img.c-amber { background: linear-gradient(135deg, #FFFBEB, #FEF3C7); }

/* Thumbnail */
.abm-spr-thumb {
  width: 70px !important;
  height: 70px !important;
  object-fit: contain !important;
}

/* Sale badge */
.abm-spr-badge {
  position: absolute;
  top: 8px; right: 8px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px; font-weight: 700;
  font-family: 'DM Mono', monospace;
}
.badge-sale {
  background: #FEE2E2;
  color: #DC2626;
}

/* Card body */
.abm-spr-body {
  padding: 12px 14px 8px;
}
.abm-spr-brand {
  font-size: 10px; font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
  font-family: 'DM Mono', monospace;
}
.abm-spr-name {
  font-size: 13px; font-weight: 700;
  color: #1E293B;
  line-height: 1.35;
  margin-bottom: 3px;
}
.abm-spr-sub {
  font-size: 11px;
  color: #94A3B8;
}

/* Card footer */
.abm-spr-foot {
  padding: 10px 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #E2E8F0;
  margin-top: auto;
}
.abm-spr-price {
  font-family: 'Syne', sans-serif;
  font-size: 16px; font-weight: 800;
  color: #1B4FD8;
  line-height: 1;
}
.abm-spr-old {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px; font-weight: 400;
  color: #94A3B8;
  text-decoration: line-through;
  display: block;
  margin-bottom: 1px;
}
.abm-spr-price .woocommerce-Price-amount {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important; font-weight: 700 !important;
  color: #1B4FD8 !important;
}
.abm-spr-price .woocommerce-Price-currencySymbol {
  font-family: 'gulf-currencies', 'DM Sans', sans-serif !important;
}
.abm-spr-old .woocommerce-Price-amount {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 10px !important;
  color: #94A3B8 !important;
}

/* Add to Cart */
.abm-spr-add {
  padding: 6px 10px;
  background: #1B4FD8;
  color: white !important;
  border: none; border-radius: 7px;
  font-size: 11px; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  white-space: nowrap;
}
.abm-spr-add:hover {
  background: #1240b8;
  color: white !important;
}

/* Scroll Arrows */
.abm-spr-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid #E2E8F0;
  box-shadow: 0 2px 8px rgba(15,23,42,0.1);
  font-size: 20px; color: #475569;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
  transition: all 0.15s;
  line-height: 1;
}
.abm-spr-arrow:hover {
  background: #1B4FD8;
  color: white;
  border-color: #1B4FD8;
}
.abm-spr-prev { right: 0; }
.abm-spr-next { left: 0; }

/* Fade edges */
.abm-spr-track-wrap::before,
.abm-spr-track-wrap::after {
  content: '';
  position: absolute; top: 0; bottom: 0;
  width: 48px; z-index: 5;
  pointer-events: none;
}
.abm-spr-track-wrap::before {
  right: 0;
  background: linear-gradient(to left, rgba(255,255,255,0.9), transparent);
}
.abm-spr-track-wrap::after {
  left: 0;
  background: linear-gradient(to right, rgba(255,255,255,0.9), transparent);
}

/* Responsive */
@media (max-width: 768px) {
  .abm-spr-card { width: 180px; }
  .abm-spr-img  { height: 90px; }
  .abm-spr-name { font-size: 12px; }
  .abm-spr-arrow { display: none; }
}
