/* Build Your Plate Interactive Menu Styles */

.interactive-menu-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 8rem;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
    padding-top: 2rem;
}

@media (min-width: 1024px) {
    .interactive-menu-container {
        flex-direction: row;
        align-items: flex-start;
    }
    .menu-main-content {
        flex: 1;
        min-width: 0;
    }
    .plate-sidebar {
        width: 350px;
        position: sticky;
        top: 120px;
        flex-shrink: 0;
    }
}

/* Category Tabs */
.category-carousel-container {
    position: sticky;
    top: 90px; /* Below navbar */
    background: var(--clr-bg-main);
    z-index: 10;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(195, 154, 88, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-grow: 1;
    scroll-behavior: smooth;
}
.category-tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.scroll-arrow {
    background: none;
    border: none;
    color: var(--clr-gold);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans-fast);
}

.scroll-arrow:hover {
    color: var(--clr-saffron);
}

.scroll-arrow:disabled {
    color: rgba(195, 154, 88, 0.3);
    cursor: default;
}

.category-tabs {
    display: flex;
    gap: 1rem;
    white-space: nowrap;
}

.cat-tab-btn {
    background: transparent;
    border: 1px solid rgba(195, 154, 88, 0.4);
    color: var(--clr-text-cream);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-family: var(--font-body);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--trans-fast);
}

.cat-tab-btn.active, .cat-tab-btn:hover {
    background: var(--clr-gold);
    color: var(--clr-bg-main);
    border-color: var(--clr-gold);
}

/* Menu Items Grid */
.menu-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .menu-items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.menu-item-card {
    background: rgba(33, 16, 14, 0.6);
    border: 1px solid rgba(195, 154, 88, 0.15);
    border-radius: 8px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    /* slide up default state */
    opacity: 0;
    transform: translateY(20px);
}

.menu-item-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.menu-item-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(195, 154, 88, 0.15);
    border-color: rgba(195, 154, 88, 0.4);
}

.mic-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
}

.mic-title {
    font-family: var(--font-heading);
    color: var(--clr-ivory);
    font-size: 1.3rem;
    line-height: 1.3;
}

.mic-price {
    font-family: var(--font-body);
    color: var(--clr-saffron);
    font-weight: 600;
    font-size: 1.1rem;
    white-space: nowrap;
}

.mic-desc {
    font-family: var(--font-body);
    color: var(--clr-bronze);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.mic-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mic-add-btn {
    background: transparent;
    color: var(--clr-gold);
    border: 1px solid var(--clr-gold);
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--trans-fast);
}

.mic-add-btn:hover {
    background: var(--clr-gold);
    color: var(--clr-bg-main);
}

/* Badges */
.mic-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    padding: 0.3rem 0.6rem;
    font-weight: 600;
    border-bottom-left-radius: 8px;
    letter-spacing: 1px;
}

.badge-coming-soon { background: var(--clr-bronze); color: var(--clr-ivory); }
.badge-weekend-only { background: var(--clr-terracotta); color: var(--clr-ivory); }
.badge-pre-order { background: var(--clr-maroon); color: var(--clr-ivory); }

/* Your Plate Sidebar */
.plate-sidebar {
    background: rgba(33, 16, 14, 0.95);
    border: 1px solid rgba(195, 154, 88, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 140px);
}

.plate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(195, 154, 88, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

.plate-title {
    font-family: var(--font-heading);
    color: var(--clr-gold);
    font-size: 1.5rem;
}

.plate-clear {
    background: none;
    border: none;
    color: var(--clr-bronze);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    text-decoration: underline;
}

.plate-items-container {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 1rem;
    padding-right: 0.5rem;
    /* scrollbar */
}

.plate-items-container::-webkit-scrollbar {
    width: 4px;
}
.plate-items-container::-webkit-scrollbar-thumb {
    background: rgba(195, 154, 88, 0.5);
    border-radius: 4px;
}

.plate-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(195, 154, 88, 0.1);
}

.pi-info {
    flex: 1;
    padding-right: 1rem;
}

.pi-name {
    color: var(--clr-ivory);
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
    line-height: 1.2;
}

.pi-price {
    color: var(--clr-bronze);
    font-size: 0.85rem;
}

.pi-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pi-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--clr-ivory);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans-fast);
}

.pi-btn:hover {
    background: var(--clr-gold);
    color: var(--clr-bg-main);
}

