/*
 * Improve Equine — Footer Styles
 *
 * Styles the sitewide footer (parts/footer.html) and the floating
 * mobile cart pill (rendered by inc/floating-cart.php).
 *
 * Uses CSS variables from tokens.css. If tokens.css isn't loaded
 * (i.e., theme not active), falls back to literal hex values
 * — though that scenario shouldn't happen since this file is only
 * enqueued by the child theme's functions.php.
 */


/* ============================================================
   SITEWIDE FOOTER
============================================================ */
.ie-site-footer {
    background: #111C11;
    padding: 24px 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
}

.ie-site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ie-site-footer-brand-name {
    font-family: var(--ie-font-display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #F7F3ED;
    justify-self: start;
}

.ie-site-footer-subtext {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-top: 2px;
    color: #9A9088;
}

.ie-site-footer-tagline {
    justify-self: center;
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: #9A9088;
    margin: 0;
}

.ie-site-footer-links {
    justify-self: end;
    display: flex;
    gap: 18px;
}

.ie-site-footer-links a {
    font-size: 11px;
    text-decoration: none;
    color: #9A9088;
    transition: color 0.2s;
}

.ie-site-footer-links a:hover {
    color: #F7F3ED;
}

@media (max-width: 768px) {
    .ie-site-footer {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
        padding: 28px 24px;
        gap: 12px;
    }
    .ie-site-footer-brand {
        align-items: center;
    }
    .ie-site-footer-links {
        justify-self: center;
        gap: 16px;
    }
    .ie-site-footer-links a {
        font-size: 13px;
    }
}


/* ============================================================
   FLOATING CART PILL — mobile only, shown when cart has items
============================================================ */
#ie-float-cart {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9999;
    background: #1B3A4B;
    color: #F7F3ED;
    text-decoration: none;
    border-radius: 50px;
    padding: 10px 18px 10px 14px;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.28);
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    opacity: 0.88;
    transition: opacity 0.2s, transform 0.2s;
}

#ie-float-cart:hover {
    opacity: 1;
    transform: translateY(-2px);
}

#ie-float-cart svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

#ie-float-cart-count {
    background: #F7E8D0;
    color: #1B3A4B;
    font-size: 10px;
    font-weight: 700;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

@media (max-width: 768px) {
    #ie-float-cart.has-items {
        display: flex;
    }
    body {
        padding-bottom: 80px;
    }
}