/* ==========================================================
   Location: /assets/css/home/popular-deals-week.css
   Purpose:
   - Home section: Popular Deals of the Week.
   - Dynamic settings-based layout with stable premium cards.
   - Scoped styles only; no global product-card overrides.
========================================================== */

.hdaf-dow.hdaf-ps-section{ padding: 22px 0 12px; }

.hdaf-dow__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hdaf-dow__card{ min-width:0; }

.hdaf-dow__subtitle{
  margin: 6px 0 0;
  color: rgba(15, 23, 42, .68);
  font-size: 13px;
  line-height: 1.5;
}

.hdaf-dow__link{
  position: relative;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 18px;
  align-items: center;
  background:#fff;
  border-radius: 22px;
  text-decoration:none;
  border: 2px solid #ff7a00;
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.hdaf-dow__media{
  position: relative;
  border-radius: 16px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 220px;
}

.hdaf-dow__media img{
  width:100% !important;
  height:auto !important;
  display:block;
  object-fit:contain;
}

.hdaf-dow__badge{
  position:absolute;
  top: 12px;
  left: 12px;
  width: 78px;
  height: 78px;
  border-radius: 999px;
  background: #ffcc00;
  color:#111;
  font-size: 13px;
  font-weight: 800;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 10px;
  box-shadow: 0 1px 0 rgba(0,0,0,.10);
}

.hdaf-dow__body{ min-width:0; }

.hdaf-dow__title{
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.2;
  color:#0e5aa7;
  display:-webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow:hidden;
  min-height: calc(1.2em * 2);
  max-height: calc(1.2em * 2);
}

.hdaf-dow__price{
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  color:#202a34;
  margin: 0 0 14px;
}

.hdaf-dow__meta{
  display:flex;
  gap: 24px;
  align-items:center;
  color: rgba(0,0,0,.70);
  font-size: 14px;
  margin: 0 0 10px;
}

.hdaf-dow__meta strong{ font-weight: 800; color:#202a34; }

.hdaf-dow__bar{
  height: 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.08);
  overflow:hidden;
  max-width: 320px;
}

.hdaf-dow__barfill{
  display:block;
  height: 100%;
  width: 0%;
  background: #ffcc00;
  border-radius: 999px;
}

@media (hover:hover) and (pointer:fine){
  .hdaf-dow__link:hover{
    transform: translateY(-2px);
    box-shadow: 0 0px 6px rgba(0,0,0,.18);
  }
}

@media (max-width: 991px){
  .hdaf-dow__grid{ grid-template-columns: 1fr; }
  .hdaf-dow__link{ grid-template-columns: 260px 1fr; }
  .hdaf-dow__price{ font-size: 30px; }
  .hdaf-dow__badge{
    width: 72px;
    height: 72px;
    font-size: 12px;
  }
}

@media (max-width: 560px){
  .hdaf-dow__link{
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .hdaf-dow__media{ min-height: 200px; }
  .hdaf-dow__price{ font-size: 28px; }
  .hdaf-dow__meta{
    align-items:flex-start;
    flex-direction:column;
    gap: 6px;
  }
  .hdaf-dow__bar{ max-width: 100%; }
  .hdaf-dow__badge{
    top: 10px;
    left: 10px;
  }
}
