/* =================================================
   LOJAS
   ================================================= */


/* =================================================
   HERO
   ================================================= */

.stores-hero {

    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 300px;

    padding: 70px 20px;

    background: #F5F7F1;

    text-align: center;

}


.stores-hero-content {

    max-width: 800px;

    margin: 0 auto;

}


.stores-hero-label {

    display: block;

    margin-bottom: 14px;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 2px;

    color: #A3D45D;

}


.stores-hero h1 {

    margin: 0;

    font-size: clamp(42px, 6vw, 72px);

    line-height: 1;

    font-weight: 700;

    color: #1B5E20;

}


.stores-hero p {

    margin: 24px 0 0;

    font-size: 18px;

    line-height: 1.6;

    color: #555;

}


/* =================================================
   CONTAINER
   ================================================= */

.stores-container {

    width: min(1400px, calc(100% - 40px));

    margin: 0 auto;

}


/* =================================================
   SECÇÃO DO MAPA
   ================================================= */

.stores-map-section {

    padding: 100px 0 110px;

    background: #FFFFFF;

}



/* =================================================
   CABEÇALHO DO MAPA — DESIGN MODERNO
   ================================================= */

.stores-header {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

/* Identificador da secção */
.stores-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;

    font-family: 'akipertoFont', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.5;

    color: #52633F;
}


/* Título principal */
.stores-header h1,
.stores-header h2 {
    margin: 0 0 18px;

    font-family: 'akipertoFont', 'akipertoFont', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: normal;
    line-height: 1.08;
    letter-spacing: -0.045em;

    color: #20251C;
}

/* Texto de apoio */
.stores-header p {
    max-width: 540px;
    margin: 0 auto;

    font-family: 'akipertoFont2', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-weight: normal;
    line-height: 1.8;

    color: #60665B;
}

/* =================================================
   CABEÇALHO — MOBILE
   ================================================= */

@media (max-width: 600px) {

    .stores-header {
        margin-bottom: 30px;
        padding: 0 8px;
    }

    .stores-label {
        margin-bottom: 15px;
        font-size: 0.68rem;
        letter-spacing: 0.12em;
    }

    .stores-header h1,
    .stores-header h2 {
        margin-bottom: 14px;
        font-size: clamp(2.1rem, 9vw, 2.8rem);
        line-height: 1.12;
        letter-spacing: -0.035em;
    }

    .stores-header p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

}



/* =================================================
   MAPA
   ================================================= */

.stores-map {

    position: relative;

    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

}


.stores-map > img {

    display: block;

    width: 100%;

    height: auto;

}


/* =================================================
   PIN
   ================================================= */

.store-pin {

    position: absolute;

    z-index: 1;

    display: block;

    width: 42px;

    height: 58px;

    transform: translate(-50%, -100%);

    text-decoration: none;

}


/* =================================================
   ÍCONE DO PIN
   ================================================= */

.store-pin-icon {

    position: absolute;

    inset: 0;

    width: 42px;

    height: 58px;

    background: #F5820B;

    border-radius: 50% 50% 50% 0;

    transform: rotate(-45deg);

    transition:
        transform 0.25s ease,
        filter 0.25s ease;

}


/*
   Círculo interior do pin
*/

.store-pin-icon::after {

    content: "";

    position: absolute;

    top: 11px;
    left: 11px;

    width: 20px;
    height: 20px;

    background: #FFFFFF;

    border-radius: 50%;

}


/* =================================================
   HOVER DO PIN
   ================================================= */



/* =================================================
   HOVER E FOCO DO PIN
   ================================================= */

.store-pin {
    z-index: 1;
}

.store-pin:hover,
.store-pin:focus-visible,
.store-pin.is-active {
    z-index: 1000;
}

.store-pin:hover .store-pin-icon,
.store-pin:focus-visible .store-pin-icon,
.store-pin.is-active .store-pin-icon {
    transform: rotate(-45deg) translate(0, -5px);
    filter: brightness(1.05);
}

.store-pin:focus-visible {
    outline: 3px solid #1B5E20;
    outline-offset: 5px;
    border-radius: 6px;
}




/* =================================================
   POPUP DA LOJA
   ================================================= */

.store-popup {

    position: absolute;

    left: 50%;
    bottom: calc(100% + 18px);

    width: 230px;

    padding: 20px;

    background: #FFFFFF;

    border-radius: 12px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.15);

    transform:
        translate(-50%, 10px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.2s ease,
        transform 0.2s ease,
        visibility 0.2s ease;

    z-index: 1001;

}


/* =================================================
   SETA DO POPUP
   ================================================= */

.store-popup::after {

    content: "";

    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 14px;
    height: 14px;

    background: #FFFFFF;

    transform:
        translateX(-50%)
        rotate(45deg);

}


/* =================================================
   MOSTRAR POPUP
   ================================================= */

.store-pin:hover .store-popup,
.store-pin:focus-visible .store-popup,
.store-pin.is-active .store-popup {

    opacity: 1;

    visibility: visible;

    transform: translate(-50%, 0);

    pointer-events: auto;

}



/* =================================================
   POPUPS — AJUSTE AUTOMÁTICO NAS MARGENS
   ================================================= */

