
*
{
    box-sizing:border-box;
}

html
{
    scroll-behavior:smooth;
}

body
{
    margin:0;

    background:var(--bg);
    color:var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing:antialiased;
}

button,
input
{
    font:inherit;
}

button
{
    cursor:pointer;
}

.app
{
    width:min(
        100%,
        var(--max)
    );

    margin:auto;

    min-height:100vh;

    padding-bottom:100px;
}


/* ============================================
   CABECALHO
   ============================================ */

.header
{
    padding:
        18px
        16px
        8px;
}

.store-row
{
    display:flex;

    align-items:center;

    gap:12px;
}

.logo
{
    width:52px;
    height:52px;

    border-radius:18px;

    display:grid;

    place-items:center;

    background:
        var(--brand-primary);

    font-size:25px;

    color:#fff;

    flex:none;
}

.title
{
    flex:1;

    min-width:0;
}

.title h1
{
    margin:0;

    font-size:20px;

    white-space:nowrap;

    overflow:hidden;

    text-overflow:ellipsis;
}

.meta
{
    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-top:5px;

    font-size:12px;

    color:var(--muted);

    font-weight:700;
}

.open
{
    color:
        var(--success);
}


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

.hero
{
    margin:
        10px
        16px
        14px;

    padding:22px;

    min-height:120px;

    border-radius:
        var(--radius-lg);

    color:#fff;

    background:
        linear-gradient(
            135deg,
            var(--brand-primary),
            var(--brand-secondary)
        );

    display:flex;

    align-items:flex-end;

    box-shadow:
        var(--shadow);
}

.hero strong
{
    font-size:24px;

    letter-spacing:-.5px;
}

.hero span
{
    display:block;

    margin-top:5px;

    font-size:13px;

    opacity:.92;
}


/* ============================================
   BUSCA
   ============================================ */

.searchbox
{
    padding:
        0
        16px
        10px;
}

.search
{
    width:100%;

    height:48px;

    border-radius:16px;

    border:
        1px
        solid
        var(--border);

    background:
        var(--surface);

    color:
        var(--text);

    padding:
        0
        15px;

    outline:none;
}

.search:focus
{
    border-color:
        var(--brand-primary);
}


/* ============================================
   CATEGORIAS
   ============================================ */

.categories
{
    display:flex;

    gap:8px;

    overflow-x:auto;

    padding:
        3px
        16px
        15px;

    scrollbar-width:none;
}

.categories::-webkit-scrollbar
{
    display:none;
}

.cat
{
    border:
        1px
        solid
        var(--border);

    background:
        var(--surface);

    color:
        var(--text);

    padding:
        10px
        15px;

    border-radius:999px;

    font-size:13px;

    font-weight:800;

    white-space:nowrap;
}

.cat.active
{
    background:
        var(--text);

    color:
        var(--surface);

    border-color:
        var(--text);
}


/* ============================================
   SECAO
   ============================================ */

.section
{
    display:flex;

    justify-content:space-between;

    align-items:end;

    padding:
        2px
        16px
        10px;
}

.section h2
{
    margin:0;

    font-size:19px;
}

.section small
{
    color:
        var(--muted);
}


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

.list
{
    display:grid;

    gap:12px;

    padding:
        0
        16px
        18px;
}

.card
{
    display:grid;

    grid-template-columns:
        1fr
        126px;

    min-height:145px;

    background:
        var(--surface);

    border:
        1px
        solid
        var(--border);

    border-radius:18px;

    overflow:hidden;

    box-shadow:
        var(--shadow);
}

.info
{
    padding:
        15px
        10px
        14px
        15px;

    display:flex;

    flex-direction:column;

    min-width:0;
}

.badge
{
    align-self:flex-start;

    padding:
        5px
        8px;

    border-radius:999px;

    background:
        rgba(255,90,54,.12);

    color:
        var(--brand-primary);

    font-size:10px;

    font-weight:900;

    margin-bottom:7px;
}

.name
{
    font-size:16px;

    font-weight:900;
}

.desc
{
    margin-top:5px;

    color:
        var(--muted);

    font-size:12px;

    line-height:1.35;

    display:-webkit-box;

    -webkit-line-clamp:2;

    -webkit-box-orient:vertical;

    overflow:hidden;
}

.price
{
    margin-top:auto;

    font-weight:900;
}

.price del
{
    font-size:11px;

    color:
        var(--muted);

    font-weight:600;

    margin-left:5px;
}

.photo
{
    margin:
        10px
        10px
        10px
        0;

    border-radius:14px;

    display:grid;

    place-items:center;

    font-size:48px;

    position:relative;

    overflow:hidden;

    background:
        linear-gradient(
            145deg,
            var(--brand-secondary),
            var(--brand-primary)
        );
}

.photo img
{
    width:100%;

    height:100%;

    object-fit:cover;
}

