* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Utilitários de acessibilidade */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



body {
    font-family: 'Product Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
    padding-top: 130px;
    /* Espaço para o header fixo + barra de anúncio */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Barra de Anúncio Rolante */
.announcement-bar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background: linear-gradient(90deg, #007bff, #0056b3);
    background-size: 300% 100%;
    animation: gradientShift 8s ease infinite;
    color: white;
    height: 50px;
    overflow: hidden;
    z-index: 998;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.announcement-content {
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.announcement-text {
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    animation: scroll 30s linear infinite;
    padding-left: 100%;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Header */
.header-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
}

.header-fixed .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Logo Container */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo-fallback {
    display: none;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
}

.logo-fallback i {
    font-size: 1.5rem;
}

.search-container {
    display: flex;
    gap: 0.5rem;
}

#searchInput {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    width: 300px;
    outline: none;
}

#searchBtn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#searchBtn:hover {
    background: rgba(255, 255, 255, 0.3);
}

#loginBtn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-left: 0.5rem;
}

#loginBtn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.login-container {
    position: relative;
}

.login-submenu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 150px;
    z-index: 1000;
}

.login-submenu li {
    border-bottom: 1px solid #eee;
}

.login-submenu li:last-child {
    border-bottom: none;
}

.login-submenu a {
    display: block;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.login-submenu a:hover {
    background: #f8f9fa;
}

.comprador-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    list-style: none;
    margin: 0;
    padding: 0;
    min-width: 120px;
}

.comprador-submenu li {
    border-bottom: 1px solid #eee;
}

.comprador-submenu li:last-child {
    border-bottom: none;
}

.comprador-submenu a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: #333;
    text-decoration: none;
    font-size: 0.9rem;
}

.comprador-submenu a:hover {
    background: #f8f9fa;
}

#compradorMenu:hover + .comprador-submenu,
.comprador-submenu:hover {
    display: block;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #ddd;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.login-form {
    padding: 1rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

.btn-submit {
    width: 100%;
    padding: 0.75rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #0056b3;
}

.btn-users {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-users:hover {
    background: rgba(255, 255, 255, 0.3);
}

.users-list {
    padding: 1rem;
}

.user-item {
    padding: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 0.5rem;
}





/* Seção de Banners */
.banners-section {
    padding: 2rem 0;
    background: white;
    margin-bottom: 1rem;
}

.banners-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.banner-item {
    width: 300px;
    height: 100px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.banner-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banner-fallback {
    display: none;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}

.banner-fallback i {
    font-size: 2rem;
    opacity: 0.9;
}

.banner-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    text-align: center;
}

.banner-text p {
    font-size: 0.8rem;
    opacity: 0.9;
    text-align: center;
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    align-items: center;
    flex-wrap: wrap;
}

#categoryFilter {
    padding: 0.75rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 200px;
}

#refreshBtn {
    background: #007bff;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

#refreshBtn:hover {
    background: #0056b3;
}

/* Loading and Error */
.loading,
.error {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
}

.loading i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.error {
    color: #dc3545;
}

.error i {
    font-size: 2rem;
    margin-bottom: 1rem;
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.product-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    width: 100%;
    height: 250px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #dee2e6;
    overflow: hidden;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease;
    background: white;
    padding: 10px;
}

.product-image img:hover {
    transform: scale(1.05);
}

.image-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #6c757d;
    text-align: center;
}

.image-error i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: #dee2e6;
}

.image-error small {
    font-size: 0.8rem;
    color: #adb5bd;
}

.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-category {
    background: #e9ecef;
    color: #6c757d;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    display: inline-block;
    margin-bottom: 1rem;
}

.product-description {
    color: #6c757d;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-pricing {
    margin-bottom: 1.5rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.price-label {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 500;
}

.product-code {
    font-size: 0.85rem;
    color: #6c757d;
    background: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: inline-block;
}

.product-price-cx {
    font-size: 1.3rem;
    font-weight: 700;
    color: #28a745;
}

.product-price-un {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fd7e14;
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn {
    padding: 0.75rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-primary {
    background: #007bff;
    color: white;
}

.btn-primary:hover {
    background: #0056b3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Responsive */
@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.2rem;
    }
}

@media (max-width: 900px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 900px) {
    .banners-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-width: 300px;
    }
    
    .banner-item {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 170px;
    }

    .announcement-bar {
        top: 120px;
    }

    .announcement-text {
        font-size: 0.9rem;
        animation: scroll 25s linear infinite;
    }

    .banners-section {
        padding: 1rem 0;
    }

    .header-fixed .container {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .logo-container {
        justify-content: center;
    }

    .logo {
        height: 40px;
    }

    .logo-fallback {
        font-size: 1.5rem;
    }

    .search-container {
        width: 100%;
    }

    #searchInput {
        width: 100%;
        max-width: 250px;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .filters {
        flex-direction: column;
        align-items: stretch;
    }

    #categoryFilter {
        min-width: auto;
    }
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    color: white;
    text-decoration: none;
}

.whatsapp-float i {
    margin: 0;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }

    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive WhatsApp Button */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
        font-size: 26px;
    }
}


