

.header-right .header-pill {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 8px 14px 8px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    min-width: 150px !important;
    max-width: 220px !important;
    height: 56px !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    color: inherit !important;
    font-family: 'Inter', system-ui, sans-serif !important;
    line-height: 1 !important;
    flex-direction: row !important;
    margin: 0 !important;
}

.header-right .header-pill:hover {
    border-color: #ef5526 !important;
    background: #fff5f0 !important;
    box-shadow: 0 4px 10px -6px rgba(239, 85, 38, .35);
}

.header-right .header-pill .header-pill-icon-wrap {
    position: relative;
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0 !important;
}

.header-right .header-pill > i.header-pill-icon,
.header-right .header-pill .header-pill-icon-wrap > i.header-pill-icon {
    font-size: 18px !important;
    color: #ef5526 !important;
    width: 24px !important;
    min-width: 24px !important;
    flex: 0 0 24px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    text-align: center;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.header-right .header-pill .header-pill-badge {
    position: absolute;
    top: -7px;
    right: -9px;
    left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef5526;
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 16px !important;
    text-align: center;
    box-sizing: border-box;
    border: 2px solid #ffffff;
    display: inline-block !important;
    z-index: 1;
}

.header-right .header-pill .header-pill-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    flex: 1 1 auto !important;
    min-width: 0;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-right .header-pill .header-pill-label {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    line-height: 1 !important;
    letter-spacing: .01em !important;
    text-transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

    .header-right .header-pill .header-pill-value {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #1f2937 !important;
        line-height: 1.2 !important;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        max-width: 100%;
        margin: 0 !important;
        padding: 0 !important;
        letter-spacing: 0 !important;
        text-transform: none !important;
    }

.header-right .header-pill .header-pill-arrow {
    font-size: 11px !important;
    color: #6b7280 !important;
    transition: transform .2s ease, color .15s ease;
    flex: 0 0 auto;
    margin: 0 0 0 auto !important;   
    order: 99 !important;          
    position: static !important;
}

.header-right .cart-dropdown:hover .header-pill .header-pill-arrow {
    transform: rotate(180deg);
    color: #ef5526 !important;
}

/* Single-line variant (Sepet — sadece "Sepetim") — diğer pill'lerin value hizasında alta yasla */
.header-right .header-pill.header-pill-single .header-pill-info {
    align-self: stretch !important;
    justify-content: flex-end !important;
    padding-bottom: 6px !important;
}

.header-right .header-pill.header-pill-single .header-pill-value {
    font-size: 14px !important;
    font-weight: 700 !important;
}


.header-right .header-pill .cart-label,
.header-right .header-pill .cart-name {
    all: unset;
    display: inline;
}

.header-right .header-pill > i.w-icon-cart,
.header-right .header-pill > i.w-icon-account {
    display: none !important;
}

/* Wrapper hizalama — Hesabım & Sepet container'ları */
.header-right .cart-dropdown.header-pill-wrap {
    display: flex;
    align-items: center;
    margin: 0 !important;
}

.header-right .cart-dropdown.header-pill-wrap + .cart-dropdown.header-pill-wrap {
    margin-left: 8px !important;
}

/* Mobile responsive */
@media (max-width: 991.98px) {
    .header-right .header-pill {
        min-width: auto !important;
        max-width: 140px !important;
        padding: 6px 10px !important;
    }

    .header-right .header-pill .header-pill-label { display: none; }

    .header-right .header-pill .header-pill-value {
        font-size: 12px !important;
    }
}

@media (max-width: 575.98px) {
    .header-right .header-pill {
        padding: 6px 8px !important;
    }

    .header-right .header-pill .header-pill-info { display: none !important; }

    .header-right .header-pill .header-pill-arrow { display: none !important; }
}

/* ============================================================
   Header Konum (Location) selector
   ============================================================ */

.header-location {
    position: relative;
    margin-right: 12px;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ---------- Toggle button ---------- */
.header-location-toggle {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 8px 14px 8px 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    min-width: 150px;
    max-width: 220px;
    height: 56px;
    box-sizing: border-box;
    color: inherit;
    font-family: inherit;
}

.header-location-toggle:hover {
    border-color: #ef5526;
    background: #fff5f0;
    box-shadow: 0 4px 10px -6px rgba(239, 85, 38, .35);
}

.header-location.open .header-location-toggle {
    border-color: #ef5526;
    background: #fff5f0;
}

.header-location-pin {
    font-size: 18px;
    color: #ef5526;
    flex: 0 0 auto;
}

.header-location-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1;
}

.header-location-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1;
    letter-spacing: .01em;
}

.header-location-value {
    font-size: 13px;
    font-weight: 700;
    color: #1f2937 !important;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.header-location-arrow {
    font-size: 10px;
    color: #9ca3af;
    transition: transform .2s ease, color .15s ease;
    flex: 0 0 auto;
}

.header-location.open .header-location-arrow {
    transform: rotate(180deg);
    color: #ef5526;
}

/* ---------- Dropdown panel ---------- */
.header-location-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 340px;
    max-width: 90vw;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 24px 48px -12px rgba(15, 23, 42, .18),
                0 8px 16px -8px rgba(15, 23, 42, .06);
    z-index: 1050;
    overflow: hidden;
    animation: hlPopIn .18s cubic-bezier(.22, 1, .36, 1);
}

