:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #ffffff;
}

body {
    font-family: Arial, sans-serif;
}
.cor{
    background-color: var(--primary-color) !important; 
}

/* Sticky Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.navbar.sticky {
    background-color: rgba(139, 69, 19, 0.95) !important; /* Using primary color with opacity */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.navbar {
    background-color: var(--primary-color) !important;
    margin-bottom: 0; /* Remove bottom margin */
}

#carouselHome {
    margin-top: 0; /* Remove top margin */
}

.container.mt-4 {
    margin-top: 1.5rem !important; /* Keep spacing for other containers */
}

/* Remove mt-4 class from carousel container */
#content > .container.mt-4 {
    margin-top: 0 !important;
}

.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.4);
    z-index: 1000;
    transition: display 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128C7E;
    color: white;
}

.menu-card {
    border: 1px solid var(--accent-color);
    margin: 10px;
    padding: 15px;
    border-radius: 8px;
    transition: transform 0.3s ease;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-5px);
}

.menu-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.menu-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.menu-card p {
    color: #666;
    margin-bottom: 15px;
}

.menu-card .price {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.menu-card .btn {
    padding: 8px 16px;
}

.menu-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.menu-card .description {
    flex: 1;
    margin-bottom: 15px;
}

.price {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-top: 10px;
}

header {
    background-color: var(--primary-color) !important;
}

footer {
    background-color: var(--primary-color) !important;
}

.social-links a {
    font-size: 1.5rem;
    transition: color 0.3s;
}

social-links a:hover {
    color: var(--accent-color) !important;
}

#content {
    min-height: calc(100vh - 350px);
}

.carousel-item img {
    height: 500px;
    object-fit: cover;
    filter: brightness(0.7);
}

.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    bottom: 20%;
}

.carousel-caption h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.carousel-caption p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .carousel-item img {
        height: 300px;
    }
    
    .carousel-caption {
        bottom: 10%;
        padding: 10px;
    }
    
    .carousel-caption h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
    }
}

.card {
    transition: transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card:hover {
    transform: translateY(-5px);
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

#cart-count {
    font-size: 0.8em;
    padding: 0.25em 0.6em;
}

/* Estilos do Modal de Promoção */
.modal-content {
    overflow: hidden;
}

.promo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 300px;
}

