


/************* Wrapper for the list */

.deals-title .keyword-highlight {
    color: #DC0E40; 
    font-weight: bold; 
}

.deals-grid {
  display: flex;
  flex-direction: column;
  gap: 0;              /* no spacing between cards */
  margin: 0;
  padding: 0;
  align-items: flex-start;   /* ✅ left-align children on desktop */
}

/* Each deal card is now an <a> */
.deal-card,
.deal-card:link,
.deal-card:visited,
.deal-card:hover,
.deal-card:active,
.deal-card:focus {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 0;
  box-sizing: border-box;
  width: 100%;
  line-height: 1;
  text-decoration: none !important;
  color: inherit !important;
  margin: 0;
}

/* Hover effect */
.deal-card:hover {
  background: #f9f9f9;
  border-color: #ccc;
  cursor: pointer;
}

/* Reset link styles inside the card */
.deal-card * {
  text-decoration: none !important;
  color: inherit !important;
}

/* Left: image with badge overlay */
.deal-image {
  flex: 0 0 80px;
  text-align: center;
  position: relative;
}
.deal-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
.discount-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #DC0E40;
  color: #fff !important;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 3px;
   transform: rotate(-45deg); /* diagonal slash */
  z-index: 2;
  text-decoration: none !important;
}






/* Middle: brand/title only */
.deal-brand {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  font-weight: bold;
  color: #222 !important;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  margin: 0;
  padding: 0;
}

/* Right: prices (top) + button (bottom) */
.deal-right {
  flex: 0 0 100px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.deal-prices {
  line-height: 1.2;
}
.deal-prices .list-price {
  display: block;
  font-size: 12px;
  text-decoration: line-through !important;
  color: #888 !important;
}
.deal-prices .deal-price {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #008000    !important;
}


.deal-button {
  width: 100%;
  padding: 6px 12px;
  font-size: 13px;
 /* background: #DC0E40;*/
 background: #000;
  color: #fff !important;
  border-radius: 0;
  text-align: center;
  text-decoration: none !important;
  margin-top: 8px;   /* ✅ space between prices and button */
}


.deal-card:hover .deal-button {
  background: #005bb5;
  color: #fff !important;
}

/* Title above the list */
.deals-title {
  text-align: left;
  font-family: Arial, sans-serif;
  /*color: #333 !important;*/
  margin: 0 0 6px;
}

/* Mobile tweaks */
@media (max-width: 480px) {
  .deal-card {
    gap: 4px;
    padding: 4px;
    width: 100%;
  }

  .deal-image {
    flex: 0 0 60px;
    width: 60px;
  }
  .deal-image img {
    width: 60px;
    height: auto;
  }
  .discount-badge {
    font-size: 9px;
    padding: 1px 3px;
    top: 2px;
    left: 2px;
  }

  .deal-brand {
    font-size: 12px;
    line-height: 1.3;
  }

  .deal-right {
    flex: 0 0 80px;
  }
  .deal-prices .list-price { font-size: 11px; }
  .deal-prices .deal-price { font-size: 13px; }
  .deal-button {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* Desktop tweak */
@media (min-width: 768px) {
  .deals-grid .deal-card {
    width: 70%;   /* ✅ left-aligned narrower cards */
    margin: 0;
  }
}
