/* Nirwana Cafe Menu Styles */
body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: linear-gradient(135deg, #f5e6ca 0%, #a47149 100%);
    min-height: 100vh;
}
.container {
    max-width: 480px;
    margin: 48px auto;
    background: #fff8f0cc;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(164,113,73,0.2);
    padding: 32px 24px 40px 24px;
    text-align: center;
}
.title {
    font-size: 2.5rem;
    color: #a47149;
    letter-spacing: 2px;
    margin-bottom: 24px;
    font-family: 'Georgia', serif;
}
.book {
    display: flex;
    justify-content: center;
    align-items: stretch;
    width: 420px;
    height: 300px;
    margin: 0 auto 24px auto;
    perspective: 1600px;
    position: relative;
}
.flipping-page {
    position: absolute;
    left: 50%;
    top: 0;
    width: 200px;
    height: 100%;
    background: #fffbe9;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 6px 32px rgba(164,113,73,0.14), 0 0 0 4px #f5e6ca inset;
    z-index: 10;
    pointer-events: none;
    transform-origin: left center;
    transform: rotateY(0deg);
    opacity: 0;
    transition: transform 1.2s cubic-bezier(0.77,0,0.18,1), opacity 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.flipping-page.show {
    opacity: 1;
}
.flipping-page .item-img-container {
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
}
.flipping-page .item-name {
    font-size: 1.2rem;
    color: #a47149;
    margin-bottom: 6px;
    font-weight: bold;
}
.flipping-page .item-style {
    font-size: 1rem;
    color: #7a5c3a;
    margin-bottom: 8px;
    font-style: italic;
}
.flipping-page .item-price {
    font-size: 1.1rem;
    color: #fff;
    background: #a47149;
    padding: 3px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 4px;
}
.flipping-page .add-cart-btn {
    margin-top: 12px;
    font-size: 1rem;
    background: #a47149;
    color: #fffbe9;
    border: none;
    border-radius: 16px;
    padding: 6px 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.3s;
    box-shadow: 0 1px 6px rgba(164,113,73,0.11);
}
.flipping-page .add-cart-btn:hover {
    background: #7a5c3a;
    transform: scale(1.07);
}
.flipping-page .add-cart-btn.added {
    background: #4caf50;
    color: #fff;
    transform: scale(1.13) rotate(-6deg);
    box-shadow: 0 2px 14px rgba(76,175,80,0.13);
}
.page {
    width: 200px;
    height: 100%;
    background: #fffbe9;
    border-radius: 0 16px 16px 0;
    box-shadow: 0 6px 32px rgba(164,113,73,0.14), 0 0 0 4px #f5e6ca inset;
    margin: 0 2px;
    position: relative;
    overflow: hidden;
    transition: transform 0.9s cubic-bezier(0.77,0,0.18,1), box-shadow 0.5s;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.left-page {
    border-radius: 16px 0 0 16px;
    box-shadow: -8px 6px 32px rgba(164,113,73,0.10), 0 0 0 4px #f5e6ca inset;
}
.book .page-flip {
    transform: rotateY(-180deg);
    box-shadow: 0 0 40px rgba(164,113,73,0.18);
    z-index: 0;
}
.book .page-flip-right {
    transform: rotateY(180deg);
    box-shadow: 0 0 40px rgba(164,113,73,0.18);
    z-index: 0;
}
.book .page.active {
    z-index: 2;
    box-shadow: 0 8px 32px rgba(164,113,73,0.22), 0 0 0 4px #f5e6ca inset;
}
.book::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #a47149 0%, #f5e6ca 100%);
    border-radius: 4px;
    z-index: 3;
}
.page .item-img-container {
    width: 90px;
    height: 90px;
    margin-bottom: 8px;
}
.page .item-name {
    font-size: 1.2rem;
    color: #a47149;
    margin-bottom: 6px;
    font-weight: bold;
}
.page .item-style {
    font-size: 1rem;
    color: #7a5c3a;
    margin-bottom: 8px;
    font-style: italic;
}
.page .item-price {
    font-size: 1.1rem;
    color: #fff;
    background: #a47149;
    padding: 3px 12px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 4px;
}
.page .add-cart-btn {
    margin-top: 12px;
    font-size: 1rem;
    background: #a47149;
    color: #fffbe9;
    border: none;
    border-radius: 16px;
    padding: 6px 18px;
    cursor: pointer;
    transition: background 0.2s, transform 0.3s;
    box-shadow: 0 1px 6px rgba(164,113,73,0.11);
}
.page .add-cart-btn:hover {
    background: #7a5c3a;
    transform: scale(1.07);
}
.page .add-cart-btn.added {
    background: #4caf50;
    color: #fff;
    transform: scale(1.13) rotate(-6deg);
    box-shadow: 0 2px 14px rgba(76,175,80,0.13);
}
.menu-item {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) scale(0.85);
    opacity: 0;
    width: 90%;
    background: #fffbe9;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(164,113,73,0.08);
    transition: all 0.7s cubic-bezier(0.68,-0.55,0.27,1.55);
    padding: 32px 20px;
    z-index: 1;
}
.menu-item.active {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    z-index: 2;
    box-shadow: 0 4px 24px rgba(164,113,73,0.16);
}
.item-img-container {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(164,113,73,0.13);
    background: #f5e6ca;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.7s cubic-bezier(0.68,-0.55,0.27,1.55);
}
.item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.68,-0.55,0.27,1.55), filter 0.7s;
}
.menu-item.animate-in .item-img-container {
    transform: scale(1.15) rotate(-8deg);
}
.menu-item.animate-in .item-img {
    filter: brightness(1.1) saturate(1.3);
    transform: scale(1.09) rotate(7deg);
}
.menu-item .item-name {
    font-size: 1.6rem;
    color: #a47149;
    margin-bottom: 8px;
    font-weight: bold;
}
.menu-item .item-style {
    font-size: 1.1rem;
    color: #7a5c3a;
    margin-bottom: 12px;
    font-style: italic;
}
.menu-item .item-price {
    font-size: 1.3rem;
    color: #fff;
    background: #a47149;
    padding: 4px 18px;
    border-radius: 12px;
    display: inline-block;
    margin-top: 6px;
}
.slider-controls {
    display: flex;
    justify-content: center;
    gap: 32px;
}
.slider-controls button {
    background: #a47149;
    color: #fffbe9;
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(164,113,73,0.1);
    transition: background 0.2s;
}
.slider-controls button:hover {
    background: #7a5c3a;
}
.add-cart-btn {
    margin-top: 18px;
    font-size: 1.1rem;
    background: #a47149;
    color: #fffbe9;
    border: none;
    border-radius: 18px;
    padding: 8px 24px;
    cursor: pointer;
    transition: background 0.2s, transform 0.3s;
    box-shadow: 0 1px 6px rgba(164,113,73,0.11);
}
.add-cart-btn:hover {
    background: #7a5c3a;
    transform: scale(1.07);
}
.add-cart-btn.added {
    background: #4caf50;
    color: #fff;
    transform: scale(1.13) rotate(-6deg);
    box-shadow: 0 2px 14px rgba(76,175,80,0.13);
}
