@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

/* Header da Receita Federal */
.header-receita { 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.info-block {
    background-color: #f8f9fa;
    color: #333;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    width: 400px;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.porto {
    font-weight: 600;
    color: #3366ff;
    font-size: 16px;
}

.disponibilizado {
    font-weight: 700;
    color: #666;
    font-size: 14px;
}

.receita-brasil {
    color: #888;
    font-size: 12px;
}

.main-title h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px; 
}

.ref-number {
    font-size: 24px;
    font-weight: 700;
    color: #ff4444;
    margin: 10px 0; 
}

.location {
    font-size: 16px;
    color: #555555;
    margin-top: 5px;
}

/* Seção de Categorias */
.categorias-section { 
    padding: 30px 20px;
    text-align: center; 
}

.categorias-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: #000080;
    margin-bottom: 20px;
    font-style: italic;
}

.categorias-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
    align-items: center;
}

.categoria-link {
    color: #1e3c72;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
    cursor: pointer;
}

.categoria-link:hover,
.categoria-link.ativa {
    color: #ff4444;
    font-weight: 600;
}

/* Container de Produtos */
.produtos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.produto-categoria {
    background-color: white;
    margin-bottom: 30px;
    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;
}

.produto-categoria:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.categoria-header {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.categoria-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.produto-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 14px;
}

.produto-stats span {
    background-color: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.status.aberto {
    background-color: #28a745;
    color: white;
}

.status.fechado {
    background-color: #dc3545;
    color: white;
}

/* Slider de Imagens dos Produtos */
.produto-images {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: #f8f9fa;
    border-radius: 0;
}

.produto-images-slider {
    display: flex;
    width: 100%;
    height: 100%;
    animation: slide 15s infinite linear;
}

.produto-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
    transition: none;
    display: block;
}

.produto-img:hover {
    transform: none;
}

@keyframes slide {
    0% { transform: translateX(0); }
    16.66% { transform: translateX(0); }
    20% { transform: translateX(-100%); }
    36.66% { transform: translateX(-100%); }
    40% { transform: translateX(-200%); }
    56.66% { transform: translateX(-200%); }
    60% { transform: translateX(-300%); }
    76.66% { transform: translateX(-300%); }
    80% { transform: translateX(-400%); }
    96.66% { transform: translateX(-400%); }
    100% { transform: translateX(0); }
}

/* Indicadores do Slider */
.slider-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.slider-dot.active {
    background-color: rgba(255,255,255,0.9);
}

/* Pausar animação no hover */
.produto-images:hover .produto-images-slider {
    animation-play-state: paused;
}

/* Itens dos Produtos */
.produto-itens {
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.item-produto {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 20px;
    background-color: white;
    transition: all 0.3s ease;
    position: relative;
}

.item-produto:hover {
    border-color: #1e3c72;
    box-shadow: 0 4px 15px rgba(30,60,114,0.1);
}

.item-produto.desativado {
    opacity: 0.6;
    background-color: #f8f9fa;
}

.item-produto.desativado::before {
    content: "INDISPONÍVEL";
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 600;
}

.item-produto h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.item-valor {
    font-size: 24px;
    font-weight: 700;
    color: #ff4444;
    margin-bottom: 15px;
}

.btn-comprar {
    display: inline-block;
    background: linear-gradient(135deg, #000080 0%, #2a5298 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(40,167,69,0.3);
}

.btn-comprar:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40,167,69,0.4);
    color: white;
    text-decoration: none;
}

.item-produto.desativado .btn-comprar {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Barra de Progresso do Estoque */
.estoque-progress {
    width: 100%;
    height: 8px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 10px;
}

.estoque-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 4px;
    transition: width 0.8s ease;
    position: relative;
}

.estoque-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Loading */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
    flex-direction: column;
    gap: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1e3c72;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: #1e3c72;
    font-size: 18px;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Sistema de Toasts */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 350px;
}

.toast {
    background: linear-gradient(135deg, #000080 0%, #2a5298 100%);
    color: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(40,167,69,0.3);
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast::before {
    content: '🛒';
    margin-right: 10px;
    font-size: 18px;
}

.toast-content {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.4;
}

.toast-time {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 5px;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-title h1 {
        font-size: 24px;
    }
    
    .ref-number {
        font-size: 20px;
    }
    
    .categorias-section h2 {
        font-size: 28px;
    }
    
    .categorias-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .categoria-header {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }
    
    .produto-stats {
        justify-content: center;
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .produto-stats span {
        font-size: 12px;
        padding: 4px 8px;
        white-space: nowrap;
    }
    
    .produto-itens {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .produto-images {
        height: 200px;
    }
    
    .produto-img {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .item-produto {
        padding: 15px;
    }
    
    .item-produto h4 {
        font-size: 14px;
    }
    
    .item-valor {
        font-size: 20px;
    }
    
    .btn-comprar {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .toast {
        margin-bottom: 8px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .header-receita {
        padding: 15px;
    }
    
    .info-block {
        width: 100%;
        margin: 0 10px 20px 10px;
        padding: 12px;
    }
    
    .main-title h1 {
        font-size: 20px;
        text-align: center;
    }
    
    .ref-number {
        font-size: 18px;
        text-align: center;
    }
    
    .location {
        font-size: 14px;
        text-align: center;
    }
    
    .categorias-section {
        padding: 20px 15px;
    }
    
    .categorias-section h2 {
        font-size: 24px;
    }
    
    .produtos-container {
        padding: 15px;
    }
    
    .produto-categoria {
        margin-bottom: 20px;
        border-radius: 8px;
    }
    
    .categoria-header {
        padding: 12px;
    }
    
    .categoria-header h3 {
        font-size: 20px;
        margin-bottom: 10px;
    }
    
    .produto-stats {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        align-items: center;
    }
    
    .produto-stats span {
        font-size: 10px;
        padding: 3px 6px;
        white-space: nowrap;
    }
    
    .estoque-progress {
        margin-top: 8px;
        height: 6px;
    }
    
    .produto-images {
        height: 350px;
    }
    
    .produto-img {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .produto-itens {
        padding: 15px;
        gap: 12px;
    }
    
    .item-produto {
        padding: 12px;
        border-radius: 8px;
    }
    
    .item-produto h4 {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .item-valor {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .btn-comprar {
        padding: 8px 16px;
        font-size: 13px;
        border-radius: 20px;
    }
}
 


.footer-section { 
    padding: 40px 0;
    margin-top: 50px;
}

.footer-content {
    background-color: #f5f5f5;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    border-radius: 8px;
    text-align: center; 
}

.btn-esgotado {
    background-color: #c02020;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-esgotado:hover {
    background-color: #a01a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(192, 32, 32, 0.3);
}

.asdasd-asdasdsad {
    display: flex;
    color: #666666;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 400;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

.direitos-reservados {
    color: #666666;
    font-size: 14px;
    font-weight: 400;
}

/* Footer responsivo */
@media (max-width: 768px) {
    .footer-content {
        margin: 100px 20px;
        padding: 20px;
    }
    
    .btn-esgotado {
        padding: 12px 25px;
        font-size: 14px;
    }
}