.promo-price {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.modal-header .btn-close-white {
    filter: brightness(0) invert(1);
}

.quantidade-container {
    display: flex;
    align-items: center;
    gap: 5px;
}

.quantidade-container span {
    min-width: 30px;
    text-align: center;
    font-weight: bold;
}

.quantidade-container button {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Highlight Cards */
.highlight-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.highlight-card img {
    width: 100%;
    height: 150px;  /* Reduced from default 200px */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.highlight-card .card-body {
    padding: 15px;
}

.card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
}

/* Counter Section */
.counter-container {
    padding: 20px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.counter-container:hover {
    transform: scale(1.05);
}

.counter {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 10px 0;
}

/* Testimonials */
.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-content i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.testimonial-rating {
    color: #ffc107;
    margin: 10px 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h5 {
    margin: 0;
    color: var(--primary-color);
}

.testimonial-author p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.cart-icon {
    position: relative;
    text-decoration: none;
    padding: 5px;
}

.cart-icon:hover {
    opacity: 0.8;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 0.7rem;
    min-width: 18px;
    text-align: center;
}

.cart-header {
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.cart-header button i {
    margin-right: 0.5rem;
}

.promo-card-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.logo-container {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-header-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cart-header-container h2 {
    margin-bottom: 1rem;
}

.cart-header-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .cart-header-container {
        padding: 0.75rem;
    }
    
    .cart-header-buttons {
        flex-direction: column;
    }
    
    .cart-header-buttons button {
        width: 100%;
    }
}

/* Cart Responsive Styles */
@media (max-width: 768px) {
    .cart-table-mobile {
        display: block;
        width: 100%;
    }

    .cart-table-mobile thead {
        display: none;
    }

    .cart-table-mobile tbody tr {
        display: block;
        border: 1px solid #dee2e6;
        margin-bottom: 1rem;
        padding: 0.5rem;
        border-radius: 8px;
    }

    .cart-table-mobile tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border: none;
        padding: 0.5rem;
    }

    .cart-table-mobile tbody td::before {
        content: attr(data-label);
        font-weight: bold;
        margin-right: 1rem;
    }

    .cart-table-mobile tfoot tr {
        display: flex;
        justify-content: space-between;
        padding: 1rem 0;
    }

    .cart-table-mobile tfoot td {
        display: inline-block;
        border: none;
    }

    .cart-actions {
        flex-direction: column;
        gap: 0.5rem;
    }

    .cart-actions button {
        width: 100%;
    }
}

.categoria-cardapio h3 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin-top: 2rem;
}

.categoria-cardapio .border-bottom {
    border-color: var(--primary-color) !important;
}

/* About Page Styles */
.about-container img {
    max-height: 400px;
    object-fit: cover;
}

.card i.fa-3x {
    margin-bottom: 1rem;
}

.list-unstyled li {
    font-size: 1.1rem;
    padding: 0.5rem 0;
}

.list-unstyled i {
    width: 25px;
}

/* Contact Page Styles */
.ratio-4x3 {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#contatoForm {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Chatbot Styles */
.chat-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.chat-container.open {
    transform: translateX(0);
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h5 {
    margin: 0;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #f9f9f9;
}

.chat-message {
    max-width: 85%;
    padding: 12px 15px;
    border-radius: 15px;
    margin: 5px 0;
    line-height: 1.5;
    word-wrap: break-word;
    white-space: pre-line;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.user-message {
    background: #e3f2fd;
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
    padding-bottom: 8px;
}

.chat-list-item {
    padding: 4px 0 4px 5px;
    display: flex;
    align-items: flex-start;
}

.chat-price {
    font-weight: bold;
    color: var(--secondary-color);
}

.chat-input {
    padding: 10px 15px;
    border-top: 1px solid #eee;
    background-color: white;
}

.chat-input input {
    padding: 10px 15px;
    border-radius: 20px;
    border: 1px solid #ddd;
}

.chat-input input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

.chat-header i {
    margin-right: 5px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 12px;
    align-self: flex-start;
    margin: 5px 0;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #777;
    border-radius: 50%;
    margin: 0 2px;
    opacity: 0.6;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Enhanced Chatbot Styles */
.chat-image-container {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.chat-image {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    height: 150px;
    transition: transform 0.3s ease;
}

.chat-image:hover {
    transform: scale(1.02);
}

.typing-indicator {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f1f1f1;
    border-radius: 12px;
    align-self: flex-start;
    margin: 5px 0;
    width: auto;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: #777;
    border-radius: 50%;
    margin: 0 1px;
    opacity: 0.6;
    animation: typing 1s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Enhanced Chatbot Styles for Better Responsiveness */
.chat-message {
    max-width: 85%;
    padding: 12px 15px;
    border-radius: 15px;
    margin: 5px 0;
    line-height: 1.5;
    word-wrap: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.chat-message b, .chat-message strong {
    font-weight: 700;
}

.chat-message i, .chat-message em {
    font-style: italic;
    color: #555;
}

.chat-message strike, .chat-message del {
    text-decoration: line-through;
    color: #999;
}

.user-message {
    background: #e3f2fd;
    color: #333;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.bot-message {
    background: white;
    color: #333;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-list-item {
    padding: 6px 0 6px 5px;
    display: flex;
    align-items: flex-start;
    margin-left: 5px;
}

.chat-price {
    font-weight: bold;
    color: var(--secondary-color);
}

.chat-container {
    width: 350px;
    height: 500px;
    z-index: 9999;
}

@media (max-width: 576px) {
    .chat-container {
        width: calc(100% - 40px);
        right: 20px;
        bottom: 80px;
        height: 60vh;
    }
    
    .chat-message {
        max-width: 90%;
    }
}

/* Card display improvements for chatbot menu */
.chat-list-item {
    padding: 8px 0 8px 5px;
    display: flex;
    align-items: flex-start;
    margin-left: 5px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    width: 100%;
}

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

.chat-message {
    max-width: 85%;
    padding: 12px 15px;
    border-radius: 15px;
    margin: 5px 0;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow-wrap: break-word;
    white-space: normal;
}

.chat-message b, .chat-message strong {
    font-weight: 700;
    display: inline-block;
    margin-bottom: 4px;
}

.chat-message i, .chat-message em {
    font-style: italic;
    color: #555;
    display: block;
    font-size: 0.9em;
    padding-left: 8px;
    margin-top: 2px;
}

/* Ensure chat container is wide enough for mobile */
@media (max-width: 576px) {
    .chat-message {
        max-width: 95%;
        padding: 10px 12px;
    }
    
    .chat-image-container {
        height: auto;
        max-height: 140px;
    }
    
    .chat-image {
        height: auto;
        max-height: 140px;
    }
}

/* Navigation buttons for chatbot */
.chat-nav-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    gap: 8px;
}

.chat-nav-btn {
    background-color: #f0f0f0;
    border: none;
    border-radius: 20px;
    padding: 6px 12px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    color: #333;
}

.chat-menu-btn {
    background-color: #e3f2fd;
    color: #0d6efd;
}

.chat-exit-btn {
    background-color: #f8d7da;
    color: #dc3545;
}

.chat-nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.chat-nav-btn i {
    margin-right: 5px;
    font-size: 0.9em;
}
