.yalla-product-card {
    direction: rtl;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 3px 12px #1c232b14;
    height: 100%;
    transition: .25s
}

.yalla-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px #1c232b24
}

.yp-image {
    height: 145px;
    position: relative;
    overflow: hidden;
    background: #eee
}

.yp-image>a:first-child {
    display: block;
    height: 100%
}

.yp-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s
}

.yalla-product-card:hover .yp-image>a:first-child img {
    transform: scale(1.05)
}

.yp-status {
    display: flex;
    position: absolute;
    top: 9px;
    right: 7px;
    padding: 2px;
    border-radius: 5px;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 7px #0003;
    width: 42px;
    text-align: center;
    height: 25px;
    align-items: center;
    justify-content: center;
    align-content: center;
}

.yp-status:before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    margin-left: 5px
}

.yp-discount {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 20px;
    background: linear-gradient(135deg, #ff5a1f, #ef3f4f);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}

.yp-discount i {
    font-size: 9px;
}

.yp-price-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.yp-price-old {
    color: #aaa;
    font-size: 10.5px;
    text-decoration: line-through;
}

.yp-status.open {
    background: #159447
}

.yp-status.closed {
    background: #dc3545
}

.yp-fav {
    position: absolute;
    top: 9px;
    left: 9px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fffffff2;
    color: #929292;
    box-shadow: 0 2px 8px #0002
}

.yp-fav.active {
    color: #ef3f4f
}

.yp-body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 26px 13px 13px
}

.yp-logo {
    position: absolute;
    top: -24px;
    left: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    padding: 3px;
    background: #fff;
    box-shadow: 0 2px 9px #0003;
    z-index: 2
}

.yp-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover
}

.yp-logo-name {
    position: absolute;
    top: -14px;
    left: 64px;
    max-width: calc(100% - 76px);
    background: #fff;
    color: #303034;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    padding: 4px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 7px #0002;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2
}

.yp-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-width: 100%;
    min-height: 2.6em;
    font-size: 14px;
    font-weight: 800;
    color: #202124;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 9px
}

.yp-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-top: 1px solid #f1f1f1;
    padding-top: 8px;
    margin-top: auto
}

.yp-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    color: #777;
    font-size: 10px;
    margin-bottom: 8px;
}

.yp-info-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}

.yp-meta i {
    margin-left: 3px
}

.yp-meta .fa-star {
    color: #f5a623
}

.yp-stars {
    display: inline-flex;
    gap: 1px;
    font-size: 9px;
}

.yp-stars i {
    color: #f5a623;
    margin-left: 0;
}

.yp-stars i.fa-regular {
    color: #ddd;
}

.yp-prep-time {
    display: inline-flex;
    align-items: center;
    color: #777;
    font-size: 10px;
    white-space: nowrap;
}

.yp-prep-time i {
    color: #ff8a00;
}

.yp-price {
    display: block;
    color: #e85b19;
    font-size: 13px;
    margin-top: 3px
}

.yp-add {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fc5700;
    color: #fff;
    box-shadow: 0 3px 8px #fc57004d
}

.yp-add:hover {
    background: #202124;
    color: #fff
}

.yp-add--disabled {
    width: 29px;
    height: 29px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e2e2e2;
    color: #999;
    cursor: not-allowed;
}

.yalla-product-card.is-closed .yp-image img {
    filter: grayscale(.4);
    opacity: .75;
}

@media(max-width:576px) {
    .yp-image {
        height: 125px
    }

    .yp-body {
        padding: 11px
    }

    .yp-meta {
        font-size: 9px
    }
}

/* ---------- Overlay variant (.yph — used to alternate visual rhythm on the homepage) ----------
   Full-bleed photo as the card background with a dark gradient shade at the bottom; title,
   rating, delivery time and price sit directly on the shade instead of a separate white body. */
.yph {
    position: relative;
    height: 320px;
    justify-content: flex-end
}

.yph-image {
    position: absolute;
    inset: 0;
    display: block
}

.yph-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .4s
}

.yph:hover .yph-image img {
    transform: scale(1.05)
}

.yph-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, #000000b3 85%, #000000d9 100%);
    pointer-events: none
}

.yph.is-closed .yph-image img {
    filter: grayscale(.4);
    opacity: .75
}

.yph-fav {
    position: absolute;
    top: 9px;
    left: 9px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fffffff2;
    color: #929292;
    box-shadow: 0 2px 8px #0002
}

.yph-fav.active {
    color: #ef3f4f
}

.yph-badge {
    position: absolute;
    top: 9px;
    right: 9px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 90px);
    background: #fff;
    color: #303034;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    padding: 5px 10px;
    border-radius: 20px;
    box-shadow: 0 2px 7px #0003;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.yph-badge--logo img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0
}

.yph-badge span {
    overflow: hidden;
    text-overflow: ellipsis
}

.yph-body {
    position: relative;
    z-index: 2;
    padding: 13px
}

.yph-title {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    line-height: 1.3;
    margin-bottom: 6px;
    text-shadow: 0 1px 4px #0006;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.yph-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    color: #f1f1f1;
    font-size: 10.5px;
    margin-bottom: 9px
}

.yph-meta .yp-info-stack {
    align-items: flex-end;
}

.yph-rate {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700
}

.yph-rate i {
    color: #f5a623
}

.yph-meta .yp-prep-time {
    color: #f1f1f1
}

.yph-meta .yp-prep-time i {
    color: #ffb154
}

.yph-footer {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.yph-footer .yp-price {
    color: #fff
}

.yph-footer .yp-price-old {
    color: #d8d8d8
}

@media(max-width:576px) {
    .yph {
        height: 260px
    }
}