.pi-qty {
    color: var(--clr-ivory);
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.plate-footer {
    border-top: 1px solid rgba(195, 154, 88, 0.2);
    padding-top: 1rem;
}

.plate-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.plate-total-label {
    color: var(--clr-ivory);
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.plate-total-value {
    color: var(--clr-saffron);
    font-size: 1.2rem;
    font-weight: 600;
}

.plate-checkout-btn {
    width: 100%;
    text-align: center;
    display: block;
    background: var(--clr-gold);
    color: var(--clr-bg-main);
    padding: 1rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    transition: var(--trans-fast);
}

.plate-checkout-btn:hover {
    background: var(--clr-saffron);
    color: var(--clr-ivory);
}

.empty-plate-msg {
    color: var(--clr-bronze);
    text-align: center;
    padding: 2rem 0;
    font-style: italic;
}

.mobile-plate-toggle {
    display: none;
}

/* Mobile floating plate */
@media (max-width: 1023px) {
    .plate-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        border-radius: 16px 16px 0 0;
        z-index: 999;
        max-height: 60vh;
        transform: translateY(100%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.2, 1);
        padding-bottom: env(safe-area-inset-bottom, 1.5rem);
        box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
    }
    
    .plate-sidebar.plate-open {
        transform: translateY(0);
    }

    .mobile-plate-toggle {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        background: var(--clr-gold);
        color: var(--clr-bg-main);
        width: 60px;
        height: 60px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 998;
        box-shadow: 0 4px 15px rgba(0,0,0,0.4);
        cursor: pointer;
        border: none;
        transition: var(--trans-fast);
    }
    
    .mobile-plate-toggle:hover {
        transform: scale(1.05);
    }

    .mobile-plate-badge {
        position: absolute;
        top: -5px;
        right: -5px;
        background: var(--clr-saffron);
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        font-size: 0.8rem;
        font-weight: bold;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .plate-close-mobile {
        display: block !important;
        background: none;
        border: none;
        color: var(--clr-ivory);
        font-size: 1.5rem;
        cursor: pointer;
    }
}

.plate-close-mobile {
    display: none;
}

/* Customization Modal */
.customization-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cm-overlay {
    position: absolute;
    inset: 0;
    background: rgba(26, 12, 10, 0.85);
    backdrop-filter: blur(10px);
}

.cm-content {
    position: relative;
    background: var(--clr-bg-main);
    border: 1px solid rgba(195, 154, 88, 0.3);
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

.cm-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(195, 154, 88, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cm-header h3 {
    margin: 0;
    color: var(--clr-gold);
    font-size: 1.4rem;
}

.cm-close {
    background: none;
    border: none;
    color: var(--clr-text-cream);
    font-size: 1.8rem;
    cursor: pointer;
    line-height: 1;
}

.cm-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.cm-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.cm-section h4 {
    margin: 0;
    color: var(--clr-ivory);
    font-size: 1.1rem;
}

.cm-required {
    font-size: 0.75rem;
    background: rgba(195, 154, 88, 0.2);
    color: var(--clr-gold);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
}

.cm-options {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(195, 154, 88, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

.cm-radio-label {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid rgba(195, 154, 88, 0.15);
    cursor: pointer;
    transition: var(--trans-fast);
}

.cm-radio-label:last-child {
    border-bottom: none;
}

.cm-radio-label:hover {
    background: rgba(195, 154, 88, 0.05);
}

.cm-radio-label input[type="radio"] {
    accent-color: var(--clr-gold);
    width: 18px;
    height: 18px;
    margin-right: 1rem;
}

.cm-radio-text {
    color: var(--clr-text-cream);
    font-size: 1rem;
}

.cm-textarea {
    width: 100%;
    background: rgba(33, 16, 14, 0.6);
    border: 1px solid rgba(195, 154, 88, 0.2);
    color: var(--clr-ivory);
    border-radius: 8px;
    padding: 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    min-height: 100px;
    resize: vertical;
    margin-top: 1rem;
}

.cm-textarea:focus {
    outline: none;
    border-color: var(--clr-gold);
}

.cm-footer {
    padding: 1.5rem;
    border-top: 1px solid rgba(195, 154, 88, 0.15);
    background: rgba(33, 16, 14, 0.4);
    border-radius: 0 0 12px 12px;
}

.cm-submit-btn {
    width: 100%;
    background: var(--clr-gold);
    color: var(--clr-bg-main);
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--trans-fast);
}

.cm-submit-btn:hover {
    background: var(--clr-saffron);
}

.plate-item-meta {
    font-size: 0.8rem;
    color: var(--clr-bronze);
    margin-top: 0.2rem;
    line-height: 1.4;
}
