/* モバイル固定フッターメニュー */
.ff-mobile-footer-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    height: 56px;
    background: #222; /* Orderieっぽいダーク */
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* 各アイテム */
.ff-mobile-footer-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #f5f5f5;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* マイリストだけ少し強調したいとき */
.ff-mobile-footer-item--my-list {
    font-weight: 600;
}

/* アイコン */
.ff-mobile-footer-icon {
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.ff-mobile-footer-icon svg {
    width: 20px;
    height: 20px;
    fill: #f5f5f5;
}

/* ラベル */
.ff-mobile-footer-label {
    display: block;
    font-size: 10px;
}

/* タップ時のフィードバック */
.ff-mobile-footer-item:active,
.ff-mobile-footer-item:focus {
    background: rgba(255,255,255,0.06);
}

/* コンテンツが隠れないように余白を追加 */
@media (max-width: 768px) {
    body {
        padding-bottom: 56px; /* navの高さと揃える */
    }
    .ast-scroll-to-top-right {
        right: 30px;
        bottom: 80px;
    }
}

.ff-mobile-cart-sticky-wrap {
    display: none;
}

@media (max-width: 768px) {
    .ff-mobile-cart-sticky-wrap {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(56px + 20px + env(safe-area-inset-bottom, 0px));
        z-index: 10000;
        display: block;
        pointer-events: none;
    }

    .ff-mobile-cart-sticky {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        width: 100%;
        box-sizing: border-box;
        min-height: 56px;
        padding: 0 18px;
        border-radius: 999px;
        background: #111;
        color: #fff;
        font-weight: 700;
        line-height: 1.2;
        text-decoration: none;
        box-shadow: 0 8px 24px rgba(0,0,0,.24);
        pointer-events: auto;
        white-space: nowrap;
        overflow: hidden;
    }

    .ff-mobile-cart-sticky:hover,
    .ff-mobile-cart-sticky:focus {
        color: #fff;
        opacity: .86;
    }

    .ff-mobile-cart-sticky__icon {
        display: inline-flex;
        width: 22px;
        height: 22px;
    }

    .ff-mobile-cart-sticky__icon svg {
        width: 22px;
        height: 22px;
        fill: currentColor;
    }

    .ff-mobile-cart-sticky__label {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* PCでは表示しない */
@media (min-width: 769px) {
    .ff-mobile-footer-nav {
        display: none;
    }
}
