/* Premium Aesthetics for Home Resto Frontend */
:root {
    --resto-primary: #0a192f;
    --resto-secondary: #d4af37;
    --resto-text: #ffffff;
    --resto-bg: #f5f5f5;
    --resto-glass: rgba(255, 255, 255, 0.1);
    --resto-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
}

.resto-menu-container {
    font-family: 'Outfit', sans-serif;
    color: var(--resto-primary);
    max-width: 1000px;
    margin: 2rem auto;
    padding: 1rem;
    background: #fff;
    border-radius: 20px;
    box-shadow: var(--resto-shadow);
}

.resto-header {
    text-align: center;
    padding: 2rem 0;
    background: var(--resto-primary);
    color: #fff;
    border-radius: 20px 20px 0 0;
    margin: -1rem -1rem 2rem -1rem;
}

.resto-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--resto-secondary);
    font-weight: 600;
    letter-spacing: 1px;
}

.resto-category-title {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--resto-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
    text-align: left;
}

.resto-category-toggle {
    width: 100%;
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.2s ease;
}

.resto-category-toggle:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.resto-arrow {
    transition: transform 0.3s ease;
    color: var(--resto-secondary);
}

.resto-category-toggle.open .resto-arrow {
    transform: rotate(180deg);
}

.resto-items-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.resto-menu-item {
    background: #fff;
    border: 1px solid #eee;
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resto-menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-info h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 300;
    text-transform: uppercase;
}

.item-info p {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.item-info .price {
    font-weight: 400;
    /* Removed bold */
    color: var(--resto-primary);
    font-size: 1rem;
    background: rgba(212, 175, 55, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
}

.item-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.resto-qty-btn {
    background: #f0f0f0;
    color: var(--resto-primary);
    border: 1px solid #ddd;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: all 0.2s ease;
    padding: 0;
    line-height: 1;
}

.resto-qty-btn:hover {
    background: var(--resto-primary);
    color: #fff;
    border-color: var(--resto-primary);
    transform: scale(1.05);
}

.resto-qty {
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 24px;
    text-align: center;
}

/* Floating Cart Bar */
.resto-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 600px;
    color: #fff;
    z-index: 1000;
    box-shadow: var(--resto-shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.resto-cart-error {
    background: #ff5252;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-align: center;
    width: 100%;
}

.resto-cart-info {
    display: flex;
    gap: 20px;
    font-size: 1rem;
    font-weight: 300;
}

#resto-cart-total {
    color: var(--resto-secondary);
    font-weight: 600;
}

.resto-btn-checkout {
    background: var(--resto-secondary);
    color: var(--resto-primary);
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.resto-btn-checkout:hover {
    transform: scale(1.05);
}

/* Modal Styling */
.resto-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.resto-modal {
    background: #fff;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.resto-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    cursor: pointer;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #eee;
    background: #fafafa;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--resto-primary);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--resto-secondary);
    background: #fff;
}

.order-summary-box {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 15px;
    margin: 1.5rem 0;
}

.resto-btn-submit {
    width: 100%;
    background: var(--resto-primary);
    color: #fff;
    padding: 1rem;
    border-radius: 10px;
    border: none;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
}

.modal-footer-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-footer-actions .resto-btn {
    flex: 1;
}

.resto-btn-secondary {
    background: #27ae60;
    border: none;
    color: white;
}

.resto-btn-secondary:hover {
    background: #219150;
}

.resto-btn-submit:hover {
    background: var(--resto-secondary);
    color: var(--resto-primary);
}

.resto-payment-info {
    background: #f0f7ff;
    border-left: 4px solid var(--resto-secondary);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--resto-primary);
}

.resto-payment-info strong {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--resto-secondary);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.resto-transfer-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.resto-transfer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 4px;
}

.resto-transfer-row:last-child {
    border-bottom: none;
}

.resto-transfer-row .label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 300;
}

.resto-transfer-row .value {
    font-size: 0.95rem;
    color: var(--resto-primary);
    font-weight: 600;
}

.resto-success-message {
    text-align: center;
    padding: 1rem 0;
}

.resto-success-message .success-icon {
    font-size: 3rem;
    color: #27ae60;
    margin-bottom: 1rem;
}

.resto-success-message h2 {
    color: var(--resto-primary);
    margin-bottom: 0.5rem;
}

.resto-success-message p {
    color: #666;
    margin-bottom: 1rem;
}

.resto-btn-whatsapp {
    background: #25D366 !important;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 20px;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.2s, background 0.2s;
}

.resto-btn-whatsapp:hover {
    transform: scale(1.02);
    background: #128c7e !important;
}

.resto-btn-whatsapp .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.resto-btn-whatsapp {
    animation: wa-pulse 2s infinite;
}

@keyframes wa-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.resto-modal .resto-success-message {
    display: block !important;
    visibility: visible !important;
}

.resto-modal .resto-btn-whatsapp {
    display: flex !important;
    visibility: visible !important;
    min-height: 50px;
}


.resto-wa-link {
    background: #25D366 !important;
    color: #fff !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: bold;
    min-height: 50px;
    visibility: visible !important;
    animation: wa-pulse 2s infinite;
}

.resto-wa-link:hover {
    background: #128c7e !important;
    transform: scale(1.02);
}


