/**
 * Gastro QR Menu - Frontend Styles
 * Mobile-first responsive design
 */

/* Variables */
:root {
    --gqm-primary: #8B4513;
    --gqm-primary-light: #A0522D;
    --gqm-secondary: #D2691E;
    --gqm-accent: #DAA520;
    --gqm-success: #228B22;
    --gqm-warning: #FF8C00;
    --gqm-error: #DC143C;
    --gqm-neutral-50: #FAF6F1;
    --gqm-neutral-100: #F5F0E8;
    --gqm-neutral-200: #E8E0D4;
    --gqm-neutral-900: #2C1810;
    --gqm-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --gqm-shadow-lg: 0 4px 16px rgba(0,0,0,0.15);
    --gqm-radius: 12px;
    --gqm-radius-sm: 8px;
}

/* Reset y Base */
.gqm-menu-container {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--gqm-neutral-50);
    min-height: 100vh;
    padding-bottom: 100px;
    color: var(--gqm-neutral-900);
    line-height: 1.5;
}

.gqm-menu-container * {
    box-sizing: border-box;
}

/* Error Container */
.gqm-error-container {
    text-align: center;
    padding: 60px 20px;
}

.gqm-error-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--gqm-warning);
}

.gqm-error-container h2 {
    margin: 20px 0 10px;
    color: var(--gqm-neutral-900);
}

.gqm-error-container p {
    color: #666;
}

/* Header */
.gqm-menu-header {
    background: linear-gradient(135deg, var(--gqm-primary) 0%, var(--gqm-primary-light) 100%);
    color: white;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--gqm-shadow);
}

.gqm-header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gqm-restaurant-name {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.gqm-mesa-badge {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.gqm-mesa-badge .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Categories Navigation */
.gqm-categories-nav {
    background: white;
    padding: 12px 0;
    position: sticky;
    top: 68px;
    z-index: 90;
    box-shadow: var(--gqm-shadow);
    position: relative;
}

.gqm-categories-scroll {
    display: flex;
    gap: 10px;
    padding: 0 16px;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gqm-categories-scroll::-webkit-scrollbar {
    display: none;
}

/* Scroll indicator */
.gqm-scroll-indicator {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 60px;
    background: linear-gradient(to right, transparent, white 70%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s;
}

.gqm-scroll-indicator.hidden {
    opacity: 0;
}

.gqm-scroll-arrow {
    width: 28px;
    height: 28px;
    background: var(--gqm-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    animation: swipeHint 1.5s ease-in-out infinite;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.4);
}

@keyframes swipeHint {
    0%, 100% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        transform: translateX(5px);
        opacity: 0.7;
    }
}

.gqm-category-tab {
    flex-shrink: 0;
    padding: 10px 20px;
    border: 2px solid var(--gqm-neutral-200);
    border-radius: 25px;
    background: white;
    color: var(--gqm-neutral-900);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gqm-category-tab:hover {
    border-color: var(--gqm-primary);
    color: var(--gqm-primary);
}

.gqm-category-tab.active {
    background: var(--gqm-primary);
    border-color: var(--gqm-primary);
    color: white;
}

.gqm-category-tab .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Search Bar */
.gqm-search-bar {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
    position: relative;
}

.gqm-search-bar input {
    width: 100%;
    padding: 14px 16px 14px 45px;
    border: 2px solid var(--gqm-neutral-200);
    border-radius: var(--gqm-radius);
    font-size: 16px;
    background: white;
    transition: border-color 0.2s;
}

.gqm-search-bar input:focus {
    outline: none;
    border-color: var(--gqm-primary);
}

.gqm-search-bar .dashicons {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

/* Menu Grid */
.gqm-menu-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px 16px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* Loading State */
.gqm-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
}

.gqm-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gqm-neutral-200);
    border-top-color: var(--gqm-primary);
    border-radius: 50%;
    animation: gqm-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes gqm-spin {
    to { transform: rotate(360deg); }
}

/* Dish Card */
.gqm-dish-card {
    position: relative;
    background: white;
    border-radius: var(--gqm-radius);
    overflow: hidden;
    box-shadow: var(--gqm-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.gqm-dish-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--gqm-shadow-lg);
}

.gqm-dish-card.in-cart {
    border: 2px solid var(--gqm-accent);
}

.gqm-dish-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.gqm-dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gqm-unavailable-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--gqm-error);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.gqm-dish-content {
    padding: 16px;
}

.gqm-dish-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--gqm-neutral-900);
}

