/* HEADER */
/* INICIO CSS HEADER */

.cliente-header {
    position: relative;
    color: #222;
    box-shadow: none;
    overflow: visible;
    background: transparent;
}

.cliente-header::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 132px;
    background-image: url("/assets/img/various/bg-header.png");
    background-repeat: no-repeat;
    background-position: top center;
    background-size: 100% 100%;
    z-index: 0;
    pointer-events: none;
}

.cliente-header .container {
    position: relative;
    z-index: 2;
}

.cliente-header-inner {
    min-height: 96px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding-top: 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: 43px;
    width: auto;
    max-width: 132px;
    object-fit: contain;
    animation: clienteLogoDrop 0.85s ease forwards;
    will-change: transform, opacity;
}

@keyframes clienteLogoDrop {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }

    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: 3px;
    min-width: 0;
    margin-top: 0;
    transform: translate(-10px, -8px);
}

.cliente-header-icons-row {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cliente-header-icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #EDEDED;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    font-size: 20px;
    flex: 0 0 auto;
}

.cliente-header-location-btn {
    color: #222;
}

.cliente-header-notification-btn {
    color: #222;
}

.cliente-header-notification-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    border: 2px 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: 220px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    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: 5px;
}

.cliente-header-location-small:hover {
    color: #df1f26;
}

/* compatibilidade: classes antigas não 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;
}

.cliente-location-actions {
    margin-top: 16px;
    margin-bottom: 12px;
}

.cliente-location-current-btn {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    background: #df1f26;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 0 16px;
    cursor: pointer;
    font-weight: 800;
    text-align: center;
}

.cliente-location-current-btn-icon {
    flex: 0 0 auto;
    font-size: 15px;
}

.cliente-location-current-btn-text {
    line-height: 1.2;
}

@media (max-width: 768px) {
    .cliente-header-location-chip {
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .cliente-location-current-btn {
        min-height: 46px;
        border-radius: 14px;
        font-size: 14px;
        padding: 0 12px;
    }
}

.cliente-cart-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cliente-cart-link-header {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    min-height: 48px;
    justify-content: center;
}

.cliente-cart-link-header i {
    font-size: 16px;
}

.cliente-cart-link-header.is-active {
    background: rgba(255, 255, 255, 0.22);
}

.cliente-cart-count {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    background: #ffcf00;
    color: #222;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    padding: 0 6px;
}

@media (max-width: 640px) {

     .cliente-header {
        padding-top: 10px;
    }

    .cliente-header::before {
        height: 108px;
    }

    .cliente-header-inner {
    min-height: 96px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding-top: 6px;
    }

    .cliente-brand-logo {
        height: 39px;
        max-width: 120px;
    }

    .cliente-header-actions {
    gap: 3px;
    transform: translate(-8px, -8px);
    }

    .cliente-header-icons-row {
        gap: 8px;
    }

    .cliente-header-icon-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .cliente-header-location-small {
    max-width: 142px;
    font-size: 11px;
    }

    .cliente-header-notification-badge {
        min-width: 19px;
        height: 19px;
        font-size: 10px;
    }
}

@media (max-width: 380px) {
    .cliente-brand-logo {
        height: 40px;
        max-width: 118px;
    }

    .cliente-header-icon-btn {
        width: 40px;
        height: 40px;
        font-size: 17px;
    }

    .cliente-header-location-small {
    max-width: 175px;
    }
}
/* FIM CSS HEADER */

/* LOCATION MODAL */
/* INICIO CSS LOCATION MODAL */
.cliente-location-modal-backdrop {
    z-index: 10010;
}

.cliente-location-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 20px 16px 16px;
    border-radius: 22px;
}

.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: 16px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s ease;
}

.cliente-location-option.is-active {
    border-color: #df1f26;
    box-shadow: 0 0 0 3px rgba(223, 31, 38, 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: 999px;
    background: #fff2f2;
    color: #df1f26;
    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: 800;
}

.cliente-location-option-meta {
    font-size: 12px;
    line-height: 1.3;
    color: #777;
    font-weight: 700;
}

.cliente-location-option-check {
    color: #df1f26;
    font-size: 15px;
    flex: 0 0 auto;
}

.cliente-location-empty {
    background: #fafafa;
    border: 1px solid #ececec;
    border-radius: 16px;
    padding: 16px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    text-align: center;
}
/* FIM CSS LOCATION MODAL */