/*
Theme Name: Divi Child
Theme URI: http://www.elegantthemes.com/gallery/divi/
Template: Divi
Author: Elegant Themes
Author URI: http://www.elegantthemes.com
Description: Smart. Flexible. Beautiful. Divi is the most powerful theme in our collection.
Version: 4.27.5.1777796754
Updated: 2026-05-03 08:25:54

*/
/* ===== DIVI BLOG GRID — CLEAN 2 COLUMN, EQUAL HEIGHT ===== */

/* Flex container for posts */
.et_pb_blog_grid .et_pb_salvattore_content {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -15px;
}

/* Make salvattore's column wrappers transparent to layout */
.et_pb_blog_grid .column {
  display: contents !important;
}

/* Each post = one flex item, 50% wide */
.et_pb_blog_grid .et_pb_post {
  flex: 0 0 50%;
  max-width: 50%;
  box-sizing: border-box;
  padding: 0 15px;
  margin: 0 0 30px 0 !important;
  background: transparent !important;
  border: none !important;
  display: flex;
  flex-direction: column;
}

/* Kill ALL margins on every direct child of the post */
.et_pb_blog_grid .et_pb_post > * {
  margin: 0 !important;
}

/* White background on every content piece, flush together */
.et_pb_blog_grid .et_pb_post .entry-featured-image-url,
.et_pb_blog_grid .et_pb_post .entry-title,
.et_pb_blog_grid .et_pb_post .post-meta,
.et_pb_blog_grid .et_pb_post .post-content {
  background: #fff;
}

/* Featured image wrapper — remove all spacing */
.et_pb_blog_grid .et_pb_post .entry-featured-image-url {
  display: block;
  line-height: 0;
  font-size: 0;
  padding: 0 !important;
  margin: 0 !important;
}

/* Featured image */
.et_pb_blog_grid .et_pb_post img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  margin: 0 !important;
  padding: 0 !important;
  border: 0;
}

/* Title — sits flush against image */
.et_pb_blog_grid .entry-title {
  padding: 20px 20px 10px 20px !important;
  margin: 0 !important;
  font-size: 20px;
  line-height: 1.3;
}

/* Meta */
.et_pb_blog_grid .post-meta {
  padding: 0 20px 15px 20px !important;
  margin: 0 !important;
  font-size: 13px;
}

/* Excerpt area — grows to equalize height */
.et_pb_blog_grid .post-content {
  padding: 0 20px 20px 20px !important;
  margin: 0 !important;
  flex: 1 1 auto;
}

/* Excerpt — limit to 3 lines */
.et_pb_blog_grid .post-content p {
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Mobile: stack to 1 column */
@media (max-width: 767px) {
  .et_pb_blog_grid .et_pb_post {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ===== HOMEPAGE BEST SELLERS — WOOCOMMERCE PRODUCT CARDS ===== */
/* Scoped to the front page so other shop/product loops are unaffected. */
.home .woocommerce {
  --rm-navy: #082754;
  --rm-blue: #1a4f9e;
  --rm-blue-dark: #143d7a;
  --rm-border: #e3e6ea;
  --rm-muted: #6b7280;
}

/* Grid: even 4-up with consistent gaps (overrides Divi/Woo float layout) */
.home .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
.home .woocommerce ul.products::before,
.home .woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}

/* Card */
.home .woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  padding: 24px 20px !important;
  float: none !important;
  clear: none !important;
  box-sizing: border-box;
  background: #fff !important;
  border: 1px solid var(--rm-border) !important;
  border-radius: 4px !important;
  text-align: center !important;
  position: relative;
  display: flex !important;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.home .woocommerce ul.products li.product:hover {
  box-shadow: 0 10px 26px rgba(8, 39, 84, .12) !important;
  transform: translateY(-3px);
}

/* Make the image/title/price link a flex block so the button sits at the bottom */
.home .woocommerce ul.products li.product > a.woocommerce-loop-product__link,
.home .woocommerce ul.products li.product > a.woocommerce-LoopProduct-link {
  display: block;
  flex: 1 1 auto;
}

/* Product image */
.home .woocommerce ul.products li.product img {
  width: auto !important;
  max-width: 100% !important;
  height: 175px !important;
  object-fit: contain !important;
  margin: 0 auto 18px !important;
  display: block;
  box-shadow: none !important;
}

/* Title */
.home .woocommerce ul.products li.product .woocommerce-loop-product__title,
.home .woocommerce ul.products li.product h2,
.home .woocommerce ul.products li.product h3 {
  color: var(--rm-navy) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  padding: 0 0 10px !important;
  margin: 0 !important;
}

/* Price */
.home .woocommerce ul.products li.product .price {
  color: var(--rm-blue) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  margin: 0 0 12px !important;
}
.home .woocommerce ul.products li.product .price del {
  color: var(--rm-muted) !important;
  font-weight: 400;
  opacity: .7;
}
.home .woocommerce ul.products li.product .price ins {
  text-decoration: none;
}

/* "N sold" line */
.home .woocommerce ul.products li.product .rm-sold {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--rm-muted);
  font-size: 13px;
  margin: 0 0 16px;
}
.home .woocommerce ul.products li.product .rm-sold-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: .85;
}

/* "Top Rated" badge on the best-selling card */
.home .woocommerce ul.products li.product .rm-top-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--rm-navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 3px;
  line-height: 1;
}

/* Buttons — full width at the bottom of the card */
.home .woocommerce ul.products li.product a.button {
  margin-top: auto !important;
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  text-transform: uppercase;
  letter-spacing: .3px;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 13px 12px !important;
  border-radius: 4px !important;
  border: 2px solid var(--rm-blue) !important;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
/* Filled: simple in-stock products ("Add to cart") */
.home .woocommerce ul.products li.product a.button.ajax_add_to_cart {
  background: var(--rm-blue) !important;
  color: #fff !important;
}
.home .woocommerce ul.products li.product a.button.ajax_add_to_cart:hover {
  background: var(--rm-blue-dark) !important;
  border-color: var(--rm-blue-dark) !important;
}
/* Outlined: variable/grouped/external ("Select options" / "Read more") */
.home .woocommerce ul.products li.product a.button:not(.ajax_add_to_cart) {
  background: #fff !important;
  color: var(--rm-blue) !important;
}
.home .woocommerce ul.products li.product a.button:not(.ajax_add_to_cart):hover {
  background: var(--rm-blue) !important;
  color: #fff !important;
}
/* "View cart" link that appears after an ajax add */
.home .woocommerce ul.products li.product a.added_to_cart {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--rm-blue) !important;
}

/* Responsive */
@media (max-width: 980px) {
  .home .woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .home .woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}
