/* LUTON_MOBILE_PRODUCT_CARD_STANDARD_V1 */
/* Product-card visual standard for homepage, shop, search, wishlist and recommendation sections */

:root{
    --luton-card-radius: 16px;
    --luton-card-border: #dfe9e4;
    --luton-card-bg: #ffffff;
    --luton-card-soft: #f4f8f5;
    --luton-card-shadow: 0 6px 18px rgba(16, 24, 40, .06);
    --luton-brand-green: #1fa84a;
    --luton-brand-red: #e5252a;
    --luton-text-dark: #17324d;
    --luton-text-soft: #5f6f66;
}

/* card containers */
.product-item,
.product-card,
.single-product,
.single-product-item,
.lhp-product-card,
.luton-product-card,
.featured-product-item,
.featured-product-card,
.shop-product-card,
.wishlist-product-card,
[class*="product-card"],
[class*="featured-product"],
[class*="wishlist-item"] {
    background: var(--luton-card-bg) !important;
    border: 1px solid var(--luton-card-border) !important;
    border-radius: var(--luton-card-radius) !important;
    box-shadow: var(--luton-card-shadow) !important;
    overflow: hidden !important;
}

/* make column/card structure stretch nicely */
.product-item,
.product-card,
.single-product,
.single-product-item,
.lhp-product-card,
.luton-product-card,
.featured-product-item,
.featured-product-card,
.shop-product-card,
.wishlist-product-card,
[class*="product-card"],
[class*="featured-product"],
[class*="wishlist-item"] {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

/* image wrappers */
.product-item .product-img,
.product-item .product-image,
.product-item .thumb,
.product-item .thumbnail,
.product-card .product-img,
.product-card .product-image,
.product-card .thumb,
.product-card .thumbnail,
.single-product .product-img,
.single-product .product-image,
.single-product .thumb,
.single-product .thumbnail,
[class*="product-card"] .product-img,
[class*="product-card"] .product-image,
[class*="product-card"] .thumb,
[class*="product-card"] .thumbnail,
[class*="featured-product"] .product-img,
[class*="featured-product"] .product-image,
[class*="featured-product"] .thumb,
[class*="featured-product"] .thumbnail,
[class*="wishlist-item"] .product-img,
[class*="wishlist-item"] .product-image,
[class*="wishlist-item"] .thumb,
[class*="wishlist-item"] .thumbnail,
.product-item .image,
.product-card .image,
.single-product .image,
[class*="product-card"] .image {
    background: var(--luton-card-soft) !important;
    border-radius: 14px !important;
    margin: 12px 12px 0 12px !important;
    min-height: 190px !important;
    height: 190px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 14px !important;
}

/* product images */
.product-item img,
.product-card img,
.single-product img,
.single-product-item img,
.lhp-product-card img,
.luton-product-card img,
.featured-product-item img,
.featured-product-card img,
.shop-product-card img,
.wishlist-product-card img,
[class*="product-card"] img,
[class*="featured-product"] img,
[class*="wishlist-item"] img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* inner body / content */
.product-item .product-content,
.product-item .content,
.product-card .product-content,
.product-card .content,
.single-product .product-content,
.single-product .content,
.single-product-item .content,
[class*="product-card"] .product-content,
[class*="product-card"] .content,
[class*="featured-product"] .product-content,
[class*="featured-product"] .content,
[class*="wishlist-item"] .product-content,
[class*="wishlist-item"] .content {
    padding: 12px 14px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

/* product category / meta */
.product-item .category,
.product-item .product-category,
.product-card .category,
.product-card .product-category,
.single-product .category,
.single-product .product-category,
[class*="product-card"] .category,
[class*="product-card"] .product-category,
[class*="featured-product"] .category,
[class*="featured-product"] .product-category {
    color: #2f7f4d !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    margin-bottom: 6px !important;
}

/* titles */
.product-item h3,
.product-item h4,
.product-item .title,
.product-item .product-title,
.product-card h3,
.product-card h4,
.product-card .title,
.product-card .product-title,
.single-product h3,
.single-product h4,
.single-product .title,
.single-product .product-title,
[class*="product-card"] h3,
[class*="product-card"] h4,
[class*="product-card"] .title,
[class*="product-card"] .product-title,
[class*="featured-product"] h3,
[class*="featured-product"] h4,
[class*="featured-product"] .title,
[class*="featured-product"] .product-title,
[class*="wishlist-item"] h3,
[class*="wishlist-item"] h4,
[class*="wishlist-item"] .title,
[class*="wishlist-item"] .product-title {
    color: var(--luton-text-dark) !important;
    font-size: 17px !important;
    line-height: 1.32 !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    min-height: 46px !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* badges */
.product-item .badge,
.product-item .product-badge,
.product-item .stock-badge,
.product-item .stock-status,
.product-card .badge,
.product-card .product-badge,
.product-card .stock-badge,
.product-card .stock-status,
.single-product .badge,
.single-product .product-badge,
.single-product .stock-badge,
.single-product .stock-status,
[class*="product-card"] .badge,
[class*="product-card"] .product-badge,
[class*="product-card"] .stock-badge,
[class*="product-card"] .stock-status {
    border-radius: 999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
}

/* price area */
.product-item .price,
.product-item .product-price,
.product-card .price,
.product-card .product-price,
.single-product .price,
.single-product .product-price,
[class*="product-card"] .price,
[class*="product-card"] .product-price,
[class*="featured-product"] .price,
[class*="featured-product"] .product-price,
[class*="wishlist-item"] .price,
[class*="wishlist-item"] .product-price {
    margin-top: auto !important;
    padding-top: 6px !important;
    min-height: 62px !important;
}

.product-item .price,
.product-card .price,
.single-product .price,
[class*="product-card"] .price,
[class*="featured-product"] .price,
[class*="wishlist-item"] .price {
    color: var(--luton-brand-red) !important;
    font-weight: 800 !important;
    font-size: 18px !important;
}

.product-item .old-price,
.product-item del,
.product-card .old-price,
.product-card del,
.single-product .old-price,
.single-product del,
[class*="product-card"] .old-price,
[class*="product-card"] del,
[class*="featured-product"] .old-price,
[class*="featured-product"] del,
[class*="wishlist-item"] .old-price,
[class*="wishlist-item"] del {
    color: #8d98a5 !important;
    font-size: 14px !important;
    margin-top: 3px !important;
}

/* buttons row */
.product-item .product-btn,
.product-item .product-action,
.product-item .actions,
.product-card .product-btn,
.product-card .product-action,
.product-card .actions,
.single-product .product-btn,
.single-product .product-action,
.single-product .actions,
[class*="product-card"] .product-btn,
[class*="product-card"] .product-action,
[class*="product-card"] .actions,
[class*="featured-product"] .product-btn,
[class*="featured-product"] .product-action,
[class*="featured-product"] .actions,
[class*="wishlist-item"] .product-btn,
[class*="wishlist-item"] .product-action,
[class*="wishlist-item"] .actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 10px !important;
    margin-top: 12px !important;
    width: 100% !important;
}

/* buttons */
.product-item .product-btn a,
.product-item .product-action a,
.product-item .actions a,
.product-item .product-btn button,
.product-item .product-action button,
.product-item .actions button,
.product-card .product-btn a,
.product-card .product-action a,
.product-card .actions a,
.product-card .product-btn button,
.product-card .product-action button,
.product-card .actions button,
.single-product .product-btn a,
.single-product .product-action a,
.single-product .actions a,
.single-product .product-btn button,
.single-product .product-action button,
.single-product .actions button,
[class*="product-card"] .product-btn a,
[class*="product-card"] .product-action a,
[class*="product-card"] .actions a,
[class*="product-card"] .product-btn button,
[class*="product-card"] .product-action button,
[class*="product-card"] .actions button,
[class*="featured-product"] .product-btn a,
[class*="featured-product"] .product-action a,
[class*="featured-product"] .actions a,
[class*="featured-product"] .product-btn button,
[class*="featured-product"] .product-action button,
[class*="featured-product"] .actions button,
[class*="wishlist-item"] .product-btn a,
[class*="wishlist-item"] .product-action a,
[class*="wishlist-item"] .actions a,
[class*="wishlist-item"] .product-btn button,
[class*="wishlist-item"] .product-action button,
[class*="wishlist-item"] .actions button {
    min-height: 44px !important;
    height: 44px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    width: 100% !important;
    padding: 0 10px !important;
}

/* wishlist page safety cleanup */
.wishlist-page table,
.wishlist-page tbody,
.wishlist-page tr,
.wishlist-page td {
    background: transparent !important;
}

/* mobile refinement */
@media (max-width: 767.98px){

    .product-item,
    .product-card,
    .single-product,
    .single-product-item,
    .lhp-product-card,
    .luton-product-card,
    .featured-product-item,
    .featured-product-card,
    .shop-product-card,
    .wishlist-product-card,
    [class*="product-card"],
    [class*="featured-product"],
    [class*="wishlist-item"] {
        border-radius: 14px !important;
    }

    .product-item .product-img,
    .product-item .product-image,
    .product-item .thumb,
    .product-item .thumbnail,
    .product-card .product-img,
    .product-card .product-image,
    .product-card .thumb,
    .product-card .thumbnail,
    .single-product .product-img,
    .single-product .product-image,
    .single-product .thumb,
    .single-product .thumbnail,
    [class*="product-card"] .product-img,
    [class*="product-card"] .product-image,
    [class*="product-card"] .thumb,
    [class*="product-card"] .thumbnail,
    [class*="featured-product"] .product-img,
    [class*="featured-product"] .product-image,
    [class*="featured-product"] .thumb,
    [class*="featured-product"] .thumbnail,
    [class*="wishlist-item"] .product-img,
    [class*="wishlist-item"] .product-image,
    [class*="wishlist-item"] .thumb,
    [class*="wishlist-item"] .thumbnail,
    .product-item .image,
    .product-card .image,
    .single-product .image,
    [class*="product-card"] .image {
        min-height: 150px !important;
        height: 150px !important;
        margin: 10px 10px 0 10px !important;
        padding: 10px !important;
    }

    .product-item .product-content,
    .product-item .content,
    .product-card .product-content,
    .product-card .content,
    .single-product .product-content,
    .single-product .content,
    .single-product-item .content,
    [class*="product-card"] .product-content,
    [class*="product-card"] .content,
    [class*="featured-product"] .product-content,
    [class*="featured-product"] .content,
    [class*="wishlist-item"] .product-content,
    [class*="wishlist-item"] .content {
        padding: 10px 10px 12px !important;
    }

    .product-item h3,
    .product-item h4,
    .product-item .title,
    .product-item .product-title,
    .product-card h3,
    .product-card h4,
    .product-card .title,
    .product-card .product-title,
    .single-product h3,
    .single-product h4,
    .single-product .title,
    .single-product .product-title,
    [class*="product-card"] h3,
    [class*="product-card"] h4,
    [class*="product-card"] .title,
    [class*="product-card"] .product-title,
    [class*="featured-product"] h3,
    [class*="featured-product"] h4,
    [class*="featured-product"] .title,
    [class*="featured-product"] .product-title,
    [class*="wishlist-item"] h3,
    [class*="wishlist-item"] h4,
    [class*="wishlist-item"] .title,
    [class*="wishlist-item"] .product-title {
        font-size: 15px !important;
        line-height: 1.3 !important;
        min-height: 40px !important;
        margin-bottom: 8px !important;
    }

    .product-item .price,
    .product-item .product-price,
    .product-card .price,
    .product-card .product-price,
    .single-product .price,
    .single-product .product-price,
    [class*="product-card"] .price,
    [class*="product-card"] .product-price,
    [class*="featured-product"] .price,
    [class*="featured-product"] .product-price,
    [class*="wishlist-item"] .price,
    [class*="wishlist-item"] .product-price {
        min-height: 56px !important;
        font-size: 16px !important;
    }

    .product-item .product-btn,
    .product-item .product-action,
    .product-item .actions,
    .product-card .product-btn,
    .product-card .product-action,
    .product-card .actions,
    .single-product .product-btn,
    .single-product .product-action,
    .single-product .actions,
    [class*="product-card"] .product-btn,
    [class*="product-card"] .product-action,
    [class*="product-card"] .actions,
    [class*="featured-product"] .product-btn,
    [class*="featured-product"] .product-action,
    [class*="featured-product"] .actions,
    [class*="wishlist-item"] .product-btn,
    [class*="wishlist-item"] .product-action,
    [class*="wishlist-item"] .actions {
        gap: 8px !important;
        margin-top: 10px !important;
    }

    .product-item .product-btn a,
    .product-item .product-action a,
    .product-item .actions a,
    .product-item .product-btn button,
    .product-item .product-action button,
    .product-item .actions button,
    .product-card .product-btn a,
    .product-card .product-action a,
    .product-card .actions a,
    .product-card .product-btn button,
    .product-card .product-action button,
    .product-card .actions button,
    .single-product .product-btn a,
    .single-product .product-action a,
    .single-product .actions a,
    .single-product .product-btn button,
    .single-product .product-action button,
    .single-product .actions button,
    [class*="product-card"] .product-btn a,
    [class*="product-card"] .product-action a,
    [class*="product-card"] .actions a,
    [class*="product-card"] .product-btn button,
    [class*="product-card"] .product-action button,
    [class*="product-card"] .actions button,
    [class*="featured-product"] .product-btn a,
    [class*="featured-product"] .product-action a,
    [class*="featured-product"] .actions a,
    [class*="featured-product"] .product-btn button,
    [class*="featured-product"] .product-action button,
    [class*="featured-product"] .actions button,
    [class*="wishlist-item"] .product-btn a,
    [class*="wishlist-item"] .product-action a,
    [class*="wishlist-item"] .actions a,
    [class*="wishlist-item"] .product-btn button,
    [class*="wishlist-item"] .product-action button,
    [class*="wishlist-item"] .actions button {
        min-height: 42px !important;
        height: 42px !important;
        font-size: 14px !important;
        padding: 0 8px !important;
    }
}

/* LUTON_PRODUCT_IMAGE_SPACING_V2 */

/* HOMEPAGE PRODUCT CARDS */
.lhp-market-home .lhp-product-card,
.lhp-market-home .lhp-product-item,
.lhp-market-home [class*="product-card"] {
    min-width:0!important;
}

/* Increase usable space inside product image containers */
.lhp-market-home .lhp-product-image,
.lhp-market-home .lhp-product-thumb,
.lhp-market-home .lhp-product-photo,
.lhp-market-home .product-image,
.lhp-market-home .product-img {
    padding:5px!important;
    overflow:hidden!important;
}

/* Keep entire packaging visible */
.lhp-market-home .lhp-product-image img,
.lhp-market-home .lhp-product-thumb img,
.lhp-market-home .lhp-product-photo img,
.lhp-market-home .product-image img,
.lhp-market-home .product-img img {
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
}

/* Reduce excessive price-to-button spacing */
.lhp-market-home .lhp-price-row {
    margin-bottom:8px!important;
    min-height:0!important;
    padding-bottom:0!important;
}

/* Two-column mobile layout remains intact */
@media(max-width:767px) {
    .lhp-market-home .lhp-product-card,
    .lhp-market-home .lhp-product-item {
        min-height:0!important;
        height:auto!important;
    }

    .lhp-market-home .lhp-product-image,
    .lhp-market-home .lhp-product-thumb,
    .lhp-market-home .lhp-product-photo {
        height:150px!important;
        min-height:150px!important;
    }

    .lhp-market-home .lhp-product-image img,
    .lhp-market-home .lhp-product-thumb img,
    .lhp-market-home .lhp-product-photo img {
        max-height:145px!important;
    }

    .lhp-market-home .lhp-price-row {
        margin-top:5px!important;
        margin-bottom:8px!important;
    }
}

/* LUTON_COMPACT_PRODUCT_CARDS_V3 */

/* Keep product cards aligned without artificial height */
.lhp-market-home .lhp-product-card,
.lhp-market-home .lhp-product-item,
.lhp-market-home [class*="product-card"],
.lhp-market-home .product-item {
    min-height: 0 !important;
    height: auto !important;
}

/* Bring buttons closer to prices */
.lhp-market-home .lhp-price-row,
.lhp-market-home .product-price,
.lhp-market-home .price {
    margin-bottom: 8px !important;
    padding-bottom: 0 !important;
    min-height: 0 !important;
    margin-top: 6px !important;
}

/* Compact actual product action containers */
.lhp-market-home .lhp-product-actions,
.lhp-market-home .lhp-card-actions,
.lhp-market-home .product-actions,
.lhp-market-home .product-action,
.lhp-market-home .product-btn,
.lhp-market-home .actions {
    margin-top: 10px !important;
    padding-top: 0 !important;
    align-self: stretch !important;
}

/* Remove price and action auto-spacing imposed by old styles */
.lhp-market-home .lhp-price-row,
.lhp-market-home .product-price,
.lhp-market-home .product-action,
.lhp-market-home .product-actions,
.lhp-market-home .actions {
    flex-grow: 0 !important;
}

/* Mobile card refinements */
@media (max-width: 767px) {

    .lhp-market-home .lhp-product-card,
    .lhp-market-home .lhp-product-item,
    .lhp-market-home [class*="product-card"],
    .lhp-market-home .product-item {
        min-height: 0 !important;
        height: auto !important;
    }

    .lhp-market-home .lhp-price-row,
    .lhp-market-home .product-price,
    .lhp-market-home .price {
        margin-top: 5px !important;
        margin-bottom: 8px !important;
        min-height: 0 !important;
    }

    .lhp-market-home .lhp-product-actions,
    .lhp-market-home .lhp-card-actions,
    .lhp-market-home .product-actions,
    .lhp-market-home .product-action,
    .lhp-market-home .actions {
        margin-top: 8px !important;
        margin-bottom: 0 !important;
    }

    /* Preserve button readability */
    .lhp-market-home .lhp-product-actions a,
    .lhp-market-home .lhp-product-actions button,
    .lhp-market-home .lhp-card-actions a,
    .lhp-market-home .lhp-card-actions button {
        min-height: 39px !important;
        height: 39px !important;
        font-size: 12px !important;
    }
}