* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f5f5;
    color: #333;
    max-width: 430px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.header {
    background-color: #000;
    color: #fff;
    padding: 8px 16px;
    font-size: 12px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.device-info {
    display: flex;
    gap: 10px;
    font-size: 11px;
}

/* Main Banner */
.main-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.banner-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.banner-text h1 {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.banner-text h2 {
    color: #fff;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.pizza-image img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Restaurant Info */
.restaurant-info {
    background: #fff;
    padding: 20px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.restaurant-logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e0e0e0;
    margin-top: 10px;
}

.restaurant-details h2 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.verified {
    color: #1da1f2;
    font-size: 16px;
}

.rating-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-info span {
    font-size: 14px;
    color: #666;
}

.rating {
    color: #333 !important;
    font-weight: 500;
}

.delivery-info span {
    background: #e8f5e8;
    color: #28a745;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Promotion Banner */
.promotion-banner {
    background: linear-gradient(135deg, #dc3545 0%, #28a745 100%);
    color: #fff;
    padding: 10px 20px;
    margin: 0;
}

.promo-content h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.promo-content p {
    font-size: 14px;
    line-height: 1.4;
}

/* Estilos para o banner de promoção baseado em localização - versão muito sutil */
.location-promo {
    background: linear-gradient(135deg, rgba(247, 147, 30, 0.08), rgba(247, 147, 30, 0.03));
    color: #555;
    padding: 8px 16px;
    margin: 8px auto;
    border-radius: 8px;
    border: 1px solid rgba(247, 147, 30, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInGently 1.5s ease-out;
    display: none;
    font-size: 0.85em;
    max-width: 320px;
    text-align: center;
}

.location-promo-content {
    text-align: center;
}

.location-promo h3 {
    margin: 0 0 4px 0;
    font-size: 0.9em;
    font-weight: 500;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-promo p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #f7931e;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes fadeInGently {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Menu Tabs */
.menu-tabs {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    border-bottom: 1px solid #eee;
}

.tab-button {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-button.active {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}

/* Menu Section */
.menu-section {
    background: #fff;
    padding: 20px;
}

.menu-section h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

.menu-category h4 {
    color: #28a745;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Menu Items */
.menu-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border: 2px solid #28a745;
    border-radius: 12px;
    margin-bottom: 15px;
    background: #fff;
    position: relative;
    min-height: 140px;
    align-items: center;
}

.item-image {
    position: relative;
    flex-shrink: 0;
}

.item-image img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.discount-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #28a745;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
}

.promo-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #28a745;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    transform: rotate(15deg);
}

.item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
}

.item-details h5 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.item-details p {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}

.price-info {
    margin-bottom: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}

.item-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.view-product-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    min-height: 36px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

.add-to-cart-btn {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    flex: 1;
    min-height: 36px;
    min-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    text-align: center;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: #fff;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 1000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    position: relative;
}

.nav-item i {
    font-size: 20px;
    color: #666;
}

.nav-item span {
    font-size: 12px;
    color: #666;
}

.nav-item.active i,
.nav-item.active span {
    color: #28a745;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #28a745;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Cart Modal */
.cart-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.cart-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background-color: #ff6b35;
    color: white;
    border-radius: 10px 10px 0 0;
}

.cart-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-cart {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items {
    padding: 20px;
    min-height: 200px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-info h5 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: #333;
}

.cart-item-price {
    font-weight: bold;
    color: #ff6b35;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #ff6b35;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:hover {
    background-color: #e55a2b;
}

.remove-item {
    background-color: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px 10px;
    cursor: pointer;
    font-size: 0.8rem;
}

.remove-item:hover {
    background-color: #c82333;
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.cart-total {
    text-align: center;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #333;
}

.checkout-btn {
    width: 100%;
    background-color: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 15px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.checkout-btn:hover {
    background-color: #218838;
}

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

/* Cart Badge Animation */
.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 0.5s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

/* Responsive adjustments */
@media (max-width: 430px) {
    body {
        max-width: 100%;
    }
    
    .bottom-nav {
        max-width: 100%;
    }
    
    .cart-content {
        width: 95%;
        margin: 2% auto;
        max-height: 90vh;
    }
}

/* Add padding bottom to prevent content being hidden behind bottom nav */
body {
    padding-bottom: 80px;
}

/* Additional styling for better mobile experience */
.menu-item:hover {
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.view-product-btn:hover,
.add-to-cart-btn:hover {
    background: #218838;
}

.tab-button:hover {
    background: #e9ecef;
}

.tab-button.active:hover {
    background: #218838;
}

/* Reviews Section Styles */
.reviews-section {
    padding: 20px;
    margin-bottom: 20px;
}

.reviews-section .section-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.reviews-section .section-title i {
    color: #ffc107;
}

.reviews-container {
    max-width: 100%;
}

.reviews-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.rating-score {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.rating-stars {
    color: #ffc107;
    font-size: 14px;
}

.rating-stars i {
    margin-right: 2px;
}

.rating-count {
    text-align: right;
    font-size: 13px;
    color: #666;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.review-item {
    display: flex;
    gap: 12px;
    padding: 0;
}

.review-avatar {
    flex-shrink: 0;
}

.review-avatar img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.review-content {
    flex: 1;
}

.review-name {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
}

.review-stars {
    color: #ffc107;
    font-size: 12px;
    margin-bottom: 8px;
}

.review-stars i {
    margin-right: 1px;
}

.review-text {
    font-size: 13px;
    color: #333;
    line-height: 1.4;
}

/* Responsive adjustments for reviews */
@media (max-width: 768px) {
    .reviews-section {
        padding: 15px;
    }
    
    .reviews-card {
        padding: 15px;
    }
    
    .reviews-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .rating-count {
        text-align: left;
    }
}

/* Custom Scrollbar Styles - Mobile Optimized */
/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

/* Mobile specific - hide scrollbars on touch devices */
@media (hover: none) and (pointer: coarse) {
    /* Hide scrollbars on mobile devices */
    .menu-tabs {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .menu-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .cart-content {
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .cart-content::-webkit-scrollbar {
        display: none;
    }
    
    /* Global mobile scrollbar hiding */
    ::-webkit-scrollbar {
        width: 0px;
        background: transparent;
    }
    
}

/* Search Container */
.search-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.search-bar {
    background: #fff;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#searchInput {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #28a745;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
}

#searchInput:focus {
    border-color: #1e7e34;
}

.search-close-btn {
    background: #dc3545;
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    flex: 1;
    background: #fff;
    overflow-y: auto;
    padding: 0 15px;
}

.search-result-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

.search-result-details {
    flex: 1;
}

.search-result-details h6 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    color: #333;
}

.search-result-details p {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.search-result-price {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
}

.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

/* Floating Cart Button */
.floating-cart {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(40, 167, 69, 0.3);
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
    animation: bounce 2s infinite;
}

.floating-cart:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.4);
}

.floating-cart i {
    font-size: 24px;
    color: white;
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}