.gqm-dish-description {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gqm-dish-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.gqm-allergen {
    background: var(--gqm-neutral-100);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    color: #666;
    text-transform: capitalize;
}

.gqm-dish-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.gqm-dish-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gqm-primary);
}

.gqm-dish-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gqm-qty-btn {
    width: 36px;
    height: 36px;
    border: 2px solid var(--gqm-primary);
    border-radius: 50%;
    background: white;
    color: var(--gqm-primary);
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gqm-qty-btn:hover {
    background: var(--gqm-primary);
    color: white;
}

.gqm-qty-display {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
}

/* Cart FAB Button */
.gqm-cart-fab {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--gqm-primary);
    color: white;
    border: none;
    border-radius: 30px;
    box-shadow: var(--gqm-shadow-lg);
    cursor: pointer;
    z-index: 200;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.gqm-cart-fab:hover {
    background: var(--gqm-primary-light);
    transform: translateX(-50%) scale(1.02);
}

.gqm-cart-icon {
    position: relative;
}

.gqm-cart-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.gqm-cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--gqm-accent);
    color: var(--gqm-neutral-900);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gqm-cart-total {
    font-weight: 700;
}

/* No Results */
.gqm-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

/* Modal Styles */
.gqm-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s 0.3s, opacity 0.3s;
}

.gqm-modal.active {
    visibility: visible;
    opacity: 1;
    transition: visibility 0s, opacity 0.3s;
}

.gqm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.gqm-modal-content {
    position: relative;
    background: white;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: var(--gqm-radius) var(--gqm-radius) 0 0;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
}

.gqm-modal.active .gqm-modal-content {
    transform: translateY(0);
}

.gqm-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gqm-neutral-200);
}

.gqm-modal-header h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: var(--gqm-primary);
}

.gqm-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.gqm-modal-close .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #666;
}

.gqm-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.gqm-modal-footer {
    padding: 20px;
    border-top: 1px solid var(--gqm-neutral-200);
    background: var(--gqm-neutral-50);
}

/* Cart Items */
.gqm-cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gqm-cart-item {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: var(--gqm-neutral-50);
    border-radius: var(--gqm-radius-sm);
}

.gqm-cart-item-info h4 {
    margin: 0 0 4px;
    font-size: 14px;
}

.gqm-cart-item-price {
    font-size: 12px;
    color: #666;
}

.gqm-cart-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.gqm-cart-qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--gqm-primary);
    border-radius: 50%;
    background: white;
    color: var(--gqm-primary);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gqm-cart-item-total {
    font-weight: 600;
    color: var(--gqm-primary);
    min-width: 60px;
    text-align: right;
}

.gqm-cart-remove {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--gqm-error);
}

.gqm-cart-empty {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.gqm-cart-empty .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--gqm-neutral-200);
}

.gqm-cart-empty .gqm-back-to-menu {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--gqm-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gqm-cart-empty .gqm-back-to-menu:hover {
    background: var(--gqm-primary-dark);
    transform: translateY(-1px);
}

/* Cart Notes */
.gqm-cart-notes {
    margin-top: 20px;
}

.gqm-cart-notes label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 14px;
}

.gqm-cart-notes label .dashicons {
    vertical-align: middle;
    margin-right: 5px;
    color: var(--gqm-primary);
}

