/* =========================================================
   FRACTIONS PARFUMS
   PORTA DECANTS
========================================================= */


/* =========================================================
   PÁGINA
========================================================= */

.porta-decants-page {
    width: 100%;
    padding: 38px 20px 70px;
    background: #ffffff;
}

.porta-decants-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}


/* =========================================================
   CABEÇALHO
========================================================= */

.porta-decants-header {
    text-align: center;
    margin-bottom: 38px;
}

.porta-decants-eyebrow {
    display: block;

    margin-bottom: 7px;

    color: #a47b36;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    text-transform: uppercase;
}

.porta-decants-header h1 {
    margin: 0;

    color: #161616;

    font-size: 30px;
    font-weight: 600;

    line-height: 1.2;
}

.porta-decants-header p {
    max-width: 540px;

    margin: 10px auto 0;

    color: #666666;

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   GRID DE PRODUTOS
========================================================= */

.porta-decants-grid {
    display: grid;

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

    gap: 24px;

    width: 100%;
}


/* =========================================================
   CARD
========================================================= */

.porta-decant-card {
    position: relative;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    min-width: 0;

    background: #ffffff;

    border: 1px solid #e9e9e9;

    border-radius: 14px;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.porta-decant-card:hover {
    transform: translateY(-3px);

    border-color: #dedede;

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.08);
}


/* =========================================================
   ÁREA DA IMAGEM
========================================================= */

.porta-decant-imagem {
    position: relative;

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

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    background: #f8f8f8;
}

/* =========================================================
   IMAGENS DO PRODUTO
========================================================= */

.porta-decant-imagem img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;
}


/* IMAGEM PRINCIPAL */

