/* BuyForLess Finder Pro — Frontend CSS v4.0 */
:root {
  --bfl-blue:       #2B6CB8;
  --bfl-blue-dark:  #1e4f8a;
  --bfl-green:      #3DAA4A;
  --bfl-green-dark: #2d8438;
  --bfl-gold:       #f59e0b;
  --bfl-gray:       #6b7280;
  --bfl-light:      #f8f8f8;
  --bfl-border:     #dde6f0;
}

/* ── Category section ── */
.dc-category-section {
  margin: 2.5rem 0;
}

.dc-category-header {
  margin-bottom: 1.2rem;
  border-bottom: 3px solid var(--bfl-blue);
  padding-bottom: 0.6rem;
}

.dc-category-title {
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  color: var(--bfl-blue);
}

/* ── Grid ── */
.dc-product-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}

/* ── Card ── */
.dc-product-card {
  border: 1px solid var(--bfl-border);
  background: #fff;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
  overflow: hidden;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
}

.dc-product-card:hover {
  box-shadow: 0 6px 20px rgba(43,108,184,0.15);
  transform: translateY(-3px);
}

/* ── Card link wrapper ── */
.dc-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-decoration: none !important;
  color: inherit !important;
}

/* ── Badge — upper left, always visible ── */
.dc-badge {
  position: absolute;
  top: 10px;
  left: 0;
  background: var(--bfl-green);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 3px 10px;
  z-index: 3;
  border-radius: 0 2px 2px 0;
  opacity: 1;
  visibility: visible;
  display: block;
}

/* ── Image area ── */
.dc-img-wrap {
  background: var(--bfl-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.dc-product-img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  padding: 0.8rem;
  display: block;
}

.dc-product-emoji {
  font-size: 3.5rem;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* ── Product info ── */
.dc-product-info {
  padding: 0.9rem 1rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ── Rating stars ── */
.dc-rating {
  font-size: 0.78rem;
  color: var(--bfl-gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

.dc-rating span {
  color: #666;
  font-size: 0.72rem;
}

/* ── Product name ── */
.dc-product-name {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1a1a1a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Price row ── */
.dc-product-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}

/* Current sale price — green, large */
.dc-cur-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bfl-green);
  line-height: 1;
}

/* Was/original price — 75% of current price size, strikethrough */
.dc-was {
  font-size: 1.05rem; /* 75% of 1.4rem */
  color: #aaa;
  text-decoration: line-through;
  font-weight: 400;
}

/* ── You save pill ── */
.dc-savings {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bfl-green);
  background: rgba(61,170,74,0.08);
  border: 1px solid rgba(61,170,74,0.2);
  padding: 2px 8px;
  border-radius: 2px;
  display: inline-block;
  align-self: flex-start;
}

/* ── Buy For Less button ── */
.dc-btn-deal {
  display: block;
  width: 100%;
  background: var(--bfl-green);
  color: #fff;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 11px 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: auto;
  border-radius: 0 0 4px 4px;
}

.dc-product-card:hover .dc-btn-deal {
  background: var(--bfl-green-dark);
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .dc-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

@media (max-width: 480px) {
  .dc-product-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .dc-category-title { font-size: 1.1rem; }
  .dc-product-img { height: 140px; }
  .dc-btn-deal { padding: 13px 8px; font-size: 0.9rem; }
}
