/**
 * Pizzaria Itália - Estilos Principais
 * Versão COMPLETA com QR Code OTIMIZADO
 */

/* ==================== RESET E BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #f5f5f5;
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

.container {
    max-width: 100%;
    height: 100vh;
    margin: 0 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #f5f5f5;
    padding-bottom: 20px;
}

/* ==================== BANNER ==================== */
.banner {
    height: 180px;
    width: 100%;
    background: linear-gradient(135deg, #fd0 0%, #ffb300 100%);
    position: relative;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ==================== CARD DO RESTAURANTE ==================== */
.restaurant-card {
    background: white;
    border-radius: 24px 24px 0 0;
    margin-top: -24px;
    padding: 20px 16px 12px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.03);
}

.restaurant-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.restaurant-logo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #fd0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fd0;
    flex-shrink: 0;
    overflow: hidden;
}

.restaurant-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.restaurant-info h1 {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.restaurant-info p {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 4px;
}

.restaurant-rating {
    color: #fd0;
    font-weight: 600;
}

/* ==================== LOCALIZAÇÃO ==================== */
.location-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #fafafa;
    border-radius: 12px;
    margin: 8px 0 12px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
}

.location-bar:hover {
    background: #f0f0f0;
}

.location-icon {
    color: #fd0;
    font-size: 20px;
    background: #FFF8E7;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-text {
    flex: 1;
    min-width: 0;
}

.location-label {
    font-size: 12px;
    color: #888;
    margin-bottom: 2px;
}

.location-address {
    font-weight: 600;
    font-size: 14px;
    color: #111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.location-change {
    color: #fd0;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    background: #FFF8E7;
    border-radius: 30px;
    flex-shrink: 0;
}

