/*
 * WizzMall V19R
 * Product card repair:
 * image -> title -> store -> price
 * No text/price overlay on the image.
 */

body.wizz-upper-egypt-lite #products.row-custom,
body.wizz-upper-egypt-lite .row-products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    align-items: stretch !important;
}

body.wizz-upper-egypt-lite #products.row-custom > [class*="col-"],
body.wizz-upper-egypt-lite .row-products > [class*="col-"] {
    width: auto !important;
    max-width: none !important;
    flex: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

body.wizz-upper-egypt-lite .product-card,
body.wizz-upper-egypt-lite .item-product {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border: 1px solid #eadfd2 !important;
    border-radius: 18px !important;
    box-shadow: 0 5px 18px rgba(74, 52, 31, .07) !important;
}

/* Remove old dark/gradient overlays. */
body.wizz-upper-egypt-lite .product-card::before,
body.wizz-upper-egypt-lite .product-card::after,
body.wizz-upper-egypt-lite .item-product::before,
body.wizz-upper-egypt-lite .item-product::after,
body.wizz-upper-egypt-lite .product-card .card-body::before,
body.wizz-upper-egypt-lite .product-card .card-body::after,
body.wizz-upper-egypt-lite .product-card .product-image-container::before,
body.wizz-upper-egypt-lite .product-card .product-image-container::after,
body.wizz-upper-egypt-lite .product-card .product-footer::before,
body.wizz-upper-egypt-lite .product-card .product-footer::after {
    content: none !important;
    display: none !important;
    background: none !important;
}

/* IMAGE AREA */
body.wizz-upper-egypt-lite .product-card .product-image-container {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    height: 205px !important;
    min-height: 205px !important;
    margin: 0 !important;
    padding: 12px !important;
    overflow: hidden !important;
    background: #fbfaf7 !important;
    border: 0 !important;
    border-bottom: 1px solid #f0e8dd !important;
    border-radius: 0 !important;
}

body.wizz-upper-egypt-lite .product-card .product-image-container > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    overflow: hidden !important;
    background: #fff !important;
    border-radius: 13px !important;
}

body.wizz-upper-egypt-lite .product-card .product-image,
body.wizz-upper-egypt-lite .product-card .default-image {
    position: static !important;
    inset: auto !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-height: 181px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    opacity: 1 !important;
    transform: none !important;
    background: #fff !important;
    border-radius: 11px !important;
}

body.wizz-upper-egypt-lite .product-card .hover-image {
    display: none !important;
}

/* Only wishlist stays on image. */
body.wizz-upper-egypt-lite .product-card .product-actions-overlay {
    position: absolute !important;
    z-index: 6 !important;
    top: 12px !important;
    left: 12px !important;
    right: auto !important;
    bottom: auto !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

body.wizz-upper-egypt-lite .product-card .product-actions-overlay .cart-btn {
    display: none !important;
}

body.wizz-upper-egypt-lite .product-card .product-actions-overlay .action-btn,
body.wizz-upper-egypt-lite .product-card .product-actions-overlay .wishlist-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    background: rgba(255, 255, 255, .96) !important;
    color: #433527 !important;
    border: 1px solid #e5d9ca !important;
    border-radius: 999px !important;
    box-shadow: 0 5px 14px rgba(0, 0, 0, .08) !important;
}

/* INFORMATION AREA — ALWAYS UNDER IMAGE */
body.wizz-upper-egypt-lite .product-card .card-body {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    width: 100% !important;
    min-height: 132px !important;
    margin: 0 !important;
    padding: 13px 14px 14px !important;
    overflow: visible !important;
    background: #fff !important;
    color: #2f2418 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
}

/* NAME */
body.wizz-upper-egypt-lite .product-card .product-title,
body.wizz-upper-egypt-lite .product-card .product-title a {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: -webkit-box !important;
    width: 100% !important;
    min-height: 47px !important;
    max-height: 47px !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: transparent !important;
    color: #2f2418 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1.55 !important;
    text-align: right !important;
    text-decoration: none !important;
    text-shadow: none !important;
    opacity: 1 !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
}

