/**
 * BUMR Floating Mini-Cart
 * Fiksni gumb spodaj desno, viden le ko so v košarici izdelki.
 * Zero JS — spustni seznam prek CSS :hover na napravah z miško.
 */

.bumr-floating-cart {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9998; /* pod morebitnimi modali, nad vsebino */
    font-family: inherit;
}

/* ── Gumb ─────────────────────────────────────────────────────────── */
.bumr-fc-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px 12px 16px;
    background: linear-gradient(135deg, #0f2240 0%, #1a3a63 100%);
    color: #fff !important;
    border-radius: 999px;
    box-shadow: 0 6px 20px rgba(15, 34, 64, 0.35);
    text-decoration: none !important;
    line-height: 1;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bumr-fc-button:hover,
.bumr-fc-button:focus {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(15, 34, 64, 0.45);
}

.bumr-fc-icon {
    flex: 0 0 auto;
    color: #fff;
}

.bumr-fc-count {
    position: absolute;
    top: 4px;
    left: 6px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e63b2e;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    box-sizing: border-box;
    box-shadow: 0 0 0 2px #0f2240;
}

.bumr-fc-total {
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.bumr-fc-total .woocommerce-Price-amount,
.bumr-fc-total bdi {
    color: #fff;
}

/* ── Spustni seznam ───────────────────────────────────────────────── */
.bumr-fc-dropdown {
    position: absolute;
    right: 0;
    bottom: calc(100% + 12px);
    width: 320px;
    max-width: calc(100vw - 40px);
    background: #fff;
    color: #1a1a1a;
    border-radius: 14px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
}

.bumr-fc-items {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 320px;
    overflow-y: auto;
}

.bumr-fc-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #eef1f5;
    font-size: 14px;
}

.bumr-fc-item:last-child {
    border-bottom: 0;
}

.bumr-fc-item-name {
    flex: 1 1 auto;
    line-height: 1.35;
    color: #1a1a1a;
}

.bumr-fc-item-name strong {
    font-weight: 600;
    color: #0f2240;
}

.bumr-fc-item-qty {
    color: #6a7480;
    font-weight: 600;
}

.bumr-fc-item-price {
    flex: 0 0 auto;
    font-weight: 600;
    white-space: nowrap;
    color: #0f2240;
}

/* ── Noga s skupno ceno + gumbi ───────────────────────────────────── */
.bumr-fc-footer {
    padding: 14px 16px 16px;
    background: #f7f9fc;
    border-top: 1px solid #eef1f5;
}

.bumr-fc-sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 15px;
}

.bumr-fc-sum strong {
    font-size: 17px;
    color: #0f2240;
}

.bumr-fc-basket,
.bumr-fc-checkout {
    display: block;
    width: 100%;
    text-align: center;
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background 0.15s ease, opacity 0.15s ease;
}

.bumr-fc-basket {
    background: #fff;
    color: #0f2240 !important;
    border: 1.5px solid #0f2240;
    margin-bottom: 8px;
}

.bumr-fc-basket:hover {
    background: #eef1f5;
}

.bumr-fc-checkout {
    background: linear-gradient(135deg, #e63b2e 0%, #c9291d 100%);
    color: #fff !important;
    border: 0;
}

.bumr-fc-checkout:hover {
    opacity: 0.92;
}

/* ── Prikaz ob hoveru (samo naprave z miško) ──────────────────────── */
@media (hover: hover) {
    .bumr-floating-cart:hover .bumr-fc-dropdown,
    .bumr-floating-cart:focus-within .bumr-fc-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* Na dotičnih napravah spustnika ne prikazujemo — gumb je povezava do košarice. */
@media (hover: none) {
    .bumr-fc-dropdown {
        display: none;
    }
    .bumr-floating-cart {
        right: 16px;
        bottom: 16px;
    }
    .bumr-fc-button {
        padding: 12px 16px;
    }
}
