:root {
    --primary: #ea1d2c;
    --primary-hover: #c41926;
    --bg: #ffffff;
    --bg-muted: #f7f7f7;
    --text: #3e3e3e;
    --text-muted: #717171;
    --border: #eeeeee;
    --radius-lg: 16px;
    --radius-md: 12px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.food-app-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--bg);
    min-height: 100vh;
    font-family: 'Inter', sans-serif;
}

/* Store Header */
.food-store-header {
    padding: 32px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.store-info h1 {
    font-size: 28px;
    font-weight: 800;
    margin: 0;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-info p {
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.store-badges {
    margin-top: 16px;
    display: flex;
    gap: 12px;
}

.badge-time, .badge-fee {
    background: var(--bg-muted);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
}

/* Category Navigation */
.food-cat-nav {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    scrollbar-width: none;
    padding: 15px 0;
    margin-bottom: 20px;
}

.food-cat-nav::-webkit-scrollbar { display: none; }

.food-cat-nav ul {
    display: flex;
    list-style: none;
    padding: 0 20px;
    margin: 0;
    gap: 12px;
}

.food-cat-nav a {
    display: block;
    padding: 10px 20px;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
    border-radius: 99px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.food-cat-nav a.active, .food-cat-nav a:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* Product Cards */
.food-section { padding: 32px 20px; }
.section-title { font-size: 20px; font-weight: 700; margin-bottom: 24px; }

/* Layout Lanchonete (Padrão) */
.layout-lanchonete .food-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

/* Layout Vestuário */
.layout-vestuario .food-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

@media (max-width: 1024px) {
    .layout-vestuario .food-products-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .layout-lanchonete .food-products-grid { grid-template-columns: 1fr; }
    .layout-vestuario .food-products-grid { grid-template-columns: 1fr; }
}

/* Card Lanchonete */
.layout-lanchonete .food-product-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

/* Card Vestuário */
.layout-vestuario .food-product-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.layout-vestuario .food-product-card:hover {
    border-color: #d1d1d1;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.layout-vestuario .product-img {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
}

.layout-vestuario .product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.layout-vestuario .product-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.layout-vestuario .product-info h3 {
    font-size: 18px;
    margin-bottom: 2px;
    font-weight: 700;
}

.layout-vestuario .product-price {
    font-size: 18px;
    color: #1e293b;
    font-weight: 800;
}

.layout-vestuario .product-installments {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 5px;
}

.layout-vestuario .btn-buy-vestuario {
    width: 100%;
    background: #1e293b;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.layout-vestuario .btn-buy-vestuario:hover {
    background: #000;
}

.layout-vestuario .product-desc {
    display: none; /* Esconder descrição no grid de vestuário para ficar mais limpo */
}

.food-product-card:hover {
    border-color: #d1d1d1;
    box-shadow: var(--shadow);
}

.product-info { flex: 1; }
.product-info h3 { font-size: 16px; font-weight: 600; margin: 0 0 6px 0; }
.product-desc { 
    font-size: 14px; 
    color: var(--text-muted); 
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-price { font-size: 16px; font-weight: 700; color: #27ae60; }

.product-img img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    background: #f0f0f0;
}

/* Modal de Produto / Adicionais Premium */
.food-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7) !important;
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.food-modal-content {
    background: #fff;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    padding: 24px;
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Modal Header Actions */
.modal-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-modal-back {
    background: #f1f5f9;
    border: none;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #475569;
    transition: all 0.2s;
}

.btn-modal-back:hover { background: #e2e8f0; }

.close-modal {
    font-size: 24px;
    font-weight: bold;
    color: #64748b;
    cursor: pointer;
    background: #fff;
    border: none;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 100;
}

.modal-title { font-size: 22px; margin-bottom: 20px; color: #1e293b; font-weight: 800; }

/* Botões Globais */
.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.btn-primary:hover {
    background: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 29, 44, 0.2);
}

.btn-success {
    background: #22c55e !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-success:hover {
    background: #16a34a !important;
    transform: translateY(-1px);
}

/* Carrinho Modal Específico */
#cart-items-list { max-height: 300px; overflow-y: auto; margin-bottom: 20px; padding-right: 5px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 15px; display: block; color: #1e293b; }
.cart-item-options { font-size: 12px; color: #64748b; margin-top: 2px; }
.cart-item-price { font-weight: 700; color: var(--primary); margin-top: 4px; display: block; }

.cart-item-qty-control { display: flex; align-items: center; gap: 10px; margin-left: 15px; }
.qty-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #e2e8f0; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: bold; color: var(--primary); }
.qty-val { font-weight: 700; min-width: 20px; text-align: center; color: #1e293b; }
.btn-remove { color: #ef4444; background: none; border: none; cursor: pointer; margin-left: 10px; padding: 5px; display: flex; align-items: center; }

.cart-summary-box { background: #f8fafc; padding: 20px; border-radius: 16px; margin-bottom: 20px; border: 1px solid #f1f5f9; }
.summary-line { display: flex; justify-content: space-between; margin-bottom: 10px; font-size: 14px; color: #64748b; }
.summary-line.total { border-top: 1px dashed #cbd5e1; padding-top: 15px; margin-top: 10px; font-weight: 800; font-size: 24px; color: #1e293b; }
.summary-line.total span:last-child { color: var(--primary); }

.cart-actions { display: flex; gap: 12px; }
.btn-continue { flex: 1; background: #f1f5f9; border: none; padding: 14px; border-radius: 12px; font-weight: 700; cursor: pointer; color: #475569; transition: all 0.2s; }
.btn-checkout { flex: 1; background: var(--primary); color: #fff; border: none; padding: 14px; border-radius: 12px; font-weight: 700; cursor: pointer; }

/* Checkout Form */
.desktop-side-by-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 600px) {
    .desktop-side-by-side { grid-template-columns: 1fr; }
}

.form-group { margin-bottom: 6px; }
.form-group label { display: block; font-size: 10px; font-weight: 700; color: #475569; margin-bottom: 1px; text-transform: uppercase; }
.form-group input, .form-group textarea { width: 100%; padding: 6px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 13px; }

.payment-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-radio { border: 1px solid #e2e8f0; padding: 12px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.payment-radio:has(input:checked) { border-color: var(--primary); background: rgba(0,0,0,0.03); color: var(--primary); }

/* Delivery Type Toggle */
.delivery-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 8px;
}

.type-option input { display: none; }
.type-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.type-option input:checked + .type-card {
    border-color: var(--primary);
    background: rgba(0,0,0,0.03);
    color: var(--primary);
}

.type-card i { font-size: 24px; width: 24px; height: 24px; }
.type-card span { font-weight: 600; font-size: 14px; }

/* Payment Grid V2 */
.payment-grid-v2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.payment-option-v2 input { display: none; }
.payment-card-v2 {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.payment-option-v2 input:checked + .payment-card-v2 {
    border-color: var(--primary);
    background: rgba(0,0,0,0.03);
    color: var(--primary);
}

.payment-card-v2 i { font-size: 20px; width: 20px; height: 20px; }
.payment-card-v2 span { font-weight: 600; font-size: 13px; }

.btn-confirm-order { width: 100%; background: #22c55e; color: #fff; border: none; padding: 16px; border-radius: 12px; font-weight: 800; cursor: pointer; margin-top: 20px; font-size: 16px; }

/* Success View */
.btn-whatsapp-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25d366 !important;
    color: #fff !important;
    padding: 18px 30px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    font-size: 16px;
    width: 100%;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.2s;
}
.btn-whatsapp-large:hover { background: #128c7e !important; transform: translateY(-2px); }

.product-modal-content {
    background: #fff;
    width: 95%;
    max-width: 500px;
    max-height: 90vh;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    animation: slideUp 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.product-modal-content #product-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
}

.product-modal-content .modal-body-scroll {
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.product-modal-content .modal-product-header,
.product-modal-content .modal-options {
    padding: 20px 24px;
}

.product-modal-content .close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 110;
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border: none;
    cursor: pointer;
}

.product-modal-content .modal-product-image-container {
    margin: 0;
    width: 100%;
}

.product-modal-content .modal-product-img {
    width: 100%;
    height: auto;
    max-height: 280px;
    border-radius: 0;
    display: block;
    object-fit: cover;
}

.modal-body-scroll {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-product-header h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--text);
}

.modal-product-header p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 16px;
}

.modal-price-tag {
    font-size: 18px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 4px;
    display: block;
}

.modal-options h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin: 4px 0 8px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.option-row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.option-row input {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    accent-color: var(--primary);
}

.option-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 500;
}

.option-price {
    color: #27ae60;
    font-weight: 600;
}

.modal-footer {
    padding: 20px 24px;
    background: #fff;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 12px;
}

.qty-selector button {
    width: 28px;
    height: 28px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-add-cart {
    flex: 1;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

@media (max-width: 480px) {
    .product-modal-content {
        width: 95%;
        border-radius: 24px;
    }
    .modal-footer {
        padding-bottom: 24px;
    }
}

/* Prevent auto-zoom on iOS */
input, textarea, select {
    font-size: 16px !important;
}

.modal-open {
    overflow: hidden !important;
}

/* Floating Cart */
.food-floating-cart {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 600px;
    background: var(--primary);
    color: #fff;
    padding: 16px 24px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 12px 32px rgba(234, 29, 44, 0.3);
    z-index: 1000;
    cursor: pointer;
}

/* Checkout Footer & Final Total */
.checkout-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.final-total {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.final-total span {
    color: var(--primary);
}

/* PIX Payment View Styles */
.pix-instructions {
    text-align: center;
}

.pix-qr-container img {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.pix-qr-container img:hover {
    transform: scale(1.05);
}

.btn-copy-pix {
    transition: all 0.2s;
}

.btn-copy-pix:hover {
    background: #e2e8f0 !important;
    color: #1d4ed8 !important;
}

.btn-copy-pix:active {
    transform: scale(0.95);
}

.pix-total-box #pix-final-total {
    text-shadow: 0 2px 4px rgba(37, 99, 235, 0.1);
}

/* Store Status Badge */
.store-status-tag {
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.status-open {
    background: #22c55e;
    color: #fff;
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.2);
}

.status-closed {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* New Checkout Footer Layout */
.checkout-footer-v2 {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #f1f5f9;
    text-align: center;
}

.checkout-summary-full {
    margin-bottom: 20px;
}

.checkout-delivery-info {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.final-total-highlight {
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 10px;
}

.final-total-highlight span {
    color: var(--primary);
}

.btn-confirm-order-v2 {
    width: 100%;
    background: #22c55e;
    color: #fff;
    border: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 800;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.2);
}

.btn-confirm-order-v2:hover {
    background: #16a34a;
    transform: translateY(-2px);
}

.checkout-summary-mini {
    display: flex;
    flex-direction: column;
}

/* Buttons */
.wp-food-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
    font-size: 14px;
}
.wp-food-btn-outline {
    background: #fff;
    border-color: #cbd5e1;
    color: #475569;
}
.wp-food-btn-outline:hover {
    background: #f8fafc;
    border-color: #94a3b8;
}