/* STORE */
body.wizz-upper-egypt-lite .product-card .product-seller,
body.wizz-upper-egypt-lite .product-card .product-seller a {
    position: static !important;
    display: block !important;
    width: 100% !important;
    margin: 0 0 7px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #81705d !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    line-height: 1.35 !important;
    text-align: right !important;
    text-decoration: none !important;
    text-shadow: none !important;
}

/* Hide zero-value rating noise on cards. */
body.wizz-upper-egypt-lite .product-card .product-rating {
    display: none !important;
}

/* PRICE AREA */
body.wizz-upper-egypt-lite .product-card .product-footer {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: space-between !important;
    flex-wrap: wrap !important;
    gap: 5px 8px !important;
    width: 100% !important;
    min-height: 38px !important;
    margin: auto 0 0 !important;
    padding: 10px 0 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    border-top: 1px dashed #eadfd0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.wizz-upper-egypt-lite .product-card .product-price,
body.wizz-upper-egypt-lite .product-card .product-price.display-block,
body.wizz-upper-egypt-lite .product-card .product-footer .product-price {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.wizz-upper-egypt-lite .product-card .product-price .price,
body.wizz-upper-egypt-lite .product-card .product-price .price-green,
body.wizz-upper-egypt-lite .product-card .product-footer .price,
body.wizz-upper-egypt-lite .product-card .product-footer .price-new,
body.wizz-upper-egypt-lite .product-card .product-footer .discounted-price,
body.wizz-upper-egypt-lite .product-card .product-footer .price-free {
    position: static !important;
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    color: #e85b0c !important;
    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1.15 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

body.wizz-upper-egypt-lite .product-card .discount-original-price,
body.wizz-upper-egypt-lite .product-card .product-price del,
body.wizz-upper-egypt-lite .product-card .product-footer del {
    position: static !important;
    display: block !important;
    margin: 0 0 2px !important;
    padding: 0 !important;
    color: #998875 !important;
    background: transparent !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-shadow: none !important;
}

body.wizz-upper-egypt-lite .product-card .item-wishlist {
    display: none !important;
}

body.wizz-upper-egypt-lite .product-card .product-card-badge {
    z-index: 7 !important;
}

/* Mobile/narrow storefront: two readable cards, not three cramped cards. */
@media (max-width: 767.98px) {
    body.wizz-upper-egypt-lite #products.row-custom,
    body.wizz-upper-egypt-lite .row-products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    body.wizz-upper-egypt-lite .product-card .product-image-container {
        height: 180px !important;
        min-height: 180px !important;
        padding: 9px !important;
    }

    body.wizz-upper-egypt-lite .product-card .product-image,
    body.wizz-upper-egypt-lite .product-card .default-image {
        max-height: 160px !important;
    }

    body.wizz-upper-egypt-lite .product-card .card-body {
        min-height: 124px !important;
        padding: 11px !important;
    }

    body.wizz-upper-egypt-lite .product-card .product-title,
    body.wizz-upper-egypt-lite .product-card .product-title a {
        min-height: 44px !important;
        max-height: 44px !important;
        font-size: 14px !important;
    }

    body.wizz-upper-egypt-lite .product-card .product-price .price,
    body.wizz-upper-egypt-lite .product-card .product-price .price-green,
    body.wizz-upper-egypt-lite .product-card .product-footer .price,
    body.wizz-upper-egypt-lite .product-card .product-footer .price-new,
    body.wizz-upper-egypt-lite .product-card .product-footer .discounted-price {
        font-size: 20px !important;
    }
}

@media (max-width: 380px) {
    body.wizz-upper-egypt-lite #products.row-custom,
    body.wizz-upper-egypt-lite .row-products {
        grid-template-columns: 1fr !important;
    }
}