/* =====================================================================
   Custom Header – Account & Cart
   Flatsome Child Theme  |  style.css  (or Flatsome > Custom CSS)
   ===================================================================== */

/* ── Wrapper ── */
.hdr-account-cart {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ── Shared link base ── */
.hdr-account,
.hdr-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.hdr-account:hover,
.hdr-cart:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}

/* ── SVG icons ── */
.hdr-account__icon svg,
.hdr-cart__icon svg {
    display: block;
    flex-shrink: 0;
    color: #fff;
}

/* ── Account labels ── */
.hdr-account__labels {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.hdr-account__top {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 0.01em;
}

.hdr-account__main {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* ── Cart icon + badge ── */
.hdr-cart__icon {
    position: relative;
    display: flex;
    align-items: center;
}

.hdr-cart__count {
    position: absolute;
    top: -7px;
    right: -9px;
    background: #bd1a5a; 
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Cart total ── */
.hdr-cart__total {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

/* ── Responsive: hide labels on small screens ── */
@media (max-width: 640px) {
    .hdr-account__labels,
    .hdr-cart__total {
        display: none;
    }

    .hdr-account,
    .hdr-cart {
        padding: 6px;
    }
}
