@import url("https://fonts.googleapis.com/css2?family=Jolly+Lodger&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");
@font-face {
  font-family: "Xilosa";
  src: url("../fontes/xilosa_.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   CERRADENSE
   MINHA CONTA
============================================ */


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

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.account-page {
    flex: 1 0 auto;
    width: 100%;
    min-height: 0;
    padding: 70px 40px 70px;
    background: var(--creme-claro);
    box-sizing: border-box;
}

/* A tela inicial de login cabe inteira na janela. */
body:has(#authCard:not(.hidden)):has(#loginForm:not(.hidden)) {
    overflow: hidden;
}

body:has(#loginForm:not(.hidden)) .account-page {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 14px 40px 14px;
}

body:has(#loginForm:not(.hidden)) .account-card {
    margin: 0 auto;
}

.site-footer {
    flex: 0 0 auto;
    width: 100%;
    box-sizing: border-box;
}





/* ============================================
   AJUSTES DO HEADER E INSTAGRAM
============================================ */

/* Mantém a sacola visível na página Minha Conta. */
.site-header .header-bag {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-left: 0;
    flex-shrink: 0;
}

.site-header .bag-icon {
    width: 18px;
    height: 21px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.site-header .bag-icon svg {
    width: 18px;
    height: 21px;
    display: block !important;
    overflow: visible;
    stroke: currentColor;
}

.site-header .bag-count {
    display: inline-block !important;
    min-width: 10px;
    font-size: 12px;
    line-height: 1;
}

/* O rodapé da Minha Conta já possui o ícone no próprio HTML.
   Impede qualquer pseudo-elemento externo de gerar um segundo ícone. */
.site-footer .footer-brand > a::before,
.site-footer .footer-brand > a::after {
    content: none !important;
    display: none !important;
}

.site-footer .footer-instagram-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.site-footer .footer-instagram-icon svg {
    display: block !important;
    width: 17px;
    height: 17px;
}


/* ============================================
   UTILITÁRIO
============================================ */

.hidden {

    display: none !important;

}


/* ============================================
   CARD DE AUTENTICAÇÃO
============================================ */

.account-card {

    width: min(560px, 100%);

    margin: 0 auto;

    background: rgba(255, 255, 255, 0.62);

    border: 1px solid rgba(83, 28, 19, 0.12);

    padding: 52px;

    box-shadow:
        0 18px 55px rgba(36, 20, 15, 0.08);

    box-sizing: border-box;

}


/* ============================================
   CABEÇALHO DA AUTENTICAÇÃO
============================================ */

.account-heading {

    text-align: center;

    margin-bottom: 34px;

}


.account-heading .section-label {

    margin-bottom: 14px;


}


.account-heading h1 {

    margin: 0 0 16px;

    color: var(--marrom-escuro);

    font-size: clamp(2rem, 4vw, 3rem);

    line-height: 1.05;

    letter-spacing: -0.03em;

}


.account-heading p {

    max-width: 430px;

    margin: 0 auto;

    color: rgba(36, 20, 15, 0.68);

    line-height: 1.7;

}


/* ============================================
   ABAS
============================================ */

.account-tabs {

    display: grid;

    grid-template-columns: 1fr 1fr;

    border-bottom: 1px solid rgba(83, 28, 19, 0.18);

    margin-bottom: 30px;

}


.account-tab {

    appearance: none;

    border: 0;

    background: transparent;

    color: rgba(36, 20, 15, 0.55);

    padding: 16px 10px;

    font-family: inherit;

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    cursor: pointer;

    position: relative;

}


.account-tab::after {

    content: "";

    position: absolute;

    left: 0;

    right: 0;

    bottom: -1px;

    height: 2px;

    background: transparent;

}


.account-tab.active {

    color: var(--marrom);

}


.account-tab.active::after {

    background: var(--marrom);

}


/* ============================================
   FORMULÁRIOS
============================================ */

.account-form {

    display: flex;

    flex-direction: column;

    gap: 20px;

}


.form-group {

    display: flex;

    flex-direction: column;

    gap: 8px;

}


.form-row {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 16px;

}


.form-label {

    color: var(--marrom-escuro);

    font-size: 0.76rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

}


.form-input {

    width: 100%;

    min-height: 50px;

    padding: 13px 14px;

    border: 1px solid rgba(83, 28, 19, 0.2);

    background: rgba(255, 255, 255, 0.75);

    color: var(--marrom-escuro);

    font-family: inherit;

    font-size: 0.96rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

    box-sizing: border-box;

}


.form-input:focus {

    border-color: var(--marrom);

    background: var(--branco);

    box-shadow:
        0 0 0 3px rgba(83, 28, 19, 0.08);

}


.form-input::placeholder {

    color: rgba(36, 20, 15, 0.35);

}


.form-help {

    color: rgba(36, 20, 15, 0.48);

    font-size: 0.74rem;

    line-height: 1.5;

}


/* ============================================
   SENHA
============================================ */

.password-wrapper {

    position: relative;

}


.password-wrapper .form-input {

    padding-right: 80px;

}


.password-toggle {

    position: absolute;

    right: 12px;

    top: 50%;

    transform: translateY(-50%);

    border: 0;

    background: transparent;

    color: var(--marrom);

    font-family: inherit;

    font-size: 0.72rem;

    font-weight: 700;

    cursor: pointer;

    letter-spacing: 0.04em;

}


/* ============================================
   BOTÕES
============================================ */

.account-button {

    width: 100%;

    min-height: 52px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

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

    background: var(--marrom);

    color: var(--branco);

    padding: 14px 20px;

    font-family: inherit;

    font-size: 0.78rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;

    box-sizing: border-box;

}


.account-button:hover {

    background: var(--marrom-escuro);

    border-color: var(--marrom-escuro);

}


.account-button:disabled {

    opacity: 0.55;

    cursor: not-allowed;

    transform: none;

}


.secondary-button {

    background: transparent;

    color: var(--marrom);

}


.secondary-button:hover {

    background: rgba(83, 28, 19, 0.06);

    color: var(--marrom);

    border-color: var(--marrom);

}


/* ============================================
   ESQUECI A SENHA
============================================ */

.forgot-password {

    border: 0;

    background: transparent;

    color: var(--marrom);

    font-family: inherit;

    font-size: 0.78rem;

    cursor: pointer;

    padding: 2px 0;

    text-decoration: underline;

    text-underline-offset: 3px;

}


/* ============================================
   MENSAGENS
============================================ */

.account-message {

    display: none;

    margin-bottom: 22px;

    padding: 13px 15px;

    font-size: 0.86rem;

    line-height: 1.5;

}


.account-message.show {

    display: block;

}


.account-message.success {

    background: rgba(40, 110, 70, 0.1);

    border: 1px solid rgba(40, 110, 70, 0.2);

    color: #285d42;

}


.account-message.error {

    background: rgba(150, 45, 30, 0.08);

    border: 1px solid rgba(150, 45, 30, 0.18);

    color: #8a2e20;

}


.account-message.info {

    background: rgba(83, 28, 19, 0.07);

    border: 1px solid rgba(83, 28, 19, 0.14);

    color: var(--marrom);

}


/* ============================================
   TERMOS
============================================ */

.account-terms {

    margin: -4px 0 0;

    color: rgba(36, 20, 15, 0.52);

    font-size: 0.74rem;

    line-height: 1.6;

    text-align: center;

}


/* ============================================
   DASHBOARD DO CLIENTE
============================================ */

.account-dashboard {

    width: min(1240px, 100%);

    margin: 0 auto;

}


/* ============================================
   CABEÇALHO DO DASHBOARD
============================================ */

.account-dashboard-header {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 42px;

    padding-bottom: 32px;

    border-bottom: 1px solid rgba(83, 28, 19, 0.14);

}


.account-dashboard-header .section-label {

    margin-bottom: 12px;

}


.account-dashboard-header h1 {

    margin: 0 0 12px;

    color: var(--marrom-escuro);

    font-size: clamp(2.2rem, 4vw, 3.8rem);

    line-height: 1;

    letter-spacing: -0.04em;

}


.account-dashboard-header p {

    margin: 0;

    color: rgba(36, 20, 15, 0.62);

    font-size: 0.95rem;

    line-height: 1.6;

}


/* ============================================
   LAYOUT DA CONTA
============================================ */

.account-layout {

    display: grid;

    grid-template-columns: 245px minmax(0, 1fr);

    gap: 58px;

    align-items: start;

}


/* ============================================
   MENU LATERAL
============================================ */

.account-sidebar {

    position: sticky;

    top: 30px;

}


.account-menu {

    display: flex;

    flex-direction: column;

    border-top: 1px solid rgba(83, 28, 19, 0.14);

}


.account-menu-item {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    padding: 18px 4px;

    border: 0;

    border-bottom: 1px solid rgba(83, 28, 19, 0.12);

    background: transparent;

    color: rgba(36, 20, 15, 0.58);

    font-family: inherit;

    font-size: 0.76rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    text-align: left;

    cursor: pointer;

    transition:
        color 0.2s ease,
        padding 0.2s ease;

}


.account-menu-item:hover {

    color: var(--marrom);

    padding-left: 6px;

}


.account-menu-item.active {

    color: var(--marrom);

    padding-left: 6px;

}


.account-menu-arrow {

    font-size: 1rem;

    font-weight: 400;

}


.account-sidebar-actions {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 28px;

}


.account-sidebar-link {

    border: 0;

    background: transparent;

    color: rgba(36, 20, 15, 0.5);

    padding: 5px 0;

    font-family: inherit;

    font-size: 0.74rem;

    text-align: left;

    text-decoration: none;

    cursor: pointer;

    transition: color 0.2s ease;

}


.account-sidebar-link:hover {

    color: var(--marrom);

}


.logout-link:hover {

    color: #8a2e20;

}


/* ============================================
   CONTEÚDO DA CONTA
============================================ */

.account-content {

    min-width: 0;

}


.account-section {

    display: none;

}


.account-section.active {

    display: block;

}


/* ============================================
   CABEÇALHO DAS SEÇÕES
============================================ */

.account-section-header {

    margin-bottom: 30px;

}


.account-section-header .account-section-label {

    display: block;

    margin-bottom: 10px;

    color: var(--dourado);

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.14em;

}


.account-section-header h2 {

    margin: 0 0 10px;

    color: var(--marrom-escuro);

    font-size: clamp(1.8rem, 3vw, 2.6rem);

    line-height: 1.05;

    letter-spacing: -0.03em;

}


.account-section-header p {

    margin: 0;

    color: rgba(36, 20, 15, 0.6);

    font-size: 0.9rem;

    line-height: 1.65;

}


.back-account-button {

    display: block;

    margin-bottom: 25px;

    border: 0;

    background: transparent;

    color: var(--marrom);

    padding: 0;

    font-family: inherit;

    font-size: 0.7rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    cursor: pointer;

}


.back-account-button:hover {

    text-decoration: underline;

    text-underline-offset: 4px;

}


/* ============================================
   LISTA DE PEDIDOS
============================================ */

.orders-list {

    display: flex;

    flex-direction: column;

    gap: 16px;

}


.order-card {

    background: rgba(255, 255, 255, 0.64);

    border: 1px solid rgba(83, 28, 19, 0.12);

    padding: 24px 26px;

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

}


.order-card:hover {

    border-color: rgba(83, 28, 19, 0.22);

    box-shadow:
        0 12px 35px rgba(36, 20, 15, 0.06);

    transform: translateY(-1px);

}


.order-card-top {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    padding-bottom: 18px;

    border-bottom: 1px solid rgba(83, 28, 19, 0.09);

}


.order-card-number {

    margin: 0 0 5px;

    color: var(--marrom-escuro);

    font-size: 0.9rem;

    font-weight: 700;

    letter-spacing: 0.04em;

}


.order-card-date {

    color: rgba(36, 20, 15, 0.48);

    font-size: 0.75rem;

}


.order-status-badge {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 30px;

    padding: 5px 10px;

    border: 1px solid rgba(83, 28, 19, 0.15);

    color: var(--marrom);

    background: rgba(83, 28, 19, 0.05);

    font-size: 0.64rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    white-space: nowrap;

}


.order-status-badge.approved {

    border-color: rgba(40, 110, 70, 0.2);

    background: rgba(40, 110, 70, 0.08);

    color: #285d42;

}


.order-status-badge.pending {

    border-color: rgba(168, 121, 32, 0.22);

    background: rgba(168, 121, 32, 0.08);

    color: #765313;

}


.order-status-badge.cancelled {

    border-color: rgba(150, 45, 30, 0.18);

    background: rgba(150, 45, 30, 0.07);

    color: #8a2e20;

}


/* ============================================
   CORPO DO PEDIDO
============================================ */

.order-card-body {

    display: grid;

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

    gap: 25px;

    padding: 20px 0;

}


.order-card-products {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.order-product-line {

    display: flex;

    align-items: center;

    gap: 15px;

}


.order-product-image {

    width: 62px;

    height: 70px;

    flex: 0 0 62px;

    object-fit: cover;

    background: var(--creme);

}


.order-product-info {

    min-width: 0;

}


.order-product-name {

    margin: 0 0 5px;

    color: var(--marrom-escuro);

    font-size: 0.86rem;

    font-weight: 700;

}


.order-product-meta {

    margin: 0;

    color: rgba(36, 20, 15, 0.5);

    font-size: 0.74rem;

    line-height: 1.5;

}


.order-card-total {

    min-width: 125px;

    display: flex;

    flex-direction: column;

    align-items: flex-end;

    justify-content: center;

    gap: 5px;

}


.order-card-total span {

    color: rgba(36, 20, 15, 0.45);

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    text-transform: uppercase;

}


.order-card-total strong {

    color: var(--marrom);

    font-size: 1rem;

}


.order-card-bottom {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 18px;

    border-top: 1px solid rgba(83, 28, 19, 0.09);

}


.order-payment-status {

    display: flex;

    align-items: center;

    gap: 7px;

    color: #285d42;

    font-size: 0.74rem;

    font-weight: 700;

}


.order-payment-dot {

    width: 7px;

    height: 7px;

    border-radius: 50%;

    background: #285d42;

}


.view-order-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

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

    background: transparent;

    color: var(--marrom);

    padding: 9px 15px;

    font-family: inherit;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.08em;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.view-order-button:hover {

    background: var(--marrom);

    color: var(--branco);

}


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

.empty-state {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    padding: 65px 30px;

    border: 1px solid rgba(83, 28, 19, 0.12);

    background: rgba(255, 255, 255, 0.42);

    text-align: center;

}


.empty-state-icon {

    width: 45px;

    height: 45px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    border: 1px solid rgba(83, 28, 19, 0.18);

    color: var(--marrom);

    font-size: 1.2rem;

}


.empty-state h3 {

    margin: 0 0 9px;

    color: var(--marrom-escuro);

    font-size: 1rem;

}


.empty-state p {

    max-width: 380px;

    margin: 0 0 24px;

    color: rgba(36, 20, 15, 0.55);

    font-size: 0.82rem;

    line-height: 1.6;

}


.empty-state-button {

    width: auto;

    min-width: 190px;

}


/* ============================================
   CARDS DE DETALHES
============================================ */

.order-detail-card {

    margin-bottom: 18px;

    padding: 25px 27px;

    background: rgba(255, 255, 255, 0.58);

    border: 1px solid rgba(83, 28, 19, 0.12);

}


.detail-card-heading {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;

    margin-bottom: 24px;

}


.detail-label {

    display: block;

    margin-bottom: 8px;

    color: var(--dourado);

    font-size: 0.64rem;

    font-weight: 700;

    letter-spacing: 0.13em;

}


.detail-card-heading h3 {

    margin: 0;

    color: var(--marrom-escuro);

    font-size: 1rem;

}


.detail-information {

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.detail-information p {

    margin: 0;

    color: rgba(36, 20, 15, 0.62);

    font-size: 0.82rem;

    line-height: 1.5;

}


.detail-information .detail-strong {

    color: var(--marrom-escuro);

    font-weight: 700;

}


/* ============================================
   TIMELINE DO PEDIDO
============================================ */

.order-status-timeline {

    display: flex;

    flex-direction: column;

}


.status-step {

    position: relative;

    display: grid;

    grid-template-columns: 24px minmax(0, 1fr);

    gap: 14px;

    min-height: 68px;

}


.status-step:not(:last-child)::before {

    content: "";

    position: absolute;

    left: 7px;

    top: 16px;

    bottom: 0;

    width: 1px;

    background: rgba(83, 28, 19, 0.14);

}


.status-step-dot {

    position: relative;

    z-index: 2;

    width: 15px;

    height: 15px;

    margin-top: 1px;

    border-radius: 50%;

    border: 2px solid rgba(83, 28, 19, 0.2);

    background: var(--creme-claro);

    box-sizing: border-box;

}


.status-step.completed .status-step-dot {

    border-color: var(--marrom);

    background: var(--marrom);

}


.status-step.current .status-step-dot {

    border-color: var(--marrom);

    box-shadow:
        0 0 0 4px rgba(83, 28, 19, 0.08);

}


.status-step strong {

    display: block;

    margin-bottom: 4px;

    color: rgba(36, 20, 15, 0.42);

    font-size: 0.8rem;

}


.status-step span:not(.status-step-dot) {

    display: block;

    color: rgba(36, 20, 15, 0.4);

    font-size: 0.73rem;

    line-height: 1.5;

}


.status-step.completed strong,
.status-step.current strong {

    color: var(--marrom-escuro);

}


.status-step.completed span:not(.status-step-dot),
.status-step.current span:not(.status-step-dot) {

    color: rgba(36, 20, 15, 0.58);

}


/* ============================================
   GRID DE ENTREGA
============================================ */

.order-detail-grid {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 18px;

}


/* ============================================
   RASTREAMENTO
============================================ */

.tracking-box {

    display: flex;

    flex-direction: column;

    gap: 8px;

    margin-top: 15px;

    padding: 15px;

    border: 1px solid rgba(83, 28, 19, 0.12);

    background: rgba(83, 28, 19, 0.035);

}


.tracking-box > span {

    color: rgba(36, 20, 15, 0.45);

    font-size: 0.65rem;

    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;

}


.tracking-box strong {

    color: var(--marrom-escuro);

    font-size: 0.85rem;

    letter-spacing: 0.05em;

}


.tracking-button {

    width: fit-content;

    margin-top: 4px;

    border: 0;

    background: transparent;

    color: var(--marrom);

    padding: 0;

    font-family: inherit;

    font-size: 0.68rem;

    font-weight: 700;

    letter-spacing: 0.07em;

    cursor: pointer;

}


.tracking-button:hover {

    text-decoration: underline;

    text-underline-offset: 4px;

}


/* ============================================
   PAGAMENTO
============================================ */

.payment-information {

    display: flex;

    flex-direction: column;

}


.payment-information-item {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 14px 0;

    border-top: 1px solid rgba(83, 28, 19, 0.08);

}


.payment-information-item:first-child {

    border-top: 0;

    padding-top: 0;

}


.payment-information-item:last-child {

    padding-bottom: 0;

}


.payment-information-item span {

    color: rgba(36, 20, 15, 0.48);

    font-size: 0.74rem;

}


.payment-information-item strong {

    color: var(--marrom-escuro);

    font-size: 0.8rem;

    text-align: right;

}


/* ============================================
   PRODUTOS DO DETALHE
============================================ */

.order-products {

    display: flex;

    flex-direction: column;

}


.order-detail-product {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 16px 0;

    border-top: 1px solid rgba(83, 28, 19, 0.08);

}


.order-detail-product:first-child {

    padding-top: 0;

    border-top: 0;

}


.order-detail-product-image {

    width: 75px;

    height: 85px;

    flex: 0 0 75px;

    object-fit: cover;

    background: var(--creme);

}


.order-detail-product-info {

    flex: 1;

    min-width: 0;

}


.order-detail-product-info h4 {

    margin: 0 0 6px;

    color: var(--marrom-escuro);

    font-size: 0.88rem;

}


.order-detail-product-info p {

    margin: 0;

    color: rgba(36, 20, 15, 0.52);

    font-size: 0.74rem;

    line-height: 1.5;

}


.order-detail-product-price {

    text-align: right;

}


.order-detail-product-price strong {

    color: var(--marrom);

    font-size: 0.85rem;

}


/* ============================================
   TOTAL DO PEDIDO
============================================ */

.order-total-card {

    display: flex;

    flex-direction: column;

    gap: 12px;

    margin-top: 18px;

    padding: 25px 27px;

    background: var(--marrom);

    color: var(--branco);

}


.order-total-card > div {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

}


.order-total-card span {

    font-size: 0.76rem;

    opacity: 0.7;

}


.order-total-card strong {

    font-size: 0.82rem;

}


.order-total-final {

    margin-top: 8px;

    padding-top: 17px;

    border-top: 1px solid rgba(255, 255, 255, 0.18);

}


.order-total-final span {

    color: var(--branco);

    opacity: 1;

    font-size: 0.8rem;

    font-weight: 700;

    letter-spacing: 0.05em;

    text-transform: uppercase;

}


.order-total-final strong {

    color: var(--branco);

    font-size: 1.15rem;

}


/* ============================================
   MEUS DADOS
============================================ */

.account-profile-form {

    max-width: 700px;

}


.account-profile-form .account-button {

    margin-top: 4px;

}


/* ============================================
   ENDEREÇOS
============================================ */

.addresses-list {

    display: flex;

    flex-direction: column;

    gap: 14px;

    margin-bottom: 18px;

}


.address-card {

    position: relative;

    padding: 22px 24px;

    background: rgba(255, 255, 255, 0.58);

    border: 1px solid rgba(83, 28, 19, 0.12);

}


.address-card.default {

    border-color: rgba(83, 28, 19, 0.28);

}


.address-card-label {

    display: inline-block;

    margin-bottom: 10px;

    color: var(--dourado);

    font-size: 0.63rem;

    font-weight: 700;

    letter-spacing: 0.12em;

    text-transform: uppercase;

}


.address-card h3 {

    margin: 0 0 8px;

    color: var(--marrom-escuro);

    font-size: 0.9rem;

}


.address-card p {

    margin: 0;

    color: rgba(36, 20, 15, 0.58);

    font-size: 0.78rem;

    line-height: 1.6;

}


.address-card-actions {

    display: flex;

    gap: 14px;

    margin-top: 17px;

}


.address-card-action {

    border: 0;

    background: transparent;

    color: var(--marrom);

    padding: 0;

    font-family: inherit;

    font-size: 0.67rem;

    font-weight: 700;

    letter-spacing: 0.06em;

    cursor: pointer;

}


.address-card-action:hover {

    text-decoration: underline;

    text-underline-offset: 4px;

}


.address-card-action.delete {

    color: #8a2e20;

}


.add-address-button {

    width: auto;

    min-width: 210px;

}


.address-form {

    max-width: 700px;

    margin-top: 25px;

    padding-top: 28px;

    border-top: 1px solid rgba(83, 28, 19, 0.12);

}


.address-form-heading {

    margin-bottom: 5px;

}


.address-form-heading .account-section-label {

    display: block;

    margin-bottom: 8px;

    color: var(--dourado);

    font-size: 0.64rem;

    font-weight: 700;

    letter-spacing: 0.13em;

}


.address-form-heading h3 {

    margin: 0 0 25px;

    color: var(--marrom-escuro);

    font-size: 1.15rem;

}


.address-form-actions {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;

    margin-top: 5px;

}


/* ============================================
   SEGURANÇA
============================================ */

.security-card {

    max-width: 700px;

    margin-bottom: 18px;

    padding: 27px;

    background: rgba(255, 255, 255, 0.58);

    border: 1px solid rgba(83, 28, 19, 0.12);

}


.security-card-heading {

    margin-bottom: 25px;

}


.security-card-heading h3 {

    margin: 0 0 8px;

    color: var(--marrom-escuro);

    font-size: 1rem;

}


.security-card-heading p {

    margin: 0;

    color: rgba(36, 20, 15, 0.52);

    font-size: 0.8rem;

    line-height: 1.6;

}


.security-card .account-form {

    max-width: 100%;

}


.logout-card {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


.logout-card .security-card-heading {

    margin: 0;

}


.logout-card .account-button {

    width: auto;

    min-width: 160px;

    flex: 0 0 auto;

}


.logout-button {

    background: transparent;

    color: var(--marrom);

}


.logout-button:hover {

    background: var(--marrom);

    color: var(--branco);

}


/* ============================================
   RESPONSIVO — TABLET
============================================ */

@media (max-width: 950px) {

    .account-page {

        padding: 70px 25px 90px;

    }


    .account-layout {

        grid-template-columns: 200px minmax(0, 1fr);

        gap: 35px;

    }


    .account-dashboard-header {

        margin-bottom: 32px;

    }

}


/* ============================================
   RESPONSIVO — MOBILE
============================================ */

@media (max-width: 760px) {

    .account-page {

        padding: 50px 16px 70px;

    }


    .account-card {

        padding: 34px 24px;

    }


    .account-dashboard-header {

        align-items: flex-start;

        margin-bottom: 28px;

        padding-bottom: 25px;

    }


    .account-dashboard-header h1 {

        font-size: 2.35rem;

    }


    .account-layout {

        display: flex;

        flex-direction: column;

        gap: 35px;

    }


    .account-sidebar {

        position: static;

        width: 100%;

    }


    .account-menu {

        display: grid;

        grid-template-columns: 1fr 1fr;

        border-top: 1px solid rgba(83, 28, 19, 0.14);

    }


    .account-menu-item {

        padding: 15px 8px;

        border-right: 1px solid rgba(83, 28, 19, 0.12);

        font-size: 0.66rem;

    }


    .account-menu-item:nth-child(2n) {

        border-right: 0;

    }


    .account-menu-item:hover,
    .account-menu-item.active {

        padding-left: 8px;

    }


    .account-sidebar-actions {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 10px;

        margin-top: 18px;

    }


    .account-sidebar-link {

        font-size: 0.7rem;

    }


    .logout-link {

        grid-column: 1 / -1;

    }


    .form-row {

        grid-template-columns: 1fr;

        gap: 20px;

    }


    .order-card-body {

        grid-template-columns: 1fr;

        gap: 15px;

    }


    .order-card-total {

        align-items: flex-start;

        min-width: 0;

    }


    .order-card-bottom {

        align-items: flex-start;

        flex-direction: column;

    }


    .view-order-button {

        width: 100%;

    }


    .order-detail-grid {

        grid-template-columns: 1fr;

    }


    .logout-card {

        align-items: flex-start;

        flex-direction: column;

        gap: 20px;

    }


    .logout-card .account-button {

        width: 100%;

    }

}


/* ============================================
   RESPONSIVO — CELULAR PEQUENO
============================================ */

@media (max-width: 600px) {

    .account-page {

        min-height: auto;

    }


    .account-card {

        padding: 30px 20px;

    }


    .account-heading h1 {

        font-size: 2rem;

    }


    .account-dashboard-header h1 {

        font-size: 2rem;

    }


    .account-section-header h2 {

        font-size: 1.85rem;

    }


    .account-menu {

        grid-template-columns: 1fr;

    }


    .account-menu-item {

        border-right: 0;

    }


    .account-sidebar-actions {

        grid-template-columns: 1fr;

    }


    .logout-link {

        grid-column: auto;

    }


    .order-card {

        padding: 20px;

    }


    .order-card-top {

        flex-direction: column;

        gap: 12px;

    }


    .order-status-badge {

        align-self: flex-start;

    }


    .order-detail-card {

        padding: 21px;

    }


    .order-detail-product {

        align-items: flex-start;

    }


    .order-detail-product-image {

        width: 62px;

        height: 72px;

        flex-basis: 62px;

    }


    .order-detail-product-price {

        display: none;

    }


    .order-total-card {

        padding: 22px;

    }


    .payment-information-item {

        align-items: flex-start;

        flex-direction: column;

        gap: 5px;

    }


    .payment-information-item strong {

        text-align: left;

    }


    .address-form-actions {

        grid-template-columns: 1fr;

    }


    .add-address-button {

        width: 100%;

    }


    .security-card {

        padding: 22px;

    }

}


/* ============================================
   AJUSTES FINAIS — HEADER / FOOTER
============================================ */

.site-footer .footer-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.site-footer .footer-legal {
    color: var(--marrom);
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    align-self: center;
}

.site-footer .footer-brand {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 25px;
}

.site-footer .footer-brand > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
}

.footer-instagram-icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-instagram-icon svg {
    width: 17px;
    height: 17px;
}

.site-footer .footer-logo {
    width: 105px;
    height: 65px;
    object-fit: contain;
}

/* As seções internas permanecem visíveis quando ativas. */
.account-content {
    min-width: 0;
    overflow: visible;
}

.account-section {
    display: none;
}

.account-section.active {
    display: block;
}

@media (max-width: 760px) {
    .site-footer .footer-inner {
        padding: 0 20px;
    }

    .site-footer .footer-legal {
        white-space: normal;
    }

    .site-footer .footer-brand {
        gap: 16px;
    }

    .site-footer .footer-logo {
        width: 90px;
        height: 58px;
    }
}

/* ============================================
   RODAPÉ — MESMO POSICIONAMENTO DA SACOLA
============================================ */
.site-footer {
    padding: 40px 28px;
}

.site-footer .footer-inner {
    padding: 0;
}


/* ============================================
   MENU HAMBÚRGUER — MINHA CONTA
============================================ */
.account-menu-toggle {
    display: none;
    width: 34px;
    height: 34px;
    padding: 6px;
    margin-left: auto;
    border: 0;
    background: transparent;
    color: var(--marrom);
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    z-index: 210;
}

.account-menu-toggle span {
    display: block;
    width: 21px;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.account-mobile-menu {
    display: none;
}

@media (max-width: 760px) {
    .site-header .header-inner {
        padding: 0 20px;
    }

    .site-header .nav {
        display: none;
    }

    .account-menu-toggle {
        display: flex;
    }

    .account-mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px 22px 16px;
        background: var(--creme-claro);
        border-top: 1px solid rgba(83, 28, 19, .12);
        box-shadow: 0 12px 22px rgba(45, 20, 10, .08);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
        z-index: 200;
    }

    .account-mobile-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .account-mobile-menu a {
        padding: 14px 0;
        color: var(--marrom);
        font-size: 13px;
        border-bottom: 1px solid rgba(83, 28, 19, .12);
    }

    .account-mobile-menu a:last-child {
        border-bottom: 0;
    }

    .account-menu-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .account-menu-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .account-menu-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .account-page {
        padding: 38px 16px 60px;
    }

    body:has(#loginForm:not(.hidden)) .account-page {
        padding: 24px 16px 30px;
    }

    .account-card {
        width: 100%;
        padding: 30px 20px;
    }

    .account-heading h1 {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .account-heading p {
        font-size: .92rem;
    }

    .account-dashboard-header h1 {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.05;
    }

    .account-layout {
        gap: 30px;
    }

    .order-card-top,
    .detail-card-heading {
        flex-wrap: wrap;
    }

    .order-card {
        padding: 20px 16px;
    }
}

@media (max-width: 420px) {
    .account-tabs {
        margin-bottom: 24px;
    }

    .account-tab {
        padding: 14px 5px;
        font-size: .7rem;
        letter-spacing: .08em;
    }

    .form-input {
        min-height: 48px;
        font-size: 16px;
    }
}


/* Sacola — mesmo desenho nítido usado na homepage */
.site-header .header-bag .bag {
    width: 22px;
    height: 25px;
    display: block;
    flex-shrink: 0;
    overflow: visible;
    stroke: currentColor;
    stroke-width: 1.6;
}

/* ============================================
   CORREÇÃO MOBILE — SACOLA AO LADO DO HAMBÚRGUER
============================================ */
@media (max-width: 760px) {
    /* A sacola fica fora do menu recolhido, mas continua dentro do header. */
    .site-header .nav {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        margin-left: auto;
    }

    /* Esconde apenas os links no mobile; preserva a sacola. */
    .site-header .nav > a:not(.header-bag) {
        display: none !important;
    }

    .site-header .nav .header-bag {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: auto;
        min-width: 28px;
        height: 34px;
        margin: 0 8px 0 0;
        padding: 0;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header .nav .header-bag .bag,
    .site-header .nav .header-bag .bag-icon,
    .site-header .nav .header-bag .bag-icon svg {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .site-header .nav .header-bag .bag {
        width: 18px;
        height: 22px;
    }

    .site-header .nav .header-bag .bag-count {
        display: inline-block !important;
        visibility: visible !important;
        opacity: 1 !important;
        font-size: 12px;
        line-height: 1;
    }

    .account-menu-toggle {
        margin-left: 0 !important;
        flex-shrink: 0;
    }
}


/* AJUSTE FINAL — NOME DA MARCA E RODAPÉ */
.header-name { display:inline-flex; align-items:center; color:var(--marrom); font-family:Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif; font-size:22px; font-weight:900; letter-spacing:1.5px; line-height:1; white-space:nowrap; }
.site-footer .footer-inner { display:flex; align-items:center; justify-content:space-between; gap:24px; width:100%; box-sizing:border-box; }
.site-footer .footer-legal { margin:0; color:var(--marrom); font-size:11px; line-height:1.4; }
.site-footer .footer-brand { display:flex; align-items:center; justify-content:flex-end; gap:25px; margin-left:auto; }
@media (max-width:760px) { .header-name { font-size:19px; } .site-footer .footer-inner { gap:14px; } .site-footer .footer-legal { max-width:48%; white-space:normal; } .site-footer .footer-brand { gap:14px; } }


/* ============================================
   AJUSTE FINAL — HEADER IGUAL À HOMEPAGE
============================================ */
.site-header .header-inner {
    position: relative;
}

.site-header .header-bag .bag {
    width: 22px;
    height: 25px;
    display: block !important;
    flex-shrink: 0;
    overflow: visible;
}

.account-menu-toggle {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--marrom);
}

@media (max-width: 760px) {
    .site-header .header-inner {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 0 20px;
    }

    .site-header .header-name {
        font-size: 19px;
        letter-spacing: 1px;
    }

    .site-header .nav {
        display: flex !important;
        margin-left: auto;
        gap: 0;
    }

    .site-header .nav > a:not(.header-bag) {
        display: none !important;
    }

    .site-header .nav .header-bag {
        display: inline-flex !important;
        margin: 0;
        min-width: 28px;
        height: 34px;
        gap: 5px;
    }

    .site-header .nav .header-bag .bag {
        width: 18px;
        height: 22px;
    }

    .account-menu-toggle {
        display: flex !important;
        width: 30px;
        height: 34px;
        padding: 5px 0;
        margin-left: 0 !important;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
    }

    .account-menu-toggle span {
        display: block;
        width: 21px;
        height: 1.5px;
        background: currentColor;
    }

    .account-mobile-menu {
        top: 100%;
    }

    .site-footer .footer-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .site-footer .footer-legal {
        flex: 1 1 auto;
        max-width: none;
        white-space: normal;
    }

    .site-footer .footer-brand {
        flex: 0 0 auto;
        margin-left: auto;
        align-items: center;
    }
}


/* =========================================================
   CERRADENSE — PADRÃO HOME
   HEADER + MENU MOBILE + FOOTER
   ========================================================= */

/* HEADER */
.site-header {
    background: var(--creme-claro, #F2E4C9) !important;
    color: #510F02 !important;
    position: relative;
    z-index: 1000;
}

.site-header .header-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 18px;
    box-sizing: border-box;
}

.site-header .site-logo {
    width: 190px !important;
    height: auto !important;
    max-height: 58px !important;
    object-fit: contain;
}

.site-header .nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(18px, 2.2vw, 34px);
    margin-left: auto;
}

.site-header .nav > a {
    font-family: "Jolly Lodger", cursive !important;
    color: #510F02 !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    letter-spacing: .01em;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .header-name {
    font-family: "Xilosa", sans-serif !important;
    color: #510F02 !important;
    font-weight: 400 !important;
    font-synthesis: none;
}

.site-header .header-bag {
    color: #510F02 !important;
}

/* MENU HAMBÚRGUER */
.account-menu-toggle {
    display: none;
    width: 28px;
    height: 24px;
    padding: 0;
    margin-left: 10px;
    border: 0;
    background: transparent;
    color: #510F02;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    flex: 0 0 auto;
    z-index: 1201;
}

.account-menu-toggle span {
    display: block;
    width: 100%;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.account-mobile-menu {
    display: none;
}

.account-menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}
.account-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.account-menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}

/* FOOTER — EXATAMENTE O MESMO SISTEMA VISUAL */
.footer {
    padding: 52px var(--margem-site, 6%) 28px !important;
    color: #510F02;
    background: var(--creme, #F2E4C9);
    box-sizing: border-box;
    width: 100%;
}

.footer-inner {
    display: block !important;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.footer-trust {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr) !important;
    gap: 52px !important;
    align-items: center !important;
    padding-bottom: 38px !important;
}

.footer-payment { min-width: 0; padding-left: 30px; }

.footer-section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.footer-lock-icon {
    width: 24px;
    height: 28px;
    fill: none;
    stroke: #510F02;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-section-label,
.footer .footer-benefit strong {
    font-family: "Xilosa", sans-serif !important;
    color: #510F02 !important;
    font-size: 16px;
    font-weight: 400 !important;
    letter-spacing: .08em;
}

.footer-payment-text,
.footer .footer-benefit span {
    font-family: "Space Grotesk", sans-serif !important;
    color: #1E1B18 !important;
}

.footer-payment-text {
    font-size: 17px;
    line-height: 1.4;
    margin: 0 0 25px;
}

.payment-logos {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 0;
}

.payment-logo {
    min-width: 78px;
    min-height: 43px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(81,15,2,.18);
    background: rgba(255,255,255,.32);
    color: #510F02;
    border-radius: 4px;
    font-weight: 700;
    line-height: .9;
}

.payment-logo-mercado { font-size: 10px; text-align: left; }
.payment-logo-pix { font-size: 22px; text-transform: lowercase; }
.payment-logo-visa { font-size: 23px; font-style: italic; letter-spacing: -.08em; }
.payment-logo-master { font-size: 9px; text-transform: lowercase; flex-direction: column !important; gap: 3px !important; }

.footer-benefits {
    border-left: 1px solid rgba(81,15,2,.25) !important;
    padding-left: 42px;
    display: grid !important;
    gap: 22px;
}

.footer-benefit { display: flex; align-items: center; gap: 17px; }
.footer-benefit svg {
    width: 30px; height: 30px; flex: 0 0 30px;
    fill: none; stroke: #510F02; stroke-width: 1.5;
    stroke-linecap: round; stroke-linejoin: round;
}
.footer-benefit strong, .footer-benefit span { display: block; }
.footer-benefit strong { margin-bottom: 4px; }
.footer-benefit span { font-size: 15px; line-height: 1.25; }

.footer-bottom {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px;
    margin: 0 !important;
    padding-top: 24px !important;
    padding-bottom: 0 !important;
    border-top: 1px solid rgba(81,15,2,.25) !important;
    border-bottom: 0 !important;
    color: #510F02 !important;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 11px;
    line-height: 1.45;
}
.footer-bottom > span { flex: 1 1 auto; min-width: 0; }
.footer-bottom .footer-brand {
    display: flex; align-items: center; justify-content: flex-end;
    gap: 25px; flex: 0 0 auto;
}
.footer-bottom .footer-instagram {
    display: inline-flex; align-items: center; gap: 8px;
    color: #510F02 !important;
    font-family: "Space Grotesk", sans-serif !important;
    font-size: 13px; white-space: nowrap;
    position: relative; left: 28px;
}
.footer-bottom .footer-logo {
    display: block; width: 105px; height: 65px; object-fit: contain;
}
.master-mark { display:flex !important; align-items:center; justify-content:center; height:20px; }
.master-mark i { display:block; width:20px; height:20px; border-radius:50%; background:#c94c35; }
.master-mark i + i { margin-left:-7px; background:#d49a31; mix-blend-mode:multiply; }

@media (max-width: 650px) {
    .site-header .header-inner {
        min-height: 68px;
        height: 68px;
        padding: 0 18px;
    }
    .site-header .site-logo {
        width: 125px !important;
        max-height: 48px !important;
    }
    .site-header .nav {
        display: flex !important;
        align-items: center;
        justify-content: flex-end;
        gap: 0;
        margin-left: auto;
    }
    .site-header .nav > a:not(.header-bag) { display: none !important; }
    .site-header .nav .header-bag { display: inline-flex !important; }
    .account-menu-toggle { display: flex !important; }
    .account-mobile-menu {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 68px;
        right: 0;
        width: min(320px, 86vw);
        height: calc(100vh - 68px);
        z-index: 1200;
        padding: 18px 24px 30px;
        box-sizing: border-box;
        background: #F2E4C9;
        color: #510F02;
        box-shadow: -12px 0 35px rgba(25,18,13,.14);
        transform: translateX(105%);
        transition: transform .22s ease;
        visibility: hidden;
    }
    .account-mobile-menu.open {
        transform: translateX(0);
        visibility: visible;
    }
    .account-mobile-menu a {
        display: block;
        padding: 17px 0;
        color: #510F02 !important;
        font-family: "Jolly Lodger", cursive !important;
        font-size: 20px !important;
        font-weight: 400 !important;
        text-decoration: none;
        border-bottom: 1px solid rgba(81,15,2,.14);
    }
    .account-mobile-menu a:last-child { border-bottom: 0; }

    .footer { padding: 38px 20px 22px !important; }
    .footer-trust { grid-template-columns: 1fr !important; gap: 34px !important; padding-bottom: 30px !important; }
    .footer-payment { padding-left: 0; }
    .footer-payment-text, .payment-logos { margin-left: 0; }
    .footer-payment-text { font-size: 16px; }
    .payment-logos { gap: 8px; }
    .payment-logo { padding: 6px 9px; min-height: 40px; }
    .footer-benefits { border-left: 0 !important; border-top: 1px solid rgba(81,15,2,.25) !important; padding: 28px 0 0; gap: 20px; }
    .footer-benefit { align-items: flex-start; }
    .footer-benefit strong { font-size: 15px; }
    .footer-benefit span { font-size: 14px; }
    .footer-bottom { flex-direction: row !important; gap: 12px !important; text-align: left !important; }
    .footer-bottom > span { flex: 1 1 auto !important; min-width: 0 !important; font-size: 10px !important; line-height: 1.45; }
    .footer-bottom .footer-brand { flex: 0 0 auto !important; gap: 12px !important; }
    .footer-bottom .footer-instagram { gap: 6px !important; font-size: 11px !important; left: 0 !important; }
    .footer-bottom .footer-logo { width: 58px !important; height: 52px !important; }
}

/* =========================================================
   AJUSTE FINAL — MENU HAMBÚRGUER MOBILE
   Mesmo padrão da Home: Jolly Lodger + vinho-terra.
   Afeta somente o menu aberto no responsivo.
   ========================================================= */
@media (max-width: 650px) {
  .account-mobile-menu,
  .account-mobile-menu a,
  .account-mobile-menu a:visited,
  .account-mobile-menu a:hover,
  .account-mobile-menu a:focus,
  .account-mobile-menu a:active {
    font-family: "Jolly Lodger", cursive !important;
    color: #510F02 !important;
  }

  .account-mobile-menu a {
    font-size: 20px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: 0 !important;
  }
}

/* =========================================================
   MINHA CONTA — TIPOGRAFIA E CORES DO PADRÃO CERRADENSE
   Conteúdo logado: Space Grotesk + vinho-terra.
   Rótulos de seção: Xilosa + mostarda.
   ========================================================= */
.account-dashboard,
.account-dashboard * {
    font-family: "Space Grotesk", sans-serif !important;
    color: #510F02;
}

/* Mantém pesos existentes (negritos continuam negritos). */
.account-dashboard strong,
.account-dashboard b,
.account-dashboard .account-menu-item,
.account-dashboard .account-sidebar-link,
.account-dashboard .order-card-number,
.account-dashboard .order-card-total strong,
.account-dashboard .status-step strong,
.account-dashboard .detail-strong {
    font-family: "Space Grotesk", sans-serif !important;
}

/* Rótulos em mostarda, seguindo o padrão visual da Home. */
.account-dashboard .account-section-label,
.account-dashboard .section-label,
.account-dashboard .detail-label,
.account-dashboard .status-label,
.account-dashboard .order-card-date,
.account-dashboard .order-card-total span,
.account-dashboard .account-sidebar-link {
    color: #BE8220 !important;
}

/* MINHA CERRADENSE: Xilosa, caixa alta, mostarda. */
.account-dashboard .account-section-header .account-section-label {
    font-family: "Xilosa", sans-serif !important;
    color: #BE8220 !important;
    font-size: 16px !important;
    font-weight: 400 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
}

/* Títulos e textos principais. */
.account-dashboard .account-dashboard-header h1,
.account-dashboard .account-section-header h2,
.account-dashboard .account-section-header h3,
.account-dashboard .account-dashboard-header p,
.account-dashboard .account-section-header p,
.account-dashboard .account-menu-item,
.account-dashboard .account-sidebar-link,
.account-dashboard .order-card,
.account-dashboard .order-card * {
    font-family: "Space Grotesk", sans-serif !important;
}

.account-dashboard .account-dashboard-header h1,
.account-dashboard .account-section-header h2,
.account-dashboard .account-section-header h3 {
    color: #510F02 !important;
}

.account-dashboard .account-dashboard-header p,
.account-dashboard .account-section-header p,
.account-dashboard .order-card-date,
.account-dashboard .order-card-product-meta,
.account-dashboard .empty-state p,
.account-dashboard .detail-information,
.account-dashboard .status-step span {
    color: rgba(81,15,2,.68) !important;
}

/* Botões da área logada permanecem Space Grotesk, sem alterar a lógica. */
.account-dashboard button,
.account-dashboard a.account-button,
.account-dashboard .account-button,
.account-dashboard .back-account-button {
    font-family: "Space Grotesk", sans-serif !important;
}

/* Inputs e dados da conta. */
.account-dashboard input,
.account-dashboard select,
.account-dashboard textarea,
.account-dashboard label {
    font-family: "Space Grotesk", sans-serif !important;
}

/* O verde continua reservado aos status de pagamento aprovados. */
.account-dashboard .status-success,
.account-dashboard .payment-approved,
.account-dashboard [class*="approved"] {
    color: #286d4f;
}


/* =========================================================
   TELA DE LOGIN / CADASTRO — PADRÃO CERRADENSE
   Ajustes somente na autenticação e no scroll da página.
   ========================================================= */

/* A tela de autenticação precisa permitir rolagem para que o footer
   completo continue acessível em qualquer altura de viewport. */
html,
body {
    min-height: 100%;
    overflow-x: hidden;
}

body:has(#authCard:not(.hidden)):has(#loginForm:not(.hidden)) {
    overflow-x: hidden;
    overflow-y: auto !important;
}

body:has(#authCard:not(.hidden)) .account-page {
    flex: 1 0 auto;
    min-height: auto !important;
    display: block;
    padding: 70px 40px 70px;
}

body:has(#authCard:not(.hidden)) .account-card {
    margin: 0 auto;
}

/* Tudo da tela de entrada/cadastro usa Space Grotesk por padrão. */
#authCard,
#authCard button,
#authCard input,
#authCard label,
#authCard p,
#authCard span,
#authCard a,
#authCard h1 {
    font-family: "Space Grotesk", sans-serif !important;
}

/* Nome da marca: Xilosa, caixa alta e vinho-terra. */
#authCard .account-heading .section-label {
    display: inline-block;
    font-family: "Xilosa", sans-serif !important;
    color: #510F02 !important;
    font-size: 20px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
}

/* Título principal: Space Grotesk + mostarda. */
#authCard .account-heading h1 {
    font-family: "Space Grotesk", sans-serif !important;
    color: #BE8220 !important;
    font-weight: 600 !important;
}

/* Texto explicativo e demais textos da autenticação. */
#authCard .account-heading p,
#authCard .account-tab,
#authCard .form-label,
#authCard .form-input,
#authCard .form-help,
#authCard .password-toggle,
#authCard .forgot-password,
#authCard .account-message,
#authCard .account-terms {
    font-family: "Space Grotesk", sans-serif !important;
    color: #510F02;
}

#authCard .account-heading p,
#authCard .form-help,
#authCard .account-terms {
    color: rgba(81,15,2,.72) !important;
}

#authCard .account-tab {
    color: rgba(81,15,2,.58) !important;
}

#authCard .account-tab.active {
    color: #510F02 !important;
}

#authCard .account-tab.active::after {
    background: #510F02 !important;
}

#authCard .form-label {
    color: #510F02 !important;
}

