/* =================================================
   FOOTER – KRYSTALSPACE PREMIUM
================================================= */

/* --- FOOTER BASE --- */
.site-footer {
    background: #0f172a; /* deep navy */
    color: #cbd5e1;
    font-size: 14px;
    line-height: 1.6;
    position: relative;
}

.site-footer a {
    color: inherit;
    text-decoration: none;
    transition: color .25s ease;
}

.site-footer a:hover {
    color: #38bdf8;
}

/* --- WIDGETS --- */
.footer-widgets {
    padding: 70px 0 50px;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-title,
.footer-column h3 {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

/* Widget text / list */
.footer-column p,
.footer-column li {
    font-size: 14px;
    color: #94a3b8;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

/* --- FOOTER BOTTOM --- */
.footer-bottom {
    padding: 22px 0;
    background: rgba(2,6,23,.85);
    backdrop-filter: blur(8px);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    flex-wrap: wrap;
}

.copyright p {
    margin: 0;
    font-size: 13px;
    color: #94a3b8;
}

.copyright strong {
    color: #ffffff;
}

/* --- PAYMENTS --- */
.footer-payments {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.payment-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
}

.payment-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    color: #e5e7eb;
}

.payment-icons i {
    opacity: .85;
    transition: transform .25s ease, opacity .25s ease;
}

.payment-icons i:hover {
    transform: translateY(-3px);
    opacity: 1;
}

/* BLIK badge */
.payment-blik-badge {
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
    border-radius: 8px;
    background: #dc2626;
    color: #fff;
    letter-spacing: .08em;
}

/* =================================================
   SIDE CART (FOOTER CONTEXT)
================================================= */

.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 998;
}

body.side-cart-open .cart-overlay {
    opacity: 1;
    pointer-events: auto;
}

.side-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: min(420px, 100%);
    height: 100vh;
    background: #ffffff;
    box-shadow: -20px 0 40px rgba(0,0,0,.15);
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 999;
    display: flex;
    flex-direction: column;
}

body.side-cart-open .side-cart-drawer {
    transform: translateX(0);
}

.side-cart-header {
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
}

.side-cart-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.close-side-cart {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
}

.side-cart-content {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* =================================================
   MOBILE BOTTOM NAV
================================================= */

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-payments {
        justify-content: center;
    }

    /* --- Mobile bottom nav --- */
    .mobile-bottom-nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #020617;
        border-top: 1px solid rgba(255,255,255,.08);
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        z-index: 997;
    }

    .mobile-nav-item {
        padding: 10px 6px 8px;
        text-align: center;
        color: #cbd5e1;
        font-size: 11px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .mobile-nav-item i {
        font-size: 18px;
    }

    .mobile-nav-item:hover {
        color: #38bdf8;
    }

    .mobile-cart-icon-wrap {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-cart-icon-wrap .cart-count-bubble {
        position: absolute;
        top: -6px;
        right: -10px;
        background: #ef4444;
        color: #fff;
        font-size: 10px;
        font-weight: 800;
        min-width: 18px;
        height: 18px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* space for bottom nav */
    body {
        padding-bottom: 64px;
    }
}
