/* === DERIOX LISTING CARDS PREMIUM V13 START === */
/* CSS-only polish. Keeps Delta native layout and existing PHP behavior. */

html,
body {
  overflow-x: hidden !important;
}

/* Card shell */
body#body-home .products.grid .simple-prod,
body#body-search .products.grid .simple-prod,
body#body-home .white .simple-prod,
body#body-search .white .simple-prod {
  background: #ffffff !important;
  border: 1px solid #dfe8f2 !important;
  border-radius: 18px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 26px rgba(15, 38, 60, 0.105) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

body#body-home .products.grid .simple-prod:hover,
body#body-search .products.grid .simple-prod:hover,
body#body-home .white .simple-prod:hover,
body#body-search .white .simple-prod:hover {
  transform: translateY(-3px) !important;
  border-color: #82bdec !important;
  box-shadow: 0 18px 40px rgba(65, 130, 195, 0.20) !important;
}

/* Image area */
body#body-home .products.grid .simple-prod .img-wrap,
body#body-search .products.grid .simple-prod .img-wrap,
body#body-home .white .simple-prod .img-wrap,
body#body-search .white .simple-prod .img-wrap,
body#body-home .products.grid .simple-prod .img,
body#body-search .products.grid .simple-prod .img,
body#body-home .white .simple-prod .img,
body#body-search .white .simple-prod .img {
  width: 100% !important;
  height: 172px !important;
  min-height: 172px !important;
  max-height: 172px !important;
  overflow: hidden !important;
  background: linear-gradient(135deg, #eef3f8 0%, #f8fbff 100%) !important;
  border-radius: 18px 18px 0 0 !important;
  position: relative !important;
}

/* Image crop */
body#body-home .products.grid .simple-prod .img img,
body#body-search .products.grid .simple-prod .img img,
body#body-home .white .simple-prod .img img,
body#body-search .white .simple-prod .img img,
body#body-home .products.grid .simple-prod .img-wrap img,
body#body-search .products.grid .simple-prod .img-wrap img,
body#body-home .white .simple-prod .img-wrap img,
body#body-search .white .simple-prod .img-wrap img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  position: static !important;
  margin: 0 !important;
  display: block !important;
  transition: transform .24s ease, filter .24s ease !important;
}

body#body-home .products.grid .simple-prod:hover .img img,
body#body-search .products.grid .simple-prod:hover .img img {
  transform: scale(1.055) !important;
  filter: saturate(1.06) contrast(1.03) !important;
}

/* Subtle image shine */
body#body-home .products.grid .simple-prod .img:after,
body#body-search .products.grid .simple-prod .img:after,
body#body-home .white .simple-prod .img:after,
body#body-search .white .simple-prod .img:after {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 42px !important;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(12,32,48,0.22) 100%) !important;
  pointer-events: none !important;
}

/* Content area */
body#body-home .products.grid .simple-prod .data,
body#body-search .products.grid .simple-prod .data,
body#body-home .white .simple-prod .data,
body#body-search .white .simple-prod .data {
  padding: 12px 12px 13px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
}

/* Title */
body#body-home .products.grid .simple-prod .title,
body#body-search .products.grid .simple-prod .title,
body#body-home .white .simple-prod .title,
body#body-search .white .simple-prod .title {
  display: block !important;
  height: 42px !important;
  max-height: 42px !important;
  margin: 0 0 9px 0 !important;
  overflow: hidden !important;
  font-family: Poppins, Arial, sans-serif !important;
  font-size: 14.5px !important;
  line-height: 20px !important;
  font-weight: 850 !important;
  color: #142b40 !important;
  letter-spacing: -0.15px !important;
  text-decoration: none !important;
}

body#body-home .products.grid .simple-prod .title a,
body#body-search .products.grid .simple-prod .title a,
body#body-home .white .simple-prod .title a,
body#body-search .white .simple-prod .title a {
  color: #142b40 !important;
  text-decoration: none !important;
}

/* Price pill */
body#body-home .products.grid .simple-prod .price,
body#body-search .products.grid .simple-prod .price,
body#body-home .white .simple-prod .price,
body#body-search .white .simple-prod .price {
  min-height: 30px !important;
  height: 30px !important;
  float: left !important;
  clear: both !important;
  margin: 0 0 9px 0 !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #eaf6ff 0%, #f7fbff 100%) !important;
  color: #0f5d9e !important;
  border: 1px solid #c5e1f7 !important;
  box-shadow: 0 4px 10px rgba(65, 130, 195, 0.10) !important;
  font-family: Poppins, Arial, sans-serif !important;
  font-size: 13.5px !important;
  line-height: 14px !important;
  font-weight: 900 !important;
}

/* Placeholder keeps equal height, but remains invisible */
body#body-home .products.grid .simple-prod .price.deriox-price-placeholder,
body#body-search .products.grid .simple-prod .price.deriox-price-placeholder,
body#body-home .white .simple-prod .price.deriox-price-placeholder,
body#body-search .white .simple-prod .price.deriox-price-placeholder {
  visibility: hidden !important;
}

/* Meta text */
body#body-home .products.grid .simple-prod .category,
body#body-search .products.grid .simple-prod .category,
body#body-home .products.grid .simple-prod .date,
body#body-search .products.grid .simple-prod .date,
body#body-home .products.grid .simple-prod .location,
body#body-search .products.grid .simple-prod .location,
body#body-home .white .simple-prod .category,
body#body-search .white .simple-prod .category,
body#body-home .white .simple-prod .date,
body#body-search .white .simple-prod .date,
body#body-home .white .simple-prod .location,
body#body-search .white .simple-prod .location {
  color: #66788d !important;
  font-size: 11.8px !important;
  line-height: 15px !important;
}

/* Contact / details button */
body#body-home .products.grid .simple-prod a.contact,
body#body-search .products.grid .simple-prod a.contact,
body#body-home .products.grid .simple-prod .contact,
body#body-search .products.grid .simple-prod .contact,
body#body-home .white .simple-prod a.contact,
body#body-search .white .simple-prod a.contact,
body#body-home .white .simple-prod .contact,
body#body-search .white .simple-prod .contact {
  border-radius: 999px !important;
  padding: 6px 12px !important;
  font-weight: 850 !important;
  background: linear-gradient(135deg, #4182c3 0%, #2f72b5 100%) !important;
  color: #fff !important;
  border: 0 !important;
  text-decoration: none !important;
  box-shadow: 0 5px 12px rgba(47, 114, 181, 0.22) !important;
}

/* Hide seller-check price option on publish/edit if present */
.post-edit .price-wrap .selection a[data-price=""],
.simple-price-type .option[data-id="2"] {
  display: none !important;
}

/* Responsive */
@media (max-width: 767px) {
  body#body-home .products.grid .simple-prod .img-wrap,
  body#body-search .products.grid .simple-prod .img-wrap,
  body#body-home .products.grid .simple-prod .img,
  body#body-search .products.grid .simple-prod .img {
    height: 175px !important;
    min-height: 175px !important;
    max-height: 175px !important;
  }
}

/* === DERIOX LISTING CARDS PREMIUM V13 END === */