#authCard .form-input {
    color: #510F02 !important;
}

#authCard .password-toggle,
#authCard .forgot-password {
    color: #510F02 !important;
}

/* Botão ENTRAR: Jolly Lodger + vinho-terra + areia. */
#loginButton {
    font-family: "Jolly Lodger", cursive !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: .02em !important;
    color: #F2E4C9 !important;
    background: #510F02 !important;
    border-color: #510F02 !important;
    font-style: normal !important;
}

#loginButton:hover {
    background: #510F02 !important;
    border-color: #510F02 !important;
    color: #F2E4C9 !important;
}

/* Botão CRIAR MINHA CONTA: Jolly Lodger + vinho-terra + areia. */
#registerButton {
    font-family: "Jolly Lodger", cursive !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: .02em !important;
    color: #F2E4C9 !important;
    background: #510F02 !important;
    border-color: #510F02 !important;
    font-style: normal !important;
}

#registerButton:hover {
    background: #510F02 !important;
    border-color: #510F02 !important;
    color: #F2E4C9 !important;
}

/* Mantém a mesma correção também quando o cadastro estiver ativo. */
@media (max-width: 760px) {
    body:has(#authCard:not(.hidden)) {
        overflow-y: auto !important;
    }

    body:has(#authCard:not(.hidden)) .account-page {
        padding: 38px 16px 60px !important;
        min-height: auto !important;
        display: block !important;
    }

    #authCard .account-heading .section-label {
        font-size: 19px !important;
    }

    #authCard .account-heading h1 {
        font-size: clamp(2rem, 9vw, 2.5rem) !important;
    }
}

