/* --- Estilo Geral do Container --- */
.ifood-store-wrapper {
    font-family: Arial, sans-serif;
    margin-top: 20px;
}

/* --- Menu de Categorias --- */
.ifood-category-menu {
    position: sticky;
    top: 0; /* Altere para 32px se a barra de admin estiver visível */
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
    padding: 10px 0;
    overflow-x: auto; /* Para rolagem horizontal em telas pequenas */
    white-space: nowrap;
}

.ifood-category-menu ul {
    display: flex;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ifood-category-menu li {
    margin: 0 15px;
}

.ifood-category-menu a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    padding: 10px 5px;
    border-bottom: 2px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
}

.ifood-category-menu a:hover,
.ifood-category-menu a.active {
    color: #EA1D2C; /* Cor principal do iFood */
    border-bottom-color: #EA1D2C;
}

/* --- Seções de Categoria e Títulos --- */
.product-category-section {
    padding-top: 80px; /* Espaço para não ficar atrás do menu fixo */
    margin-top: -60px; /* Compensa o padding para a âncora funcionar bem */
    margin-bottom: 40px;
}

.category-title {
    font-size: 2em;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

/* --- Grid de Produtos --- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* --- Card do Produto --- */
.ifood-product-card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: box-shadow 0.3s;
}

.ifood-product-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.product-card-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 1.1em;
    margin: 0 0 10px 0;
}

.product-card-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-top: auto; /* Empurra o preço e o botão para baixo */
    margin-bottom: 15px;
}

/* --- Botão Adicionar ao Carrinho --- */
.product-card-add-to-cart .button {
    width: 100%;
    text-align: center;
    background-color: #EA1D2C !important;
    color: #fff !important;
    border-radius: 5px;
    padding: 10px;
}

.product-card-add-to-cart .button:hover {
    background-color: #c91a26 !important;
}

/* Ajuste para quando o produto é adicionado (classe 'added') */
.product-card-add-to-cart .added_to_cart {
    display: none; /* Esconde o link "Ver carrinho" */
}