.gqm-cart-notes textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gqm-neutral-200);
    border-radius: var(--gqm-radius-sm);
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.gqm-cart-notes textarea:focus {
    outline: none;
    border-color: var(--gqm-primary);
}

/* Payment Method */
.gqm-payment-method {
    margin-top: 20px;
}

.gqm-payment-method > label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.gqm-payment-method > label .dashicons {
    vertical-align: middle;
    margin-right: 5px;
    color: var(--gqm-primary);
}

.gqm-payment-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gqm-payment-option {
    flex: 1;
    min-width: 100px;
}

.gqm-payment-option input {
    display: none;
}

.gqm-payment-option span {
    display: block;
    padding: 12px;
    text-align: center;
    border: 2px solid var(--gqm-neutral-200);
    border-radius: var(--gqm-radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.gqm-payment-option input:checked + span {
    border-color: var(--gqm-primary);
    background: var(--gqm-primary);
    color: white;
}

/* Cart Summary */
.gqm-cart-summary {
    margin-bottom: 15px;
}

.gqm-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.gqm-summary-row.gqm-total {
    border-top: 2px solid var(--gqm-neutral-200);
    padding-top: 12px;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--gqm-primary);
}

.gqm-min-order-notice {
    background: var(--gqm-warning);
    color: white;
    padding: 10px 15px;
    border-radius: var(--gqm-radius-sm);
    margin-bottom: 15px;
    font-size: 14px;
}

.gqm-min-order-notice .dashicons {
    vertical-align: middle;
    margin-right: 5px;
}

/* Submit Button */
.gqm-submit-order {
    width: 100%;
    padding: 16px;
    background: var(--gqm-primary);
    color: white;
    border: none;
    border-radius: var(--gqm-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gqm-submit-order:hover:not(:disabled) {
    background: var(--gqm-primary-light);
}

.gqm-submit-order:disabled {
    background: var(--gqm-neutral-200);
    cursor: not-allowed;
}

.gqm-btn-loading {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gqm-spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: gqm-spin 0.8s linear infinite;
}

/* Success Modal */
.gqm-success-content {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--gqm-radius);
    max-height: none;
}

.gqm-success-icon .dashicons {
    font-size: 80px;
    width: 80px;
    height: 80px;
    color: var(--gqm-success);
}

.gqm-success-content h2 {
    margin: 20px 0 10px;
    color: var(--gqm-success);
}

.gqm-order-number {
    font-size: 18px;
    margin: 20px 0;
}

.gqm-order-number strong {
    color: var(--gqm-primary);
    font-size: 24px;
}

.gqm-success-mesa {
    background: var(--gqm-neutral-100);
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
}

.gqm-success-close {
    margin-top: 30px;
    padding: 14px 40px;
    background: var(--gqm-primary);
    color: white;
    border: none;
    border-radius: var(--gqm-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* Goodbye Modal */
.gqm-goodbye-content {
    text-align: center;
    padding: 40px 20px;
    border-radius: var(--gqm-radius);
    max-height: none;
    background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.gqm-goodbye-icon {
    margin-bottom: 10px;
}

.gqm-goodbye-emoji {
    font-size: 80px;
    display: block;
    animation: wave 1s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-20deg); }
}

.gqm-goodbye-content h2 {
    margin: 10px 0;
    color: var(--gqm-primary);
    font-size: 24px;
}

.gqm-goodbye-message {
    color: #666;
    font-size: 16px;
    margin: 10px 0;
}

.gqm-goodbye-total {
    font-size: 20px;
    margin: 20px 0;
    padding: 15px;
    background: var(--gqm-neutral-100);
    border-radius: var(--gqm-radius);
}

.gqm-goodbye-total strong {
    color: var(--gqm-success);
    font-size: 28px;
}

.gqm-goodbye-footer {
    margin-top: 20px;
    color: #888;
}

.gqm-goodbye-footer p {
    font-size: 18px;
    font-weight: 600;
    color: var(--gqm-primary);
}

.gqm-goodbye-footer small {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #aaa;
}

.gqm-goodbye-btn {
    margin-top: 25px;
    padding: 14px 40px;
    background: var(--gqm-primary);
    color: white;
    border: none;
    border-radius: var(--gqm-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.gqm-goodbye-btn:hover {
    background: var(--gqm-primary-dark);
}

/* Offer Badge & Special Price */
.gqm-dish-card.has-offer {
    border: 2px solid var(--gqm-error);
}

.gqm-offer-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--gqm-error);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gqm-price-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gqm-price-old {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.gqm-price-offer {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gqm-error);
}

.gqm-has-extras {
    font-size: 11px;
    color: var(--gqm-primary);
    background: var(--gqm-neutral-100);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Labels & Tags */
.gqm-dish-labels {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
}

.gqm-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.gqm-spicy {
    font-size: 14px;
    margin-left: 4px;
}

/* View Details Button */
.gqm-view-details {
    width: 100%;
    padding: 10px;
    background: var(--gqm-neutral-100);
    border: none;
    color: var(--gqm-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gqm-view-details:hover {
    background: var(--gqm-primary);
    color: white;
}

/* Product Detail Modal */
.gqm-product-detail {
    max-width: 450px;
    max-height: 95vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.gqm-product-detail .gqm-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gqm-modal-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.gqm-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gqm-product-detail .gqm-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.gqm-product-detail h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: var(--gqm-neutral-900);
}

.gqm-portion {
    font-size: 13px;
    color: #666;
    margin: 0 0 10px;
}

.gqm-modal-desc {
    color: #666;
    margin: 0 0 15px;
    line-height: 1.6;
}

/* Modal Labels */
.gqm-modal-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.gqm-label-full {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: white;
    font-weight: 500;
}

/* Modal Allergens */
.gqm-modal-allergens {
    margin-bottom: 15px;
    padding: 12px;
    background: #fff3cd;
    border-radius: var(--gqm-radius-sm);
}

.gqm-modal-allergens h4 {
    margin: 0 0 10px;
    font-size: 14px;
}

.gqm-allergen-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.gqm-allergen-item {
    font-size: 12px;
    background: white;
    padding: 4px 10px;
    border-radius: 15px;
    text-transform: capitalize;
}

/* Nutrition Info */
.gqm-nutrition-info {
    margin-bottom: 15px;
    padding: 15px;
    background: var(--gqm-neutral-100);
    border-radius: var(--gqm-radius-sm);
}

.gqm-nutrition-info h4 {
    margin: 0 0 12px;
    font-size: 14px;
}

.gqm-nutrition-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    text-align: center;
}

.gqm-nutrition-grid div {
    padding: 8px;
    background: white;
    border-radius: 8px;
}

.gqm-nutrition-grid strong {
    display: block;
    font-size: 16px;
    color: var(--gqm-primary);
}

.gqm-nutrition-grid span {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
}

/* Modal Extras */
.gqm-modal-extras {
    margin-bottom: 15px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: var(--gqm-radius-sm);
}

.gqm-modal-extras h4 {
    margin: 0 0 12px;
    font-size: 14px;
}

.gqm-extras-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gqm-extra-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.gqm-extra-item:hover {
    background: #f5f5f5;
}

.gqm-extra-item input {
    accent-color: var(--gqm-primary);
    width: 18px;
    height: 18px;
}

.gqm-extra-name {
    flex: 1;
    font-size: 14px;
}

.gqm-extra-price {
    font-weight: 600;
    color: var(--gqm-success);
}

/* Modal Footer */
.gqm-product-detail .gqm-modal-footer {
    padding: 15px 20px;
    background: white;
    border-top: 1px solid var(--gqm-neutral-200);
}

.gqm-modal-price-container {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 12px;
}

.gqm-modal-price-old {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.gqm-modal-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gqm-primary);
}

.gqm-extras-total {
    font-size: 14px;
    color: var(--gqm-success);
}

.gqm-modal-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.gqm-qty-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gqm-neutral-100);
    padding: 6px 12px;
    border-radius: 30px;
}

.gqm-modal-qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.gqm-modal-qty-btn:hover {
    background: var(--gqm-primary);
    color: white;
}

#gqm-modal-qty {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
}

.gqm-add-to-cart-btn {
    flex: 1;
    padding: 12px 20px;
    background: var(--gqm-primary);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.gqm-add-to-cart-btn:hover {
    background: var(--gqm-primary-light);
}

/* Cart Item Extras Display */
.gqm-cart-extras {
    font-size: 11px;
    color: var(--gqm-success);
    margin-top: 2px;
}

.gqm-cart-item-name {
    font-weight: 600;
    display: block;
}

.gqm-cart-item-info {
    display: flex;
    flex-direction: column;
}

.gqm-cart-item-price {
    font-size: 12px;
    color: #666;
}

.gqm-cart-item-qty {
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

/* Desktop Adjustments */
@media (min-width: 768px) {
    .gqm-menu-header {
        padding: 24px 20px;
    }

    .gqm-restaurant-name {
        font-size: 2rem;
    }

    .gqm-categories-nav {
        top: 84px;
    }

    .gqm-modal-content {
        border-radius: var(--gqm-radius);
        margin: auto;
        max-height: 80vh;
    }

    .gqm-cart-fab {
        bottom: 30px;
    }

    .gqm-product-detail {
        max-height: 85vh;
    }

    .gqm-modal-image {
        height: 250px;
    }
}

/* ====================================
   SESSION & CHECKOUT STYLES
   ==================================== */

/* Header Right Section */
.gqm-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Session Status */
.gqm-session-status {
    font-size: 12px;
}

.gqm-status-open {
    color: #90EE90;
}

.gqm-status-checkout {
    background: #FFD700;
    color: #333;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.gqm-status-loading {
    color: rgba(255,255,255,0.7);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Checkout Notice */
.gqm-checkout-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    font-weight: 500;
}

.gqm-checkout-notice p {
    margin: 0;
}

/* Account Button (Floating) */
.gqm-account-fab {
    position: fixed;
    bottom: 90px;
    right: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: var(--gqm-shadow-lg);
    z-index: 99;
    transition: all 0.3s;
}

.gqm-account-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Checkout Message (when in checkout mode) */
.gqm-checkout-message {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: var(--gqm-radius);
    margin: 20px;
    box-shadow: var(--gqm-shadow);
}

.gqm-checkout-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.gqm-checkout-message h3 {
    color: var(--gqm-primary);
    margin: 0 0 15px;
}

.gqm-checkout-message p {
    color: #666;
    margin: 5px 0;
}

/* Account Modal */
.gqm-account-detail {
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.gqm-account-detail .gqm-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.gqm-account-info {
    color: #666;
    margin: 0 0 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--gqm-neutral-200);
}

/* Account Orders */
.gqm-account-orders {
    margin-bottom: 20px;
}

.gqm-account-order {
    background: var(--gqm-neutral-100);
    border-radius: var(--gqm-radius-sm);
    padding: 15px;
    margin-bottom: 15px;
}

.gqm-account-order-header {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--gqm-neutral-200);
}

.gqm-order-status {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 10px;
    background: white;
}

.gqm-account-order-items {
    font-size: 14px;
}

.gqm-account-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
}

.gqm-item-extras {
    color: var(--gqm-success);
    font-size: 12px;
}

.gqm-account-order-subtotal {
    text-align: right;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--gqm-neutral-200);
    font-weight: 500;
}

.gqm-no-orders {
    text-align: center;
    color: #999;
    padding: 30px;
}

/* Account Totals */
.gqm-account-totals {
    background: white;
    border-radius: var(--gqm-radius-sm);
    padding: 15px;
    border: 2px solid var(--gqm-primary);
}

.gqm-total-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.gqm-total-final {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--gqm-primary);
    border-top: 2px solid var(--gqm-neutral-200);
    margin-top: 10px;
    padding-top: 15px;
}