/* Ajuste final — botões de autenticação no padrão Cerradense. */
#authCard #loginButton,
#authCard #registerButton {
    font-family: "Jolly Lodger", cursive !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: .02em !important;
    font-style: normal !important;
    color: #F2E4C9 !important;
    background: #510F02 !important;
    border-color: #510F02 !important;
}

/* =========================================================
   CORREÇÃO — MENU DA MINHA CONTA IGUAL À HOME
   O menu usa exatamente o mesmo painel lateral da homepage.
   ========================================================= */
@media (max-width: 768px) {
    .account-mobile-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: auto !important;
        width: min(320px, 86vw) !important;
        height: 100% !important;
        max-height: none !important;
        overflow-y: auto;
        z-index: 1200 !important;
        padding: 70px 24px 30px !important;
        box-sizing: border-box;
        background: #F2E4C9 !important;
        color: #510F02 !important;
        box-shadow: -12px 0 35px rgba(25, 18, 13, .14) !important;
        transform: translateX(105%) !important;
        transition: transform .22s ease, visibility .22s ease !important;
        visibility: hidden !important;
        opacity: 1 !important;
        pointer-events: none !important;
    }

    .account-mobile-menu.open {
        transform: translateX(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .account-mobile-menu a {
        display: block;
        padding: 17px 0;
        color: #510F02 !important;
        font-family: "Jolly Lodger", cursive !important;
        font-size: 20px !important;
        font-weight: 400 !important;
        font-style: normal !important;
        letter-spacing: 0 !important;
        text-decoration: none;
        border-bottom: 1px solid rgba(81,15,2,.14);
    }

    .account-mobile-menu a:last-child {
        border-bottom: 0;
    }

    .account-mobile-menu-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: 18px;
        right: 20px;
        width: 34px;
        height: 34px;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        color: #510F02 !important;
        font-family: "Space Grotesk", sans-serif !important;
        font-size: 30px !important;
        font-weight: 400 !important;
        font-style: normal !important;
        line-height: 1;
        cursor: pointer;
        z-index: 2;
    }

    .account-mobile-menu-close:hover {
        opacity: .65;
    }
}

