/* ============================================
   GO LYVK — Menu Category Page
   ============================================ */

/* ── BREADCRUMB ── */
.menu-breadcrumb {
    padding: 28px 60px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(0, 0, 0, 0.4);
}

.menu-breadcrumb a {
    color: rgba(0, 0, 0, 0.4);
    transition: color 0.2s;
}

.menu-breadcrumb a:hover {
    color: var(--black);
}

.menu-breadcrumb__sep {
    opacity: 0.3;
}

.menu-breadcrumb__current {
    color: var(--black);
}

/* ── CATEGORY HERO ── */
.category-hero {
    position: relative;
    height: 340px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin: 28px 60px 0;
}

.category-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(0.45);
    transition: transform 8s ease;
}

.category-hero:hover .category-hero__bg {
    transform: scale(1.04);
}

.category-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
}

.category-hero__content {
    position: relative;
    z-index: 1;
    padding: 40px;
    color: var(--white);
}

.category-hero__label {
    font-family: var(--font-ui);
    font-size: 11px;
    letter-spacing: 0.22em;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 10px;
}

.category-hero__title {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--white);
}

/* ── DISHES GRID ── */
.dishes-section {
    padding: 60px 60px 100px;
}

.dishes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 32px;
}

/* ── DISH CARD ── */
.dish-card {
    display: flex;
    flex-direction: column;
    cursor: default;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.dish-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.dish-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    margin-bottom: 18px;
    background: #f0ede8;
}
.dish-card__image--clickable { cursor: pointer; }

.dish-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

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

/* Affordance: make it obvious the photo opens full dish details (esp. mobile,
   where hover doesn't exist). Always visible; clicks pass through to the image. */
.dish-card__view {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    pointer-events: none;
    transition: background 0.2s;
}
.dish-card__view svg {
    width: 13px;
    height: 13px;
}
.dish-card:hover .dish-card__view {
    background: rgba(216, 163, 64, 0.92);
}

.dish-card__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.dish-card__name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 400;
    color: var(--black);
    line-height: 1.2;
    flex: 1;
    padding-right: 12px;
}

.dish-card__weight {
    font-family: var(--font-ui);
    font-size: 11px;
    color: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.dish-card__desc {
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 300;
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.55);
    margin-bottom: 14px;
    flex: 1;
}

.dish-card__price {
    font-family: var(--font-ui);
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    letter-spacing: 0.02em;
}

.dish-card__price span {
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.4);
    margin-left: 3px;
}

.dish-card__price-bgn {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.02em;
    margin-top: 2px;
}

.dish-card__divider {
    width: 100%;
    height: 1px;
    background: var(--gray-light);
    margin-top: 20px;
}

/* ── BACK NAV ── */
.category-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 60px 40px;
    padding: 11px 20px;
    border: 1px solid #d8d5cd;
    border-radius: 999px;
    background: #fff;
    font-family: var(--font-ui);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #333;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-back:hover {
    background: #1a1a1a;
    border-color: #1a1a1a;
    color: #fff;
}


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

.image-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.94);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.image-modal__close {
    position: fixed;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.85);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    z-index: 10001;
    user-select: none;
}

.image-modal__close:hover {
    background: rgba(0, 0, 0, 0.6);
    color: var(--accent-gold, #D8A340);
}

/* ── Inner layout: photo on top, description reveals below ── */
.image-modal__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 24px 20px;
    box-sizing: border-box;
}

/* ── Image ── */
.image-modal__img-wrap {
    position: relative;
    flex: 0 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: 100%;
}

.image-modal__img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 48px);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transform: scale(0.97);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease, max-height 0.4s ease;
}

.image-modal.active .image-modal__img {
    transform: scale(1);
    opacity: 1;
}

.image-modal__inner.expanded .image-modal__img-wrap,
.image-modal__inner.expanded .image-modal__img {
    max-height: 40vh;
}

/* ── Toggle: overlay pill, bottom-center on the photo ── */
.image-modal__toggle {
    position: absolute;
    left: 50%;
    bottom: 0px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 18px;
    border: none;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: rgba(255, 255, 255, 0.92);
    font-family: 'Cormorant Garamond', serif;
    font-size: 15px;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: background 0.2s;
}

.image-modal__toggle:hover {
    background: rgba(0, 0, 0, 0.75);
}

.image-modal__toggle-arrow {
    display: flex;
    transition: transform 0.3s ease;
}

.image-modal__toggle-arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

.image-modal__inner.expanded .image-modal__toggle-arrow {
    transform: rotate(180deg);
}

