/*
 * Template Name: LordsMarkBiotech
 * Version: 1.0
 * Description: Custom invoice layout for Lords Mark Biotech Pvt. Ltd.
 * Author: Sibasish Acharyya
 * Based on: Simple template by WP Overnight
 */


/* Change the font weight of WooCommerce product titles */
.woocommerce-loop-product__title {
    font-weight: 400;
}

/* Change the style of the product title on single product pages */
.single-product .product_title {
    font-weight: 600;
    font-size: 24px;
    color: #3F4693;
    line-height: 1.4;
    letter-spacing: -0.5px;
}

/* Contact form 7 button */
.custom-submit {
    background-color: #3C4086;
    color: #fff;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.custom-submit:hover {
    background-color: #2E3477;
}

/* Lords box shadow */
.elementor-element.lords-shadow {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.elementor-element.lords-shadow:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Distributor form */
.custom-contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: #fdfdfd;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}
.custom-contact-form .wpcf7-form p {
    margin: 0 !important;
}
.custom-contact-form br {
    display: none !important;
}
.custom-contact-form .wpcf7-form-control-wrap {
    display: block;
    margin-top: 4px;
}
.custom-contact-form .form-group {
    margin-bottom: 14px;
}
.custom-contact-form label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 15px;
}
.custom-contact-form .form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.custom-contact-form .form-control:focus {
    border-color: #4f46e5;
    outline: none;
    box-shadow: 0 0 6px rgba(79, 70, 229, 0.25);
}
.custom-contact-form .submit-button {
    width: 100%;
    background-color: #4f46e5;
    color: #fff;
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}
.custom-contact-form .submit-button:hover {
    background-color: #3730a3;
}
.custom-contact-form .wpcf7-not-valid-tip {
    font-size: 13px;
    margin-top: 4px;
    color: #dc2626;
}
.custom-contact-form .wpcf7-response-output {
    margin: 16px 0 0 !important;
    padding: 12px;
    border-radius: 8px;
}

/* --- UNIFIED SALE BADGE STYLING (removed duplicate) --- */
.woocommerce ul.products li.product .onsale,
.woocommerce ul.products li.product span.onsale,
.ct-product-card .onsale,
.ct-product-card span.onsale,
[data-shape="type-2"].onsale,
span.onsale[data-shape="type-2"],
.woocommerce span.onsale {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  left: auto !important;
  bottom: auto !important;
  background-color: #ef4444 !important; /* red badge */
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  line-height: 1.2 !important;
  display: inline-block !important;
  width: auto !important;
  min-width: auto !important;
  max-width: none !important;
  text-transform: uppercase !important;
  z-index: 50 !important;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.15) !important;
  pointer-events: none !important;
  margin: 0 !important;
  transform: none !important;
}

/* ensure parent image wrapper allows absolute positioning */
.woocommerce ul.products li.product figure,
.woocommerce ul.products li.product .ct-image-container,
.ct-product-card figure,
.ct-product-card .ct-image-container,
.ct-media-container {
  position: relative !important;
  overflow: visible !important;
}

/* Optional: slight hover effect */
.woocommerce ul.products li.product:hover .onsale,
.ct-product-card:hover .onsale {
  transform: scale(1.05) !important;
  transition: all 0.25s ease !important;
}


/* --- UNIFIED BOTTOM BACKGROUND FOR PRODUCT CARDS (FIXED) --- */

/* Base card layout with flexbox */
.woocommerce ul.products li.product {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%; /* ensure cards fill grid height */
}

/* Top image area */
.woocommerce ul.products li.product figure {
  margin: 0;
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0; /* prevent image from shrinking */
}

/* Create a wrapper for all bottom content that takes remaining space */
.woocommerce ul.products li.product > *:not(figure):not(.onsale) {
  flex: 1; /* takes remaining space */
  background-color: #f5f7ff; /* unified background */
}

/* Individual sections - remove individual backgrounds */
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .entry-meta,
.woocommerce ul.products li.product .price {
  background-color: transparent !important; /* parent handles background */
  padding: 10px 14px;
  margin: 0 !important;
  display: block;
}

/* Typography refinement */
.woocommerce ul.products li.product h2 {
  font-weight: 500;
  font-size: 15px;
  color: #2d2d2d;
  padding-top: 14px; /* extra top padding */
}

.woocommerce ul.products li.product .price {
  font-weight: 600;
  color: #3c4086;
}

.woocommerce ul.products li.product .entry-meta a {
  color: #6b7280;
  font-size: 13px;
  text-transform: uppercase;
}

/* Button section - push to bottom and blend */
.woocommerce ul.products li.product .ct-woo-card-actions {
  background-color: transparent !important;
  padding: 10px 14px 14px 14px;
  margin: 0 !important;
  margin-top: auto !important; /* pushes to bottom of flex container */
  border-radius: 0 0 10px 10px;
}

/* Hover effect for entire card */
.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.08);
}

/* Change background color on hover */
.woocommerce ul.products li.product:hover > *:not(figure):not(.onsale) {
  background-color: #eef1ff !important; /* subtle light shift */
  transition: background-color 0.3s ease;
}