/* =========================================================
   CORREÇÃO DEFINITIVA — BOTÕES ESPECÍFICOS DA ÁREA LOGADA
   ========================================================= */
#saveProfileButton,
#addAddressButton,
#changePasswordButton {
    font-family: "Jolly Lodger", cursive !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: .02em !important;
    color: #F2E4C9 !important;
    background: #510F02 !important;
    border: 1px solid #510F02 !important;
    border-color: #510F02 !important;
}

#saveProfileButton:hover,
#addAddressButton:hover,
#changePasswordButton:hover,
#saveProfileButton:focus,
#addAddressButton:focus,
#changePasswordButton:focus,
#saveProfileButton:active,
#addAddressButton:active,
#changePasswordButton:active {
    font-family: "Jolly Lodger", cursive !important;
    color: #F2E4C9 !important;
    background: #510F02 !important;
    border-color: #510F02 !important;
}


/* =========================================================
   AJUSTE CIRÚRGICO — DOIS BOTÕES FORA DO PADRÃO
   ========================================================= */

.account-dashboard .empty-state-button,
.account-dashboard #saveAddressButton {
    font-family: "Jolly Lodger", cursive !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
    color: #F2E4C9 !important;
    background: #510F02 !important;
    border: 1px solid #510F02 !important;
}

.account-dashboard .empty-state-button:hover,
.account-dashboard #saveAddressButton:hover,
.account-dashboard .empty-state-button:focus,
.account-dashboard #saveAddressButton:focus,
.account-dashboard .empty-state-button:active,
.account-dashboard #saveAddressButton:active {
    color: #F2E4C9 !important;
    background: #510F02 !important;
    border-color: #510F02 !important;
}


/* Ajuste final — a regra geral da área logada estava sobrescrevendo
   a fonte do botão "CONHECER A COLEÇÃO". */
.account-dashboard a.account-button.empty-state-button {
    font-family: "Jolly Lodger", cursive !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    letter-spacing: 0.02em !important;
}
