/* Lale Promo Section Styles */

.lale-promo-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 0px;
    gap: 24px;
    width: 100%;
    max-width: 1216px;
    margin: 40px auto;
    box-sizing: border-box;
}

/* Card base layout */
.lps-card {
    height: 229px;
    flex: 1 1 calc(33.333% - 16px);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.1);
}

/* Banner Card (Left) */
.lps-banner-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 16px;
    border-radius: 0px 16px 16px 16px;
    box-shadow: none; /* Banner card has no card shadow */
}

/* Button Primary on Banner Card */
.lps-banner-btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 13px 24px;
    gap: 8px;
    background: #680C96;
    color: #FFFFFF !important;
    text-decoration: none !important;
    border-radius: 0px 13px 13px 13px;
    font-family: 'Archivo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.6;
    transition: background 0.2s ease-in-out, opacity 0.2s ease-in-out;
}

.lps-banner-btn:hover {
    background: #500974;
}

/* Product Cards (Middle & Right) */
.lps-product-card {
    background: #FFFFFF;
    border-radius: 0px 32px 32px 32px;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    padding: 0px;
    gap: 20px;
    overflow: visible; /* To allow Bestseller badge to overflow */
}

/* Product Image Side */
.lps-product-media {
    width: 229px;
    height: 229px;
    flex-shrink: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: transparent;
    border-radius: 0px 0px 0px 32px;
    overflow: hidden;
}

.lps-product-media a {
    display: block;
    width: 100%;
    height: 100%;
}

.lps-product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    -webkit-user-drag: none;
}

/* Bestseller Badge */
.lps-badge-bestseller {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 4px 16px;
    gap: 10px;
    position: absolute;
    width: 117px;
    height: 29px;
    left: -8px;
    top: -8px;
    background: #AE3D3D;
    border-radius: 8px;
    box-sizing: border-box;
    z-index: 5;
}

.lps-badge-bestseller span {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    color: #FFFFFF;
    text-transform: uppercase;
}

/* Content Side */
.lps-product-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 24px 20px 24px 0;
    gap: 12px;
    flex-grow: 1;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

/* Hover Actions */
.lps-product-card:hover .lps-add-to-cart-btn {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Add to Cart Button */
.lps-add-to-cart-btn {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 20px;
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    background-color: #893DAE;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    border-radius: 0px 20px 20px 20px;
    font-family: 'Archivo', sans-serif;
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
    width: auto;
}

.lps-add-to-cart-btn:hover {
    background-color: #722d95;
    box-shadow: 0 4px 12px rgba(137, 61, 174, 0.3);
}

.lps-product-title {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
    color: #333333;
    margin: 0;
    text-align: left;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lps-product-title a {
    color: #333333;
    text-decoration: none;
    transition: opacity 0.2s;
}

.lps-product-title a:hover {
    opacity: 0.8;
}

/* Price Block */
.lps-price-row {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    padding: 0px;
    gap: 8px;
    width: 100%;
    flex-wrap: wrap;
}

.lps-price-sale {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.34;
    color: #333333;
}

/* WooCommerce price wrapper inside WC custom tags */
.lps-price-sale .woocommerce-Price-amount {
    font-weight: 700;
}

.lps-price-regular {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.6;
    text-decoration: line-through;
    color: #888888;
    margin-bottom: 2px;
}

.lps-discount-badge {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 6px 4px;
    gap: 10px;
    min-width: 57px;
    height: 25px;
    background: #893DAE;
    border-radius: 8px;
    box-sizing: border-box;
}

.lps-discount-badge span {
    font-family: 'Archivo', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    line-height: 1;
    color: #FFFFFF;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .lale-promo-section {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0px 20px;
    }
    
    .lps-card {
        width: 100%;
        max-width: 480px;
    }
    
    .lps-banner-card {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .lps-product-card {
        padding: 0px;
        gap: 12px;
    }
    .lps-product-media {
        width: 130px;
        height: 100%;
    }
    .lps-product-img {
        padding: 12px;
    }
    .lps-product-content {
        padding: 12px 12px 12px 0;
        gap: 8px;
    }
    .lps-badge-bestseller {
        width: 90px;
        height: 24px;
        padding: 2px 8px;
    }
    .lps-badge-bestseller span {
        font-size: 11px;
    }
    .lps-product-title {
        font-size: 14px;
    }
    .lps-price-sale {
        font-size: 18px;
    }
    .lps-add-to-cart-btn {
        bottom: 8px;
        right: 12px;
        padding: 8px 16px;
        font-size: 12px;
    }
}
