/* Samanta Menu Display - Exact Preview.php Styles */

:root {
    --accent-main: #a32386;
    --accent-soft: #f08bbf;
    --text-main: #3b2c3b;
    --muted: #8a8190;
    --border-soft: #f4d6ea;
    --bg-soft: #fff7fc;
}

body.samanta-menu-page {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8f5fb;
    color: var(--text-main);
}

.samanta-menu-header {
    max-width: 900px;
    margin: 40px auto 20px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.06);
    padding: 32px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.menu-wrapper {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    padding: 32px 32px 40px;
}

.menu-wrapper:last-of-type {
    margin-bottom: 40px;
}

@media (max-width: 576px) {
    .samanta-menu-header {
        margin: 16px 16px 12px;
        padding: 20px 16px;
        top: 10px;
    }
    
    .menu-wrapper {
        margin: 12px 16px;
        padding: 20px 16px 28px;
    }
}

.menu-heading {
    border-bottom: 1px solid var(--border-soft);
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.menu-title {
    font-size: clamp(2.1rem, 4vw, 2.7rem);
    font-weight: 700;
    color: var(--accent-main);
    letter-spacing: 0.02em;
}

.category-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.category-nav-link {
    padding: 6px 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    color: var(--accent-main);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.category-nav-link:hover {
    background: var(--accent-main);
    color: white;
    border-color: var(--accent-main);
}

.lang-pill {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50%;
    border: 2px solid var(--border-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    overflow: hidden;
    right: 10px;
    top: 10px;
}

.lang-pill:hover {
    border-color: var(--accent-main);
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(163, 35, 134, 0.3);
}

.lang-flag {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.lang-pill:hover .lang-flag {
    transform: scale(1.1);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 18px;
    position: sticky;
    top: 0px;
    z-index: 55;
    background: white;
    padding: 1.5em;
    margin: 0px;
    margin-left: -0.3em;
    margin-right: -0.3em;
    padding-left: 0;
    border-radius: 0px 0px 20px 20px;
}

.menu-item {
    border-top: 1px solid var(--border-soft);
    padding-block: 16px;
    cursor: pointer;
    transition: transform 0.5s ease, background-color 0.5s ease, box-shadow 0.5s ease, scale 0.5s ease;
    border-radius: 8px;
    margin-inline: -8px;
    padding-inline: 8px;
    transform: scale(1.0);
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.06);
    position: relative;
}

.menu-item:hover {
    transform: scale(1.02);
    background-color: var(--bg-soft);
    z-index: 10;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.06);
}

.menu-item.selected {
    background-color: #fef0f9;
    border-color: var(--accent-soft);
    position: relative;
}

.menu-item.selected::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-main);
    border-radius: 0 3px 3px 0;
}

.menu-item:first-of-type {
    border-top: none;
}

.menu-item-title {
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.menu-item-subtitle {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--muted);
    margin-bottom: 4px;
}

.menu-item-desc {
    font-size: .92rem;
    color: var(--muted);
}

.menu-item-price {
    font-weight: 600;
    white-space: nowrap;
    font-size: 1rem;
}

.menu-item-price-label {
    font-size: 0.85rem;
    color: var(--muted);
    display: block;
}

.menu-item-img {
    width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(163, 35, 134, 0.3);
}

.remove-item-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(163, 35, 134, 0.9);
    color: white;
    border: 2px solid white;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.menu-item.selected .remove-item-btn {
    display: flex;
}

.remove-item-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background: #c42d9f;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1000;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-main);
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(163, 35, 134, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: scale(0.8);
}

.floating-btn.visible {
    opacity: 1;
    transform: scale(1);
}

.floating-btn:hover {
    background: var(--accent-soft);
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(163, 35, 134, 0.4);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent-main);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    box-shadow: 0 2px 6px rgba(163, 35, 134, 0.4);
}

.cart-badge.visible {
    display: flex;
}

/* Category Menu Popup */
.category-menu-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    max-width: 280px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 999;
}

.category-menu-popup.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.category-menu-popup h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-main);
    margin-bottom: 12px;
}

.category-menu-popup .category-nav-link {
    display: block;
    margin-bottom: 6px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: background 0.3s ease;
}

.lightbox.active {
    display: flex;
    animation: lightboxFadeIn 0.3s ease forwards;
}

.lightbox.closing {
    animation: lightboxFadeOut 0.3s ease forwards;
}

@keyframes lightboxFadeIn {
    from {
        background: rgba(0, 0, 0, 0);
    }
    to {
        background: rgba(0, 0, 0, 0.9);
    }
}

@keyframes lightboxFadeOut {
    from {
        background: rgba(0, 0, 0, 0.9);
    }
    to {
        background: rgba(0, 0, 0, 0);
    }
}

.lightbox-content {
    max-width: 600px;
    width: 100%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.lightbox.active .lightbox-content {
    transform: scale(1);
    opacity: 1;
}

.lightbox.closing .lightbox-content {
    transform: scale(0.8);
    opacity: 0;
}

.lightbox-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.lightbox-details {
    padding: 24px;
}

.lightbox-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-main);
    margin-bottom: 8px;
}

.lightbox-subtitle {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 16px;
}

.lightbox-desc {
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.6;
}

.lightbox-prices {
    border-top: 2px solid var(--border-soft);
    padding-top: 16px;
}

.lightbox-price-item {
    margin-bottom: 8px;
}

.lightbox-price-label {
    font-size: 0.9rem;
    color: var(--muted);
}

.lightbox-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-main);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--accent-main);
    color: white;
    transform: rotate(90deg);
}

/* Cart View */
.cart-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f8f5fb;
    z-index: 1500;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cart-view.active {
    opacity: 1;
    pointer-events: all;
}

.cart-header {
    max-width: 900px;
    margin: 40px auto 20px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 8px rgba(0, 0, 0, 0.06);
    padding: 32px;
    position: sticky;
    top: 20px;
    z-index: 100;
}

.cart-close-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    color: var(--accent-main);
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-close-btn:hover {
    background: var(--accent-main);
    color: white;
    transform: scale(1.1);
}

.cart-empty {
    max-width: 900px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
    padding: 60px 32px;
    text-align: center;
}

.cart-empty-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-main);
    color: white;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.share-btn:hover {
    background: var(--accent-soft);
    transform: scale(1.1);
}

.share-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
    z-index: 1000;
}

.share-menu.active {
    display: flex;
}

.share-option {
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--border-soft);
}

.share-option:hover {
    background: var(--bg-soft);
    border-color: var(--accent-main);
    color: var(--accent-main);
    transform: translateX(4px);
}

.share-icon {
    font-size: 1.5rem;
    width: 24px;
    text-align: center;
}

@media (max-width: 576px) {
    .cart-header {
        margin: 16px 16px 12px;
        padding: 20px 16px;
        top: 10px;
    }
}
