* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 12px 0;
}

.navbar-brand {
    display: block;
    width: 160px;
}

.navbar-brand img {
    display: block;
    width: 100%;
    height: auto;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f7f4ee;
    color: #222;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 0 16px 32px;
}

.section-hero {
    margin: 8px 0 14px;
}

.section-hero #section-title {
    text-align: center;
    margin: 0;
    color: #2f2418;
}

h1 {
    text-align: center;
    margin: 16px 0 20px;
}

.swipe-hint {
    margin: 0 0 12px;
    text-align: center;
    font-size: 0.9rem;
    color: #6b5d4d;
}

.categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    max-width: 100%;
    margin: 0 -16px;
    padding: 12px 16px 18px;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
    flex: 0 0 auto;
    width: 112px;
    scroll-snap-align: start;
}

.circle {
    width: 112px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    border: 3px solid #e8d9c3;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover .circle,
.category-card:focus-visible .circle {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.category-card.is-active .circle {
    border-color: #e60000;
    box-shadow: 0 0 0 3px rgba(230, 0, 0, 0.2), 0 10px 20px rgba(0, 0, 0, 0.12);
}

.category-card.is-active p {
    color: #c40000;
}

.circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    box-sizing: border-box;
}

.category-card--drinks .circle img {
    padding: 4px;
    transform: scale(1.12);
}

.category-card p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
}
.menu{
    max-width: 600px;
    margin: auto;
    padding-bottom: 96px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #ececec;
}

.cart-empty {
    margin: 0;
    color: #666;
}

.item{
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #fffaf4 100%);
    border: 1px solid #f0dfcb;
    border-radius: 14px;
    padding: 12px;
    margin-bottom: 12px;
    box-shadow: 0 8px 18px rgba(40, 22, 8, 0.08);
}
.item img{
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.14);
}
.info{
    flex: 1;
}

.info h3{
    margin: 0;
    font-size: 16px;
}

.info p{
    margin: 4px 0 0;
    font-size: 13px;
    color:grey;
}

