.header-cart,
.header-list-dropdown {
    position: relative;
}

.header-cart-menu,
.header-hover-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 100;
    width: 330px;
    padding: 16px;
    border: 1px solid #e3e9e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(23, 60, 53, .16);
}

    .header-cart-menu::before,
    .header-hover-panel::before {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        top: -12px;
        height: 12px;
    }

    .header-cart:hover .header-cart-menu,
    .header-cart:focus-within .header-cart-menu,
    .header-cart-menu.is-open,
    .header-list-dropdown:hover .header-hover-panel,
    .header-list-dropdown:focus-within .header-hover-panel,
    .header-hover-panel.is-open {
        display: block;
    }

.header-hover-panel {
    width: 230px;
    padding: 16px;
    color: #173c35;
}

    .header-hover-panel strong,
    .header-hover-panel span {
        display: block;
    }

    .header-hover-panel span {
        margin: 7px 0 13px;
        color: #718078;
        font-size: 1.1rem;
    }

    .header-hover-panel > a {
        display: block;
        padding: 9px 11px;
        border-radius: 8px;
        background: #173c35;
        color: #fff;
        text-align: center;
    }

.header-account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    background: #e7f0e8;
    color: #173c35;
    font: 600 1.35rem/1 "Poppins", sans-serif;
}

    .header-account-avatar[hidden],
    #accountIcon[hidden],
    .account-menu-identity[hidden],
    .account-menu-identity-copy small[hidden] {
        display: none !important;
    }

.account-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 110;
    width: 224px;
    padding: 8px;
    border: 1px solid #e3e9e3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(23, 60, 53, .17);
    color: #173c35;
}

    .account-menu-panel[hidden] {
        display: none !important;
    }

    .account-menu-panel::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 0;
        right: 0;
        height: 10px;
    }

    .header-account-dropdown.is-signed-in:hover .account-menu-panel,
    .header-account-dropdown.is-signed-in:focus-within .account-menu-panel,
    .account-menu-panel.is-open {
        display: block;
    }

.account-menu-heading {
    padding: 8px 11px 10px;
    border-bottom: 1px solid #edf0ec;
    color: #718078;
    font-size: 1.05rem;
    font-weight: 600;
}

.account-menu-identity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    border-bottom: 1px solid #edf0ec;
}

.account-menu-avatar {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e7f0e8;
    color: #173c35;
    font: 600 1.5rem/1 "Poppins", sans-serif;
}

.account-menu-identity-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

    .account-menu-identity-copy strong,
    .account-menu-identity-copy small {
        overflow: hidden;
        color: #173c35;
        font-size: 1.05rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account-menu-identity-copy small {
        color: #718078;
        font-size: .95rem;
    }

.account-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #173c35;
    text-align: left;
    text-decoration: none;
    font: 500 1.15rem "Poppins", sans-serif;
    cursor: pointer;
}

    .account-menu-item i {
        width: 18px;
        color: #718078;
        font-size: 1.5rem;
        text-align: center;
    }

    .account-menu-item:hover,
    .account-menu-item:focus-visible {
        background: #f3f6f2;
        color: #173c35;
        text-decoration: none;
        outline: none;
    }

.account-menu-logout {
    border-top: 1px solid #edf0ec;
    border-radius: 0 0 9px 9px;
    color: #a24747;
}

    .account-menu-logout i {
        color: #a24747;
    }

.cart-preview-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .cart-preview-item.is-removing {
        opacity: .6;
    }

.cart-preview-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    color: inherit;
}

.cart-preview-remove {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f8eeee;
    color: #a24747;
    cursor: pointer;
}

    .cart-preview-remove:hover,
    .cart-preview-remove:focus-visible {
        background: #f1dada;
    }

    .cart-preview-remove:disabled {
        cursor: wait;
    }

.cart-quantity-indicator {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 8px;
    border-radius: 20px;
    background: #e7f1e9;
    color: #173c35;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.3;
}

.store-header {
    position: sticky;
    top: 0;
    z-index: 90;
}

.cart-qty-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 38px;
    padding: 3px;
    border: 1px solid #cddbd0;
    border-radius: 9px;
    background: #fff;
    color: #173c35;
}

    .cart-qty-stepper button {
        width: 31px;
        height: 30px;
        border: 0;
        border-radius: 7px;
        background: #eaf2eb;
        color: #173c35;
        font-size: 1.5rem;
        line-height: 1;
        cursor: pointer;
    }

        .cart-qty-stepper button:hover,
        .cart-qty-stepper button:focus-visible {
            background: #d8e8dc;
        }

    .cart-qty-stepper .cart-qty-value {
        min-width: 46px;
        text-align: center;
        font-size: 1rem;
    }

.product-card-footer > .cart-qty-stepper {
    flex: 1;
}

.pdp-cart-qty-stepper {
    min-width: 150px;
}

.pdp-cart-quantity {
    margin-top: 8px;
}

@media (max-width: 575px) {
    .header-cart-menu,
    .header-hover-panel {
        position: fixed;
        top: 110px;
        right: 12px;
        width: min(340px, calc(100vw - 24px));
    }
}
