/* =====================================================================
   RASTREAR PEDIDOS — tema Bege & Preto (cores da logo)
   ===================================================================== */
:root {
    --rt-bege:        #f3e9d6;
    --rt-bege-claro:  #faf4e9;
    --rt-bege-escuro: #e6d7bb;
    --rt-preto:       #1a1a1a;
    --rt-preto-suave: #2b2b2b;
    --rt-cinza:       #6b6459;
    --rt-borda:       #dccbaa;
}

.rastrear {
    background: var(--rt-bege);
    padding: 56px 0 72px;
    min-height: 60vh;
}

.rastrear__wrap {
    max-width: 820px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cabeçalho da página */
.rastrear__header {
    text-align: center;
    margin-bottom: 34px;
}
.rastrear__header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(26px, 4vw, 36px);
    color: var(--rt-preto);
    margin-bottom: 10px;
    letter-spacing: .5px;
}
.rastrear__header p {
    color: var(--rt-cinza);
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
}

/* Card do formulário */
.rastrear__card {
    background: var(--rt-bege-claro);
    border: 1px solid var(--rt-borda);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(26, 26, 26, .07);
}

.rastrear__form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}
.rastrear__campo {
    flex: 1 1 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rastrear__campo label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--rt-preto);
}
.rastrear__campo input {
    padding: 14px 16px;
    border: 1px solid var(--rt-borda);
    border-radius: 10px;
    font-size: 16px;
    background: #fff;
    color: var(--rt-preto);
    transition: border-color .2s, box-shadow .2s;
}
.rastrear__campo input:focus {
    outline: none;
    border-color: var(--rt-preto);
    box-shadow: 0 0 0 3px rgba(26, 26, 26, .1);
}

.rastrear__btn {
    flex: 0 0 auto;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    background: var(--rt-preto);
    color: var(--rt-bege);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .4px;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.rastrear__btn:hover  { background: var(--rt-preto-suave); }
.rastrear__btn:active { transform: translateY(1px); }

/* Mensagens (aviso / erro) */
.rastrear__msg {
    margin-top: 22px;
    padding: 16px 18px;
    border-radius: 10px;
    font-size: 14.5px;
    line-height: 1.5;
    border: 1px solid var(--rt-borda);
    background: #fff;
    color: var(--rt-preto);
}
.rastrear__msg--erro {
    border-color: #e2b4b4;
    background: #fbeeee;
    color: #7a2020;
}

/* Lista de resultados */
.rastrear__resultados {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rastrear__resumo {
    font-size: 14px;
    color: var(--rt-cinza);
    margin-bottom: 4px;
}

.pedido-card {
    background: var(--rt-bege-claro);
    border: 1px solid var(--rt-borda);
    border-radius: 12px;
    padding: 20px 22px;
    box-shadow: 0 4px 16px rgba(26, 26, 26, .05);
}
.pedido-card__topo {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--rt-bege-escuro);
    padding-bottom: 14px;
    margin-bottom: 14px;
}
.pedido-card__id {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--rt-preto);
    font-weight: 600;
}
.pedido-card__data {
    font-size: 13px;
    color: var(--rt-cinza);
}

.pedido-card__linha {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: var(--rt-preto-suave);
    margin-bottom: 8px;
}
.pedido-card__linha strong { color: var(--rt-preto); }

.pedido-card__itens {
    font-size: 13.5px;
    color: var(--rt-cinza);
    margin: 10px 0 4px;
}

.pedido-card__rodape {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--rt-bege-escuro);
}
.pedido-card__total {
    font-size: 18px;
    font-weight: 700;
    color: var(--rt-preto);
}
.pedido-card__link {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: var(--rt-preto);
    color: var(--rt-bege);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s;
}
.pedido-card__link:hover { background: var(--rt-preto-suave); }

/* Badge de status */
.rt-status {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: .3px;
}
.rt-status--pendente   { background: #fff3cd; color: #7a5b00; }
.rt-status--confirmado { background: #d7e6ff; color: #1c4680; }
.rt-status--enviado    { background: #dbe6d3; color: #2c5720; }
.rt-status--entregue   { background: #1a1a1a; color: var(--rt-bege); }
.rt-status--cancelado  { background: #f6d6d6; color: #7a2020; }

@media (max-width: 560px) {
    .rastrear__form  { flex-direction: column; align-items: stretch; }
    .rastrear__btn   { width: 100%; }
}