.right{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.price{
    font-weight: bold;
    margin-bottom: 5px;
    color: #3f2616;
}

button{
    background: #ff4d4d;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor:pointer;
    font-size: 18px;
    display: grid;
    place-items: center;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
button:hover{
    background: #e60000;
}

.site-footer {
    margin-top: auto;
    background: #1f1c1a;
    color: #f5ede1;
    border-radius: 0;
    padding: 20px 16px;
}

.footer-top {
    text-align: center;
    margin-bottom: 14px;
}

.footer-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-text {
    margin: 6px 0 0;
    color: #d7cbb9;
    font-size: 0.92rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.footer-links a {
    color: #f5ede1;
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-popup-backdrop {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 120, 66, 0.18), transparent 30%),
        radial-gradient(circle at 84% 80%, rgba(255, 214, 120, 0.16), transparent 30%),
        rgba(7, 7, 7, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 40;
}

.footer-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(620px, calc(100% - 28px));
    max-height: min(86vh, 760px);
    overflow: auto;
    background:
        linear-gradient(160deg, #ffffff 0%, #fff7ef 52%, #fff1e7 100%);
    color: #222;
    border-radius: 20px;
    border: 1px solid #f0d8c6;
    padding: 24px 18px 18px;
    z-index: 41;
    box-shadow:
        0 24px 48px rgba(37, 18, 8, 0.32),
        inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}

.footer-popup h2 {
    margin: 0 0 14px;
    color: #2b1f16;
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    letter-spacing: 0.01em;
}

.footer-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #eed8c6;
    background: linear-gradient(180deg, #fff, #f6ebe1);
    color: #513e31;
    font-size: 22px;
}

.footer-popup-close:hover {
    background: linear-gradient(180deg, #fff7f0, #f0dfd0);
}

.footer-popup-section {
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #f0decf;
    border-radius: 14px;
    padding: 12px;
}

.footer-popup-section p {
    margin: 6px 0;
    line-height: 1.42;
}

.contact-map {
    width: 100%;
    border: 1px solid #eed7c3;
    border-radius: 14px;
    height: 280px;
    margin: 8px 0 10px;
    box-shadow: 0 8px 20px rgba(43, 28, 18, 0.12);
}

.footer-popup a {
    color: #b20f0f;
    font-weight: 700;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
}

.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #ff4d4d;
    color: #fff;
    display: grid;
    place-items: center;
    text-decoration: none;
    padding: 0;
}

.footer-social a svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.footer-social a:hover {
    background: #e60000;
}

.footer-copy {
    margin: 0;
    text-align: center;
    color: #c7b8a2;
    font-size: 0.82rem;
}

.overlay{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.68);
    display: none;
    z-index: 10;
}

.modal{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: min(420px, calc(100% - 48px));
    max-width: 420px;
    border-radius: 18px;
    padding: 54px 20px 20px;
    display: none;
    z-index: 11;
    text-align: center;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.modal img{
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #fff;
    position: absolute;
    top: -46px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    background: #fff;
}

.modal h2 {
    margin: 0 0 6px;
}

.modal p {
    margin: 0 0 10px;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f2f2f2;
    color: #555;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
}

.modal-close-btn:hover {
    background: #e6e6e6;
}

.modal-info-btn {
    position: absolute;
    top: 18px;
    left: calc(50% + 38px);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid #f0d8c5;
    background: linear-gradient(180deg, #ffffff, #f7efe7);
    color: #6a4d36;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 12px rgba(48, 30, 16, 0.16);
    z-index: 3;
}

.modal-info-btn:hover {
    background: linear-gradient(180deg, #fff9f3, #f1dfd0);
}

.options{
    text-align: left;
    margin: 10px 0;
    display: grid;
    gap: 8px;
}

.options-extra {
    max-height: none;
    overflow: visible;
}

.options label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #eadfce;
    border-radius: 12px;
    background: #fffaf1;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.options label:hover {
    border-color: #dfc7a1;
    background: #fff4e2;
    transform: translateY(-1px);
}

.options label:has(input:checked) {
    border-color: #e60000;
    background: #ffecec;
    box-shadow: 0 0 0 2px rgba(230, 0, 0, 0.12);
}

.options input {
    width: 18px;
    height: 18px;
    accent-color: #e60000;
    margin: 0;
}

textarea{
    width: 100%;
    height: 60px;
    margin-top: 10px;
    resize: none;
    font-size: 16px;
    line-height: 1.35;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.add-to-cart-btn {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: none;
    margin-top: 14px;
    background: #e60000;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

.add-to-cart-btn:hover {
    background: #c80000;
}

#cart-icon{
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4d;
    color: #fff;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 18px;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 20;
    cursor: pointer;
}

#cart-icon #cart-count {
    display: inline-grid;
    place-items: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.32);
    font-size: 0.82rem;
    font-weight: 700;
}

#cart-icon.cart-icon-bounce {
    animation: cartIconBounce 320ms ease;
}

@keyframes cartIconBounce {
    0% {
        transform: translateX(-50%) scale(1);
    }
    40% {
        transform: translateX(-50%) scale(1.14);
    }
    100% {
        transform: translateX(-50%) scale(1);
    }
}

#cart-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    z-index: 19;
}

#cart-backdrop.active {
    opacity: 1;
    visibility: visible;
}

#cart-sheet{
    position: fixed;
        bottom: -120%;
    left: 0;
    width: 100%;
        height: auto;
        max-height: 66vh;
    background: white;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
        padding: 12px 15px 10px;
    transition: 0.3s;
    z-index: 21;
        overflow-y: auto;
}

#cart-sheet.active {
  bottom: 0;
}

.cart-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.cart-sheet-header h3 {
    margin: 0;
}

.cart-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #efefef;
    color: #444;
    font-size: 20px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.cart-close-btn:hover {
    background: #dfdfdf;
}

#cart-items {
    max-height: none;
    overflow: visible;
  margin: 10px 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
    align-items: center;
    gap: 8px;
  margin-bottom: 5px;
}

.cart-item-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.cart-category-title {
    margin: 10px 0 6px;
    font-size: 0.95rem;
    color: #444;
}

.remove-cart-item {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: #ececec;
    color: #333;
    font-size: 16px;
    display: grid;
    place-items: center;
    line-height: 1;
    padding: 0;
}

.remove-cart-item:hover {
    background: #dcdcdc;
}

/* Buttons */
.cart-actions {
  display: flex;
  gap: 10px;
}

.cart-actions button {
  flex: 1;
    width: 100%;
    height: auto;
  padding: 10px;
  border: none;
    border-radius: 10px;
  background: #ff4d4d;
  color: white;
  cursor: pointer;
}

.cart-actions button:disabled,
.add-to-cart-btn:disabled {
        background: #c7c7c7;
        color: #666;
        cursor: not-allowed;
}

