/* ==========================================================
   DISH CARD
========================================================== */

.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 28px;
    margin-top: 30px;
}

.dish-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,.08);
    transition: .35s ease;
    border: 1px solid #ece7da;
}

.dish-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(0,0,0,.12);
}


/* ==========================================================
   IMAGE
========================================================== */

.dish-image {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #f6f3ea;
    overflow: hidden;
}

.dish-image-link {
    position: absolute;
    inset: 0;
    display: block;
    z-index: 10;
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.dish-card:hover .dish-image img {
    transform: scale(1.05);
}

.dish-image img.dish-placeholder {
    object-fit: contain;
    object-position: center;
    padding: 34px;
    opacity: .55;
    transform: none;
}

.dish-card:hover .dish-image img.dish-placeholder {
    transform: none;
}


/* ==========================================================
   BADGES
========================================================== */

.badge {
    position: absolute;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: .80rem;
    font-weight: 700;
    color: #fff;
    backdrop-filter: blur(8px);
    z-index: 20;
}

.badge-left {
    top: 14px;
    left: 14px;
    background: #d69c1f;
}

/* Availability is intentionally only a small status circle. */
.availability-dot {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    z-index: 20;
    border: 2px solid rgba(255,255,255,.95);
    box-shadow: 0 2px 8px rgba(0,0,0,.22);
}

.availability-dot.is-available {
    background: #1f9d55;
}

.availability-dot.is-unavailable {
    background: #d32f2f;
}

.badge-bottom {
    left: 14px;
    bottom: 14px;
    background: #d97706;
}


/* ==========================================================
   BODY
========================================================== */

.dish-body {
    padding: 14px;
}

.dish-body h3 {
    font-size: 1.15rem;
    color: #284b1b;
    margin-bottom: 7px;
}

.dish-description {
    color: #666;
    line-height: 1.45;
    margin-bottom: 8px;

    /* Prevent descriptions from making cards unnecessarily tall */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ==========================================================
   PRICE & DETAILS
========================================================== */

.dish-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 0;
    height: auto;

    margin-bottom: 7px;
    padding: 0;

    font-size: .85rem;
}

/* Prevent flex children from creating unwanted height */
.dish-rating * {
    min-height: 0;
}

.stars {
    color: #d69c1f;
    font-weight: 700;
}

.reviews-count {
    color: #888;
}

.dish-price {
    font-size: 1.45rem;
    font-weight: 800;
    color: #284b1b;
    margin-bottom: 7px;
}

.dish-meta-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-bottom: 7px;
    flex-wrap: wrap;
}

.portion-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 30px;
    background: #edf6e8;
    color: #284b1b;
    font-weight: 700;
}

.dish-preparation {
    color: #284b1b;
    font-weight: 700;
    font-size: .85rem;
}

.dish-serves {
    color: #666;
    margin-bottom: 10px;
    font-size: .85rem;
}


/* ==========================================================
   BUTTONS
========================================================== */

.dish-actions {
    margin-bottom: 10px;
}

.add-cart {
    width: 100%;
}

.add-cart:disabled {
    opacity: .55;
    cursor: not-allowed;
    filter: grayscale(.35);
}


/* ==========================================================
   LINKS
========================================================== */

.dish-links {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 8px;

    border-top: 1px solid #ececec;
    padding-top: 10px;
}

.dish-link {
    color: #284b1b;
    font-size: .78rem;
    font-weight: 600;
    transition: .30s;
}

.dish-link:hover {
    color: #c59b39;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 768px) {

    .dish-grid {
        grid-template-columns: 1fr;
    }

    .dish-body {
        padding: 14px;
    }

    .dish-price {
        font-size: 1.35rem;
    }

    .dish-links {
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    .dish-link {
        font-size: .75rem;
    }
}
.dish-link.dish-share-button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    cursor: pointer;
}
.favourite-form{display:inline}.dish-links .favourite-button{font:inherit;background:none;border:0;padding:0;cursor:pointer}.dish-links .favourite-button.is-favourite{font-weight:700}.dish-links .favourite-button:disabled{opacity:.6;cursor:wait}

/* ==========================================================
   Customer Favourites
========================================================== */
.favourite-form {
    display: inline-flex;
    margin: 0;
}

.dish-links .favourite-button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

.dish-links .favourite-button.is-favourite {
    color: var(--gold);
    font-weight: 800;
}

.dish-links .favourite-button:disabled {
    opacity: .6;
    cursor: wait;
}


/* Public dish likes */
.dish-like-row { display:flex; align-items:center; margin:0 0 9px; }
.like-form { display:inline-flex; align-items:center; gap:5px; margin:0; }
.dish-like-button { border:0; background:none; padding:0; color:#777; font-size:1.45rem; line-height:1; cursor:pointer; }
.dish-like-button.is-liked { color:#b33a3a; }
.dish-like-button:disabled { opacity:.55; cursor:wait; }
.dish-like-count { color:#555; font-size:.78rem; font-weight:700; }
.dish-like-label { color:#888; font-size:.75rem; }