.porta-decant-imagem .imagem-principal {
    position: relative;

    z-index: 1;

    opacity: 1;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* IMAGEM SECUNDÁRIA */

.porta-decant-imagem .imagem-secundaria {
    position: absolute;

    top: 0;
    left: 0;

    z-index: 0;

    opacity: 0;

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}


/* TROCA DAS IMAGENS NO HOVER */

.porta-decant-card:hover
.imagem-principal {
    opacity: 0;
}

.porta-decant-card:hover
.imagem-secundaria {
    z-index: 1;

    opacity: 1;

    transform: scale(1.025);
}


/* OFERTA SEMPRE ACIMA DAS IMAGENS */

.porta-decant-oferta {
    z-index: 5;
}


/* =========================================================
   SELO OFERTA
========================================================= */

.porta-decant-oferta {
    position: absolute;

    top: 12px;
    left: 12px;

    z-index: 2;

    padding: 5px 9px;

    background:#d11717;

    border-radius: 5px;

    color: #ffffff;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.7px;
}


/* =========================================================
   INFORMAÇÕES DO PRODUTO
========================================================= */

.porta-decant-info {
    display: flex;
    flex: 1;
    flex-direction: column;

    padding: 17px 17px 19px;
}

.porta-decant-tipo {
    display: block;

    margin-bottom: 5px;

    color: #999999;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1px;

    text-transform: uppercase;
}

.porta-decant-info h2 {
    min-height: 42px;

    margin: 0 0 8px;

    color: #161616;

    font-size: 16px;
    font-weight: 600;

    line-height: 1.3;
}


/* =========================================================
   COR DO PRODUTO
========================================================= */

.porta-decant-cor {
    display: flex;
    align-items: center;

    gap: 7px;

    margin-bottom: 14px;

    color: #666666;

    font-size: 12px;
}

.porta-decant-cor-bolinha {
    display: inline-block;

    width: 12px;
    height: 12px;

    flex: 0 0 12px;

    border:
        1px solid
        rgba(0, 0, 0, 0.16);

    border-radius: 50%;
}

.cor-preto {
    background: #111111;
}

.cor-rosa {
    background: #d99aaa;
}


/* =========================================================
   PREÇOS
========================================================= */

.porta-decant-precos {
    margin-bottom: 16px;
}

.preco-anterior {
    display: block;

    margin-bottom: 2px;

    color: #999999;

    font-size: 12px;

    text-decoration: line-through;
}

.preco-atual {
    color: #111111;

    font-size: 21px;
    font-weight: 700;

    line-height: 1.25;
}

.preco-pix {
    margin-top: 4px;

    color: #168447;

    font-size: 12px;
    font-weight: 600;
}

.preco-parcelado {
    margin-top: 3px;

    color: #777777;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   BOTÃO COMPRAR
========================================================= */

.btn-comprar-porta-decant {
    width: 100%;

    min-height: 42px;

    margin-top: auto;

    padding: 11px 12px;

    border: 0;

    border-radius: 8px;

    background: #111111;

    color: #ffffff;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.6px;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}

.btn-comprar-porta-decant:hover {
    background: #292929;
}

.btn-comprar-porta-decant:active {
    transform: scale(0.98);
}

.btn-comprar-porta-decant:disabled {
    cursor: default;

    opacity: 0.65;
}


/* =========================================================
   ESGOTADO
========================================================= */

.btn-comprar-porta-decant.esgotado {
    background: #d6d6d6;

    color: #777777;
}


/* =========================================================
   SEM PRODUTOS
========================================================= */

.porta-decants-vazio {
    padding: 70px 20px;

    text-align: center;

    color: #666666;
}

.porta-decants-vazio h2 {
    margin: 0 0 7px;

    color: #222222;

    font-size: 20px;
}

.porta-decants-vazio p {
    margin: 0;

    font-size: 14px;
}


/* =========================================================
   FEEDBACK / PRODUTO ADICIONADO
========================================================= */

.porta-decant-feedback {
    position: fixed;

    right: 20px;
    bottom: 25px;

    z-index: 9999;

    max-width: 360px;

    padding: 13px 17px;

    background: #151515;

    border-radius: 8px;

    color: #ffffff;

    font-size: 13px;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.20);

    opacity: 0;

    visibility: hidden;

    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;
}

.porta-decant-feedback.ativo {
    opacity: 1;

    visibility: visible;

    transform: translateY(0);
}

.porta-decant-feedback.erro {
    background: #9f2424;
}


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

@media (max-width: 1100px) {

    .porta-decants-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px;
    }

}


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

@media (max-width: 768px) {

    .porta-decants-page {
        padding:
            24px 12px 50px;
    }


    /* CABEÇALHO */

    .porta-decants-header {
        margin-bottom: 25px;
    }

    .porta-decants-eyebrow {
        font-size: 10px;

        letter-spacing: 1.5px;
    }

    .porta-decants-header h1 {
        font-size: 24px;
    }

    .porta-decants-header p {
        padding: 0 12px;

        font-size: 13px;

        line-height: 1.5;
    }


    /* GRID */

    .porta-decants-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    /* CARD */

    .porta-decant-card {
        border-radius: 10px;
    }


    /* IMAGEM */

    .porta-decant-imagem {
        aspect-ratio: 1 / 1;
    }


    /* OFERTA */

    .porta-decant-oferta {
        top: 8px;
        left: 8px;

        padding: 4px 7px;

        font-size: 9px;
    }


    /* INFORMAÇÕES */

    .porta-decant-info {
        padding:
            12px 11px 13px;
    }

    .porta-decant-tipo {
        margin-bottom: 4px;

        font-size: 9px;
    }

    .porta-decant-info h2 {
        min-height: 37px;

        margin-bottom: 7px;

        font-size: 14px;

        line-height: 1.3;
    }


    /* COR */

    .porta-decant-cor {
        gap: 6px;

        margin-bottom: 10px;

        font-size: 11px;
    }

    .porta-decant-cor-bolinha {
        width: 10px;
        height: 10px;

        flex-basis: 10px;
    }


    /* PREÇOS */

    .porta-decant-precos {
        margin-bottom: 12px;
    }

    .preco-anterior {
        font-size: 11px;
    }

    .preco-atual {
        font-size: 18px;
    }

    .preco-pix {
        font-size: 11px;
    }

    .preco-parcelado {
        min-height: 28px;

        font-size: 10px;
    }


    /* BOTÃO */

    .btn-comprar-porta-decant {
        min-height: 40px;

        padding: 9px 5px;

        border-radius: 7px;

        font-size: 10px;

        letter-spacing: 0.3px;
    }


    /* FEEDBACK */

    .porta-decant-feedback {
        right: 12px;
        bottom: 15px;
        left: 12px;

        max-width: none;

        text-align: center;
    }

}


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

@media (max-width: 390px) {

    .porta-decants-page {
        padding-right: 9px;
        padding-left: 9px;
    }

    .porta-decants-grid {
        gap: 8px;
    }

    .porta-decant-info {
        padding:
            10px 9px 11px;
    }

    .porta-decant-info h2 {
        min-height: 34px;

        font-size: 13px;
    }

    .preco-atual {
        font-size: 17px;
    }

    .btn-comprar-porta-decant {
        font-size: 9px;
    }

}