body { font-family: 'Inter', sans-serif; margin: 0; background: #fff; display: flex; flex-direction: column; min-height: 100vh; box-sizing: border-box; }
.detalhe {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 2rem;
    box-sizing: border-box;
    width: 100%;
}
.detalhe-card {
    display: flex;
    align-items: stretch;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
}
.detalhe-col-esq {
    width: 48%;
    flex-shrink: 0;
    position: sticky;
    top: 70px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.detalhe-img {
    width: 100%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    aspect-ratio: 4 / 3;
    max-height: 480px;
    border-radius: 12px;
    overflow: hidden;
}
.detalhe-img .galeria-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #481010;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: background 0.2s;
}
.detalhe-img .galeria-nav:hover {
    background: #fff;
}
.detalhe-img .galeria-prev { left: 0.75rem; }
.detalhe-img .galeria-next { right: 0.75rem; }
.detalhe-img .galeria-contador {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    z-index: 3;
}
.galeria-dots {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.45rem;
    padding: 0;
    z-index: 3;
}
.galeria-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #d0d0d0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.galeria-dot.active {
    background: #481010;
    transform: scale(1.25);
}
.detalhe-corpo .img-provider {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}
.detalhe-corpo .img-provider .avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid #CF922E;
    flex-shrink: 0;
}
.detalhe-corpo .img-provider .info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.detalhe-corpo .img-provider .info .nome {
    font-weight: bold;
    color: #1a1a1a;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.detalhe-corpo .img-provider .info .nome .verified-svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}
.detalhe-corpo .img-provider .info .rating {
    color: #1a1a1a;
    font-size: 0.85rem;
}
.detalhe-corpo .img-provider .info .rating i {
    color: gold;
}
.img-provider-stats {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.1rem;
    flex-wrap: wrap;
}
.img-provider-linha {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.15rem;
    flex-wrap: wrap;
}
.img-provider-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    color: #555;
}
.img-provider-stats span i {
    color: #CF922E;
    font-size: 0.8rem;
}
.detalhe-opcoes-esq { padding: 0.5rem 0; }
.detalhe-info-esq { padding: 0.5rem 0; }
.detalhe-opcoes-mob, .detalhe-info-mob { display: none; }
.detalhe-corpo {
    flex: 1;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 0.5rem;
}
.detalhe-corpo h1, .detalhe-corpo h4, .detalhe-corpo p, .detalhe-corpo ul { margin: 0; }
.detalhe-topo { flex-shrink: 0; }
.detalhe-tipo {
    color: #CF922E;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.detalhe-nome {
    font-size: 1.6rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}
