
/* ==========================================
   USE.RIGEL - LOJA PUBLICA
   Desenvolvido pela I TECH
========================================== */


/* ==========================================
   CORES E CONFIGURACOES GERAIS
========================================== */

:root {
    --pink: #ed3484;
    --dark: #42162a;
    --light: #fff3f8;
    --line: #f2dce6;
    --muted: #82727a;
    --white: #fff;
    --bg: #fffafd;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: #2c2228;
    font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--pink);
    outline-offset: 2px;
}

.wrap {
    max-width: 1140px;
    padding: 0 16px;
    margin: auto;
}

.pink {
    color: var(--pink);
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12px;
}

.flex {
    display: flex;
    align-items: center;
    gap: 9px;
}

.between {
    justify-content: space-between;
}


/* ==========================================
   BOTOES
========================================== */

.btn {
    border: 0;
    background: var(--pink);
    color: white;
    font-weight: 700;
    border-radius: 9px;
    padding: 12px 16px;
}

.btn.ghost {
    background: white;
    border: 1px solid var(--line);
    color: var(--dark);
}

.btn.tiny {
    font-size: 12px;
    padding: 8px 10px;
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.link {
    background: none;
    border: 0;
    color: var(--pink);
    font-size: 13px;
}


/* ==========================================
   CAMPOS E FORMULARIOS
========================================== */

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #59414c;
}

.field input,
.field select,
.field textarea {
    border: 1px solid #ead8e0;
    border-radius: 8px;
    background: white;
    color: #2e2228;
    padding: 11px;
    width: 100%;
    font-weight: 400;
    min-width: 0;
}

.field textarea {
    min-height: 80px;
    resize: vertical;
}

.two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.full {
    grid-column: 1 / -1;
}

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 18px;
    margin-bottom: 15px;
    box-shadow: 0 3px 15px #9e557110;
}

.error {
    background: #fff0f0;
    color: #b52835;
    border-radius: 8px;
    padding: 11px;
}

.success {
    background: #e8fff1;
    color: #12693e;
    border-radius: 8px;
    padding: 11px;
}


/* ==========================================
   CABECALHO DA LOJA
========================================== */

.shop-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: white;
    box-shadow: 0 1px 8px #7d325a10;
}

.shop-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 6px;
}


/* LOGO */

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    background: none;
    font: 23px Georgia, serif;
    color: var(--dark);
    min-width: 0;
    flex-shrink: 1;
}

.logo img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: transparent;
    border-radius: 0;
}

.logo span {
    white-space: nowrap;
}

.logo small {
    display: block;
    font: 9px Arial, sans-serif;
    letter-spacing: 2px;
    text-align: center;
}


/* ICONES SUPERIORES */

.icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: none;
    font-size: 20px;
    color: var(--dark);
    padding: 8px;
    position: relative;
    min-width: 32px;
    flex-shrink: 0;
}

.icon-btn svg {
    width: 23px;
    height: 23px;
}


/* CONTADOR DA SACOLA */

.bubble {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--pink);
    color: white;
    font-size: 10px;
    border-radius: 50%;
    min-width: 17px;
    height: 17px;
    display: grid;
    place-items: center;
    padding: 0 3px;
}


/* ==========================================
   CATEGORIAS SUPERIORES
========================================== */

.categories-nav {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    border-top: 1px solid #f8edf2;
    padding: 13px 1px;
}

.categories-nav button {
    border: 0;
    background: none;
    font-weight: 600;
    font-size: 13px;
    color: #55414b;
}

.categories-nav button.active {
    color: var(--pink);
}


/* ==========================================
   NAVEGACAO ENTRE PAGINAS
========================================== */

.page {
    display: none;
    padding: 26px 0 60px;
}

.page.active {
    display: block;
}


/* ==========================================
   BANNER PRINCIPAL
   GERENCIADO PELO PAINEL ADMINISTRATIVO
========================================== */

.hero {
    background: linear-gradient(
        120deg,
        #fff2f8 0%,
        #ffd6e6 100%
    );

    min-height: 345px;
    border-radius: 18px;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    overflow: hidden;
    align-items: stretch;
}


/* TEXTO DO BANNER */

.hero-copy {
    padding: 34px 45px;
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 0;
}

.hero-copy .eyebrow {
    color: var(--pink);
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
}

.hero h1 {
    font: clamp(38px, 5vw, 66px)/1.05 Georgia, serif;
    color: #7e174b;
    margin: 12px 0;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.hero p {
    line-height: 1.5;
    color: #694757;
    overflow-wrap: anywhere;
}


/* FOTOGRAFIA DO BANNER */

.hero-image {
    height: auto;
    min-height: 345px;
    overflow: hidden;

    display: flex;
    align-items: end;
    justify-content: center;

    position: relative;
    background: #f5cada;
}

.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}


