/* =========================================================
   header cliente
   ========================================================= */

.cliente-header {
    position: relative;
    color: #222;
    background: #fff;
    box-shadow: none;
    overflow: visible;
    border-bottom: 1px solid #ececec;
    transition: opacity 220ms ease, transform 220ms ease;
}

.cliente-header.is-refreshing {
    opacity: 0.45;
    pointer-events: none;
    transform: translateY(4px);
}

.cliente-header::before {
    display: none;
}

.cliente-header .container {
    position: relative;
    z-index: 2;
}

.cliente-header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: calc(10px + env(safe-area-inset-top)) 0 8px;
}

.cliente-brand {
    grid-column: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 44px;
}

.cliente-brand-logo {
    display: block;
    height: 38px;
    width: auto;
    max-width: 126px;
    object-fit: contain;
    animation: clienteLogoDrop 0.45s ease forwards;
    will-change: transform, opacity;
}

@keyframes clienteLogoDrop {
    from {
        opacity: 0;
        transform: translateX(-14px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.cliente-header-actions {
    grid-column: 2;
    justify-self: end;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 7px;
    min-width: 0;
    margin-top: 4;
    margin-right: 2px;
}

.cliente-header-icons-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.cliente-header-delivery-btn {
    color: #252525;
}

.cliente-account-app-action,
.cliente-header-icon-btn {
    position: relative;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #f4f4f5;
    color: #252525;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: none;
    font-size: 18px;
    flex: 0 0 auto;
}

.cliente-account-app-action:active,
.cliente-header-icon-btn:active {
    transform: scale(0.96);
}

.cliente-header-location-btn,
.cliente-header-notification-btn {
    color: #252525;
}

.cliente-account-app-action-badge,
.cliente-header-notification-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 16px;
    height: 16px;
    padding: 0 5px;
    border-radius: 3px;
    background: #e31b46;
    color: #fff;
    border: 0.5px solid #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
}

.cliente-header-location-small {
    max-width: 180px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #667085;
    display: block;
    font-size: 12px;
    line-height: 1.25;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    margin-top: 0;
    text-transform: lowercase;
}

.cliente-header-location-small:hover {
    color: #e31b46;
}

/* compatibilidade: classes antigas nao usadas no novo header */
.cliente-header-quick-info,
.cliente-header-location-chip,
.cliente-header-location-icon,
.cliente-header-location-text-wrap,
.cliente-header-location-label,
.cliente-header-location-text,
.cliente-header-location-caret {
    min-width: 0;
}

/* =========================================================
   botalocalizaçao atual
   ========================================================= */

.cliente-location-actions {
    margin-top: 16px;
    margin-bottom: 12px;
}

.cliente-location-current-btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: #e31b46;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 900;
    text-align: center;
    text-transform: lowercase;
    box-shadow: none;
}

.cliente-location-current-btn:disabled,
.cliente-location-current-btn.is-loading {
    opacity: 0.72;
    cursor: default;
}

.cliente-location-current-btn-icon {
    flex: 0 0 auto;
    font-size: 15px;
}

.cliente-location-current-btn-text {
    line-height: 1.2;
}

/* =========================================================
   carrinho
   ========================================================= */

.cliente-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cliente-cart-link-header {
    background: #f4f4f5;
    color: #252525;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    min-height: 40px;
    justify-content: center;
}

.cliente-cart-link-header i {
    font-size: 16px;
}

.cliente-cart-link-header.is-active {
    background: rgba(227, 27, 70, 0.08);
    color: #e31b46;
}

.cliente-cart-count {
    min-width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #e31b46;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    padding: 0 6px;
}

/* =========================================================
   modal localiza������o
   ========================================================= */

.cliente-location-modal-backdrop {
    z-index: 10010;
}

.cliente-location-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 20px 16px 16px;
    border-radius: 12px;
    box-shadow: none;
}

.cliente-location-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.cliente-location-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.cliente-location-option {
    width: 100%;
    border: 1px solid #ececec;
    background: #fff;
    border-radius: 12px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
    box-shadow: none;
}

.cliente-location-option.is-active {
    border-color: #e31b46;
    box-shadow: 0 0 0 3px rgba(227, 27, 70, 0.08);
    background: #fff8f8;
}

