body {
    padding-top: 56px; /* Account for fixed navbar height */
}
.product-card {
    transition: transform 0.2s;
    cursor: pointer;
}
.product-card:hover {
    transform: translateY(-5px);
}
.category-nav {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}
.cart-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.hero-section {
    position: relative;
    color: white;
    padding: 60px 0;
    margin-bottom: 30px;
    min-height: 400px;
}
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}
.search-box {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}
/* Forçar posição consistente da busca quando títulos estão ocultos */
.hero-section .search-box {
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Estilos para o modal de produto */
.modal-product-image {
    border-radius: 10px;
    object-fit: cover;
    height: 250px; /* Altura fixa para as imagens no modal */
    width: 100%;
}
.modal-price-section {
    background: linear-gradient(135deg, #dc3545, #fd7e14);
    color: white;
    border-radius: 10px;
    padding: 15px;
}
.modal-adicional-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-adicional-item:hover {
    border-color: #dc3545;
    background-color: #fff5f5;
}
.modal-adicional-item.selected {
    border-color: #dc3545;
    background-color: #fff5f5;
}
.modal-quantity-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.modal-quantity-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid #dc3545;
    background: white;
    color: #dc3545;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.modal-quantity-btn:hover {
    background: #dc3545;
    color: white;
}
.modal-quantity-display {
    font-size: 1.2rem;
    font-weight: bold;
    min-width: 40px;
    text-align: center;
}
/* Toast CSS */
.custom-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: #fff;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.3s, bottom 0.3s;
}
.custom-toast.show {
    opacity: 1;
    bottom: 60px;
}
.btn-esgotado {
    background-color: #6c757d;
    color: white;
    border: none;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Estilos para o formulário de busca no navbar */
.search-form-container {
    transition: opacity 0.2s ease, transform 0.2s ease;
    opacity: 0;
    transform: translateY(-10px);
}
.search-form-container.show {
    opacity: 1;
    transform: translateY(0);
}
#search-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
/* Estilos para sugestões de busca */
#search-form {
    position: relative;
}
#search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-top: none;
    border-radius: 0 0 0.375rem 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
    z-index: 1060;
    background: white;
}
.search-suggestion {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    align-items: center;
    transition: background-color 0.2s ease;
}
.search-suggestion:hover {
    background-color: #f8f9fa;
}
.search-suggestion:last-child {
    border-bottom: none;
}
.search-suggestion img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
}
.search-suggestion .product-info {
    flex: 1;
}
.search-suggestion .product-name {
    font-weight: 500;
    margin-bottom: 2px;
}
.search-suggestion .product-price {
    color: #dc3545;
    font-size: 0.9rem;
}
@media (max-width: 991.98px) {
    .search-form-container {
        position: fixed !important;
        top: 100px !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(-10px) !important;
        width: 90% !important;
        max-width: 400px !important;
        z-index: 1060 !important;
    }
    .search-form-container.show {
        transform: translateX(-50%) translateY(0) !important;
    }
    #search-suggestions {
        max-height: 250px;
    }
}

/* Estilos para cards de categoria */
.category-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: white;
    width: 180px;
    flex-shrink: 0;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #dc3545;
}
.category-card.active {
    border-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5, #ffeaea);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}
.category-card .card-img-top {
    height: 80px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
}
.category-card .card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.category-card .category-icon-fallback {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 8px;
}
.category-card .card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
    transition: color 0.3s ease;
}
.category-card:hover .card-title {
    color: #dc3545;
}
.category-card.active .card-title {
    color: #dc3545;
}
.category-card .category-icon-fallback {
    transition: transform 0.3s ease;
}
.category-card:hover .category-icon-fallback {
    transform: scale(1.1);
}

/* Estilos para scroll horizontal de categorias */
.category-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding: 10px 50px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}
.category-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.category-scroll-container .category-card {
    scroll-snap-align: start;
}
.category-scroll-arrows {
    position: relative;
}
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(220, 53, 69, 0.8);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1rem;
}
.scroll-arrow:hover {
    background: #dc3545;
    transform: translateY(-50%) scale(1.1);
}
.scroll-arrow-left {
    left: 10px;
}
.scroll-arrow-right {
    right: 10px;
}
.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}