/* ── Info panel: collapsed by default, reveals on toggle ── */
.image-modal__info {
    width: 100%;
    max-width: 560px;
    text-align: center;
    padding: 0 12px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.05s, margin-top 0.4s ease;
}

.image-modal__inner.expanded .image-modal__info {
    max-height: 38vh;
    opacity: 1;
    margin-top: 22px;
    overflow-y: auto;
}

.image-modal__name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 400;
    color: #D8A340;
    line-height: 1.25;
    letter-spacing: 0.02em;
    margin: 18px 0 14px;
}

.image-modal__divider {
    width: 36px;
    height: 1px;
    background: rgba(216, 163, 64, 0.35);
    margin: 0 auto 16px;
}

.image-modal__meta {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin: 0 0 16px;
    font-family: 'Cormorant Garamond', serif;
    font-size: 17px;
    letter-spacing: 0.02em;
    color: #D8A340;
}
.image-modal__meta span { white-space: nowrap; }

.image-modal__desc {
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.62);
    line-height: 1.75;
    margin: 0 0 8px;
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .image-modal__inner {
        padding: 16px 16px 24px;
    }

    .image-modal__close {
        top: 12px;
        right: 12px;
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .image-modal__toggle {
        font-size: 13.5px;
        padding: 8px 16px;
        bottom: 8px;
    }

    .image-modal__name {
        font-size: 19px;
        margin: 16px 0 12px;
    }

    .image-modal__desc {
        font-size: 14.5px;
        line-height: 1.7;
    }
}


/* ===== CART BUTTON ===== */

.cart-button {
    position: fixed;
    right: 40px;
    bottom: 40px;
    width: 80px;
    height: 80px;
    border: none;
    outline: none;
    border-radius: 50%;
    background: #1a1a1a;
    color: white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow:
        0 20px 50px rgba(0,0,0,.40),
        0 8px 20px rgba(0,0,0,.12);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: scale(.8);
    transition: .3s cubic-bezier(.34,1.56,.64,1);
}

.cart-button svg {
    width: 40px;
    height: 40px;
    stroke: white;
    flex-shrink: 0;
}

.cart-button:hover {
    background: #d8a340;
    transform: scale(1.08);
}

.cart-button:focus {
    outline: none;
}

.cart-button.visible {

    opacity: 1;
    visibility: visible;

    transform: scale(1);

}

.cart-button:focus-visible {
    outline: none;
}

#cartCount {

    position: absolute;

    top: -2px;
    right: -2px;

    width: 26px;
    height: 26px;

    border-radius: 50%;

    background: #d8a340;

    color: white;

    font-size: 13px;
    font-weight: 700;

    display: flex;
    justify-content: center;
    align-items: center;

    border: 3px solid white;

    line-height: 1;
}


/* ===== MODAL ===== */

.cart-modal {
    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, .6);

    display: none;

    justify-content: center;
    align-items: center;

    z-index: 6000;
}

.cart-modal.active {
    display: flex;
}

.cart-modal__content {
    width: 90%;
    max-width: 700px;

    background: white;

    padding: 40px;
}

.cart-modal__close {
    float: right;

    border: none;
    background: none;

    font-size: 36px;

    cursor: pointer;
}

.cart-modal__total {
    margin-top: 30px;

    font-size: 24px;
    font-weight: 600;
}

.checkout-btn {
    width: 100%;

    margin-top: 25px;

    padding: 18px;

    border: none;

    background: black;
    color: white;

    cursor: pointer;
}

.dish-card__bottom {
    display: flex;

    justify-content: space-between;
    align-items: center;
}

.add-to-cart {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    border: none;

    background: #d4a24a;

    color: white;

    font-size: 26px;

    cursor: pointer;

    transition: .2s;
}

.add-to-cart:hover {
    transform: scale(1.1);
}

/* Inline card quantity control shown once the dish is in the cart (Glovo-style) */
.dish-cart {
    display: flex;
    align-items: center;
    gap: 10px;
}
.dish-qty__btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: transform .2s;
}
.dish-qty__minus { background: #f3f0ea; color: #222; }
.dish-qty__plus  { background: #d4a24a; color: #fff; }
.dish-qty__btn:hover { transform: scale(1.1); }
.dish-qty__count {
    min-width: 22px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}


/* =========================
   CART DRAWER
========================= */

.cart-overlay {

    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.45);

    opacity: 0;
    visibility: hidden;

    transition: .3s;

    z-index: 9998;
}

.cart-overlay.active {

    opacity: 1;
    visibility: visible;
}

.cart-drawer {

    position: fixed;

    top: 0;
    right: 0;

    width: 420px;
    max-width: 100%;

    height: 100vh;

    background: white;

    z-index: 9999;

    transform: translateX(100%);

    transition: .35s ease;

    display: flex;
    flex-direction: column;
}

.cart-drawer.active {

    transform: translateX(0);
}

.cart-drawer__header {

    display: flex;

    justify-content: space-between;
    align-items: center;

    padding: 30px;

    border-bottom: 1px solid #eee;
}

.cart-drawer__header h2 {

    font-family: var(--font-display);

    font-size: 36px;
}

#closeCart {

    border: none;
    background: none;

    font-size: 36px;

    cursor: pointer;
}

