body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.button-group {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #e8e9eb;
    color: #333;
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
}

body {
    display: flex;
    flex-direction: column;
    padding: 0;
    min-height: 100vh;
}

header {
    background-color: #0056b3;
    color: black;
    padding: 10px 20px;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    height: 80px;
    z-index: 1000;
    box-sizing: border-box;
    width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

header img { 
    width: 250px;        /* Ajuste o tamanho conforme necessário */
    object-fit: contain; /* Impede que a imagem seja cortada ou distorcida */
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    color: #ff6600;
}

nav ul li a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #ff6600;
    transition: width 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
}

/* Efeito brilhante na base do header */
header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff6600, #0056b3);
    animation: shimmer 2s infinite linear;
    background-size: 200% 100%;
}

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
}

.product-card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 1em;
    text-align: center;
    transition: all 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    animation: fadeInUp 0.6s ease both;
    justify-content: space-between; 
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

main {
    padding-top: 120px; /* Garante espaço suficiente abaixo do header */
    padding-bottom: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
    box-sizing: border-box;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    border: 1px solid #ff6600;
}

.product-card img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    background-color: #f4f4f4;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.product-card img:hover {
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.2em;
    color: #0056b3;
    margin-bottom: 10px;
    min-height: 60px; /* controla altura do título */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.view-details-btn {
    background-color: #ff6600 !important;
    color: white !important;
    border: none !important;
    padding: 10px 20px !important;
    margin-top: 10px !important;
    border-radius: 30px !important;
    font-size: 1em !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.view-details-btn:hover {
    background-color: #e65c00 !important;
    transform: scale(1.05);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

footer {
    background-color: #0056b3;
    color: white;
    text-align: center;
    padding: 1em;
    margin-top: auto;
}

/* Responsivo */
@media (max-width: 768px) {
    .product-card img {
        width: 150px;
        height: 150px;
    }

    .view-details-btn {
        padding: 8px 16px !important;
    }

    header img {
        width: 180px;
    }
}
.skeleton-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: pulse 1.5s infinite ease-in-out;
}

.skeleton-img {
    width: 200px;
    height: 200px;
    background: #ccc;
    border-radius: 8px;
    margin-bottom: 10px;
}

.skeleton-text {
    width: 70%;
    height: 20px;
    background: #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
}

.skeleton-btn {
    width: 60%;
    height: 35px;
    background: #ccc;
    border-radius: 20px;
}

@keyframes pulse {
    0% { background-color: #eee; }
    50% { background-color: #ddd; }
    100% { background-color: #eee; }
}
main.empty {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 80px - 80px); /* tela inteira menos header e footer */
    padding: 0; /* remove espaçamento extra */
}

.no-products {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.no-products-img {
    width: 320px;
    max-width: 100%;
    opacity: 0.95;
}

.no-products-text {
    font-size: 1.3rem;
    color: #555;
    font-weight: 500;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}