.add
{
    position:absolute;

    right:8px;

    bottom:8px;

    width:38px;

    height:38px;

    border:0;

    border-radius:12px;

    background:
        var(--surface);

    color:
        var(--text);

    font-size:24px;

    box-shadow:
        0 6px 16px
        rgba(0,0,0,.2);
}


/* ============================================
   VAZIO
   ============================================ */

.empty
{
    display:none;

    margin:
        0
        16px;

    padding:28px;

    text-align:center;

    color:
        var(--muted);

    border:
        1px
        dashed
        var(--border);

    border-radius:16px;

    background:
        var(--surface);
}


/* ============================================
   CARRINHO
   ============================================ */

.cartbar
{
    position:fixed;

    z-index:20;

    left:50%;

    transform:
        translateX(-50%);

    bottom:12px;

    width:
        min(
            calc(100% - 24px),
            696px
        );

    background:
        var(--text);

    color:
        var(--surface);

    border:0;

    border-radius:20px;

    padding:
        12px
        14px;

    min-height:64px;

    box-shadow:
        var(--shadow-float);

    display:none;

    align-items:center;

    gap:12px;
}

.cartbar.show
{
    display:flex;
}

.cartcount
{
    width:38px;

    height:38px;

    border-radius:12px;

    display:grid;

    place-items:center;

    background:
        var(--brand-primary);

    color:#fff;

    font-weight:900;
}

.carttext
{
    flex:1;

    text-align:left;
}

.carttext strong
{
    display:block;

    font-size:14px;
}

.carttext span
{
    font-size:12px;

    opacity:.75;
}

.carttotal
{
    font-weight:900;
}


/* ============================================
   PRODUCT SHEET
   ============================================ */

.sheet
{
    position:fixed;

    inset:0;

    z-index:50;

    background:
        rgba(0,0,0,.45);

    display:none;

    align-items:flex-end;

    justify-content:center;
}

.sheet.open
{
    display:flex;
}

.sheetbox
{
    width:
        min(
            100%,
            720px
        );

    max-height:90vh;

    overflow:auto;

    background:
        var(--surface);

    color:
        var(--text);

    border-radius:
        26px
        26px
        0
        0;

    padding:
        18px
        16px
        24px;
}

.sheethead
{
    display:flex;

    justify-content:space-between;

    gap:12px;
}

.close
{
    border:0;

    background:
        var(--surface-2);

    color:
        var(--text);

    width:38px;

    height:38px;

    border-radius:12px;
}

.option
{
    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:
        13px
        0;

    border-bottom:
        1px
        solid
        var(--border);
}

.option label
{
    display:flex;

    gap:10px;

    align-items:center;
}

.qtyrow
{
    display:flex;

    gap:10px;

    align-items:center;

    margin-top:18px;
}

.qtyrow button
{
    width:42px;

    height:42px;

    border:0;

    border-radius:12px;

    background:
        var(--surface-2);

    color:
        var(--text);

    font-size:20px;
}

.qty
{
    font-weight:900;

    min-width:24px;

    text-align:center;
}

.primary
{
    flex:1;

    height:48px;

    border:0;

    border-radius:14px;

    background:
        var(--brand-primary);

    color:#fff;

    font-weight:900;
}

.admin-link
{
    margin:
        18px
        16px
        0;

    text-align:center;

    color:
        var(--muted);

    font-size:12px;
}


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

@media(min-width:760px)
{
    .app
    {
        padding-top:14px;
    }

    .list
    {
        grid-template-columns:
            1fr
            1fr;
    }
}



/* ============================================================
   GS CARDAPIO - FASE 2B - OPTION GROUPS
   ============================================================ */

.option-group
{
    margin-top:18px;
    padding-top:16px;
    border-top:1px solid var(--border);
}

.option-group:first-child
{
    margin-top:8px;
}

.option-group-head
{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:5px;
}

.option-group-head strong
{
    display:block;
    font-size:15px;
}

.option-group-head span
{
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:11px;
}

.option-group-head b
{
    flex:none;
    padding:5px 8px;
    border-radius:999px;
    background:rgba(255,90,54,.12);
    color:var(--brand-primary);
    font-size:9px;
    font-weight:900;
    text-transform:uppercase;
}

.option-group-list .option
{
    min-height:52px;
}

.option-left
{
    display:flex;
    align-items:center;
    gap:10px;
}

.option-group-list input
{
    width:19px;
    height:19px;
    accent-color:var(--brand-primary);
}

.option-group-list input:disabled
{
    opacity:.35;
}

.group-error
{
    min-height:0;
    color:var(--danger);
    font-size:11px;
    font-weight:800;
}

.group-error:not(:empty)
{
    margin:7px 0;
}

.no-options
{
    margin-top:12px;
    padding:13px;
    border-radius:13px;
    background:var(--surface-2);
    color:var(--muted);
    font-size:12px;
}