/* Mobile Specific Fixes */
@media (max-width: 600px) {
    .resto-modal {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh;
        margin: auto;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px !important;
        /* Prevents auto-zoom on iOS */
        padding: 0.6rem;
    }

    .modal-footer-actions {
        flex-direction: column;
        gap: 0.8rem;
    }

    .order-summary-box {
        margin: 1rem 0;
        padding: 0.8rem;
    }

    .resto-cart-bar {
        padding: 0.8rem 1.2rem;
        bottom: 15px;
    }
}

/* =========================================
   Promo Cards Styles (Shortcode)
   ========================================= */

.resto-promo-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
    gap: 2rem !important;
    margin: 2rem auto !important;
    max-width: 1200px !important;
    padding: 0 1rem !important; /* Safety padding */
}

.resto-promo-card {
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #141414 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 24px !important;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    box-shadow: none !important; /* Reset default WP theme shadows */
}

.resto-promo-card-1:hover { background: #1f1f1f !important; border-color: rgba(255, 255, 255, 0.2) !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important; transform: translateY(-8px) !important; }
.resto-promo-card-2:hover { background: #1f1f1f !important; border-color: rgba(255, 255, 255, 0.2) !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important; transform: translateY(-8px) !important; }
.resto-promo-card-3:hover { background: #1f1f1f !important; border-color: rgba(255, 255, 255, 0.2) !important; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4) !important; transform: translateY(-8px) !important; }

/* Override card colors explicitly on hover for borders */
.resto-promo-card-1:hover { border-color: var(--resto-card-1-color, #56E71C) !important; }
.resto-promo-card-2:hover { border-color: var(--resto-card-2-color, #56E71C) !important; }
.resto-promo-card-3:hover { border-color: var(--resto-card-3-color, #56E71C) !important; }

.promo-card-img-wrapper {
    position: relative !important;
    padding-top: 75% !important; /* 4:3 Aspect Ratio */
    overflow: hidden !important;
    width: 100% !important;
    margin: 0 !important; /* Reset WP margins */
    display: block !important;
}

.promo-card-img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    max-width: 100% !important;
    border-radius: 0 !important; /* Avoid WP rounding the image inside */
}

.resto-promo-card:hover .promo-card-img {
    transform: scale(1.05) !important; /* Match landing.html exactly */
}

.promo-card-img-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, transparent 60%) !important;
    pointer-events: none !important;
}

.promo-card-content {
    padding: 2rem !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    z-index: 2 !important;
    margin-top: 0 !important; /* Remove negative margin to match landing.html */
    background: transparent !important;
}

.promo-card-title {
    color: #ffffff !important; /* Force to #fff to avoid theme overrides */
    font-size: 1.5rem !important;
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
}

.promo-card-desc {
    color: #9ca3af !important;
    font-size: 0.95rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.5 !important;
    margin-top: 0 !important;
}

.promo-card-btn {
    margin-top: auto !important;
    width: 100% !important;
    background: rgba(255,255,255,0.05) !important;
    color: #ffffff !important;
    padding: 1rem !important;
    border-radius: 12px !important;
    text-align: center !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
    display: block !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.resto-promo-card-1:hover .promo-card-btn {
    background: var(--resto-card-1-color, #56E71C) !important;
    color: #000000 !important;
}
.resto-promo-card-2:hover .promo-card-btn {
    background: var(--resto-card-2-color, #56E71C) !important;
    color: #000000 !important;
}
.resto-promo-card-3:hover .promo-card-btn {
    background: var(--resto-card-3-color, #56E71C) !important;
    color: #000000 !important;
}

/* =========================================
   Promo Animated Badge Styles (Shortcode)
   ========================================= */

.resto-promo-badge {
    display: flex !important;
    width: fit-content !important;
    margin: 0 auto 1.5rem auto !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    padding: 0.5rem 1rem !important;
    border-radius: 99px !important;
    background: color-mix(in srgb, var(--resto-badge-color, #ffb100) 10%, transparent) !important;
    color: var(--resto-badge-color, #ffb100) !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    margin-bottom: 1.5rem !important;
    border: 1px solid color-mix(in srgb, var(--resto-badge-color, #ffb100) 20%, transparent) !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    font-family: 'Outfit', sans-serif !important;
}

.resto-promo-badge:hover {
    background: color-mix(in srgb, var(--resto-badge-color, #ffb100) 15%, transparent) !important;
    transform: translateY(-2px) !important;
    color: var(--resto-badge-color, #ffb100) !important;
}

.resto-promo-badge i {
    animation: resto-bounce 2s infinite !important;
}

@keyframes resto-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
/* =========================================
   Combo Configurator Modal
   ========================================= */

#resto-combo-modal {
    display: none;
    position: fixed !important;
    z-index: 10001 !important;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6) !important;
    backdrop-filter: blur(5px);
}

#resto-combo-modal .resto-modal-content {
    background-color: #fff !important;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: resto-fade-in 0.3s ease;
}

@keyframes resto-fade-in {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

#resto-combo-modal .resto-modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#resto-combo-modal .resto-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

#resto-combo-modal .resto-modal-close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #999;
}

#resto-combo-modal .resto-modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

#resto-combo-modal .resto-modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.resto-combo-requirement {
    margin-bottom: 25px;
}

.resto-combo-requirement h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1rem;
    border-left: 4px solid var(--resto-base-color, #ffb100);
    padding-left: 10px;
}

.resto-combo-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.resto-combo-option-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.combo-item-qty {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

#resto-combo-requirements-info {
    font-size: 0.9rem;
    color: #666;
}

#resto-combo-total-items {
    font-weight: bold;
    color: var(--resto-base-color, #ffb100);
}
