/* Customer menu and account area */
.site-header__inner { grid-template-columns: 300px minmax(240px,1fr) auto auto auto auto; }
.header-tools { gap: 3px; padding: 3px; border: 1px solid rgba(18,58,82,.08); border-radius: 999px; background: #f8fbfb; }
.header-cta { box-shadow: 0 8px 20px rgba(18,58,82,.12); transition: transform .24s cubic-bezier(.22,1,.36,1),box-shadow .24s,background .24s; }
.header-cta:hover { background: linear-gradient(120deg,var(--navy),#1d6073); box-shadow: 0 13px 28px rgba(18,58,82,.2); transform: translateY(-2px); }
.account-menu { position: relative; z-index: 110; }
.account-menu summary { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 4px 10px 4px 5px; border: 1px solid rgba(18,58,82,.1); border-radius: 999px; color: var(--navy); background: #fff; cursor: pointer; list-style: none; transition: border-color .2s,box-shadow .2s,transform .2s; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover,.account-menu[open] summary { border-color: rgba(36,163,150,.38); box-shadow: 0 8px 21px rgba(18,58,82,.11); transform: translateY(-1px); }
.account-menu__icon { display: grid; flex: 0 0 34px; height: 34px; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(145deg,var(--teal-dark),#79cec7); }
.account-menu__icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.account-menu__label { display: grid; min-width: 82px; }.account-menu__label small { color: var(--muted); font-size: var(--fs-2xs); line-height: 1.1; }.account-menu__label strong { overflow: hidden; max-width: 105px; font-size: var(--fs-2xs); line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__chevron { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .25s; }.account-menu[open] .account-menu__chevron { transform: rotate(180deg); }
.account-menu__dropdown { position: absolute; right: 0; top: calc(100% + 11px); width: 285px; overflow: hidden; padding: 10px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 24px 55px rgba(11,43,58,.2); animation: account-menu-in .24s cubic-bezier(.22,1,.36,1) both; }
.account-menu__dropdown::before { content: ""; position: absolute; right: 23px; top: -6px; width: 12px; height: 12px; border: 1px solid var(--line); border-right: 0; border-bottom: 0; background: #fff; transform: rotate(45deg); }
.account-menu__guest { padding: 13px 12px 17px; text-align: center; }.account-menu__guest-icon { display: grid; width: 46px; height: 46px; margin: 0 auto 10px; place-items: center; border-radius: 14px; color: #fff; background: linear-gradient(145deg,var(--navy),#236b78); font-size: var(--fs-xs); font-weight: 900; }.account-menu__guest strong { display: block; color: var(--navy); font-size: var(--fs-sm); }.account-menu__guest p { margin: 5px 0 0; color: var(--muted); font-size: var(--fs-2xs); line-height: 1.5; }
.account-menu__dropdown > a { display: grid; gap: 2px; min-height: 47px; align-content: center; padding: 0 12px; border-radius: 10px; color: var(--navy); font-size: var(--fs-2xs); font-weight: 800; transition: background .18s,transform .18s; }.account-menu__dropdown > a:hover { background: var(--teal-pale); transform: translateX(2px); }.account-menu__dropdown > a small { color: var(--muted); font-size: var(--fs-2xs); font-weight: 500; }
.account-menu__dropdown .account-menu__primary,.account-menu__dropdown .account-menu__secondary { display: flex; align-items: center; justify-content: center; min-height: 42px; }.account-menu__dropdown .account-menu__primary { color: #fff; background: var(--navy); }.account-menu__dropdown .account-menu__primary:hover { color: #fff; background: var(--teal-dark); }.account-menu__dropdown .account-menu__secondary { margin-top: 5px; border: 1px solid var(--line); }
.account-menu__welcome { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; padding: 10px; border-radius: 11px; background: var(--surface); }.account-menu__welcome > span { display: grid; flex: 0 0 38px; height: 38px; place-items: center; border-radius: 50%; color: #fff; background: var(--teal-dark); font-size: var(--fs-sm); font-weight: 800; }.account-menu__welcome div { display: grid; min-width: 0; }.account-menu__welcome strong { overflow: hidden; color: var(--navy); font-size: var(--fs-xs); text-overflow: ellipsis; white-space: nowrap; }.account-menu__welcome small { overflow: hidden; color: var(--muted); font-size: var(--fs-2xs); text-overflow: ellipsis; white-space: nowrap; }
.account-menu__dropdown form { margin: 7px 0 0; padding-top: 7px; border-top: 1px solid var(--line); }.account-menu__dropdown form button { width: 100%; min-height: 36px; border: 0; border-radius: 9px; color: #a0444c; background: #fff5f5; font-size: var(--fs-2xs); font-weight: 800; cursor: pointer; }
@keyframes account-menu-in { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.customer-auth-main { display: grid; min-height: 68vh; place-items: center; padding: 65px 20px 85px; background: radial-gradient(circle at 85% 12%,rgba(111,200,195,.24),transparent 30%),linear-gradient(135deg,#eff8f7,#f8fbfb); }
.customer-auth-card { width: min(460px,100%); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 26px 70px rgba(18,58,82,.13); }.customer-auth-card--wide { width: min(650px,100%); }
.customer-auth-intro { margin-bottom: 25px; text-align: center; }.customer-auth-icon { display: grid; width: 54px; height: 54px; margin: 0 auto 14px; place-items: center; border-radius: 17px; color: #fff; background: linear-gradient(145deg,var(--navy),var(--teal-dark)); font-size: 22px; box-shadow: 0 12px 25px rgba(18,58,82,.18); }.customer-auth-intro h1 { margin: 8px 0 6px; font-size: 30px; }.customer-auth-intro p { margin: 0; color: var(--muted); font-size: var(--fs-2xs); line-height: 1.55; }
.customer-form { display: grid; gap: 13px; }.customer-form--grid { grid-template-columns: 1fr 1fr; }.customer-form .is-wide { grid-column: 1 / -1; }.customer-form label > span { display: block; margin-bottom: 6px; color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; }.customer-form input { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; outline: 0; }.customer-form input:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 4px rgba(36,163,150,.09); }.customer-form label small { display: block; margin-top: 5px; color: var(--muted); font-size: var(--fs-2xs); }
/* Endereco opcional da ficha: este formulario nao tinha select, e o aviso
   sobre o endereco do pedido fica fora de qualquer label. */
.customer-form select { width: 100%; height: 45px; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: #fff; outline: 0; }
.customer-form select:focus { border-color: var(--teal-dark); box-shadow: 0 0 0 4px rgba(36,163,150,.09); }
.customer-form > small { color: var(--muted); font-size: var(--fs-2xs); line-height: 1.55; }
.customer-form > .customer-danger-link { min-height: 0; margin-top: 11px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--muted); font-size: var(--fs-2xs); font-weight: 700; text-decoration: underline; cursor: pointer; box-shadow: none; }
.customer-form > .customer-danger-link:hover { color: #b4382f; }.customer-form > button { min-height: 47px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(120deg,var(--navy),#1e6371); font-size: var(--fs-xs); font-weight: 800; cursor: pointer; box-shadow: 0 11px 24px rgba(18,58,82,.16); }
.customer-check { display: flex; align-items: flex-start; gap: 9px; }.customer-check input { flex: 0 0 17px; width: 17px; height: 17px; margin-top: 1px; accent-color: var(--teal-dark); }.customer-check > span { margin: 0!important; color: var(--muted)!important; font-size: var(--fs-2xs)!important; font-weight: 500!important; line-height: 1.55; text-transform: none!important; }.customer-check a { color: var(--teal-dark); font-weight: 800; text-decoration: underline; }.customer-auth-switch { display: flex; justify-content: center; gap: 6px; margin-top: 22px; padding-top: 19px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-2xs); }.customer-auth-switch a { color: var(--teal-dark); font-weight: 800; }
.customer-alert { grid-column: 1 / -1; padding: 13px 15px; border: 1px solid #bde6de; border-radius: 11px; color: #176d5c; background: #edfaf7; font-size: var(--fs-2xs); font-weight: 700; }.customer-alert--error { border-color: #f0c5c8; color: #973139; background: #fff2f3; }
.customer-account-main { min-height: 68vh; padding-bottom: 85px; background: #f6faf9; }.customer-account-hero { padding: 50px 0; color: #fff; background: radial-gradient(circle at 88% 20%,rgba(111,200,195,.25),transparent 27%),linear-gradient(120deg,var(--navy),#1d6171); }.customer-account-hero .container { display: flex; align-items: center; justify-content: space-between; gap: 25px; }.customer-account-hero h1 { margin: 8px 0 5px; color: #fff; font-size: 38px; }.customer-account-hero p { margin: 0; color: #c2d6dc; font-size: var(--fs-xs); }.customer-account-hero form button { min-height: 39px; padding: 0 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 99px; color: #fff; background: rgba(255,255,255,.08); font-size: var(--fs-2xs); font-weight: 800; cursor: pointer; }
.customer-account-grid { display: grid; grid-template-columns: .75fr 1.25fr; align-items: start; gap: 20px; padding-top: 30px; }.customer-panel { padding: 25px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }.customer-panel__heading { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 20px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }.customer-panel__heading > span { display: grid; flex: 0 0 33px; height: 33px; place-items: center; border-radius: 9px; color: var(--teal-dark); background: var(--teal-pale); font-size: var(--fs-2xs); font-weight: 800; }.customer-panel__heading h2 { margin: 0 0 4px; font-size: 19px; }.customer-panel__heading p { margin: 0; color: var(--muted); font-size: var(--fs-2xs); }
.customer-orders { display: grid; gap: 9px; }.customer-orders article { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 17px; padding: 14px; border: 1px solid var(--line); border-radius: 11px; }.customer-orders article div { display: grid; }.customer-orders article small,.customer-orders article span { color: var(--muted); font-size: var(--fs-2xs); }.customer-orders article div strong { color: var(--navy); font-size: var(--fs-2xs); }.customer-orders article > b { padding: 6px 9px; border-radius: 99px; color: var(--teal-dark); background: var(--teal-pale); font-size: var(--fs-2xs); }.customer-orders article > strong { color: var(--navy); font-size: var(--fs-sm); }.customer-orders-empty { padding: 42px 20px; text-align: center; }.customer-orders-empty > span { font-size: 31px; }.customer-orders-empty h3 { margin: 11px 0 5px; }.customer-orders-empty p { margin: 0 0 16px; color: var(--muted); font-size: var(--fs-2xs); }.customer-orders-empty a { display: inline-flex; min-height: 38px; align-items: center; padding: 0 14px; border-radius: 99px; color: #fff; background: var(--navy); font-size: var(--fs-2xs); font-weight: 800; }

@media(max-width:1050px){.site-header__inner{grid-template-columns:185px minmax(190px,1fr) auto auto auto auto;gap:8px}.account-menu__label,.account-menu__chevron{display:none}.account-menu summary{width:44px;padding:4px}.favorites-grid{grid-template-columns:1fr}}
@media(max-width:900px){.site-header__inner{grid-template-columns:1fr auto auto auto auto}.account-menu{grid-column:2;grid-row:1}.header-tools{grid-column:3;grid-row:1}.header-cta{grid-column:4;grid-row:1}.nav-toggle{grid-column:5;grid-row:1}.header-search{grid-column:1/-1}.customer-account-grid{grid-template-columns:1fr}}
@media(max-width:620px){.site-header__inner{grid-template-columns:1fr auto auto auto;gap:5px}.brand,.brand img{width:130px}.account-menu{grid-column:2}.header-tools{grid-column:3;padding:2px}.header-tool{width:32px;height:32px}.header-tool svg{width:18px;height:18px}.account-menu summary{width:38px;min-height:38px}.account-menu__icon{flex-basis:30px;height:30px}.account-menu__dropdown{position:fixed;left:12px;right:12px;top:70px;width:auto}.header-cta{display:none}.nav-toggle{grid-column:4}.customer-auth-main{padding:35px 12px 65px}.customer-auth-card{padding:29px 22px}.customer-form--grid{grid-template-columns:1fr}.customer-form .is-wide{grid-column:1}.customer-account-hero .container{align-items:flex-start;flex-direction:column}.customer-account-hero h1{font-size:32px}.customer-account-grid{padding-top:18px}.customer-panel{padding:20px}.customer-orders article{grid-template-columns:1fr auto}.customer-orders article>strong{grid-column:2}.customer-orders article>b{grid-column:1;grid-row:2;justify-self:start}}

/* Rastreio na lista de pedidos do cliente */
.customer-order-tracking { display: block; margin-top: 4px; color: var(--muted); font-size: var(--fs-2xs); }
.customer-order-tracking a { color: var(--teal-dark, #16755f); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.customer-order-link { color: var(--teal-dark, #16755f); font-size: var(--fs-2xs); font-weight: 800; }
/* Retomada de pagamento: só aparece em pedido aguardando pagamento, e é a
   única saída de quem desistiu no provedor — o carrinho já foi esvaziado. */
.customer-order-retry { margin-top: 6px; }
.customer-order-retry button { padding: 7px 13px; border: 0; border-radius: 99px; color: #fff; background: var(--navy); font-size: var(--fs-2xs); font-weight: 800; cursor: pointer; }
.customer-order-retry button:hover { background: var(--navy-3, #1c4e66); }
.customer-notify { margin: 4px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.customer-notify legend { padding: 0 6px; color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.customer-notify .customer-check { display: flex; align-items: center; gap: 9px; margin-top: 6px; font-size: var(--fs-xs); }
.customer-notify small { display: block; margin-top: 10px; color: var(--muted); font-size: var(--fs-2xs); line-height: 1.6; }
/* Link de recuperação: discreto sob o botão, sem competir com ele */
.customer-auth-forgot { margin: 12px 0 0; text-align: center; }
.customer-auth-forgot a { color: var(--muted, #6b7c85); font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.customer-auth-forgot a:hover { color: var(--teal-dark, #0f8a80); }