.cart-items {

    flex: 1;

    overflow-y: auto;

    padding: 25px;
}

.cart-empty {

    color: #999;
}

.cart-item {

    display: flex;

    justify-content: space-between;

    padding: 18px 0;

    border-bottom: 1px solid #eee;
}

.cart-item__name {

    font-size: 18px;
}

.cart-item__price {

    font-weight: 600;
}

.cart-footer {

    border-top: 1px solid #eee;

    padding: 25px;
}

.cart-total {

    display: flex;

    justify-content: space-between;

    font-size: 22px;

    margin-bottom: 20px;

    font-weight: 600;
}

.checkout-btn {

    width: 100%;

    height: 58px;

    border: none;

    background: #d9a441;

    color: white;

    font-size: 16px;

    cursor: pointer;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 24px 0;

    border-bottom: 1px solid #ececec;
}

.cart-item__info {
    flex: 1;
}

.cart-item__name {
    font-family: var(--font-display);
    font-size: 22px;
    line-height: 1.3;
    margin-bottom: 8px;
}

.cart-item__price {
    font-size: 15px;
    color: rgba(0,0,0,.55);
    letter-spacing: .08em;
}

.cart-item__quantity {
    display: flex;
    align-items: center;
    gap: 16px;

    padding: 8px;

    border: 1px solid #ececec;
    border-radius: 999px;
}

.cart-item__quantity span {
    min-width: 20px;
    text-align: center;

    font-size: 18px;
    font-weight: 600;
}

/* Editable quantity in the cart drawer (direct numeric entry; spinner hidden) */
.cart-qty__input {
    width: 44px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #222;
    border: none;
    background: transparent;
    -moz-appearance: textfield;
    appearance: textfield;
}
.cart-qty__input:focus { outline: none; }
.cart-qty__input::-webkit-outer-spin-button,
.cart-qty__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.cart-minus,
.cart-plus {
    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    font-size: 24px;
    line-height: 1;

    transition: .25s;
}

.cart-minus {
    background: #f3f0ea;
    color: #222;
}

.cart-plus {
    background: #d9a441;
    color: white;
}

.cart-minus:hover,
.cart-plus:hover {
    transform: scale(1.08);
}

/* ── RESPONSIVE ── */

/* Desktop fluid: 2-col grid when window narrows */
@media (max-width: 1024px) {
    .device-desktop .dishes-grid        { grid-template-columns: repeat(2, 1fr); }
    .device-desktop .category-hero      { margin: 20px 30px 0; }
    .device-desktop .dishes-section     { padding: 40px 30px 80px; }
    .device-desktop .menu-breadcrumb    { padding: 20px 30px 0; }
}

/* Tablet */
.device-tablet .dishes-grid         { grid-template-columns: repeat(2, 1fr); }
.device-tablet .category-hero       { height: 260px; margin: 16px 20px 0; }
.device-tablet .category-hero__title{ font-size: 42px; }
.device-tablet .dishes-section      { padding: 36px 20px 70px; }
.device-tablet .menu-breadcrumb     { padding: 16px 20px 0; }
.device-tablet .category-back       { padding: 0 20px 32px; }

/* Mobile: single column */
.device-mobile .dishes-grid         { grid-template-columns: 1fr; }
.device-mobile .category-hero       { height: 240px; margin: 16px 16px 0; }
.device-mobile .category-hero__title{ font-size: 38px; }
.device-mobile .dishes-section      { padding: 32px 16px 60px; }
.device-mobile .menu-breadcrumb     { padding: 16px 16px 0; }
.device-mobile .category-back       { padding: 0 16px 32px; }

/* Cart button — larger on touch devices */
.device-mobile .cart-button,
.device-tablet .cart-button { width: 90px; height: 90px; bottom: 20px; right: 20px; }

.device-mobile #cartCount,
.device-tablet #cartCount { width: 34px; height: 34px; font-size: 18px; top: -4px; right: -4px; }