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

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

/* Header */
header {
    background-color: #ffc107;
    padding: 15px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.header-top nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 0.9em;
}

.header-top nav a:hover {
    color: #fff;
}

.contact-info {
    display: flex;
    gap: 20px;
    font-size: 0.85em;
}

.contact-info a {
    color: #333;
    text-decoration: none;
}

.contact-info a:hover {
    color: #fff;
}

/* Logo e Busca */
.header-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
    gap: 30px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.search-container {
    flex: 1;
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #333;
    border-radius: 3px;
    font-size: 0.95em;
}

.search-container button {
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
}

.search-container button:hover {
    background-color: #e55a2b;
}

.cart-icon {
    font-size: 1.5em;
    cursor: pointer;
}

/* Navegação Principal */
.main-nav {
    background-color: #333;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
}

.main-nav button {
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.95em;
}

.main-nav button:hover {
    background-color: #ffb300;
}

.main-nav a {
    color: white;
    text-decoration: none;
    padding: 15px 20px;
    display: inline-block;
    font-weight: bold;
    font-size: 0.95em;
}

.main-nav a:hover {
    background-color: #555;
}

/* Banner Carousel */
.banner-carousel {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    padding: 40px 20px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 5px;
}

.banner-carousel h2 {
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.banner-carousel p {
    font-size: 1.2em;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.banner-carousel button {
    background-color: white;
    color: #ffc107;
    border: none;
    padding: 12px 30px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 3px;
    font-size: 1em;
}

.banner-carousel button:hover {
    background-color: #f0f0f0;
}

/* Categorias */
.categories-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.categories-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.category-card {
    background: white;
    border: 3px solid #ffc107;
    border-radius: 5px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.category-card img {
    max-width: 100%;
    height: 80px;
    object-fit: contain;
    margin-bottom: 10px;
}

.category-card p {
    font-weight: bold;
    color: #333;
    font-size: 0.9em;
}

/* Produtos */
.products-section {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.products-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
}

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

.product-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #f0f0f0;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.95em;
    min-height: 40px;
}

.product-details {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.product-price {
    color: #ff6b35;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.btn-add-cart {
    flex: 1;
    background-color: #ffc107;
    color: #333;
    border: none;
    padding: 8px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
}

.btn-add-cart:hover {
    background-color: #ffb300;
}

.btn-details {
    flex: 1;
    background-color: #333;
    color: white;
    border: none;
    padding: 8px;
    border-radius: 3px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.85em;
}

.btn-details:hover {
    background-color: #555;
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.footer-section ul {
    list-style: none;
}

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

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
}

.footer-section ul li a:hover {
    color: #ffc107;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #555;
    margin-top: 20px;
    font-size: 0.9em;
    color: #aaa;
}

/* Cache Info */
.cache-info {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 3px;
    font-size: 0.9em;
    color: #333;
}

.cache-info.warning {
    background-color: #fff3e0;
    border-left-color: #ff9800;
}

.cache-info.error {
    background-color: #ffebee;
    border-left-color: #f44336;
}

/* Responsivo */
@media (max-width: 768px) {
    .header-main {
        flex-direction: column;
        gap: 15px;
    }

    .search-container {
        width: 100%;
    }

    .banner-carousel h2 {
        font-size: 1.8em;
    }

    .banner-carousel p {
        font-size: 1em;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }

    .main-nav {
        flex-wrap: wrap;
    }
}