/* Account Actions */
.gqm-account-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.gqm-checkout-waiting {
    text-align: center;
    padding: 20px;
    background: #FFF3CD;
    border-radius: var(--gqm-radius-sm);
    margin-top: 20px;
}

.gqm-payment-method {
    font-weight: 600;
    margin-top: 5px;
}

/* Buttons */
.gqm-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.gqm-btn-primary {
    background: var(--gqm-primary);
    color: white;
}

.gqm-btn-primary:hover {
    background: var(--gqm-primary-light);
}

.gqm-btn-secondary {
    background: var(--gqm-neutral-200);
    color: var(--gqm-neutral-900);
}

.gqm-btn-secondary:hover {
    background: var(--gqm-neutral-100);
}

/* Checkout Modal */
.gqm-checkout-detail {
    max-width: 450px;
}

.gqm-checkout-total {
    text-align: center;
    padding: 20px;
    background: var(--gqm-neutral-100);
    border-radius: var(--gqm-radius-sm);
    margin-bottom: 20px;
}

.gqm-big-total {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: var(--gqm-primary);
    margin-top: 5px;
}

/* Payment Methods */
.gqm-payment-methods h4 {
    margin: 0 0 15px;
    font-size: 14px;
}

.gqm-payment-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: white;
    border: 2px solid var(--gqm-neutral-200);
    border-radius: var(--gqm-radius-sm);
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.gqm-payment-option:hover {
    border-color: var(--gqm-primary);
}

