/*
 * Kukburi — shared item-detail modal (Home menu highlights + Menu page).
 * Ported ~verbatim from the HTML prototypes. See parts/item-modal.html and
 * assets/js/item-modal.js.
 */

.dish-card{ cursor: pointer; }
.item-modal-overlay{
	position: fixed; inset: 0; background: rgba(0,15,42,0.72); z-index: 300;
	display: flex; align-items: center; justify-content: center; padding: 24px;
	opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.item-modal-overlay.open{ opacity: 1; pointer-events: auto; }
.item-modal{
	background: var(--cream-card); border-radius: 10px; max-width: 840px; width: 100%;
	max-height: 88vh; overflow-y: auto; display: grid; grid-template-columns: 1fr 1fr;
	position: relative; box-shadow: 0 30px 60px -20px rgba(0,15,42,0.5);
	transform: translateY(16px); transition: transform .2s ease;
}
.item-modal-overlay.open .item-modal{ transform: translateY(0); }
.item-modal-close{
	position: absolute; top: 14px; right: 14px; z-index: 5; width: 36px; height: 36px; border-radius: 50%;
	background: var(--paper); border: none; cursor: pointer; font-size: 1.2rem; line-height: 1;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0,0,0,.15);
}
.item-modal-gallery{ position: relative; background: var(--paper-2); min-height: 280px; }
.item-modal-gallery img{ width: 100%; height: 100%; object-fit: cover; min-height: 280px; display: block; }
.item-modal-arrow{
	position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.85);
	border: none; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
.item-modal-arrow.prev{ left: 12px; }
.item-modal-arrow.next{ right: 12px; }
.item-modal-thumbs{ position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.item-modal-thumbs span{ width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.item-modal-thumbs span.active{ background: #fff; width: 20px; border-radius: 4px; }
.item-modal-body{ padding: 36px 32px; display: flex; flex-direction: column; }
.item-modal-body h3{ font-size: 1.6rem; margin-bottom: 14px; }
.item-modal-body .desc{ opacity: .78; line-height: 1.7; font-size: .95rem; margin-bottom: 24px; }
.item-modal-body .price-row{ margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.item-modal-body .price{ font-family: 'Jost',sans-serif; font-weight: 700; font-size: 1.2rem; }

@media (max-width: 720px){
	.item-modal{ grid-template-columns: 1fr; max-height: 92vh; }
	.item-modal-gallery{ min-height: 220px; }
	.item-modal-gallery img{ min-height: 220px; }
}
