/**
 * Editorial Grid Styling for Bombay Bling bb04f4c5
 */

/* WooCommerce Product Card Layout Normalization */
ul.products {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

ul.products li.product {
  flex: 1 1 calc(25% - 18px) !important; /* 4 columns minus gap proportion */
  max-width: calc(25% - 18px) !important;
  margin: 0 0 24px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  text-align: center !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

ul.products li.product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
}

/* Force Product Image to 1:1 Square, object-fit Cover */
ul.products li.product a img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  margin-bottom: 12px !important;
  display: block !important;
}

/* Truncate Product Titles to Single Line with Ellipsis */
ul.products li.product .woocommerce-loop-product__title {
  font-family: 'EB Garamond', serif !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  margin: 8px 0 !important;
  padding: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
}

/* Normalize Prices & Push Actions to Baseline */
ul.products li.product .price {
  font-family: 'Roboto', sans-serif !important;
  font-size: 14px !important;
  color: #61CE70 !important; /* Primary Accent */
  font-weight: 600 !important;
  margin-top: auto !important;
  margin-bottom: 12px !important;
  display: block !important;
}

/* Style Buttons in Accent Color, Uppercase Roboto 12px, Full Width, No Border Radius */
ul.products li.product .button,
ul.products li.product .added_to_cart {
  display: block !important;
  width: 100% !important;
  text-align: center !important;
  background-color: #61CE70 !important; /* Accent color */
  color: #ffffff !important;
  font-family: 'Roboto', sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  padding: 12px 10px !important;
  border: none !important;
  border-radius: 0px !important;
  box-sizing: border-box !important;
  transition: background-color 0.2s ease !important;
  text-decoration: none !important;
}

ul.products li.product .button:hover {
  background-color: #4eb55c !important; /* Muted accent hover */
  color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  ul.products li.product {
    flex: 1 1 calc(50% - 12px) !important;
    max-width: calc(50% - 12px) !important;
  }
}

@media (max-width: 480px) {
  ul.products li.product {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
}
