.store-dock {
    position: fixed;
    z-index: 88;
    left: 50%;
    bottom: 20px;
    width: min(570px, calc(100% - 260px));
    min-width: 510px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid #ffffff1c;
    border-radius: 22px;
    background: linear-gradient(145deg, #222527ed, #101214f5);
    box-shadow: 0 22px 60px #000a, inset 0 1px #ffffff0d;
    backdrop-filter: blur(22px);
    transform: translateX(-50%);
    direction: rtl;
}

.store-dock > a {
    position: relative;
    min-width: 82px;
    height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    color: #aaa7a2;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.store-dock > a:hover,
.store-dock > a.active {
    color: #fff;
    background: #ffffff0a;
    transform: translateY(-2px);
}

.store-dock > a > i {
    font-size: 20px;
    font-style: normal;
    line-height: 1;
}

.store-dock > a > span {
    font-size: 9px;
}

.store-dock .store-dock-cart {
    width: 96px;
    height: 62px;
    margin-top: -20px;
    border: 1px solid #ff9d55;
    border-radius: 18px;
    color: #fff;
    background: linear-gradient(135deg, #ff7819, #e65300);
    box-shadow: 0 12px 30px #ef650755;
}

.store-dock .store-dock-cart:hover,
.store-dock .store-dock-cart.active {
    background: linear-gradient(135deg, #ff8934, #ed6008);
    transform: translateY(-3px);
}

.store-dock-cart b {
    position: absolute;
    top: -8px;
    right: -8px;
    min-width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    padding: 0 6px;
    border: 2px solid #17191b;
    border-radius: 99px;
    color: #ef6507;
    background: #fff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.cart-button b {
    top: -8px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border: 2px solid #17191b;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
}

.header-actions > .cart-button {
    border-color: #ef65075c;
    background: linear-gradient(145deg, #ef650720, #ffffff08);
    color: #ff8a38;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.header-actions > .cart-button:hover {
    border-color: #ff8a38;
    background: #ef65072c;
    transform: translateY(-1px);
}

.header-cart-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-account-menu > a {
    color: #f3f0eb;
    font-weight: 800;
}

.header-account-menu > a.is-authenticated {
    border-color: #ef65074d;
    background: #ef650719;
    color: #ff8733;
    font-size: 14px;
    font-weight: 900;
}

/* Keep transient feedback away from the persistent cart controls. */
.toast {
    top: 98px;
    right: auto;
    bottom: auto;
    left: 50%;
    width: max-content;
    max-width: min(420px, calc(100% - 32px));
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    border-color: #66c77f4d;
    border-radius: 14px;
    background: #173323f5;
    color: #e4ffec;
    box-shadow: 0 18px 45px #0006, inset 0 1px #ffffff14;
    backdrop-filter: blur(18px);
    transform: translate(-50%, 0);
    animation: cart-toast-in 220ms ease-out both;
}

.toast::before {
    content: "✓";
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: #55bd7625;
    color: #7fe19a;
    font-size: 12px;
    font-weight: 900;
}

.toast.toast-error {
    border-color: #ff7b7b42;
    background: #441c1cf5;
    color: #ffe6e6;
}

.toast.toast-error::before {
    content: "!";
    background: #ff7b7b20;
    color: #ff9a9a;
}

@keyframes cart-toast-in {
    from {
        opacity: 0;
        transform: translate(-50%, -12px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

@media (min-width: 681px) {
    body {
        padding-bottom: 98px;
    }
}

@media (max-width: 680px) {
    .toast {
        top: 78px;
        width: calc(100% - 24px);
        min-height: 46px;
        justify-content: center;
        padding: 10px 13px;
        border-radius: 13px;
        font-size: 11px;
    }

    .store-dock {
        display: none;
    }

    .mobile-nav {
        right: 10px;
        bottom: 10px;
        left: 10px;
        height: 68px;
        padding: 5px 7px calc(5px + env(safe-area-inset-bottom));
        border: 1px solid #ffffff1b;
        border-radius: 20px;
        background: linear-gradient(145deg, #222527f4, #101214f7);
        box-shadow: 0 18px 45px #0009, inset 0 1px #ffffff0c;
    }

    .mobile-nav a {
        flex: 1;
        min-width: 0;
        height: 54px;
        justify-content: center;
        border-radius: 13px;
    }

    .mobile-nav a.active {
        color: #fff;
        background: #ffffff0a;
    }

    .mobile-nav a:last-child {
        color: #fff;
        background: linear-gradient(135deg, #ff7819, #e65300);
        box-shadow: 0 8px 22px #ef650744;
    }

    .mobile-nav a:last-child > b {
        top: -7px;
        right: -4px;
        min-width: 24px;
        height: 24px;
        padding: 0 6px;
        border: 2px solid #17191b;
        background: #fff;
        color: #ef6507;
        font-size: 11px;
        font-weight: 900;
        line-height: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .toast {
        animation: none;
    }
}
