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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header */
header {
    background-color: #2a3b6b;
    color: white;
    padding: 15px 0;
}

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

.logo h1 {
    font-size: 1.8rem;
    color: white;
}

.search-bar {
    display: flex;
    flex: 1;
    max-width: 500px;
    margin: 0 20px;
}

.search-bar input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-bar button {
    background-color: #f8a100;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

.cart {
    display: flex;
    align-items: center;
}

.cart a {
    color: white;
    display: flex;
    align-items: center;
}

.cart i {
    margin-right: 5px;
    font-size: 1.2rem;
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
}

/* Navegação */
nav {
    background-color: #2a3b6b;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
}

nav ul {
    display: flex;
    flex-wrap: wrap;
}

nav li {
    margin-right: 20px;
    position: relative;
}

nav a {
    color: white;
    padding: 5px 0;
    display: block;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #f8a100;
}

/* Dropdown */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2a3b6b;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    padding: 12px 16px;
    display: block;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* Banner */
.banner {
    margin: 20px 0;
}

.banner img {
    width: 100%;
    border-radius: 8px;
}

/* Seções de produtos */
.destaques, .categoria {
    margin: 40px 0;
}

h2 {
    color: #2a3b6b;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f8a100;
}

.produtos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.produto {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.produto-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.produto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esgotado {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: #2a3b6b;
    color: white;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: bold;
	display:hidden;
}

.produto-info {
    padding: 15px;
}

.produto-info h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #2a3b6b;
    height: 50px;
    overflow: hidden;
}

.preco-antigo {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.preco {
    color: #f8a100;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 5px 0 15px;
}

.btn-comprar {
    display: block;
    background-color: #2a3b6b;
    color: white;
    text-align: center;
    padding: 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn-comprar:hover {
    background-color: #f8a100;
}

/* Footer */
footer {
    background-color: #2a3b6b;
    color: white;
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 15px;
    color: #f8a100;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: white;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #f8a100;
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsividade */
@media (max-width: 768px) {
    header .container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo {
        flex: 1;
        margin-bottom: 10px;
    }
    
    .menu-toggle {
        display: block;
        order: 3;
        margin-left: 15px;
    }
    
    .search-bar {
        order: 4;
        width: 100%;
        margin: 15px 0;
        max-width: 100%;
    }
    
    .cart {
        order: 2;
    }
    
    nav {
        width: 100%;
    }
    
    nav .container {
        padding: 0;
    }
    
    .menu-items {
        display: none;
        flex-direction: column;
        width: 100%;
        padding: 10px 0;
    }
    
    .menu-items.active {
        display: flex;
    }
    
    nav li {
        margin-right: 0;
        margin-bottom: 10px;
        width: 100%;
        padding: 8px 15px;
    }
    
    nav li:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .dropdown-content {
        position: static;
        box-shadow: none;
        display: none;
        padding-left: 15px;
        margin-top: 5px;
    }
    
    .dropdown.active .dropdown-content {
        display: hidden;
    }
    
    .produtos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .produto-img {
        height: 180px;
    }
    
    .produto-info h3 {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .produtos-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