.detalhe-descricao {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
    margin: 0;
}
.detalhe-preco {
    font-size: 1.4rem;
    font-weight: bold;
    color: #481010;
    text-align: right;
    margin-bottom: 0.75rem;
}
.detalhe-fixos { flex-shrink: 0; }
main { display: flex; flex-direction: column; flex: 1; }
.main-footer { margin-top: 0; }
.detalhe-itens {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-bottom: 1rem;
}
.detalhe-itens h4 {
    font-size: 1rem;
    color: #333;
    margin: 0 0 0.5rem;
}
.detalhe-itens .itens-grid {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.item-linha {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
    user-select: none;
}
.item-linha.riscado .item-nome {
    text-decoration: line-through;
    color: #999;
}
.item-linha input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #CF922E;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}
.item-linha .item-nome {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.item-linha .item-preco {
    margin-left: auto;
    font-weight: 700;
    color: #481010;
    white-space: nowrap;
    flex-shrink: 0;
}
.item-linha.riscado .item-preco { color: #999; }
.btn-encomendar {
    display: block;
    width: 100%;
    height: 50px;
    background: #481010;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    flex: 1;
}
.btn-chat {
    display: block;
    width: 100%;
    height: 50px;
    background: #481010;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
    line-height: 50px;
    flex: 1;
}
.btn-chat:hover { background: #5e1515; color: #fff; }
.btns-acao { display: flex; gap: 0.5rem; }
.btn-chat-form { flex: 1; }

@media (max-width: 768px) {
    main { flex: none; height: auto; }
    .detalhe { height: auto; padding: 0; margin: 0; max-width: none; }
    .detalhe-card { flex-direction: column; height: auto; min-height: 0; overflow: visible; }
    .detalhe-col-esq { width: 100%; position: static; flex-direction: column; gap: 0; }
    .detalhe-opcoes-esq, .detalhe-info-esq { display: none; }
    .detalhe-opcoes-mob, .detalhe-info-mob { display: block; }
    .detalhe-img {
        width: 100%;
        height: 260px;
        min-height: 0;
        flex-shrink: 0;
        background-size: cover;
        background-position: center;
        padding-top: 0;
        aspect-ratio: auto;
        max-height: 260px;
        box-sizing: border-box;
        position: sticky;
        top: 0;
        z-index: 1;
        border-radius: 0 !important;
        overflow: hidden;
    }
    .detalhe-corpo {
        padding: 1.25rem;
        min-height: 0;
        position: relative;
        z-index: 2;
        background: #fff;
        border-radius: 0;
        margin-top: 0;
        overflow-y: auto;
        max-height: none;
        gap: 0.75rem;
        box-shadow: none;
    }
    .detalhe-nome { font-size: 1.3rem; }
    .detalhe-topo { flex-shrink: 0; }
    .detalhe-corpo .img-provider { flex-shrink: 0; }
    .detalhe-itens { flex: 1; overflow-y: visible; min-height: 0; margin-bottom: 0; }
    body { padding-bottom: 130px; }
    .detalhe-fixos {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: #fff;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.08);
        padding: 0.4rem 1rem calc(0.4rem + env(safe-area-inset-bottom, 0px));
        margin-top: 0;
        box-sizing: border-box;
    }
    .detalhe-fixos > div:first-child { display: none; }
    .detalhe-fixos .detalhe-preco { font-size: 1.1rem !important; margin-bottom: 0.2rem; }
    .detalhe-fixos > div:nth-child(2) > div:first-child { font-size: 0.72rem !important; margin-bottom: 0; }
    .detalhe-fixos .btns-acao { gap: 0.35rem; }
    .detalhe-fixos .btn-encomendar, .detalhe-fixos .btn-chat {
        height: 40px !important;
        line-height: 40px !important;
        font-size: 0.82rem !important;
        border-radius: 6px !important;
    }
    .avaliacoes { padding: 0 1.25rem 8rem; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    main { flex: none; height: calc(100vh - 249px); }
    .detalhe { height: 100%; }
    .detalhe-card { height: 100%; min-height: 0; }
    .detalhe-corpo { padding-bottom: 0; min-height: 0; }
    .avaliacao-item { min-width: 240px; max-width: 280px; }
}

.detalhe-fixos { flex-shrink: 0; margin-top: auto; padding-top: 0.75rem; }
.detalhe-fixos .btns-acao { margin-top: 0; }
.detalhe-fixos .btn-encomendar, .detalhe-fixos .btn-chat { flex: 1; }
.avaliacoes {
    max-width: 1200px;
    margin: 1rem auto 0;
    padding: 0 2rem 3rem;
    box-sizing: border-box;
    width: 100%;
}
.avaliacoes-titulo { font-size: 1.3rem; font-weight: bold; color: #333; margin: 0 0 0.85rem; }
.avaliacoes-resumo { display: flex; align-items: center; gap: 1.5rem; margin-bottom: 0.9rem; }
.avaliacoes-nota { display: flex; align-items: center; gap: 0.75rem; }
.av-nota { font-size: 2.2rem; font-weight: bold; color: #481010; }
.av-estrelas { display: flex; gap: 0.15rem; color: #ffd700; font-size: 1rem; }
.av-estrelas-mini { font-size: 0.75rem; }
.avaliacoes-total { font-size: 0.9rem; color: #888; }
.avaliacoes-lista { display: flex; gap: 0.75rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; padding-bottom: 0.5rem; -ms-overflow-style: none; scrollbar-width: none; cursor: grab; }
.avaliacoes-lista:active { cursor: grabbing; }
.avaliacoes-lista::-webkit-scrollbar { display: none; }
.avaliacao-item { padding: 1rem; background: #f9f9f9; border-radius: 10px; box-sizing: border-box; min-width: 260px; max-width: 320px; flex-shrink: 0; scroll-snap-align: start; }
.avaliacao-item:last-child { border-bottom: none; }
.av-item-cab { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.35rem; }
.av-item-nome { font-weight: 600; color: #1a1a1a; font-size: 0.95rem; }
.av-item-texto { font-size: 0.9rem; color: #555; line-height: 1.5; margin: 0 0 0.35rem; }
.av-item-data { font-size: 0.75rem; color: #aaa; }
.avaliacoes-vazio { color: #999; font-size: 0.9rem; }
.avaliacoes-ver-mais { display: none; margin: 0.9rem 0 0 auto; padding: 0.5rem 0; background: transparent; color: #481010; border: none; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.av-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 2000; }
.av-modal.aberto { display: block; }
.av-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,0.65); }
.av-modal-sheet {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: #fff; border-radius: 0;
    padding: 1rem 1.25rem 1.5rem; box-sizing: border-box;
    transform: translateY(-110%); transition: transform 0.3s ease;
    overflow-y: auto;
}
.av-modal.aberto .av-modal-sheet { transform: translateY(0); }
.av-modal-topo {
    position: sticky; top: 0;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: 1rem 0 0.75rem; background: #fff;
    border-bottom: 1px solid #f0f0f0; margin-bottom: 0.75rem;
    z-index: 5;
}
.av-modal-fechar {
    width: 36px; height: 36px; border: none; border-radius: 50%;
    background: #f2f2f2; color: #333; font-size: 1rem;
    cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.av-modal-titulo { font-size: 1.1rem; font-weight: 700; color: #333; }
.av-modal-lista { display: flex; flex-direction: column; gap: 0.5rem; }

@media (max-width: 768px) {
    .avaliacoes { padding: 0 1.25rem 3rem; }
    .avaliacao-item { min-width: 220px; max-width: 260px; }
    .aval-secundaria { display: block; }
    .avaliacoes-ver-mais { display: block; }
}

.item-linha-custom {
    display: flex; align-items: center; padding: 0.6rem 0; border-bottom: none;
    cursor: pointer; user-select: none; gap: 0.75rem; font-size: 0.95rem;
    color: #374151; transition: color 0.2s; min-width: 0;
}
.item-linha-custom:hover { color: #111827; }
.custom-circle-check {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid #d1d5db;
    display: flex; align-items: center; justify-content: center; background: #fff;
    flex-shrink: 0; transition: all 0.2s; position: relative;
}
.item-linha-custom input[type="checkbox"] { display: none; }
.item-linha-custom input[type="checkbox"]:checked + .custom-circle-check { border-color: #CF922E; background: #CF922E; }
.item-linha-custom input[type="checkbox"]:checked + .custom-circle-check::after {
    content: ''; width: 8px; height: 8px; background: #fff; border-radius: 50%; display: block;
}
.item-linha-custom .item-nome { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-linha-custom .item-preco { margin-left: auto; font-weight: 600; color: #481010; flex-shrink: 0; white-space: nowrap; }