/* ==================== INFO ENTREGA ==================== */
.delivery-info {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.delivery-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-icon {
    width: 32px;
    height: 32px;
    background: #f5f5f5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fd0;
    font-size: 16px;
    flex-shrink: 0;
}

.delivery-text small {
    display: block;
    font-size: 11px;
    color: #888;
}

.delivery-text strong {
    font-size: 14px;
    color: #111;
}

.free-badge {
    color: #00A650;
    font-weight: 600;
}

/* ==================== SEÇÕES ==================== */
.section {
    background: white;
    padding: 16px 0 8px;
    margin-top: 8px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.section-link {
    color: #fd0;
    font-size: 13px;
    font-weight: 500;
}

/* ==================== CARROSSEL ==================== */
.carousel {
    display: flex;
    gap: 12px;
    padding: 0 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
    display: none;
}

.carousel-item {
    min-width: 130px;
    width: 130px;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: transform 0.2s;
}

.carousel-item:hover {
    transform: scale(1.02);
}

.carousel-image {
    width: 100%;
    height: 110px;
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #fd0;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 30px;
    z-index: 1;
}

.carousel-info {
    padding: 8px;
}

.carousel-name {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 30px;
}

.carousel-price {
    font-weight: 700;
    color: #111;
    font-size: 14px;
}

.carousel-price-old {
    font-size: 10px;
    color: #999;
    text-decoration: line-through;
    margin-right: 4px;
}

.carousel-includes {
    font-size: 9px;
    color: #00A650;
    font-weight: 500;
    margin-top: 4px;
}

/* ==================== GRADE DE PRODUTOS ==================== */
.products-section {
    background: white;
    padding: 16px 0;
    margin-top: 8px;
}

.products-title {
    font-size: 18px;
    font-weight: 700;
    padding: 0 16px 12px;
    color: #111;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0 16px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}

.product-card:active {
    transform: scale(0.98);
}

.product-image {
    width: 100%;
    height: 120px;
    background: #f8f8f8;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #fd0;
    color: #111;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 30px;
    z-index: 1;
}

.product-info {
    padding: 10px;
}

.product-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
    color: #111;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 32px;
}

.product-description {
    font-size: 11px;
    color: #888;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 28px;
}

.product-price-container {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin: 4px 0;
}

.product-price-old {
    font-size: 11px;
    color: #999;
    text-decoration: line-through;
}

.product-price {
    font-weight: 800;
    color: #111;
    font-size: 16px;
}

.product-includes {
    font-size: 10px;
    color: #00A650;
    font-weight: 600;
    margin-top: 4px;
}

/* ==================== CARRINHO FIXO ==================== */
.cart-fixed {
    position: sticky;
    bottom: 16px;
    margin: 16px;
    z-index: 1000;
}

.cart-button {
    background: #111;
    color: white;
    padding: 14px 20px;
    border-radius: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    cursor: pointer;
    border: 1px solid #fd0;
    transition: transform 0.2s;
}

.cart-button:active {
    transform: scale(0.98);
}

.cart-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-icon {
    background: #fd0;
    color: #111;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.cart-count {
    background: #fd0;
    color: #111;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 13px;
    margin-left: 8px;
}

.cart-total {
    color: #fd0;
    font-size: 18px;
    font-weight: 700;
}

.cart-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== MODAL DE LOCALIZAÇÃO ==================== */
.location-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 20000;
    backdrop-filter: blur(5px);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.location-modal.show {
    display: flex;
}

.location-modal-content {
    background: white;
    width: 95%;
    max-width: 400px;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    max-height: 95vh;
    overflow: hidden;
}

.location-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.location-modal-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.location-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.location-modal-close:hover {
    background: #e0e0e0;
}

.search-container {
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

.search-row {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.search-row input {
    flex: 1;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.search-row input:focus {
    border-color: #fd0;
    outline: none;
}

.search-row button {
    padding: 14px 20px;
    background: #fd0;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.search-row button:hover {
    background: #e6b800;
}

.search-row button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ==================== RESULTADO DO CEP ==================== */
.cep-result {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #fd0;
}

.cep-address {
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
    word-break: break-word;
}

.cep-actions {
    display: flex;
    gap: 8px;
}

.cep-actions button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-confirm {
    background: #fd0;
    color: #111;
}

.btn-edit {
    background: #f5f5f5;
    color: #666;
}

.btn-confirm:hover {
    background: #e6b800;
}

.btn-edit:hover {
    background: #e0e0e0;
}

/* ==================== FORMULÁRIO DE NÚMERO ==================== */
.number-form {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.number-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.number-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.number-input-row input {
    flex: 1;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
}

.number-input-row input:focus {
    border-color: #fd0;
    outline: none;
}

.no-number-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    cursor: pointer;
}

.no-number-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #fd0;
    cursor: pointer;
}

.no-number-checkbox span {
    font-size: 14px;
    color: #666;
}

.save-number-btn {
    width: 100%;
    padding: 14px;
    background: #fd0;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.save-number-btn:hover {
    background: #e6b800;
}

/* ==================== FORMULÁRIO DE REFERÊNCIA ==================== */
.street-form {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.street-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
}

.street-form input {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 12px;
}

.street-form input:focus {
    border-color: #fd0;
    outline: none;
}

.street-form small {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.save-street-btn {
    width: 100%;
    padding: 14px;
    background: #fd0;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.save-street-btn:hover {
    background: #e6b800;
}

/* ==================== MAPA ==================== */
.location-map {
    height: 160px;
    width: 100%;
    background: #f0f0f0;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
}

#map {
    height: 160px;
    width: 100%;
    z-index: 1;
}

.location-status {
    padding: 12px 20px;
    margin: 0;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.location-status.show {
    display: flex;
}

.location-status.success {
    background: #e8f5e9;
    color: #00A650;
}

.location-status.error {
    background: #ffebee;
    color: #d32f2f;
}

.location-status.loading {
    background: #fff3e0;
    color: #fd0;
}

/* ==================== SUGESTÕES ==================== */
.location-suggestions {
    padding: 16px 20px;
    background: white;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.suggestion-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #fafafa;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f0f0f0;
}

.suggestion-item:last-child {
    margin-bottom: 0;
}

.suggestion-icon {
    width: 36px;
    height: 36px;
    background: #fd0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111;
    flex-shrink: 0;
}

.suggestion-text {
    flex: 1;
}

.suggestion-text strong {
    display: block;
    font-size: 14px;
    margin-bottom: 2px;
    color: #111;
}

.suggestion-text span {
    font-size: 12px;
    color: #888;
}

/* ==================== MODAL DE PERMISSÃO ==================== */
.permission-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 21000;
    backdrop-filter: blur(5px);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.permission-modal.show {
    display: flex;
}

.permission-content {
    background: white;
    width: 90%;
    max-width: 340px;
    border-radius: 24px;
    padding: 24px;
    text-align: center;
}

.permission-icon {
    width: 64px;
    height: 64px;
    background: #fd0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.permission-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.permission-content p {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.permission-buttons {
    display: flex;
    gap: 10px;
}

.permission-button {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.permission-button.allow {
    background: #fd0;
    color: #111;
}

.permission-button.allow:hover {
    background: #e6b800;
}

.permission-button.deny {
    background: #f5f5f5;
    color: #666;
}

.permission-button.deny:hover {
    background: #e0e0e0;
}

/* ==================== MODAL DO PRODUTO ==================== */
.product-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: flex-end;
    justify-content: center;
    z-index: 10000;
}

.product-modal.show {
    display: flex;
}

.modal-container {
    background: white;
    width: 100%;
    max-width: 480px;
    border-radius: 24px 24px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-image {
    width: 100%;
    height: 200px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.modal-close:hover {
    background: rgba(0,0,0,0.7);
}

.modal-content {
    padding: 20px;
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.modal-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 12px;
    border-left: 3px solid #fd0;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-section-title span {
    background: #fd0;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 500;
}

.flavors-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.flavor-item {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 30px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.flavor-item.selected {
    background: #fd0;
    border-color: #111;
    font-weight: 600;
}

.flavor-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ==================== BORDA ==================== */
.border-section {
    background: #f9f5e6;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid #fd0;
}

.border-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.border-option:last-child {
    border-bottom: none;
}

.border-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #fd0;
    margin-right: 12px;
    cursor: pointer;
}

.border-info {
    flex: 1;
}

.border-name {
    font-size: 14px;
    font-weight: 500;
}

.border-free {
    color: #00A650;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.border-badge {
    background: #fd0;
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 600;
}

/* ==================== REFRIGERANTE ==================== */
.soda-section {
    background: #f0f7ff;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.soda-option {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.soda-option:last-child {
    border-bottom: none;
}

.soda-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: #fd0;
    margin-right: 12px;
    cursor: pointer;
}

.soda-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.soda-free {
    color: #00A650;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

/* ==================== OBSERVAÇÃO ==================== */
.observation-field {
    margin: 16px 0;
}

.observation-field textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #eee;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    height: 70px;
    transition: border-color 0.2s;
}

.observation-field textarea:focus {
    border-color: #fd0;
    outline: none;
}

.modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.modal-total {
    font-size: 24px;
    font-weight: 700;
    color: #111;
}

.add-button {
    background: #fd0;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 16px;
    color: #111;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.2s;
}

.add-button:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253,208,0,0.3);
}

.add-button:active {
    transform: translateY(0);
}

.add-button.disabled {
    background: #ccc;
    pointer-events: none;
    opacity: 0.5;
}

/* ==================== PÁGINA DE CHECKOUT ==================== */
.checkout-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    z-index: 11000;
    overflow-y: auto;
    display: none;
    flex-direction: column;
}

.checkout-page.show {
    display: flex;
}

.checkout-header {
    background: white;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.checkout-back {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-back:hover {
    background: #e0e0e0;
}

.checkout-title {
    font-size: 20px;
    font-weight: 700;
    flex: 1;
}

.checkout-steps {
    display: flex;
    padding: 16px 20px;
    background: white;
    margin: 8px 0;
    gap: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.step {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    position: relative;
    padding-bottom: 8px;
}

.step.active {
    color: #fd0;
}

.step.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 25%;
    width: 50%;
    height: 3px;
    background: #fd0;
    border-radius: 3px;
}

/* ==================== CARRINHO RESUMO ==================== */
.cart-items-resumo {
    background: white;
    padding: 0 20px;
    margin-bottom: 8px;
}

.cart-item-resumo {
    display: flex;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cart-item-resumo:last-child {
    border-bottom: none;
}

.item-image {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-details {
    flex: 1;
}

.item-name {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 4px;
}

.item-flavors {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.item-price {
    font-weight: 700;
    color: #111;
    margin-top: 4px;
}

/* ==================== FORMULÁRIO DO CLIENTE ==================== */
.customer-form {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    border-color: #fd0;
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ==================== RESUMO DO PEDIDO ==================== */
.order-summary {
    background: white;
    padding: 20px;
    margin-bottom: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.summary-row.total {
    font-weight: 700;
    font-size: 18px;
    border-top: 2px dashed #ddd;
    padding-top: 12px;
    margin-top: 8px;
}

/* ==================== PAGAMENTO PIX ==================== */
.pix-payment {
    background: white;
    padding: 24px 20px;
    text-align: center;
}

.pix-header {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 20px;
}

.pix-header h3 {
    color: #111;
    margin-bottom: 8px;
    font-size: 20px;
}

.pix-header p {
    color: #666;
    font-size: 14px;
}

.pix-qr-container {
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 2px solid #eee;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.pix-qr {
    width: 250px;
    height: 250px;
    margin: 0 auto 20px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.pix-qr img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.pix-code {
    background: #f5f5f5;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
    margin-bottom: 16px;
    border: 1px solid #eee;
    text-align: left;
    max-height: 100px;
    overflow-y: auto;
}

.pix-code::-webkit-scrollbar {
    width: 4px;
}

.pix-code::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.pix-code::-webkit-scrollbar-thumb {
    background: #fd0;
    border-radius: 2px;
}

.copy-button {
    background: #fd0;
    border: none;
    width: 100%;
    padding: 16px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.copy-button:hover {
    background: #e6b800;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253,208,0,0.3);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-button.copied {
    background: #00A650;
    color: white;
}

.payment-status {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    display: none;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.payment-status.show {
    display: flex;
}

.payment-status.pending {
    background: #fff3e0;
    color: #fd0;
}

.payment-status.success {
    background: #e8f5e9;
    color: #00A650;
    animation: none;
}

.payment-status.error {
    background: #ffebee;
    color: #d32f2f;
    animation: none;
}

.payment-footer {
    margin-top: 20px;
    font-size: 13px;
    color: #888;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 8px;
}

/* ==================== NOTIFICAÇÃO ==================== */
.notification {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: #111;
    color: white;
    padding: 12px 24px;
    border-radius: 40px;
    font-weight: 500;
    font-size: 14px;
    z-index: 30000;
    display: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    border: 1px solid #fd0;
    white-space: nowrap;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* ==================== LOADING ==================== */
.initial-loading {
    position: fixed;
    inset: 0;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    gap: 12px;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #ddd;
    border-top-color: #fd0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #666;
    font-weight: 500;
    font-size: 16px;
}

/* ==================== MEDIA QUERIES ==================== */
@media (max-width: 380px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .pix-qr {
        width: 200px;
        height: 200px;
    }
}

@media (max-height: 700px) {
    .location-map {
        height: 140px;
    }
    #map {
        height: 140px;
    }
    .search-container {
        padding: 12px 20px;
    }
    .location-suggestions {
        padding: 12px 20px;
    }
}

@media (max-height: 600px) {
    .location-map {
        height: 120px;
    }
    #map {
        height: 120px;
    }
}

@media (min-width: 500px) {
    .product-modal {
        align-items: center;
    }
    .modal-container {
        border-radius: 24px;
        max-width: 440px;
    }
}

/* ==================== UTILITÁRIOS ==================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 8px;
}

.mt-4 {
    margin-top: 16px;
}

.mb-2 {
    margin-bottom: 8px;
}

.mb-4 {
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}