
/* DaruGet four-column clean category cards
   Scope: product grid/card content only. Header, hero, filters and footer untouched. */

.category-page .category-products-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}

.category-page .category-product{
  min-width:0!important;
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  overflow:hidden!important;
  border-radius:18px!important;
}

.category-page .category-product-body{
  display:flex!important;
  flex-direction:column!important;
  flex:1 1 auto!important;
  padding:12px 13px 13px!important;
}

.category-page .product-meta-row,
.category-page .compare-check,
.category-page .category-product-body > .product-code{
  display:none!important;
}

.category-page .product-brand-link{
  display:inline-flex!important;
  align-items:center!important;
  width:max-content!important;
  max-width:100%!important;
  margin:0 0 5px!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:850!important;
  line-height:1.55!important;
  text-decoration:none!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

.category-page .category-product h3{
  min-height:44px!important;
  margin:0 0 8px!important;
  color:#172033!important;
  font-size:12px!important;
  font-weight:900!important;
  line-height:1.75!important;
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}

.category-page .category-product h3 a{
  color:inherit!important;
  text-decoration:none!important;
}

.category-page .product-rating-row{
  display:flex!important;
  align-items:center!important;
  gap:4px!important;
  margin:0 0 9px!important;
  color:#64748b!important;
  font-size:12px!important;
  font-weight:800!important;
}

.category-page .product-rating-star{
  color:#f5b301!important;
  font-size:13px!important;
  line-height:1!important;
}

.category-page .product-price-row{
  display:flex!important;
  align-items:flex-end!important;
  justify-content:space-between!important;
  gap:7px!important;
  min-height:48px!important;
  margin-top:auto!important;
  padding-top:4px!important;
}

.category-page .price-stack{
  display:flex!important;
  flex-direction:column!important;
  gap:1px!important;
  min-width:0!important;
}

.category-page .old-price{
  color:#94a3b8!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.35!important;
  text-decoration:line-through!important;
  text-decoration-color:#ef4444!important;
  text-decoration-thickness:1.5px!important;
}

.category-page .sale-price{
  color:#15803d!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1.4!important;
  white-space:nowrap!important;
}

.category-page .discount-pill{
  flex:0 0 auto!important;
  min-width:38px!important;
  height:23px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0 6px!important;
  border-radius:999px!important;
  background:#fff1f2!important;
  border:1px solid #fecdd3!important;
  color:#e11d48!important;
  font-size:12px!important;
  font-weight:950!important;
}

.category-page .purchase-area{
  margin-top:10px!important;
}

.category-page .purchase-btn{
  width:100%!important;
  min-height:38px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:11px!important;
  background:#15803d!important;
  color:#fff!important;
  font-size:12px!important;
  font-weight:900!important;
  cursor:pointer!important;
  box-shadow:0 7px 16px rgba(21,128,61,.14)!important;
}

.category-page .purchase-btn:hover{
  background:#116b3b!important;
}

.category-page .purchase-btn:disabled{
  background:#cbd5e1!important;
  color:#64748b!important;
  cursor:not-allowed!important;
  box-shadow:none!important;
}

.category-page .qty-panel{
  display:none!important;
  grid-template-columns:32px 1fr 32px!important;
  align-items:center!important;
  gap:6px!important;
  min-height:38px!important;
}

.category-page .purchase-area.is-choosing .purchase-btn{
  display:none!important;
}

.category-page .purchase-area.is-choosing .qty-panel{
  display:grid!important;
}

.category-page .qty-btn{
  width:32px!important;
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  border:1px solid #dce5df!important;
  border-radius:9px!important;
  background:#fff!important;
  color:#334155!important;
  font-size:15px!important;
  font-weight:900!important;
  cursor:pointer!important;
}

.category-page .qty-value{
  height:34px!important;
  display:grid!important;
  place-items:center!important;
  border:1px solid #e2e8f0!important;
  border-radius:9px!important;
  background:#f8fafc!important;
  color:#172033!important;
  font-size:11px!important;
  font-weight:900!important;
}

.category-page .stock-limit{
  display:block!important;
  margin-top:5px!important;
  color:#94a3b8!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.5!important;
}

.category-page .stock-limit.is-warning{
  color:#b45309!important;
}

@media(max-width:1180px){
  .category-page .category-products-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:820px){
  .category-page .category-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:12px!important;
  }
}
@media(max-width:520px){
  .category-page .category-products-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:9px!important;
  }
  .category-page .category-product-body{
    padding:10px!important;
  }
  .category-page .category-product h3{
    min-height:39px!important;
    font-size:12px!important;
  }
  .category-page .product-brand-link{
    font-size:12px!important;
  }
  .category-page .sale-price{
    font-size:12px!important;
  }
  .category-page .old-price{
    font-size:12px!important;
  }
  .category-page .purchase-btn{
    min-height:36px!important;
    font-size:12px!important;
  }
}