.header-location.open .header-location-dropdown {
    display: block;
}

@keyframes hlPopIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Header inside dropdown ---------- */
.hl-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 18px 10px;
    border-bottom: 1px solid #f1f3f5;
}

.hl-header h6 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}

.hl-header-count {
    font-size: 11.5px;
    font-weight: 500;
    color: #9ca3af;
}

/* ---------- Address list ---------- */
.hl-list {
    list-style: none;
    padding: 8px;
    margin: 0;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.hl-list::-webkit-scrollbar { width: 6px; }
.hl-list::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 999px; }

.hl-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hl-list li + li { margin-top: 2px; }

.hl-item {
    display: flex !important;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    color: #1f2937;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
    font-family: inherit;
}

.hl-item:hover {
    background: #fff5f0;
}

.hl-item.active {
    background: #fff5f0;
    border-color: rgba(239, 85, 38, .3);
}

.hl-item-pin {
    font-size: 14px;
    color: #cbd5e1;
    flex: 0 0 auto;
    transition: color .15s ease;
}

.hl-item:hover .hl-item-pin,
.hl-item.active .hl-item-pin {
    color: #ef5526;
}

.hl-item-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hl-item-name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hl-item-address {
    font-size: 11.5px;
    color: #6b7280;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hl-item-check {
    color: #ef5526;
    font-size: 13px;
    flex: 0 0 auto;
}

.hl-item.loading {
    opacity: .6;
    cursor: wait;
}

.hl-footer {
    padding: 12px 18px 14px;
    border-top: 1px solid #f1f3f5;
    background: #fafbfc;
}

.hl-add {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ef5526;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color .15s ease;
}

.hl-add i {
    width: 22px;
    height: 22px;
    background: #fff5f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: background .15s ease;
}

.hl-add:hover {
    color: #d8451f;
}

.hl-add:hover i {
    background: #ffe8d8;
}

/* ---------- Empty state ---------- */
.hl-empty {
    padding: 28px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.hl-empty-icon {
    font-size: 28px;
    color: #ef5526;
    opacity: .35;
}

.hl-empty p {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
}

.hl-cta {
    display: inline-block;
    margin-top: 4px;
    padding: 8px 18px;
    background: #ef5526;
    color: #ffffff !important;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background .15s ease, transform .15s ease;
}

.hl-cta:hover {
    background: #d8451f;
    transform: translateY(-1px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .header-location {
        margin-right: 6px;
    }

    .header-location-toggle {
        min-width: auto;
        max-width: 140px;
        padding: 6px 10px;
    }

    .header-location-label { display: none; }

    .header-location-value {
        font-size: 12px;
    }
}

@media (max-width: 575.98px) {
    .header-location-toggle {
        padding: 6px 8px;
    }

    .header-location-info { display: none; }

    .header-location-arrow { display: none; }

    .header-location-dropdown {
        width: 92vw;
        right: 0;
        left: auto;
    }
}