/* ESPACO ANTES DO CADASTRO DA FOTO */

.hero-placeholder {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        140deg,
        #fbdcea,
        #f5c7da
    );
}


/* BANNER SEM FOTOGRAFIA */

.hero.no-banner {
    grid-template-columns: 1fr;
    min-height: 235px;
}

.hero.no-banner .hero-image {
    display: none;
}


/* ==========================================
   BENEFICIOS DA LOJA
========================================== */

.benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 22px 0;
}

.benefit {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    text-decoration: none;

    padding: 18px 4px;
    background: white;
    border-radius: 12px;
    color: #4b3540;
    font-size: 12px;

    gap: 5px;
    min-width: 0;
    min-height: 0;
}

.benefit .sym {
    display: block;
    font-size: 26px;
    color: var(--pink);
    margin-bottom: 6px;
}

.benefit-icon {
    width: 28px;
    height: 28px;
    color: var(--pink);
}

.benefit small {
    font-size: 11px;
    color: var(--muted);
}

.whatsapp-benefit:hover {
    background: #fff0f5;
}


/* ==========================================
   TITULOS DAS SECOES
========================================== */

.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin: 29px 0 14px;
}

.heading h2 {
    font: 27px Georgia, serif;
    color: #412533;
    margin: 0;
}


/* ==========================================
   GRADE DE PRODUTOS
   TRES PRODUTOS POR LINHA
========================================== */

.products {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.products > p {
    grid-column: 1 / -1;
}


/* CARTAO DO PRODUTO */

.product {
    border: 1px solid var(--line);
    background: white;
    border-radius: 12px;
    overflow: hidden;
    min-width: 0;
}


/* FOTO DO PRODUTO */

.product-photo {
    height: auto;
    aspect-ratio: .8;

    background: linear-gradient(
        140deg,
        #ffe8f0,
        #f8c5d9
    );

    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.product-photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.product-photo .fallback {
    font: 50px Georgia, serif;
    color: #b95b83;
}


/* FAVORITAR PRODUTO */

.heart {
    position: absolute;
    right: 8px;
    top: 8px;

    border: 0;
    background: white;
    border-radius: 50%;

    width: 30px;
    height: 30px;

    color: var(--pink);
    font-size: 20px;

    z-index: 1;
}


/* INFORMACOES DO PRODUTO */

.product-content {
    padding: 11px;
}

.product-title {
    display: block;
    font-weight: 600;
    font-size: 13px;
    min-height: 31px;
    overflow-wrap: anywhere;
}

.price {
    font-weight: 700;
    color: #34212a;
    margin: 6px 0 9px;
}

.product .btn {
    width: 100%;
    padding: 9px 4px;
    font-size: 12px;
}


/* PRODUTO SEM ESTOQUE */

.sold-out-label {
    position: absolute;
    bottom: 8px;
    left: 5px;

    background: #3b2430;
    color: #ffffff;

    padding: 4px 6px;
    border-radius: 5px;
    font-size: 10px;
}


/* ==========================================
   FILTROS DO CATALOGO
========================================== */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.pill {
    border: 1px solid var(--line);
    background: white;
    border-radius: 20px;
    padding: 9px 15px;
    font-size: 13px;
}

.pill.active {
    background: var(--pink);
    color: white;
}


/* ==========================================
   BUSCA E ORDENACAO
========================================== */

.search-row {
    display: grid;
    grid-template-columns: 1fr 160px;
    gap: 8px;
    margin: 15px 0;
}

.search-row input,
.search-row select {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 12px;
    background: white;
    min-width: 0;
    width: 100%;
}


/* ==========================================
   DETALHES DO PRODUTO
========================================== */

.detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
}

.detail-image {
    width: 100%;
    aspect-ratio: .88;
    object-fit: cover;
    border-radius: 14px;
    background: var(--light);
}

.image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}


/* TAMANHOS E CORES */

.chip {
    padding: 10px 14px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 7px;
}

.chip.selected {
    background: var(--pink);
    color: white;
    border-color: var(--pink);
}

.chip:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.option-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 20px;
}


/* QUANTIDADE */

.qty button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 7px;
}


/* ==========================================
   SACOLA DE COMPRAS
========================================== */

.cart-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
}

.cart-line img {
    width: 68px;
    height: 86px;
    object-fit: cover;
    border-radius: 8px;
}

.cart-line .info {
    flex: 1;
    min-width: 80px;
}


/* ==========================================
   FINALIZACAO DO PEDIDO
========================================== */