@media (min-width: 1024px) {
    .navbar {
        padding: 18px 0;
    }

    .navbar-brand {
        width: 210px;
    }

    .page-content {
        width: min(1240px, calc(100% - 72px));
        margin: 0 auto;
        padding: 0 0 44px;
    }

    h1 {
        margin: 18px 0 22px;
        font-size: clamp(1.8rem, 2.4vw, 2.3rem);
    }

    .section-hero {
        margin: 22px 0 16px;
    }

    .section-hero #section-title {
        text-align: left;
        font-size: clamp(1.4rem, 2vw, 1.8rem);
    }

    .categories {
        margin: 0;
        padding: 10px 0 8px;
        overflow: visible;
        flex-wrap: wrap;
        justify-content: center;
        row-gap: 20px;
        column-gap: 18px;
    }

    .category-card {
        width: 116px;
    }

    .menu {
        max-width: 1180px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        padding-bottom: 40px;
    }

    .item {
        margin-bottom: 0;
        min-height: 112px;
        padding: 14px;
        border-radius: 16px;
    }

    .item img {
        width: 78px;
        height: 78px;
        margin-right: 14px;
    }

    .info h3 {
        font-size: 1.02rem;
    }

    .info p {
        font-size: 0.88rem;
    }

    #cart-icon {
        left: auto;
        right: 24px;
        bottom: 24px;
        transform: none;
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    }

    #cart-icon.cart-icon-bounce {
        animation: cartIconBounceDesktop 320ms ease;
    }

    #cart-sheet {
        top: 0;
        bottom: auto;
        left: auto;
        right: -460px;
        width: min(420px, 100%);
        max-height: 100vh;
        height: 100vh;
        border-top-left-radius: 20px;
        border-top-right-radius: 0;
        border-bottom-left-radius: 20px;
        padding: 18px 16px;
        transition: right 0.3s ease;
    }

    #cart-sheet.active {
        bottom: auto;
        right: 0;
    }

    .modal {
        width: min(600px, calc(100% - 80px));
        max-width: 600px;
        max-height: min(92vh, 760px);
        padding: 58px 24px 180px;
        overflow: visible;
    }

    .modal img {
        top: -46px;
        z-index: 2;
    }

    .options-extra {
        max-height: clamp(110px, 18vh, 200px);
        overflow-y: auto;
        padding-right: 6px;
        overscroll-behavior: contain;
    }

    .modal textarea {
        height: 52px;
        margin-top: 8px;
        margin-bottom: 16px;
    }

    .add-to-cart-btn {
        position: absolute;
        left: 24px;
        right: 24px;
        bottom: 16px;
        width: auto;
        margin-top: 0;
        z-index: 4;
    }

    @keyframes cartIconBounceDesktop {
        0% {
            transform: scale(1);
        }
        40% {
            transform: scale(1.14);
        }
        100% {
            transform: scale(1);
        }
    }
}


@media (max-width: 480px) {
    .modal {
        width: calc(100% - 20px);
        max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px);
        padding: 44px 14px calc(12px + env(safe-area-inset-bottom));
        overflow-y: visible;
        scroll-padding-bottom: 140px;
        overscroll-behavior: contain;
    }

    .modal img {
        position: absolute;
        top: -39px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        width: 78px;
        height: 78px;
        border-width: 3px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.18);
    }

    .modal-info-btn {
        top: 6px;
        left: calc(50% + 28px);
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .modal h2 {
        margin: 0 0 4px;
    }

    .modal p {
        margin: 0 0 8px;
    }

    .options-extra {
        max-height: 132px;
        overflow-y: auto;
        padding-right: 4px;
        overscroll-behavior: contain;
    }

    .circle {
        width: 92px;
    }

    .category-card {
        width: 92px;
    }

    .category-card p {
        font-size: 0.85rem;
    }

    .swipe-hint {
        font-size: 0.82rem;
    }

    .site-footer {
        padding: 16px 12px;
    }

    .footer-popup {
        width: calc(100% - 16px);
        max-height: calc(100dvh - 20px);
        padding: 18px 12px 14px;
    }

    .allergy-legend-scroll {
        max-height: 190px;
        overflow-y: auto;
        padding-right: 4px;
        overscroll-behavior: contain;
    }

    .contact-map {
        height: 220px;
    }

    .footer-links {
        gap: 12px;
    }

    #cart-sheet {
        padding: 12px;
        max-height: 66vh;
    }

    .item {
        gap: 8px;
    }

    .info p {
        overflow-wrap: anywhere;
    }
}