.cliente-location-option-main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
}

.cliente-location-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(227, 27, 70, 0.08);
    color: #e31b46;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex: 0 0 auto;
}

.cliente-location-option-texts {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cliente-location-option-name {
    font-size: 14px;
    line-height: 1.25;
    color: #222;
    font-weight: 900;
    text-transform: lowercase;
}

.cliente-location-option-meta {
    font-size: 12px;
    line-height: 1.3;
    color: #777;
    font-weight: 700;
    text-transform: lowercase;
}

.cliente-location-option-check {
    color: #e31b46;
    font-size: 15px;
    flex: 0 0 auto;
}

.cliente-location-empty {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 12px;
    padding: 16px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    text-align: center;
    text-transform: lowercase;
}

/* =========================================================
   responsivo
   ========================================================= */

@media (max-width: 768px) {
    .cliente-header-location-chip {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .cliente-header-inner {
        min-height: 76px;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        padding-top: calc(12px + env(safe-area-inset-top));
        padding-bottom: 8px;
    }

    .cliente-brand-logo {
        height: 34px;
        max-width: 112px;
    }

    .cliente-header-actions {
        gap: 6px;
    }

    .cliente-header-icons-row {
        gap: 8px;
    }

    .cliente-account-app-action,
    .cliente-header-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .cliente-header-location-small {
        max-width: 145px;
        font-size: 11px;
    }

    .cliente-location-current-btn {
        min-height: 46px;
        border-radius: 10px;
        font-size: 14px;
        padding: 0 12px;
    }

    .cliente-account-app-action-badge,
    .cliente-header-notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .cliente-brand-logo {
        height: 32px;
        max-width: 106px;
    }

    .cliente-account-app-action,
    .cliente-header-icon-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .cliente-header-location-small {
        max-width: 145px;
    }
}

.cliente-header-logged-home {
    border-bottom: 0;
    background: #f7f7f8;
}

.cliente-header-logged-home .cliente-header-inner {
    min-height: 82px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    border-radius: 0 0 24px 24px;
    background: #fff;
    align-items: start;
    gap: 14px;
}

.cliente-header-home-user {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cliente-header-home-user .cliente-account-app-greeting {
    color: #222;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    text-transform: lowercase;
}

.cliente-header-home-user strong {
    max-width: calc(100vw - 160px);
    display: -webkit-box;
    color: #222;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.12;
    text-transform: lowercase;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.cliente-header-logged-home .cliente-header-actions {
    margin-top: 0;
}

.cliente-header-logged-home .cliente-header-icons-row {
    gap: 9px;
}

.cliente-header-logged-home .cliente-header-location-small {
    display: block;
    max-width: 145px;
    margin-top: 0;
}

.cliente-header-logged-home .cliente-account-app-action,
.cliente-header-logged-home .cliente-header-icon-btn {
    width: 40px;
    height: 40px;
    color: #222;
    font-size: 18px;
    background: #f4f4f5;
}

.cliente-header-cart {
    border-bottom: 0;
    background: #f7f7f8;
}

.cliente-header-cart .cliente-header-inner {
    min-height: 86px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
    border-radius: 0 0 24px 24px;
    background: #fff;
    align-items: start;
    gap: 14px;
}

.cliente-header-cart-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cliente-header-cart-label {
    color: #8a8a8a;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: none;
}

.cliente-header-cart-store {
    max-width: calc(100vw - 120px);
    display: -webkit-box;
    color: #222;
    font-size: 20px;
    font-weight: 900;
    line-height: 1.12;
    text-transform: lowercase;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
}

.cliente-header-cart-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 9px;
    min-width: 0;
}

.cliente-header-cart-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #666;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.cliente-header-cart-meta-item i {
    color: #222;
    font-size: 12px;
    flex: 0 0 auto;
}

.cliente-header-cart-actions {
    grid-column: 2;
    justify-self: end;
    display: inline-flex;
    align-items: flex-start;
    margin-top: 0;
}

.cliente-header-cart-back {
    width: 42px;
    height: 42px;
    color: #222;
    font-size: 20px;
    background: #f4f4f5;
}