/* --------------------------
   AMAZON STYLE PRODUCT GRID
   -------------------------- */

ul.products.columns-4 li.product, 
ul.products li.product {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 15px !important;
    margin: 15px !important;
    width: 260px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Product image */
ul.products li.product img {
    width: 100% !important;
    height: 180px !important;
    object-fit: contain !important;
    margin: 0 auto 10px auto !important;
}

/* Title / Name */
ul.products li.product .woocommerce-loop-product__title {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #111 !important;
    min-height: 45px !important;
    line-height: 1.3 !important;
    margin-bottom: 8px !important;

    /* Limit to 3 lines */
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
}

/* Prices */
ul.products li.product .price {
    font-size: 18px !important;
    font-weight: bold !important;
    color: #b12704 !important; /* Amazon red price */
    margin-top: auto !important;
    margin-bottom: 10px !important;
}

/* Sale badge */
.woocommerce span.onsale {
    background: #84a012 !important;
    color: #fff !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
}

/* Button */
ul.products li.product a.button {
    background: #ffd814 !important;
    border: 1px solid #fcd200 !important;
    border-radius: 999px !important;
    padding: 8px 15px !important;
    color: #111 !important;
    font-weight: 600 !important;
    text-align: center !important;
    display: block !important;
}

/* Button hover */
ul.products li.product a.button:hover {
    background: #f7ca00 !important;
}

/* Remove weird vertical line */
ul.products li.product::after {
    display: none !important;
    border: none !important;
}
/* Remove white gap between category bar and products */
.lt-cat-bar-container {
    margin-bottom: 5px !important;   /* was 20px */
}

.lt-products-wrapper {
    margin-top: 0 !important;
}

/* Some themes add margin-top on the products UL */
.woocommerce .lt-products-wrapper ul.products {
    margin-top: 0 !important;
}

/* Optional: tighten overall shop top spacing */
.lt-shop-layout {
    margin-top: 0 !important;
}

/* FORCE PRODUCTS TO ALIGN LEFT (FIX FIRST-ROW GAP) */
.lt-products-wrapper ul.products,
.woocommerce ul.products,
.woocommerce-page ul.products {
    justify-content: flex-start !important;
    margin-left: 0 !important;
}

/* Remove auto-centering applied by theme */
ul.products {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix invisible pseudo-element breaking first column */
ul.products::before,
ul.products::after {
    display: none !important;
}
