/* * FICHEIRO: /css/archive-lojas.css */

/* HERO HEADER (Banner com Imagem - Full Bleed) */
.archive-hero {
    position: relative;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    /* TÉCNICA FULL BLEED: Força a ocupar 100% da tela ignorando containers */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    
    /* COMPENSAÇÃO DO MENU TRANSPARENTE */
    padding: 180px 20px 100px 20px; 
    
    text-align: center;
    color: #fff;
    border-bottom: 2px solid #1e1e1e;
    
    /* Impede que o overlay escape das bordas em alguns navegadores */
    overflow: hidden; 
}

.archive-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); 
    z-index: 1;
}

.archive-hero-content {
    position: relative;
    z-index: 2; 
    /* Restringe o conteúdo do cabeçalho aos 1200px para alinhar com o grid abaixo */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Garante margem de segurança no mobile */
}

.archive-hero .archive-title {
    margin: 0 0 15px 0;
    color: #fff;
}

.archive-hero .archive-subtitle {
    margin: 0;
    text-transform: uppercase;
    color: #fff;
}

/* ENVOLTÓRIO PRINCIPAL DO GRID (Restrito a 1200px) */
.archive-lojas-wrapper {
    max-width: 1200px;
    margin: 60px auto 80px auto; 
    padding: 0 20px;
    color: #1e1e1e;
}

/* GRID DE LOJAS */
.lojas-grid-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* Tablet e Desktop */
@media (min-width: 768px) {
    .lojas-grid-container {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* CARDS DAS LOJAS (MOSCOT VIBE) */
.loja-card {
    /*border: 2px solid #000;*/
    /*background-color: #fff;*/
    /*transition: transform 0.3s ease, box-shadow 0.3s ease;*/
    display: flex;
    flex-direction: column;
}

.loja-card:hover {
    transform: translateY(-5px);
    /*box-shadow: 8px 8px 0px 0px #000;*/
}

.loja-card-link {
    text-decoration: none;
    color: #1e1e1e;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.loja-card-image {
    aspect-ratio: 4/3;
    /*border-bottom: 2px solid #000;*/
    overflow: hidden;
    background-color: #f4f4f4;
}

.loja-card-image:hover{
	border: 2px solid #1e1e1e;
}

.loja-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: filter 0.4s ease, transform 0.4s ease;
}

.loja-card:hover .loja-card-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.loja-image-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(45deg, #f4f4f4, #f4f4f4 10px, #e0e0e0 10px, #e0e0e0 20px);
}

.loja-card-content {
    padding: 25px 0 25px 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.loja-card-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: -1px;
}

.loja-card-address {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 25px;
    flex-grow: 1;
}

.loja-card-action {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 1px solid #1e1e1e;
    padding-top: 15px;
    margin-top: auto;
}

/* PAGINAÇÃO NATIVA */
.lojas-pagination {
    margin-top: 50px;
    text-align: center;
}

.lojas-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.lojas-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 2px solid #1e1e1e;
    text-decoration: none;
    color: #1e1e1e;
    font-weight: 700;
    background-color: transparent;
    transition: all 0.2s;
}

.lojas-pagination .page-numbers:hover,
.lojas-pagination .page-numbers.current {
    background-color: #1e1e1e;
    color: #fff;
}

/* Ajuste de responsividade do Menu Mobile */
@media (max-width: 767px) {
    .archive-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
}