.gqm-payment-option input {
    accent-color: var(--gqm-primary);
    width: 20px;
    height: 20px;
}

.gqm-payment-option input:checked + .gqm-payment-icon {
    transform: scale(1.1);
}

.gqm-payment-icon {
    font-size: 1.5em;
    transition: transform 0.2s;
}

.gqm-payment-option div {
    flex: 1;
}

.gqm-payment-option strong {
    display: block;
    font-size: 14px;
}

.gqm-payment-option small {
    color: #666;
    font-size: 12px;
}

/* Checkout Warning */
.gqm-checkout-warning {
    background: #FFF3CD;
    padding: 12px 15px;
    border-radius: var(--gqm-radius-sm);
    margin: 20px 0;
    font-size: 13px;
}

.gqm-checkout-warning p {
    margin: 0;
}

/* Checkout Actions */
.gqm-checkout-actions {
    display: flex;
    gap: 10px;
}

/* Checkout Confirm Modal */
.gqm-checkout-confirm {
    text-align: center;
    padding: 40px 30px;
    max-width: 400px;
}

.gqm-checkout-confirm .gqm-modal-body {
    padding: 0;
}

.gqm-checkout-confirm hr {
    border: none;
    border-top: 1px solid var(--gqm-neutral-200);
    margin: 20px 0;
}

/* Cart Session Info */
.gqm-cart-session-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed var(--gqm-neutral-200);
}

.gqm-info-tip {
    margin: 0;
    color: var(--gqm-success);
    font-size: 13px;
    text-align: center;
}

/* Success Modal Updates */
#gqm-success-message hr {
    border: none;
    border-top: 1px solid var(--gqm-neutral-200);
    margin: 15px 0;
}

.gqm-tip {
    color: var(--gqm-success);
    font-size: 13px;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .gqm-header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 5px;
    }

    .gqm-account-fab {
        bottom: 80px;
        right: 10px;
        padding: 10px 16px;
        font-size: 13px;
    }

    .gqm-account-actions,
    .gqm-checkout-actions {
        flex-direction: column;
    }
}