@media (max-width: 600px) {

    .store-popup {
        width: min(220px, calc(100vw - 32px));
        max-width: calc(100vw - 32px);
        box-sizing: border-box;
    }

    /* Popup próximo da margem esquerda */
    .store-pin.popup-align-left .store-popup {
        left: 0;
        right: auto;
        transform: translate(0, 10px);
    }

    .store-pin.popup-align-left:hover .store-popup,
    .store-pin.popup-align-left:focus-visible .store-popup,
    .store-pin.popup-align-left.is-active .store-popup {
        transform: translate(0, 0);
    }

    /* Popup próximo da margem direita */
    .store-pin.popup-align-right .store-popup {
        left: auto;
        right: 0;
        transform: translate(0, 10px);
    }

    .store-pin.popup-align-right:hover .store-popup,
    .store-pin.popup-align-right:focus-visible .store-popup,
    .store-pin.popup-align-right.is-active .store-popup {
        transform: translate(0, 0);
    }

}




/* =================================================
   REDUZIR ANIMAÇÕES
   ================================================= */

@media (prefers-reduced-motion: reduce) {

    .store-pin-icon,
    .store-popup,
    .store-card {

        transition: none;

    }

}




/* =================================================
   FOCO DOS CARTÕES
   ================================================= */

.store-card:focus-visible {

    outline: 3px solid #1B5E20;

    outline-offset: 4px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);

}

.store-card:hover .store-card-link,
.store-card:focus-visible .store-card-link {

    color: #4B741F;

}



/* =================================================
   CONTEÚDO DO POPUP
   ================================================= */

.store-popup strong {

    display: block;

    margin-bottom: 6px;

    font-size: 18px;

    line-height: 1.2;

    color: #1B5E20;

}


.store-popup > span {

    display: block;

    font-size: 14px;

    line-height: 1.5;

    color: #666;

}


/* =================================================
   LINK DO POPUP
   ================================================= */

.store-popup-link {

    margin-top: 14px;

    font-size: 13px !important;

    font-weight: 700;

    color: #1B5E20 !important;

}


/* =================================================
   LISTA DE LOJAS
   ================================================= */

.stores-list-section {

    padding: 100px 0 120px;

    background: #F5F7F1;

}


/* =================================================
   GRID DE LOJAS
   ================================================= */

.stores-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;

}


/* =================================================
   CARD DA LOJA
   ================================================= */

.store-card {

    position: relative;

    display: block;

    padding: 30px;

    min-height: 190px;

    background: #FFFFFF;

    border-radius: 12px;

    text-decoration: none;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;

}


.store-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.08);

}


/* =================================================
   NÚMERO DO CARD
   ================================================= */

.store-card-number {

    display: block;

    margin-bottom: 20px;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 1px;

    color: #A3D45D;

}


/* =================================================
   TÍTULO DO CARD
   ================================================= */

.store-card h3 {

    margin: 0 0 8px;

    font-size: 23px;

    line-height: 1.2;

    color: #1B5E20;

}


.store-card p {

    margin: 0;

    font-size: 14px;

    line-height: 1.5;

    color: #666;

}


/* =================================================
   LINK DO CARD
   ================================================= */

.store-card-link {

    position: absolute;

    right: 30px;
    bottom: 30px;

    font-size: 13px;

    font-weight: 700;

    color: #1B5E20;

}


/* =================================================
   TABLET
   ================================================= */

@media (max-width: 900px) {


    .stores-map-section {

        padding: 80px 0 90px;

    }


    .stores-list-section {

        padding: 80px 0 90px;

    }


    .stores-grid {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

    }


}


/* =================================================
   MOBILE
   ================================================= */

@media (max-width: 600px) {


    .stores-container {

        width: min(100% - 30px, 1400px);

    }


    .stores-hero {

        min-height: 240px;

        padding: 60px 20px;

    }


    .stores-hero p {

        font-size: 16px;

    }


    .stores-map-section {

        padding: 65px 0 75px;

    }


    .stores-header {

        margin-bottom: 35px;

    }


    .stores-header h2 {

        font-size: 34px;

    }


    .stores-header p {

        font-size: 16px;

    }


    /*
       Reduzimos os pins no mobile
    */

    .store-pin {

        width: 30px;
        height: 42px;

    }


    .store-pin-icon {

        width: 30px;
        height: 42px;

    }


    .store-pin-icon::after {

        top: 8px;
        left: 8px;

        width: 14px;
        height: 14px;

    }


    /*
       Os popups serão ajustados
       quando definirmos o comportamento
       touch/mobile.
    */

    
    .store-popup {

        width: min(190px, calc(100vw - 40px));

        padding: 16px;

    }



    .store-popup strong {

        font-size: 16px;

    }


    .store-popup > span {

        font-size: 13px;

    }


    .stores-grid {

        grid-template-columns: 1fr;

        gap: 15px;

    }


    .store-card {

        min-height: 170px;

        padding: 25px;

    }


    .store-card-link {

        right: 25px;
        bottom: 25px;

    }


}



/* =================================================
   EXPERIÊNCIA MOBILE
   ================================================= */

@media (max-width: 600px) {

    .stores-map-section {
        padding: 48px 0 64px;
    }

    .stores-list-section {
        padding: 48px 0;
    }

    .stores-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .stores-header {
        margin-bottom: 28px;
    }

    .stores-header h1,
    .stores-header h2 {
        font-size: clamp(1.8rem, 7vw, 2.3rem);
        line-height: 1.15;
    }

    .stores-header p {
        font-size: 0.95rem;
        line-height: 1.7;
        max-width: 36rem;
        margin-left: auto;
        margin-right: auto;
    }

    .stores-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .store-card {
        padding: 22px;
    }

}
