﻿/* ===== CATEGORY PANEL ===== */
.category-panel {
    background-color: #111;
    background-image: url('/images/menu-background.png');
    background-size: cover;
    background-position: center;
    border: 6px solid #6b4f2b;
    border-radius: 10px;
    padding: 2.5rem;
    margin: 3rem auto;
    max-width: 900px;
    color: #f5f5f5;
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}

    .category-panel h2 {
        font-family: 'Amatic SC', cursive;
        font-size: 5rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: var(--primary-green);
        text-shadow: 0 0 8px rgba(160,255,110,0.6);
    }

    .category-panel p {
        font-size: 1.8rem;
        line-height: 1.6;
        color: #eaeaea;
        margin-bottom: 1rem;
    }

    .category-panel img {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
        border-radius: 10px;
        margin: 1.5rem 0;
        box-shadow: 0 0 10px rgba(0,0,0,0.4);
    }

/* ===== PRODUCT PANEL ===== */
.product-panel {
    padding: 1.2rem 0;
    display: flex;
    flex-direction: column;
}

.product-main {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem;
}

.product-text {
    flex: 1;
}

.product-panel h3 {
    font-family: 'Amatic SC', cursive;
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 0 5px rgba(160,255,110,0.4);
}

.product-panel p {
    font-size: 1.6rem;
    margin: .4rem 0;
}

.product-panel .price {
    font-size: 2.2rem;
    font-weight: bold;
    color: var(--accent-yellow);
    margin-top: .4rem;
}

/* Price container for subtotal */
.price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 2.2rem;
    font-weight: bold;
    margin-top: .4rem;
}

    .price-container .base-price {
        color: var(--accent-yellow);
    }

    .price-container .sub-total {
        color: #fff;
    }

/* Product image */
.product-panel img {
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin: .75rem 0;
    box-shadow: 0 0 6px rgba(0,0,0,0.3);
}

/* ===== QUANTITY PICKER ===== */
.quantity-picker {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3px;
    border-radius: 8px;
    min-width: 55px;
}

    .quantity-picker input.product-quantity {
        width: 50px;
        height: 50px;
        text-align: center;
        font-size: 1.5rem;
        border-radius: 50%;
        border: 2px solid #555;
        background: #111;
        color: #fff;
        margin: 3px 0;
        -moz-appearance: textfield;
    }

        .quantity-picker input.product-quantity::-webkit-inner-spin-button,
        .quantity-picker input.product-quantity::-webkit-outer-spin-button {
            -webkit-appearance: none;
            margin: 0;
        }

    .quantity-picker .qty-btn {
        font-size: 1.5rem;
        cursor: pointer;
        user-select: none;
        color: #fff;
        padding: 2px 0;
        width: 100%;
        text-align: center;
        border-radius: 4px;
        background: #111;
        transition: all 0.2s;
    }

        .quantity-picker .qty-btn:hover {
            background: rgba(255,255,255,0.15);
        }

/* ===== MODIFICATIONS PANEL ===== */
.customizations-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-left: calc(55px + 1.2rem); /* aligns with quantity picker + gap */
}

.modifications {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 30%; /* responsive width */
    max-width: 30%; /* keeps textareas aligned */
}

/* Add-on chips */
.add-on-chip {
    display: inline-block;
    background-color: var(--primary-green);
    color: #111;
    padding: 0.4rem 0.7rem;
    margin: 0.2rem;
    border-radius: 12px;
    font-size: 1.3rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

    .add-on-chip.selected {
        background-color: var(--accent-yellow);
    }

/* Textareas */
.modifications textarea {
    width: 100%;
    min-height: 60px;
    padding: 0.5rem;
    font-size: 1.5rem;
    border-radius: 6px;
    border: 1px solid #555;
    background: #222;
    color: #fff;
    resize: none;
}

/* ===== FLOATING REVIEW ORDER BUTTON ===== */
.review-order-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
}

.review-order-btn {
    font-family: 'Amatic SC', cursive;
    font-size: 2rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.2s;
    background-color: var(--primary-green); /* Primary = proceed/happy path */
    color: #111;
}

    .review-order-btn:hover {
        background-color: var(--accent-yellow); /* Secondary on hover */
    }

/* ===== MONERIS CHECKOUT MODAL ===== */
.chalkboard-modal .modal-content {
    max-height: 80vh; /* limits modal height to 80% of viewport */
    overflow-y: auto; /* vertical scroll if content exceeds height */
    padding: 1rem;
    box-sizing: border-box;
}

/* ===== MONERIS CHECKOUT IFRAME CONSTRAINT ===== */
#monerisCheckout {
    position: relative !important;
    width: 100% !important; /* fill modal width */
    max-width: 100% !important; /* constrain to modal width */
    height: 600px !important; /* fixed height to allow scrolling inside modal */
    box-sizing: border-box;
}

.chalkboard-modal iframe {
    position: relative !important; /* override fixed positioning from Moneris */
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    display: block;
    border: none;
    box-sizing: border-box;
}

/* ===== SLIDE ANIMATIONS FOR MODAL CONTENT ===== */
@keyframes slideInRight {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    0% {
        transform: translateX(0);
        opacity: 1;
    }

    100% {
        transform: translateX(-100%);
        opacity: 0;
    }
}

.modal-content.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.modal-content.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

/* Fades out buttons/footer cleanly */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