.checkout {
    max-width: 720px;
    margin: auto;
}

.choice {
    padding: 11px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 8px;
    margin: 7px 0;
    font-size: 13px;
}

.choice input {
    accent-color: var(--pink);
}

.totals {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
}


/* ==========================================
   RODAPE
========================================== */

.shop-footer {
    text-align: center;
    padding: 30px;
    padding-bottom: 85px;

    border-top: 1px solid var(--line);
    font-size: 12px;
    color: #8f7682;
}


/* ==========================================
   MENU INFERIOR
========================================== */

.bottomnav {
    display: none;
}

.bottomnav svg {
    width: 23px;
    height: 23px;
    margin: auto;
    color: var(--pink);
}


/* ==========================================
   MENSAGENS DO SISTEMA
========================================== */

.toast {
    position: fixed;
    bottom: 85px;
    right: 15px;
    max-width: min(350px, 90vw);

    background: #3b2430;
    color: white;

    padding: 12px 16px;
    border-radius: 9px;

    z-index: 99;
}


/* ==========================================
   RESPONSIVIDADE - TABLETS
========================================== */

@media (max-width: 800px) {

    .products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .shop-top {
        height: 62px;
    }

    .hero {
        min-height: 270px;
    }

    .hero-copy {
        padding: 24px;
    }

    .hero-image {
        min-height: 270px;
    }
}


/* ==========================================
   RESPONSIVIDADE - CELULARES
========================================== */

@media (max-width: 540px) {


    /* ESTRUTURA */

    .wrap {
        padding: 0 10px;
    }

    .page {
        padding-bottom: 85px;
    }


    /* LOGO E CABECALHO */

    .logo {
        font-size: 17px;
        gap: 4px;
    }

    .logo img {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .shop-top {
        height: 57px;
    }

    .icons {
        gap: 3px;
    }

    .icon-btn {
        font-size: 18px;
        padding: 5px;
        min-width: 26px;
    }

    .icon-btn svg {
        width: 21px;
        height: 21px;
    }


    /* CATEGORIAS */

    .categories-nav {
        gap: 15px;
        font-size: 12px;
    }


    /* BANNER PRINCIPAL */

    .hero {
        min-height: 235px;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, .9fr);
    }

    .hero-copy {
        padding: 12px;
        min-width: 0;
    }

    .hero-copy .eyebrow {
        font-size: 9px;
        letter-spacing: 1px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero p {
        font-size: 12px;
    }

    .hero-image {
        min-height: 235px;
    }

    .hero .btn {
        font-size: 11px;
        padding: 9px;
    }


    /* TRES PRODUTOS POR LINHA */

    .products {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 7px;
    }

    .product-content {
        padding: 6px 4px;
    }

    .product-title {
        font-size: 10px;
        min-height: 27px;
    }

    .price {
        font-size: 11px;
    }

    .product .btn {
        font-size: 10px;
        padding: 8px 1px;
    }

    .heart {
        right: 4px;
        top: 4px;
        width: 26px;
        height: 26px;
    }


    /* TITULOS */

    .heading h2 {
        font-size: 22px;
    }


    /* BENEFICIOS */

    .benefits {
        gap: 5px;
    }

    .benefit {
        padding: 12px 1px;
        font-size: 10px;
        gap: 5px;
    }

    .benefit-icon {
        width: 27px;
        height: 27px;
    }

    .benefit strong {
        font-size: 11px;
    }

    .benefit small {
        font-size: 10px;
    }


    /* DETALHES DO PRODUTO */

    .detail-layout {
        grid-template-columns: 1fr;
    }


    /* SACOLA */

    .cart-line img {
        width: 60px;
    }

    .cart-line .info {
        font-size: 13px;
    }


    /* FORMULARIOS */

    .two {
        grid-template-columns: 1fr;
    }

    .full {
        grid-column: auto;
    }

    .search-row {
        grid-template-columns: 1fr 125px;
    }


    /* MENU INFERIOR FIXO */

    .bottomnav {
        display: flex;
        justify-content: space-around;

        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;

        z-index: 20;

        padding:
            9px
            5px
            max(9px, env(safe-area-inset-bottom));

        background: white;
        border-top: 1px solid var(--line);
    }

    .bottomnav button {
        border: 0;
        background: none;
        font-size: 11px;
        color: var(--dark);

        display: grid;
        gap: 4px;
        text-align: center;
    }

    .bottomnav span {
        font-size: 21px;
        color: var(--pink);
    }

}


/* ==========================================
   USE.RIGEL - MODA FEMININA
   Desenvolvido pela I TECH
========================================== */