/* Refinement v2: discount beside old price, rating in former discount position */
.category-page .category-product h3{
  min-height:38px!important;
  margin:0 0 3px!important;
  line-height:1.65!important;
}
.category-page .product-rating-row{
  position:absolute!important;
  left:13px!important;
  bottom:71px!important;
  z-index:3!important;
  margin:0!important;
  min-height:23px!important;
  padding:0 5px!important;
  border-radius:7px!important;
  background:rgba(255,255,255,.94)!important;
}
.category-page .category-product-body{
  position:relative!important;
}
.category-page .product-price-row{
  justify-content:flex-start!important;
  align-items:flex-end!important;
  gap:6px!important;
  padding-left:58px!important;
}
.category-page .price-stack{
  display:grid!important;
  grid-template-columns:auto auto!important;
  grid-template-areas:
    "old discount"
    "sale sale"!important;
  align-items:center!important;
  justify-content:start!important;
  column-gap:5px!important;
  row-gap:1px!important;
}
.category-page .old-price{grid-area:old!important}
.category-page .sale-price{grid-area:sale!important}
.category-page .discount-pill{
  grid-area:discount!important;
  min-width:0!important;
  height:18px!important;
  padding:0 5px!important;
  font-size:12px!important;
}
@media(max-width:520px){
  .category-page .category-product h3{
    min-height:34px!important;
    margin-bottom:2px!important;
  }
  .category-page .product-rating-row{
    left:10px!important;
    bottom:68px!important;
    font-size:12px!important;
  }
  .category-page .product-price-row{
    padding-left:50px!important;
  }
}


/* Refinement v3: clearer previous price and discount badge */
.category-page .old-price{
  font-size:12px!important;
  font-weight:800!important;
  color:#7c8797!important;
  line-height:1.4!important;
  text-decoration-thickness:1.8px!important;
  text-decoration-color:#ef4444!important;
}
.category-page .discount-pill{
  min-width:36px!important;
  height:21px!important;
  padding:0 7px!important;
  border-radius:999px!important;
  font-size:12px!important;
  font-weight:950!important;
  line-height:1!important;
  color:#d81b43!important;
  background:#fff0f3!important;
  border:1px solid #ffc9d2!important;
}
@media(max-width:520px){
  .category-page .old-price{
    font-size:12px!important;
  }
  .category-page .discount-pill{
    min-width:34px!important;
    height:20px!important;
    padding:0 6px!important;
    font-size:12px!important;
  }
}


/* FINAL placement: discount badge directly beside crossed-out old price */
.category-page .product-price-row{
  justify-content:flex-start!important;
  align-items:flex-end!important;
}

.category-page .price-stack{
  display:grid!important;
  grid-template-columns:max-content max-content!important;
  grid-template-areas:
    "old discount"
    "sale sale"!important;
  align-items:center!important;
  justify-content:start!important;
  column-gap:6px!important;
  row-gap:2px!important;
}

.category-page .old-price{
  grid-area:old!important;
  display:inline-flex!important;
  align-items:center!important;
  margin:0!important;
}

.category-page .discount-pill{
  grid-area:discount!important;
  position:static!important;
  align-self:center!important;
  margin:0!important;
  transform:none!important;
  flex:0 0 auto!important;
}

.category-page .sale-price{
  grid-area:sale!important;
  display:block!important;
  margin:0!important;
}
